{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/eslint-loader/index.js??ref--13-0!/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/src/api.js","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/src/api.js","mtime":1742796810125},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/babel.config.js","mtime":1742796810089},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty.js\";\nimport _toConsumableArray from \"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/@babel/runtime-corejs2/helpers/esm/toConsumableArray.js\";\nimport \"core-js/modules/es6.function.name\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/@babel/runtime-corejs2/helpers/esm/asyncToGenerator.js\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport store from \"./store\"; // 引入 axios\n\nimport axios from 'axios';\nimport { getDownloadAble_url } from \"@/utils/utils.js\";\nvar contextPath = kmsConfig.contextPath;\nvar staticContextPath = kmsConfig.staticContextPath;\nvar signonContextPath = kmsConfig.signonContextPath; //http response 拦截器\n\naxios.interceptors.response.use(function (response) {\n store.commit(\"instanceDialog\", false);\n return response;\n}, function (error) {\n if (error.response.status == 401) {\n if (store.state.user && store.state.user.id) {\n store.commit(\"instanceDialog\", true);\n } else {\n var url;\n\n if (staticContextPath) {\n url = \"http://\" + window.location.host + staticContextPath + signonContextPath + \"/index.html\";\n } else {\n url = \"http://\" + window.location.host + signonContextPath + \"/index.html\";\n }\n\n window.location.href = url;\n }\n } else {\n return Promise.reject(error);\n }\n});\naxios.defaults.withCredentials = true;\nexport default {\n //获取当前用户\n getMyProfile: function getMyProfile(_ref) {\n var onSucess = _ref.onSucess,\n onError = _ref.onError;\n axios.get(contextPath + '/kms/users/myprofile').then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n\n /**\n * 退出登录\n */\n logout: function logout(_ref2) {\n var onSucess = _ref2.onSucess,\n onError = _ref2.onError;\n axios({\n url: contextPath + '/runtime/logout',\n method: 'POST'\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n\n /**\n * \n * 超时登录\n */\n signonLogin: function signonLogin(jsonData, _ref3) {\n var onSucess = _ref3.onSucess,\n onError = _ref3.onError;\n var url;\n\n if (statiContextPath) {\n url = signonContextPath + \"/api/runtime/login/loginWithCiphertext2\";\n } else {\n url = signonContextPath + \"/runtime/login/loginWithCiphertext2\";\n }\n\n axios.post(url, jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n\n /**\n * 个人信息设置\n */\n detail: function detail(dataJson, _ref4) {\n var onSucess = _ref4.onSucess,\n onError = _ref4.onError;\n axios({\n url: contextPath + '/kms/usersetups/detail',\n method: 'POST',\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n\n /**\n * 密码设置\n */\n password: function password(dataJson, _ref5) {\n var onSucess = _ref5.onSucess,\n onError = _ref5.onError;\n axios({\n url: contextPath + '/kms/usersetups/password',\n method: 'POST',\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n\n /**\n * 上传文件\n */\n fileUpload: function fileUpload(diskId, folderId, dataJson, _ref6, callback1, uid) {\n var onSucess = _ref6.onSucess,\n onError = _ref6.onError;\n axios({\n headers: {\n \"content-type\": \"multipart/form-data;boundary=\" + Math.random()\n },\n url: contextPath + '/kms/upload?diskId=' + diskId + '&folderId=' + folderId,\n method: 'POST',\n data: dataJson,\n onUploadProgress: function onUploadProgress(progressEvent) {\n var complete = (progressEvent.loaded / progressEvent.total * 100 | 0) + '%';\n var num = progressEvent.loaded / progressEvent.total * 100 | 0;\n console.log('上传----> ' + complete);\n var obj = {\n complete: complete,\n num: num,\n uid: uid\n };\n callback1(obj);\n }\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n\n /**\n * \n * 上传文件夹\n */\n folderUpload: function folderUpload(dataJson, _ref7, callback1) {\n var onSucess = _ref7.onSucess,\n onError = _ref7.onError;\n axios({\n headers: {\n \"content-type\": \"multipart/form-data;boundary=\" + Math.random()\n },\n url: contextPath + '/kms/folder/upload',\n method: 'POST',\n data: dataJson,\n onUploadProgress: function onUploadProgress(progressEvent) {\n console.log(progressEvent);\n var complete = (progressEvent.loaded / progressEvent.total * 100 | 0) + '%';\n var num = progressEvent.loaded / progressEvent.total * 100 | 0;\n console.log('上传----> ' + complete);\n var obj = {\n complete: complete,\n num: num // uid: uid,\n\n };\n callback1(obj);\n }\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n\n /**\n * 异步获取当前用户\n */\n getMyProfileAwait: function () {\n var _getMyProfileAwait = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var result;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return axios.get(contextPath + '/kms/users/myprofile');\n\n case 2:\n result = _context.sent;\n return _context.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n function getMyProfileAwait() {\n return _getMyProfileAwait.apply(this, arguments);\n }\n\n return getMyProfileAwait;\n }(),\n\n /**\n * 获取首页我的上传量数据\n * @param {*} originType 文件来源类型\n */\n getUserUploadFileCount: function getUserUploadFileCount(originType, _ref8) {\n var onSucess = _ref8.onSucess,\n onError = _ref8.onError;\n axios.get(contextPath + '/kms/files/userUploadFileCount?originType=' + originType).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n\n /**\n * 获取首页我的排行版\n * @param {*} originType 文件来源类型\n */\n getAllUserUploadFileCount: function getAllUserUploadFileCount(param, _ref9) {\n var onSucess = _ref9.onSucess,\n onError = _ref9.onError;\n axios.get(contextPath + '/kms/files/getAllUserUploadFileCount?linesPerPage=' + param.linesPerPage + '&pageNo=' + param.pageNo).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取部门下的用户\n getDeptUser: function getDeptUser(departmentId, pageSize, pageNum, _ref10) {\n var onSucess = _ref10.onSucess,\n onError = _ref10.onError;\n axios.get(contextPath + '/kms/users/selectbox/departments/' + departmentId + '?pageNo=' + pageNum + '&linesPerPage=' + pageSize).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //通讯录\n getContactUser: function getContactUser(keyword, pageSize, pageNum, _ref11) {\n var onSucess = _ref11.onSucess,\n onError = _ref11.onError;\n axios.get(contextPath + '/kms/users/selectbox/search?keyword=' + keyword + '&pageNo=' + pageNum + '&linesPerPage=' + pageSize).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //创建空文档\n createEmptydoc: function () {\n var _createEmptydoc = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(params) {\n var _url, result;\n\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _url = contextPath + '/kms/disks/' + params.diskId + '/folders/' + params.folderId;\n _context2.next = 3;\n return axios({\n url: _url,\n method: \"POST\"\n });\n\n case 3:\n result = _context2.sent;\n return _context2.abrupt(\"return\", result);\n\n case 5:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n function createEmptydoc(_x) {\n return _createEmptydoc.apply(this, arguments);\n }\n\n return createEmptydoc;\n }(),\n //资料检索\n //获取搜索数据\n getFilesSearch: function () {\n var _getFilesSearch = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(params) {\n var result;\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return axios.get(contextPath + '/kms/search/files/lastest_search?pageNo=' + params.pageNo + '&linesPerPage=' + params.linesPerPage);\n\n case 2:\n result = _context3.sent;\n return _context3.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n function getFilesSearch(_x2) {\n return _getFilesSearch.apply(this, arguments);\n }\n\n return getFilesSearch;\n }(),\n //根据条件进行查询\n filesSearch: function filesSearch(params, _ref12) {\n var onSucess = _ref12.onSucess,\n onError = _ref12.onError;\n axios({\n url: contextPath + '/kms/search/files?keyWord=' + params.keyWord + params.scope + '&selectTitle=' + params.selectTitle + '&selectContent=' + params.selectContent + '&creator=' + params.creator + '&beginTime=' + params.beginTime + '&endTime=' + params.endTime + '&categoryIds=' + params.categoryIds + '&pageNo=' + params.pageNo + '&linesPerPage=' + params.linesPerPage,\n method: 'get',\n data: params\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取最新浏览数据\n getNewPreview: function getNewPreview(params, _ref13) {\n var onSucess = _ref13.onSucess,\n onError = _ref13.onError;\n axios.get(contextPath + '/kms/search/files/lastest_view?pageNo=' + params.pageNo + '&linesPerPage=' + params.linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取最新分享数据\n getNewShare: function getNewShare(params, _ref14) {\n var onSucess = _ref14.onSucess,\n onError = _ref14.onError;\n axios.get(contextPath + '/kms/search/files/lastest_share?pageNo=' + params.pageNo + '&linesPerPage=' + params.linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取最新上传数据\n getNewUpload: function getNewUpload(params, _ref15) {\n var onSucess = _ref15.onSucess,\n onError = _ref15.onError;\n axios.get(contextPath + '/kms/search/files/lastest_upload?pageNo=' + params.pageNo + '&linesPerPage=' + params.linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取最新搜索数据\n getNewSearch: function getNewSearch(params, _ref16) {\n var onSucess = _ref16.onSucess,\n onError = _ref16.onError;\n axios.get(contextPath + '/kms/search/files/lastest_search?pageNo=' + params.pageNo + '&linesPerPage=' + params.linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取最热文章的数据\n getHotView: function getHotView(params, _ref17) {\n var onSucess = _ref17.onSucess,\n onError = _ref17.onError;\n axios.get(contextPath + '/kms/search/files/hot_view?pageNo=' + params.pageNo + '&linesPerPage=' + params.linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //专委会设置\n //获取专委会列表\n getCommitteeKmData: function getCommitteeKmData(params, _ref18) {\n var onSucess = _ref18.onSucess,\n onError = _ref18.onError;\n axios.get(contextPath + '/kms/realms?linesPerPage=' + params.linesPerPage + '&pageNo=' + params.pageNo).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //创建专委会\n createCommittee: function createCommittee(data, _ref19) {\n var onSucess = _ref19.onSucess,\n onError = _ref19.onError;\n axios({\n url: contextPath + '/kms/realms',\n method: 'post',\n data: data\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n // 删除专委会\n // data:[\"专委会id\",\"专委会id2\",…]\n deleteCommittee: function deleteCommittee(data, _ref20) {\n var onSucess = _ref20.onSucess,\n onError = _ref20.onError;\n axios({\n url: contextPath + '/kms/realms',\n method: 'DELETE',\n data: data\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //编辑专委会\n //data : \n // {\n // \"id\": \"\",\n // \"name\": \"\",\n // \"orderNo\": \"\"\n // }\n editCommittee: function editCommittee(data, _ref21) {\n var onSucess = _ref21.onSucess,\n onError = _ref21.onError;\n axios({\n url: contextPath + '/kms/realms',\n method: 'PUT',\n data: data\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //部门设置-获取部门选择框数据\n getDepartmentsData: function getDepartmentsData(_ref22) {\n var onSucess = _ref22.onSucess,\n onError = _ref22.onError;\n axios.get(contextPath + '/kms/departments').then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //部门设置-创建部门网盘\n createDeptDisks: function createDeptDisks(data, _ref23) {\n var onSucess = _ref23.onSucess,\n onError = _ref23.onError;\n axios({\n url: contextPath + '/kms/disks/departments',\n method: 'POST',\n data: data\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n\n /**\n * 编辑部门网盘序号\n * @param {*} data \n * @param {*} param1 \n */\n handleEditDeptDisk: function handleEditDeptDisk(data, _ref24) {\n var onSucess = _ref24.onSucess,\n onError = _ref24.onError;\n axios({\n url: contextPath + '/kms/disks/' + data.id,\n method: 'PUT',\n data: data\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n // 删除部门网盘\n // data:[\"部门id\",\"部门id2\",…]\n deleteDeptDisks: function deleteDeptDisks(data, _ref25) {\n var onSucess = _ref25.onSucess,\n onError = _ref25.onError;\n axios({\n url: contextPath + '/kms/disks',\n method: 'DELETE',\n data: data\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //管理员入口模块\n //获取部门km设置列表\n //获取网盘集合\n getdisksData: function getdisksData(params, _ref26) {\n var onSucess = _ref26.onSucess,\n onError = _ref26.onError;\n axios.get(contextPath + '/kms/disks/departments?linesPerPage=' + params.linesPerPage + '&pageNo=' + params.pageNo).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //授权-获取用户列表\n getUsers: function () {\n var _getUsers = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(params) {\n var url, result;\n return regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n url = contextPath + \"/kms/users/?departmentId=\" + params.departmentId + \"&nameOrAccount=\" + params.nameOrAccount + \"&roleId=\" + params.roleId + \"&linesPerPage=\" + params.linesPerPage + \"&pageNo=\" + params.pageNo;\n _context4.next = 3;\n return axios.get(url);\n\n case 3:\n result = _context4.sent;\n return _context4.abrupt(\"return\", result);\n\n case 5:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }));\n\n function getUsers(_x3) {\n return _getUsers.apply(this, arguments);\n }\n\n return getUsers;\n }(),\n //授权-绑定角色\n bindRole: function () {\n var _bindRole = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(params) {\n var result;\n return regeneratorRuntime.wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n _context5.next = 2;\n return axios({\n url: contextPath + \"/kms/users/userroleset\",\n method: \"POST\",\n data: params\n });\n\n case 2:\n result = _context5.sent;\n return _context5.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5);\n }));\n\n function bindRole(_x4) {\n return _bindRole.apply(this, arguments);\n }\n\n return bindRole;\n }(),\n //获取管理员标签树\n getLabelTreeView: function getLabelTreeView(_ref27) {\n var onSucess = _ref27.onSucess,\n onError = _ref27.onError;\n axios.get(contextPath + '/kms/categorys/tree').then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取标签类别\n getTagCategory: function () {\n var _getTagCategory = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {\n var result;\n return regeneratorRuntime.wrap(function _callee6$(_context6) {\n while (1) {\n switch (_context6.prev = _context6.next) {\n case 0:\n _context6.next = 2;\n return axios({\n url: contextPath + \"/kms/categorys/files/count\",\n method: \"GET\"\n });\n\n case 2:\n result = _context6.sent;\n return _context6.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context6.stop();\n }\n }\n }, _callee6);\n }));\n\n function getTagCategory() {\n return _getTagCategory.apply(this, arguments);\n }\n\n return getTagCategory;\n }(),\n //获取标签分类列表\n getKmsFilesList: function () {\n var _getKmsFilesList = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(params) {\n var categoryName, userIds, beginTime, endTime, linesPerPage, pageNo, url, result;\n return regeneratorRuntime.wrap(function _callee7$(_context7) {\n while (1) {\n switch (_context7.prev = _context7.next) {\n case 0:\n categoryName = params.categoryName;\n userIds = params.userIds;\n beginTime = params.beginTime;\n endTime = params.endTime;\n linesPerPage = params.linesPerPage;\n pageNo = params.pageNo;\n url = contextPath + \"/kms/files?categoryName=\" + categoryName + \"&userIds=\" + userIds + \"&beginTime=\" + beginTime + \"&endTime=\" + endTime + \"&linesPerPage=\" + linesPerPage + \"&pageNo=\" + pageNo;\n _context7.next = 9;\n return axios({\n url: url,\n method: \"GET\"\n });\n\n case 9:\n result = _context7.sent;\n return _context7.abrupt(\"return\", result);\n\n case 11:\n case \"end\":\n return _context7.stop();\n }\n }\n }, _callee7);\n }));\n\n function getKmsFilesList(_x5) {\n return _getKmsFilesList.apply(this, arguments);\n }\n\n return getKmsFilesList;\n }(),\n //获取管理员标签添加\n getLabelTreeAdd: function getLabelTreeAdd(docJson, _ref28) {\n var onSucess = _ref28.onSucess,\n onError = _ref28.onError;\n axios({\n url: contextPath + \"/kms/categorys\",\n method: 'post',\n data: docJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取管理员标签删除\n getLabelTreeDelete: function getLabelTreeDelete(docJson, _ref29) {\n var onSucess = _ref29.onSucess,\n onError = _ref29.onError;\n axios({\n url: contextPath + \"/kms/categorys\",\n method: 'delete',\n data: docJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //修改管理员标签\n getLabelTreeEdit: function getLabelTreeEdit(docJson, _ref30) {\n var onSucess = _ref30.onSucess,\n onError = _ref30.onError;\n axios({\n url: contextPath + \"/kms/categorys\",\n method: 'put',\n data: docJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //报表数据检索\n getReportSoure: function getReportSoure(params, _ref31) {\n var onSucess = _ref31.onSucess,\n onError = _ref31.onError;\n axios.get(contextPath + '/kms/reports/query?region=' + params.region + '&operationType=' + params.operationType + '&deptId=' + params.departmentId + '&userId=' + params.userId + '&startDate=' + params.startDate + '&endDate=' + params.endDate).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取报表数据\n getChartData: function () {\n var _getChartData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {\n var result;\n return regeneratorRuntime.wrap(function _callee8$(_context8) {\n while (1) {\n switch (_context8.prev = _context8.next) {\n case 0:\n _context8.next = 2;\n return axios.get(contextPath + \"/kms/contributor/fileCount?topCount=10\");\n\n case 2:\n result = _context8.sent;\n return _context8.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context8.stop();\n }\n }\n }, _callee8);\n }));\n\n function getChartData() {\n return _getChartData.apply(this, arguments);\n }\n\n return getChartData;\n }(),\n\n /**\n * 获取水印信息\n */\n getWatermark: function getWatermark(_ref32) {\n var onSucess = _ref32.onSucess,\n onError = _ref32.onError;\n axios.get(contextPath + '/kms/watermark/config').then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n\n /**\n * 文档水印设置修改\n */\n putWatermark: function putWatermark(docJson, _ref33) {\n var onSucess = _ref33.onSucess,\n onError = _ref33.onError;\n axios({\n url: contextPath + \"/kms/watermark/config\",\n method: 'put',\n data: docJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //员工km\n //获取我的代办代办信息\n getMypeddingMessage: function getMypeddingMessage(params, _ref34) {\n var onSucess = _ref34.onSucess,\n onError = _ref34.onError;\n axios.get(contextPath + '/kms/users/' + params.userId + '/pending/applications?linesPerPage=' + params.linesPerPage + '&pageNo=' + params.pageNo).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //我的代办代办同意操作\n agreeOperation: function agreeOperation(params, dataJson, _ref35) {\n var onSucess = _ref35.onSucess,\n onError = _ref35.onError;\n axios({\n url: contextPath + '/kms/applications/' + params.id,\n method: 'put',\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //我的代办代办不同意操作\n disAgreeOperation: function disAgreeOperation(params, dataJson, _ref36) {\n var onSucess = _ref36.onSucess,\n onError = _ref36.onError;\n axios({\n url: contextPath + '/kms/applications/' + params.id,\n method: 'put',\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取我的代办已办信息\n getProcessingMessage: function getProcessingMessage(params, _ref37) {\n var onSucess = _ref37.onSucess,\n onError = _ref37.onError;\n axios.get(contextPath + '/kms/users/' + params.userId + '/disposing/applications?linesPerPage=' + params.linesPerPage + '&pageNo=' + params.pageNo).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取知识地图我的代办信息\n getKnowledgeMypeddingMessage: function getKnowledgeMypeddingMessage(params, _ref38) {\n var onSucess = _ref38.onSucess,\n onError = _ref38.onError;\n axios.get(contextPath + '/kms/maps/' + params.userId + '/pending?linesPerPage=' + params.linesPerPage + '&pageNo=' + params.pageNo).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取知识地图我的代办已办信息\n getKnowledgeProcessingMessage: function getKnowledgeProcessingMessage(params, _ref39) {\n var onSucess = _ref39.onSucess,\n onError = _ref39.onError;\n axios.get(contextPath + '/kms/maps/' + params.userId + '/disposing?linesPerPage=' + params.linesPerPage + '&pageNo=' + params.pageNo).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //点击我的代办知识地图\n getKnowledge: function getKnowledge(id, _ref40) {\n var onSucess = _ref40.onSucess,\n onError = _ref40.onError;\n axios({\n url: contextPath + \"/kms/maps/\" + id,\n method: \"get\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //我的文库\n //获取用户的km团队和知识专题的开关\n getKmTeamAndRealm: function () {\n var _getKmTeamAndRealm = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {\n var result;\n return regeneratorRuntime.wrap(function _callee9$(_context9) {\n while (1) {\n switch (_context9.prev = _context9.next) {\n case 0:\n _context9.next = 2;\n return axios.get(contextPath + \"/kms/realmAndTeam\");\n\n case 2:\n result = _context9.sent;\n return _context9.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context9.stop();\n }\n }\n }, _callee9);\n }));\n\n function getKmTeamAndRealm() {\n return _getKmTeamAndRealm.apply(this, arguments);\n }\n\n return getKmTeamAndRealm;\n }(),\n //获取我的文库列表\n getMyLibraryList: function () {\n var _getMyLibraryList = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10(params) {\n var orderByfield, orderMode, disksFolders_url, result;\n return regeneratorRuntime.wrap(function _callee10$(_context10) {\n while (1) {\n switch (_context10.prev = _context10.next) {\n case 0:\n orderByfield = params.orderByfield ? params.orderByfield : \"NAME\";\n orderMode = params.orderMode ? params.orderMode : \"ASC\";\n disksFolders_url = contextPath + \"/kms/disks/\" + params.diskId + \"/folders/\" + params.folderId + \"/files?orderByfield=\" + orderByfield + \"&orderMode=\" + orderMode + \"&pageNo=\" + params.pageNo + \"&linesPerPage=\" + params.linesPerPage;\n _context10.next = 5;\n return axios.get(disksFolders_url);\n\n case 5:\n result = _context10.sent;\n return _context10.abrupt(\"return\", result);\n\n case 7:\n case \"end\":\n return _context10.stop();\n }\n }\n }, _callee10);\n }));\n\n function getMyLibraryList(_x6) {\n return _getMyLibraryList.apply(this, arguments);\n }\n\n return getMyLibraryList;\n }(),\n //获取分享列表数据\n getShareList: function getShareList(params, _ref41) {\n var onSucess = _ref41.onSucess,\n onError = _ref41.onError;\n axios.get(contextPath + '/kms/disks/' + params.userId + '/sharefiles?orderByfield=' + params.orderByfield + '&orderMode=' + params.orderMode + '&pageNo=' + params.pageNo + '&linesPerPage=' + params.linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取最新编辑数据\n getRecentlyEditors: function getRecentlyEditors(params, _ref42) {\n var onSucess = _ref42.onSucess,\n onError = _ref42.onError;\n axios.get(contextPath + '/kms/search/files/myRecent_edit?pageNo=' + params.pageNo + '&linesPerPage=' + params.linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取最新上传数据\n getRecentlyUpload: function getRecentlyUpload(params, _ref43) {\n var onSucess = _ref43.onSucess,\n onError = _ref43.onError;\n axios.get(contextPath + '/kms/search/files/myLastest_upload?pageNo=' + params.pageNo + '&linesPerPage=' + params.linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //查看是否可以进行预览\n getPreviewAble: function getPreviewAble(id, _ref44) {\n var onSucess = _ref44.onSucess,\n onError = _ref44.onError;\n axios.get(contextPath + \"/kms/previewAble/files/\" + id).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //查看是否可以进行预览\n getFilePreviewAble: function getFilePreviewAble(fileId, _ref45) {\n var onSucess = _ref45.onSucess,\n onError = _ref45.onError;\n axios.get(contextPath + \"/kms/previewAble/files/\" + fileId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取最新搜索数据\n getRecentSearch: function getRecentSearch(params, _ref46) {\n var onSucess = _ref46.onSucess,\n onError = _ref46.onError;\n axios.get(contextPath + '/kms/search/files/myLastest_search?pageNo=' + params.pageNo + '&linesPerPage=' + params.linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取审批人信息\n getApprovers: function getApprovers(id, _ref47) {\n var onSucess = _ref47.onSucess,\n onError = _ref47.onError;\n axios.get(contextPath + \"/kms/applications/approvers?resourceId=\" + id).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //申请权限\n appAuthority: function appAuthority(dataJson, _ref48) {\n var onSucess = _ref48.onSucess,\n onError = _ref48.onError;\n axios({\n url: contextPath + '/kms/applications',\n method: 'post',\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //打开预览文件\n previewAble: function previewAble(id, _ref49) {\n var onSucess = _ref49.onSucess,\n onError = _ref49.onError;\n axios.get(contextPath + \"/kms/disks/files/\" + id + \"/preview\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //我的订阅获取左边内容\n getSubscriptions: function getSubscriptions(param, _ref50) {\n var onSucess = _ref50.onSucess,\n onError = _ref50.onError;\n axios.get(contextPath + \"/kms/subscriptions?userId=\" + param.userId + \"&linesPerPage=\" + param.linesPerPage + \"&pageNo=\" + param.pageNo).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //我的订阅获取右边动态\n getSubscriptionsNotices: function getSubscriptionsNotices(param, _ref51) {\n var onSucess = _ref51.onSucess,\n onError = _ref51.onError;\n axios.get(contextPath + \"/kms/subscriptions/notices?userId=\" + param.userId + \"&linesPerPage=\" + param.linesPerPage + \"&pageNo=\" + param.pageNo).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //我的日志列表\n getMyDiary: function getMyDiary(param, _ref52) {\n var onSucess = _ref52.onSucess,\n onError = _ref52.onError;\n axios.get(contextPath + \"/kms/users/\" + param.userid + \"/logs?keyWord=\" + param.keyWord + \"&operationType=\" + param.operationType + \"&pageNo=\" + param.pageNo + \"&linesPerPage=\" + param.linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //语音转文字\n speechText: function speechText(param, _ref53) {\n var onSucess = _ref53.onSucess,\n onError = _ref53.onError;\n axios({\n url: contextPath + \"/kms/speech/speechToText?fromType=\" + param.option,\n method: \"post\" //data: dataJson\n\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取科大讯飞的历史上传记录\n historyUpload: function historyUpload(param, _ref54) {\n var onSucess = _ref54.onSucess,\n onError = _ref54.onError;\n axios.get(contextPath + \"/kms/speech/speechToText/iflyTek/history?pageNo=\" + param.pageNo + \"&linesPerPage=\" + param.linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取科大讯飞的上传历史记录\n getHistory: function () {\n var _getHistory = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {\n var result;\n return regeneratorRuntime.wrap(function _callee11$(_context11) {\n while (1) {\n switch (_context11.prev = _context11.next) {\n case 0:\n _context11.next = 2;\n return axios({\n url: contextPath + \"/kms/speech/speechToText/iflyTek/history?pageNo=1&linesPerPage=10\",\n method: \"GET\"\n });\n\n case 2:\n result = _context11.sent;\n return _context11.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context11.stop();\n }\n }\n }, _callee11);\n }));\n\n function getHistory() {\n return _getHistory.apply(this, arguments);\n }\n\n return getHistory;\n }(),\n //获取科大讯飞的上传历史记录转换的语音文件\n getSpeechToText: function () {\n var _getSpeechToText = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(taskId) {\n var result;\n return regeneratorRuntime.wrap(function _callee12$(_context12) {\n while (1) {\n switch (_context12.prev = _context12.next) {\n case 0:\n _context12.next = 2;\n return axios({\n url: contextPath + \"/kms/speech/speechToText/text?\" + \"taskId=\" + taskId,\n method: \"GET\"\n });\n\n case 2:\n result = _context12.sent;\n return _context12.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context12.stop();\n }\n }\n }, _callee12);\n }));\n\n function getSpeechToText(_x7) {\n return _getSpeechToText.apply(this, arguments);\n }\n\n return getSpeechToText;\n }(),\n //文字转语音\n speechVoice: function speechVoice(param, dataJson, _ref55) {\n var onSucess = _ref55.onSucess,\n onError = _ref55.onError;\n axios({\n url: contextPath + \"/kms/speech/textToSpeech?fromType=\" + param.fromType + \"&speechType=\" + param.speechType,\n method: \"post\",\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //文字转语音\n textToSpeech: function () {\n var _textToSpeech = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(params) {\n var result;\n return regeneratorRuntime.wrap(function _callee13$(_context13) {\n while (1) {\n switch (_context13.prev = _context13.next) {\n case 0:\n _context13.next = 2;\n return axios({\n url: contextPath + '/kms/speech/textToSpeech?fromType=' + params.type + '&speechType=' + params.voiceType,\n method: \"POST\",\n credentials: 'include',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n },\n data: params.value\n });\n\n case 2:\n result = _context13.sent;\n return _context13.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context13.stop();\n }\n }\n }, _callee13);\n }));\n\n function textToSpeech(_x8) {\n return _textToSpeech.apply(this, arguments);\n }\n\n return textToSpeech;\n }(),\n //知识专题\n //知识专题标签\n getKnowledgeTabList: function getKnowledgeTabList(_ref56) {\n var onSucess = _ref56.onSucess,\n onError = _ref56.onError;\n axios.get(contextPath + '/kms/realms/list').then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //知识订阅\n knowledgeSubscriptions: function knowledgeSubscriptions(dataJson, _ref57) {\n var onSucess = _ref57.onSucess,\n onError = _ref57.onError;\n axios({\n url: contextPath + \"/kms/subscriptions\",\n method: \"post\",\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //取消知识订阅\n deleteKnowledgeSubscriptions: function deleteKnowledgeSubscriptions(dataJson, _ref58) {\n var onSucess = _ref58.onSucess,\n onError = _ref58.onError;\n axios({\n url: contextPath + \"/kms/subscriptions\",\n method: \"delete\",\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //判断是否订阅\n getIsKnowledgeSubscriptions: function getIsKnowledgeSubscriptions(param, _ref59) {\n var onSucess = _ref59.onSucess,\n onError = _ref59.onError;\n axios.get(contextPath + \"/kms/realms/\" + param.id + \"/isSubscription\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //知识专题表单\n getKnowledgeTableList: function getKnowledgeTableList(param, _ref60) {\n var onSucess = _ref60.onSucess,\n onError = _ref60.onError;\n axios.get(contextPath + \"/kms/realms/\" + param.id + \"/maps?title=\" + param.title + \"&pageNo=\" + param.pageNo + \"&linesPerPage=\" + param.linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //删除知识专题数据\n deleteKnowledge: function deleteKnowledge(dataJson, _ref61) {\n var onSucess = _ref61.onSucess,\n onError = _ref61.onError;\n axios({\n url: contextPath + \"/kms/maps\",\n method: \"delete\",\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //知识专题数据操作维护\n knowledgeMaintain: function knowledgeMaintain(param, _ref62) {\n var onSucess = _ref62.onSucess,\n onError = _ref62.onError;\n axios({\n url: contextPath + \"/kms/maps/\" + param.id + \"/maintenance\",\n method: \"put\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //新建知识地图获取部门KM的数据\n getKnowledgeDepartments: function getKnowledgeDepartments(param, _ref63) {\n var onSucess = _ref63.onSucess,\n onError = _ref63.onError;\n axios.get(contextPath + \"/kms/disks/departments?pageNo=\" + param.pageNo + \"&linesPerPage=\" + param.linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //检索的文件名称查询\n getSearchFiles: function getSearchFiles(dataJson, _ref64) {\n var onSucess = _ref64.onSucess,\n onError = _ref64.onError;\n axios({\n url: contextPath + \"/kms/disks/folders/files?fileName=\" + dataJson.fileName + \"&orderByfield=\" + dataJson.orderByfield + \"&pageNo=\" + dataJson.pageNo + \"&linesPerPage=\" + dataJson.linesPerPage,\n method: \"get\",\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //查看部门KM的文件\n getDepartmentsFiles: function getDepartmentsFiles(dataJson, _ref65) {\n var onSucess = _ref65.onSucess,\n onError = _ref65.onError;\n axios({\n url: contextPath + \"/kms/disks/folders/files?ownerId=\" + dataJson.ownerId + \"&orderByfield=\" + dataJson.orderByfield + \"&pageNo=\" + dataJson.pageNo + \"&linesPerPage=\" + dataJson.linesPerPage,\n method: \"get\",\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //保存知识地图\n saveKnowledge: function saveKnowledge(dataJson, _ref66) {\n var onSucess = _ref66.onSucess,\n onError = _ref66.onError;\n axios({\n url: contextPath + \"/kms/maps\",\n method: \"put\",\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取专委会管理员\n getCommitteeAdmin: function getCommitteeAdmin(dataJson, _ref67) {\n var onSucess = _ref67.onSucess,\n onError = _ref67.onError;\n axios({\n url: contextPath + \"/kms/users/roles/realmAdmin?&name=\" + dataJson.name + \"&pageNo=\" + dataJson.pageNo + \"&linesPerPage=\" + dataJson.linesPerPage,\n method: \"get\",\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //提交专委会管理员\n submitting: function submitting(dataJson, _ref68) {\n var onSucess = _ref68.onSucess,\n onError = _ref68.onError;\n axios({\n url: contextPath + \"/kms/maps/submitting\",\n method: \"put\",\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //知识地图回退\n rollback: function rollback(params, dataJson, _ref69) {\n var onSucess = _ref69.onSucess,\n onError = _ref69.onError;\n axios({\n url: contextPath + \"/kms/maps/\" + params.mapId + \"/rollback\",\n method: \"put\",\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //部门km\n //网盘当前文件列表\n getDisksFoldersList: function getDisksFoldersList(params, _ref70) {\n var onSucess = _ref70.onSucess,\n onError = _ref70.onError;\n var diskId = params.diskId;\n var folderId = params.folderId ? params.folderId : diskId;\n var pageNo = params.pageNo;\n var linesPerPage = params.linesPerPage;\n var orderByfield = params.orderByfield ? params.orderByfield : \"NAME\";\n var orderMode = params.orderMode ? params.orderMode : \"ASC\";\n var fileName = params.fileName ? params.fileName : \"\";\n axios.get(contextPath + '/kms/disks/' + diskId + '/folders/' + folderId + '/files?fileName=' + fileName + '&orderByfield=' + orderByfield + '&orderMode=' + orderMode + '&pageNo=' + pageNo + '&linesPerPage=' + linesPerPage).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //新建目录(文件夹)\n createFolder: function () {\n var _createFolder = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(params) {\n var body, result;\n return regeneratorRuntime.wrap(function _callee14$(_context14) {\n while (1) {\n switch (_context14.prev = _context14.next) {\n case 0:\n body = {\n \"name\": \"新建文件夹\",\n \"diskId\": params.diskId,\n \"folderId\": params.folderId\n };\n _context14.next = 3;\n return axios({\n url: contextPath + \"/kms/disks/\" + params.diskId + \"/folders\",\n method: \"POST\",\n data: body\n });\n\n case 3:\n result = _context14.sent;\n return _context14.abrupt(\"return\", result);\n\n case 5:\n case \"end\":\n return _context14.stop();\n }\n }\n }, _callee14);\n }));\n\n function createFolder(_x9) {\n return _createFolder.apply(this, arguments);\n }\n\n return createFolder;\n }(),\n //部门网盘浏览量和下载量\n getViewsAndDownloads: function () {\n var _getViewsAndDownloads = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15(diskId) {\n var result;\n return regeneratorRuntime.wrap(function _callee15$(_context15) {\n while (1) {\n switch (_context15.prev = _context15.next) {\n case 0:\n _context15.next = 2;\n return axios.get(contextPath + \"/kms/disks/\" + diskId + \"/files/viewsAndDownloads\");\n\n case 2:\n result = _context15.sent;\n return _context15.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context15.stop();\n }\n }\n }, _callee15);\n }));\n\n function getViewsAndDownloads(_x10) {\n return _getViewsAndDownloads.apply(this, arguments);\n }\n\n return getViewsAndDownloads;\n }(),\n //部门当前网盘的网盘管理员\n getDiskAdmins: function () {\n var _getDiskAdmins = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16(diskId) {\n var result;\n return regeneratorRuntime.wrap(function _callee16$(_context16) {\n while (1) {\n switch (_context16.prev = _context16.next) {\n case 0:\n _context16.next = 2;\n return axios.get(contextPath + \"/kms/disks/\" + diskId + \"/superadmins\");\n\n case 2:\n result = _context16.sent;\n return _context16.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context16.stop();\n }\n }\n }, _callee16);\n }));\n\n function getDiskAdmins(_x11) {\n return _getDiskAdmins.apply(this, arguments);\n }\n\n return getDiskAdmins;\n }(),\n //下载单个文件或目录\n handleSingleFileDownload: function handleSingleFileDownload(apiParams, _ref71) {\n var onSucess = _ref71.onSucess,\n onError = _ref71.onError;\n var downloadAble_url = \"\";\n var options = {\n method: 'GET',\n credentials: 'include',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'text/plain'\n }\n };\n\n if (apiParams.folder) {\n downloadAble_url = getDownloadAble_url(contextPath, \"singleFolder\", apiParams);\n } else {\n downloadAble_url = getDownloadAble_url(contextPath, \"singleFile\", apiParams);\n }\n\n axios({\n url: downloadAble_url,\n method: 'GET'\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n\n /**\n * 文件点击编辑的时候看是否有编辑的权限\n * @param {*} fileId \n */\n getEditAbleFile: function getEditAbleFile(fileId, _ref72) {\n var onSucess = _ref72.onSucess,\n onError = _ref72.onError;\n axios({\n url: contextPath + \"/kms/editAble/files/\" + fileId,\n method: 'GET'\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取授权审批人\n getResourceApprover: function getResourceApprover(resourceId, _ref73) {\n var onSucess = _ref73.onSucess,\n onError = _ref73.onError;\n axios({\n url: contextPath + \"/kms/applications/approvers?resourceId=\" + resourceId,\n method: 'GET'\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //申请权限\n applyAuthority: function () {\n var _applyAuthority = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17(params) {\n var result;\n return regeneratorRuntime.wrap(function _callee17$(_context17) {\n while (1) {\n switch (_context17.prev = _context17.next) {\n case 0:\n _context17.next = 2;\n return axios({\n url: contextPath + \"/kms/applications\",\n method: \"POST\",\n data: params\n });\n\n case 2:\n result = _context17.sent;\n return _context17.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context17.stop();\n }\n }\n }, _callee17);\n }));\n\n function applyAuthority(_x12) {\n return _applyAuthority.apply(this, arguments);\n }\n\n return applyAuthority;\n }(),\n\n /**\n * 批量下载\n */\n handleFileObjDownload: function handleFileObjDownload(params, _ref74) {\n var onSucess = _ref74.onSucess,\n onError = _ref74.onError;\n var downloadAble_url = getDownloadAble_url(contextPath, \"batch\", params);\n axios({\n url: downloadAble_url,\n method: 'GET'\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //删除多个文件\n deleteFileObj: function deleteFileObj(diskId, params, _ref75) {\n var onSucess = _ref75.onSucess,\n onError = _ref75.onError;\n axios({\n url: contextPath + \"/kms/disks/\" + diskId + \"/fileObjs\",\n method: 'DELETE',\n data: params\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //重命名目录\n handleRenameFolderOk: function () {\n var _handleRenameFolderOk = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18(apiParams) {\n var params, result;\n return regeneratorRuntime.wrap(function _callee18$(_context18) {\n while (1) {\n switch (_context18.prev = _context18.next) {\n case 0:\n params = {\n name: apiParams.name\n };\n _context18.next = 3;\n return axios({\n url: contextPath + \"/kms/disks/\" + apiParams.diskId + \"/folders/\" + apiParams.folderId + \"/rename\",\n method: \"PATCH\",\n data: params\n });\n\n case 3:\n result = _context18.sent;\n return _context18.abrupt(\"return\", result);\n\n case 5:\n case \"end\":\n return _context18.stop();\n }\n }\n }, _callee18);\n }));\n\n function handleRenameFolderOk(_x13) {\n return _handleRenameFolderOk.apply(this, arguments);\n }\n\n return handleRenameFolderOk;\n }(),\n //重命名文件\n handleRenameFilesOk: function () {\n var _handleRenameFilesOk = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee19(apiParams) {\n var params, result;\n return regeneratorRuntime.wrap(function _callee19$(_context19) {\n while (1) {\n switch (_context19.prev = _context19.next) {\n case 0:\n params = {\n name: apiParams.name\n };\n _context19.next = 3;\n return axios({\n url: contextPath + \"/kms/disks/\" + apiParams.diskId + \"/files/\" + apiParams.fileId + \"/rename\",\n method: \"PATCH\",\n data: params\n });\n\n case 3:\n result = _context19.sent;\n return _context19.abrupt(\"return\", result);\n\n case 5:\n case \"end\":\n return _context19.stop();\n }\n }\n }, _callee19);\n }));\n\n function handleRenameFilesOk(_x14) {\n return _handleRenameFilesOk.apply(this, arguments);\n }\n\n return handleRenameFilesOk;\n }(),\n //删除单个文件\n deleteFile: function () {\n var _deleteFile = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee20(params) {\n var diskId, folderId, url, fileId, result;\n return regeneratorRuntime.wrap(function _callee20$(_context20) {\n while (1) {\n switch (_context20.prev = _context20.next) {\n case 0:\n diskId = params.diskId;\n folderId = params.folderId;\n url = \"\";\n\n if (params.isfolder) {\n url = contextPath + \"/kms/disks/\" + diskId + \"/folders/\" + folderId;\n } else {\n fileId = params.fileId;\n url = contextPath + \"/kms/disks/\" + diskId + \"/files/\" + fileId;\n }\n\n _context20.next = 6;\n return axios({\n url: url,\n method: \"DELETE\"\n });\n\n case 6:\n result = _context20.sent;\n return _context20.abrupt(\"return\", result);\n\n case 8:\n case \"end\":\n return _context20.stop();\n }\n }\n }, _callee20);\n }));\n\n function deleteFile(_x15) {\n return _deleteFile.apply(this, arguments);\n }\n\n return deleteFile;\n }(),\n //文件夹置顶\n stickFolder: function () {\n var _stickFolder = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee21(diskId, folderId) {\n var result;\n return regeneratorRuntime.wrap(function _callee21$(_context21) {\n while (1) {\n switch (_context21.prev = _context21.next) {\n case 0:\n _context21.next = 2;\n return axios({\n url: contextPath + \"/kms/disks/\" + diskId + \"/folders/\" + folderId + \"/top\",\n method: \"PATCH\"\n });\n\n case 2:\n result = _context21.sent;\n return _context21.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context21.stop();\n }\n }\n }, _callee21);\n }));\n\n function stickFolder(_x16, _x17) {\n return _stickFolder.apply(this, arguments);\n }\n\n return stickFolder;\n }(),\n //文件夹取消置顶\n cancelStickFolder: function () {\n var _cancelStickFolder = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee22(diskId, folderId) {\n var result;\n return regeneratorRuntime.wrap(function _callee22$(_context22) {\n while (1) {\n switch (_context22.prev = _context22.next) {\n case 0:\n _context22.next = 2;\n return axios({\n url: contextPath + \"/kms/disks/\" + diskId + \"/folders/\" + folderId + \"/top\",\n method: \"DELETE\"\n });\n\n case 2:\n result = _context22.sent;\n return _context22.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context22.stop();\n }\n }\n }, _callee22);\n }));\n\n function cancelStickFolder(_x18, _x19) {\n return _cancelStickFolder.apply(this, arguments);\n }\n\n return cancelStickFolder;\n }(),\n\n /**获取目录树\n * @params {String} diskId\n * @params {Array} folderIds移动文件的id(String),或者id集合(array)\n */\n getFolderstree: function () {\n var _getFolderstree = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee23(diskId, selectedFileArray) {\n var folderIds, movefile_url, result;\n return regeneratorRuntime.wrap(function _callee23$(_context23) {\n while (1) {\n switch (_context23.prev = _context23.next) {\n case 0:\n folderIds = \"\";\n selectedFileArray.map(function (e) {\n if (e.isFolder) {\n folderIds += \"&folderIds=\" + e.fileObjectId;\n }\n });\n\n if (folderIds) {\n folderIds = folderIds.substring(1);\n }\n\n movefile_url = contextPath + \"/kms/disks/\" + diskId + \"/foldersTree?\" + folderIds;\n _context23.next = 6;\n return axios.get(movefile_url);\n\n case 6:\n result = _context23.sent;\n return _context23.abrupt(\"return\", result);\n\n case 8:\n case \"end\":\n return _context23.stop();\n }\n }\n }, _callee23);\n }));\n\n function getFolderstree(_x20, _x21) {\n return _getFolderstree.apply(this, arguments);\n }\n\n return getFolderstree;\n }(),\n //获取团队阶段树\n getTeamtreeData: function () {\n var _getTeamtreeData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee24() {\n var result;\n return regeneratorRuntime.wrap(function _callee24$(_context24) {\n while (1) {\n switch (_context24.prev = _context24.next) {\n case 0:\n _context24.next = 2;\n return axios.get(contextPath + \"/kms/teams/stagesTree\");\n\n case 2:\n result = _context24.sent;\n return _context24.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context24.stop();\n }\n }\n }, _callee24);\n }));\n\n function getTeamtreeData() {\n return _getTeamtreeData.apply(this, arguments);\n }\n\n return getTeamtreeData;\n }(),\n //文件内部分享\n handleInsideShareFile: function handleInsideShareFile(apiParams, _ref76) {\n var onSucess = _ref76.onSucess,\n onError = _ref76.onError;\n axios({\n url: contextPath + \"/kms/disks/\" + apiParams.diskId + \"/files/\" + apiParams.fileId + \"/insideshare\",\n method: \"post\",\n data: apiParams.userIds\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //外部分享复制链接\n outSideShareFile: function () {\n var _outSideShareFile = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee25(apiParams) {\n var result;\n return regeneratorRuntime.wrap(function _callee25$(_context25) {\n while (1) {\n switch (_context25.prev = _context25.next) {\n case 0:\n _context25.next = 2;\n return axios.get(contextPath + \"/kms/files/\" + apiParams.fileId + \"/outsideshare\");\n\n case 2:\n result = _context25.sent;\n return _context25.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context25.stop();\n }\n }\n }, _callee25);\n }));\n\n function outSideShareFile(_x22) {\n return _outSideShareFile.apply(this, arguments);\n }\n\n return outSideShareFile;\n }(),\n //移动单个文件/目录\n handleMoveFile: function handleMoveFile(apiParams, _ref77) {\n var onSucess = _ref77.onSucess,\n onError = _ref77.onError;\n var movefile_url = \"\";\n\n if (apiParams.isfolder) {\n //移动单个目录api\n movefile_url = contextPath + \"/kms/disks/\" + apiParams.diskId + \"/folders/\" + apiParams.folderId + \"/moveto/folderId/\" + apiParams.destfolderId;\n } else {\n //移动单个文件api\n movefile_url = contextPath + \"/kms/disks/\" + apiParams.diskId + \"/files/\" + apiParams.fileId + \"/moveto/folderId/\" + apiParams.destfolderId;\n }\n\n axios({\n url: movefile_url,\n method: 'PATCH'\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n }); // let result = await axios({\n // url: movefile_url,\n // method: \"PATCH\",\n // });\n // return result;\n },\n //批量移动文件、目录\n handleMoveFileObj: function handleMoveFileObj(apiParams, _ref78) {\n var onSucess = _ref78.onSucess,\n onError = _ref78.onError;\n var movefile_url = contextPath + \"/kms/disks/\" + apiParams.diskId + \"/fileObjs/moveto/folders/\" + apiParams.destfolderId;\n axios({\n url: movefile_url,\n method: 'PATCH',\n data: apiParams.fileObjs\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //文件收藏(指定文件夹)\n handleCollectFile: function handleCollectFile(params, _ref79) {\n var onSucess = _ref79.onSucess,\n onError = _ref79.onError;\n var movefile_url = contextPath + \"/kms/disks/\" + params.diskId + \"/files/\" + params.fileId + \"/collect/folder/\" + params.folderId;\n axios({\n url: movefile_url,\n method: 'GET'\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //文件收藏(指定文件夹)\n // handleCollectFile: async(params) => {\n // let result = await axios.get(contextPath + \"/kms/disks/\"+params.diskId+\"/files/\"+params.fileId+\"/collect/folder/\"+params.folderId);\n // return result;\n // },\n //面包屑\n getBreadcrumbData: function () {\n var _getBreadcrumbData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee26(id) {\n var result;\n return regeneratorRuntime.wrap(function _callee26$(_context26) {\n while (1) {\n switch (_context26.prev = _context26.next) {\n case 0:\n _context26.next = 2;\n return axios.get(contextPath + \"/kms/disks/folders/\" + id + \"/path/list\");\n\n case 2:\n result = _context26.sent;\n return _context26.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context26.stop();\n }\n }\n }, _callee26);\n }));\n\n function getBreadcrumbData(_x23) {\n return _getBreadcrumbData.apply(this, arguments);\n }\n\n return getBreadcrumbData;\n }(),\n //获取标签\n getCategory: function () {\n var _getCategory = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee27() {\n var result;\n return regeneratorRuntime.wrap(function _callee27$(_context27) {\n while (1) {\n switch (_context27.prev = _context27.next) {\n case 0:\n _context27.next = 2;\n return axios.get(contextPath + \"/kms/categorys\");\n\n case 2:\n result = _context27.sent;\n return _context27.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context27.stop();\n }\n }\n }, _callee27);\n }));\n\n function getCategory() {\n return _getCategory.apply(this, arguments);\n }\n\n return getCategory;\n }(),\n //获取文件的标签\n getFileCategorys: function () {\n var _getFileCategorys = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee28(fileId) {\n var result;\n return regeneratorRuntime.wrap(function _callee28$(_context28) {\n while (1) {\n switch (_context28.prev = _context28.next) {\n case 0:\n _context28.next = 2;\n return axios.get(contextPath + \"/kms/files/\" + fileId + \"/categorys\");\n\n case 2:\n result = _context28.sent;\n return _context28.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context28.stop();\n }\n }\n }, _callee28);\n }));\n\n function getFileCategorys(_x24) {\n return _getFileCategorys.apply(this, arguments);\n }\n\n return getFileCategorys;\n }(),\n //贴标签\n pasteCategory: function () {\n var _pasteCategory = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee29(fileId, params) {\n var url, result;\n return regeneratorRuntime.wrap(function _callee29$(_context29) {\n while (1) {\n switch (_context29.prev = _context29.next) {\n case 0:\n url = contextPath + \"/kms/files/categorys?fileIds=\" + fileId + \"&categorys=\" + params;\n _context29.next = 3;\n return axios({\n url: url,\n method: \"PUT\"\n });\n\n case 3:\n result = _context29.sent;\n return _context29.abrupt(\"return\", result);\n\n case 5:\n case \"end\":\n return _context29.stop();\n }\n }\n }, _callee29);\n }));\n\n function pasteCategory(_x25, _x26) {\n return _pasteCategory.apply(this, arguments);\n }\n\n return pasteCategory;\n }(),\n\n /**\n * 批量贴标签\n */\n pasteConfirm: function () {\n var _pasteConfirm = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee30(data) {\n var url, result;\n return regeneratorRuntime.wrap(function _callee30$(_context30) {\n while (1) {\n switch (_context30.prev = _context30.next) {\n case 0:\n url = contextPath + \"/kms/files/categorys/paste\";\n _context30.next = 3;\n return axios({\n url: url,\n method: \"PUT\",\n data: data\n });\n\n case 3:\n result = _context30.sent;\n return _context30.abrupt(\"return\", result);\n\n case 5:\n case \"end\":\n return _context30.stop();\n }\n }\n }, _callee30);\n }));\n\n function pasteConfirm(_x27) {\n return _pasteConfirm.apply(this, arguments);\n }\n\n return pasteConfirm;\n }(),\n\n /**\n * 单个贴标签\n */\n onePasteConfirm: function () {\n var _onePasteConfirm = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee31(data) {\n var url, result;\n return regeneratorRuntime.wrap(function _callee31$(_context31) {\n while (1) {\n switch (_context31.prev = _context31.next) {\n case 0:\n url = contextPath + \"/kms/file/categorys/paste\";\n _context31.next = 3;\n return axios({\n url: url,\n method: \"PUT\",\n data: data\n });\n\n case 3:\n result = _context31.sent;\n return _context31.abrupt(\"return\", result);\n\n case 5:\n case \"end\":\n return _context31.stop();\n }\n }\n }, _callee31);\n }));\n\n function onePasteConfirm(_x28) {\n return _onePasteConfirm.apply(this, arguments);\n }\n\n return onePasteConfirm;\n }(),\n\n /**\n * 删除单个标签\n */\n deleteCategory: function () {\n var _deleteCategory = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee32(fileId, categoryName) {\n var url, result;\n return regeneratorRuntime.wrap(function _callee32$(_context32) {\n while (1) {\n switch (_context32.prev = _context32.next) {\n case 0:\n url = contextPath + \"/kms/files/deleteFileCategory?fileId=\" + fileId + \"&categoryName=\" + categoryName;\n _context32.next = 3;\n return axios({\n url: url,\n method: \"DELETE\"\n });\n\n case 3:\n result = _context32.sent;\n return _context32.abrupt(\"return\", result);\n\n case 5:\n case \"end\":\n return _context32.stop();\n }\n }\n }, _callee32);\n }));\n\n function deleteCategory(_x29, _x30) {\n return _deleteCategory.apply(this, arguments);\n }\n\n return deleteCategory;\n }(),\n //获取授权列表\n getAuthorizationData: function () {\n var _getAuthorizationData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee33(resourceId) {\n var result;\n return regeneratorRuntime.wrap(function _callee33$(_context33) {\n while (1) {\n switch (_context33.prev = _context33.next) {\n case 0:\n _context33.next = 2;\n return axios.get(contextPath + \"/kms/resources/\" + resourceId + \"/authorizations?pageNo=1&linesPerPage=9999\");\n\n case 2:\n result = _context33.sent;\n return _context33.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context33.stop();\n }\n }\n }, _callee33);\n }));\n\n function getAuthorizationData(_x31) {\n return _getAuthorizationData.apply(this, arguments);\n }\n\n return getAuthorizationData;\n }(),\n //删除授权\n deleteAuthorizations: function () {\n var _deleteAuthorizations = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee34(authorizationIdArray) {\n var result;\n return regeneratorRuntime.wrap(function _callee34$(_context34) {\n while (1) {\n switch (_context34.prev = _context34.next) {\n case 0:\n _context34.next = 2;\n return axios({\n url: contextPath + \"/kms/authorizations\",\n method: \"DELETE\",\n data: authorizationIdArray\n });\n\n case 2:\n result = _context34.sent;\n return _context34.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context34.stop();\n }\n }\n }, _callee34);\n }));\n\n function deleteAuthorizations(_x32) {\n return _deleteAuthorizations.apply(this, arguments);\n }\n\n return deleteAuthorizations;\n }(),\n //创建授权\n createAuthorization: function () {\n var _createAuthorization = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee35(params) {\n var result;\n return regeneratorRuntime.wrap(function _callee35$(_context35) {\n while (1) {\n switch (_context35.prev = _context35.next) {\n case 0:\n _context35.next = 2;\n return axios({\n url: contextPath + \"/kms/resources/\" + params.resourceId + \"/authorizations\",\n method: \"POST\",\n data: params\n });\n\n case 2:\n result = _context35.sent;\n return _context35.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context35.stop();\n }\n }\n }, _callee35);\n }));\n\n function createAuthorization(_x33) {\n return _createAuthorization.apply(this, arguments);\n }\n\n return createAuthorization;\n }(),\n //编辑授权\n editAuthorization: function () {\n var _editAuthorization = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee36(params) {\n var result;\n return regeneratorRuntime.wrap(function _callee36$(_context36) {\n while (1) {\n switch (_context36.prev = _context36.next) {\n case 0:\n _context36.next = 2;\n return axios({\n url: contextPath + \"/kms/resources/\" + params.resourceId + \"/authorizations/\" + params.id,\n method: \"PUT\",\n data: params\n });\n\n case 2:\n result = _context36.sent;\n return _context36.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context36.stop();\n }\n }\n }, _callee36);\n }));\n\n function editAuthorization(_x34) {\n return _editAuthorization.apply(this, arguments);\n }\n\n return editAuthorization;\n }(),\n //团队km\n //获取团队km列表数据\n getTeamList: function getTeamList(params, _ref80) {\n var onSucess = _ref80.onSucess,\n onError = _ref80.onError;\n var url = contextPath + \"/kms/teams/?isMyTeams=\" + params.isMyTeams + \"&serialNumber=\" + params.serialNumber + \"&creator=\" + params.creator + \"&departmentId=\" + params.departmentId + \"&teamName=\" + params.teamName + \"&beginTime=\" + params.beginTime + \"&endTime=\" + params.endTime + \"&linesPerPage=\" + params.linesPerPage + \"&pageNo=\" + params.pageNo;\n axios.get(url).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //新建团队时获取编号\n getSerialNumber: function getSerialNumber(_ref81) {\n var onSucess = _ref81.onSucess,\n onError = _ref81.onError;\n axios.get(contextPath + '/kms/teams/serialNumber').then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //创建团队\n createTeam: function createTeam(dataJson, _ref82) {\n var onSucess = _ref82.onSucess,\n onError = _ref82.onError;\n axios({\n url: contextPath + \"/kms/teams\",\n method: \"POST\",\n data: dataJson\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //编辑团队\n editTeamOk: function editTeamOk(teamId, params, _ref83) {\n var onSucess = _ref83.onSucess,\n onError = _ref83.onError;\n\n var editMembers = _toConsumableArray(params.members);\n\n editMembers.map(function (e, key) {\n editMembers[key].teamId = teamId;\n });\n\n var bodyParams = _objectSpread(_objectSpread({\n \"teamId\": teamId\n }, params), {}, {\n members: editMembers\n });\n\n axios({\n url: contextPath + \"/kms/teams/\" + teamId,\n method: \"PUT\",\n data: bodyParams\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //删除团队\n deleteTeam: function deleteTeam(params, _ref84) {\n var onSucess = _ref84.onSucess,\n onError = _ref84.onError;\n axios({\n url: contextPath + \"/kms/teams\",\n method: 'DELETE',\n data: params\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取指定团队的详情\n getSpecifiedTeam: function () {\n var _getSpecifiedTeam = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee37(teamId) {\n var result;\n return regeneratorRuntime.wrap(function _callee37$(_context37) {\n while (1) {\n switch (_context37.prev = _context37.next) {\n case 0:\n _context37.next = 2;\n return axios.get(contextPath + '/kms/teams/' + teamId);\n\n case 2:\n result = _context37.sent;\n return _context37.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context37.stop();\n }\n }\n }, _callee37);\n }));\n\n function getSpecifiedTeam(_x35) {\n return _getSpecifiedTeam.apply(this, arguments);\n }\n\n return getSpecifiedTeam;\n }(),\n //根据用户id获取该用户的详细\n getUserDetail: function () {\n var _getUserDetail = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee38(id) {\n var result;\n return regeneratorRuntime.wrap(function _callee38$(_context38) {\n while (1) {\n switch (_context38.prev = _context38.next) {\n case 0:\n _context38.next = 2;\n return axios.get(contextPath + '/kms/users/' + id);\n\n case 2:\n result = _context38.sent;\n return _context38.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context38.stop();\n }\n }\n }, _callee38);\n }));\n\n function getUserDetail(_x36) {\n return _getUserDetail.apply(this, arguments);\n }\n\n return getUserDetail;\n }(),\n //获取团队下的所有成员\n getCurTeamMembers: function () {\n var _getCurTeamMembers = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee39(teamId) {\n var result;\n return regeneratorRuntime.wrap(function _callee39$(_context39) {\n while (1) {\n switch (_context39.prev = _context39.next) {\n case 0:\n _context39.next = 2;\n return axios.get(contextPath + '/kms/teams/' + teamId + '/members');\n\n case 2:\n result = _context39.sent;\n return _context39.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context39.stop();\n }\n }\n }, _callee39);\n }));\n\n function getCurTeamMembers(_x37) {\n return _getCurTeamMembers.apply(this, arguments);\n }\n\n return getCurTeamMembers;\n }(),\n //获取团队下的阶段集合\n getStageList: function () {\n var _getStageList = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee40(teamId) {\n var result;\n return regeneratorRuntime.wrap(function _callee40$(_context40) {\n while (1) {\n switch (_context40.prev = _context40.next) {\n case 0:\n _context40.next = 2;\n return axios.get(contextPath + '/kms/teams/' + teamId + '/stages');\n\n case 2:\n result = _context40.sent;\n return _context40.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context40.stop();\n }\n }\n }, _callee40);\n }));\n\n function getStageList(_x38) {\n return _getStageList.apply(this, arguments);\n }\n\n return getStageList;\n }(),\n //获取阶段下的文件集合\n getStageFiles: function () {\n var _getStageFiles = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee41(params) {\n var orderByfield, orderMode, disksFolders_url, result;\n return regeneratorRuntime.wrap(function _callee41$(_context41) {\n while (1) {\n switch (_context41.prev = _context41.next) {\n case 0:\n orderByfield = params.orderByfield ? params.orderByfield : \"NAME\";\n orderMode = params.orderMode ? params.orderMode : \"ASC\";\n disksFolders_url = contextPath + \"/kms/disks/\" + params.diskId + \"/folders/\" + params.folderId + \"/files?orderByfield=\" + orderByfield + \"&orderMode=\" + orderMode + \"&pageNo=\" + params.pageNo + \"&linesPerPage=\" + params.linesPerPage;\n _context41.next = 5;\n return axios.get(disksFolders_url);\n\n case 5:\n result = _context41.sent;\n return _context41.abrupt(\"return\", result);\n\n case 7:\n case \"end\":\n return _context41.stop();\n }\n }\n }, _callee41);\n }));\n\n function getStageFiles(_x39) {\n return _getStageFiles.apply(this, arguments);\n }\n\n return getStageFiles;\n }(),\n //申请对团队、专委会、知识地图进行订阅\n applySubscription: function () {\n var _applySubscription = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee42(params) {\n var result;\n return regeneratorRuntime.wrap(function _callee42$(_context42) {\n while (1) {\n switch (_context42.prev = _context42.next) {\n case 0:\n _context42.next = 2;\n return axios({\n url: contextPath + '/kms/subscriptions',\n method: \"POST\",\n data: params\n });\n\n case 2:\n result = _context42.sent;\n return _context42.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context42.stop();\n }\n }\n }, _callee42);\n }));\n\n function applySubscription(_x40) {\n return _applySubscription.apply(this, arguments);\n }\n\n return applySubscription;\n }(),\n //申请对团队、专委会、知识地图进行订阅\n cancelSubscription: function () {\n var _cancelSubscription = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee43(params) {\n var result;\n return regeneratorRuntime.wrap(function _callee43$(_context43) {\n while (1) {\n switch (_context43.prev = _context43.next) {\n case 0:\n _context43.next = 2;\n return axios({\n url: contextPath + '/kms/subscriptions',\n method: \"DELETE\",\n data: params\n });\n\n case 2:\n result = _context43.sent;\n return _context43.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context43.stop();\n }\n }\n }, _callee43);\n }));\n\n function cancelSubscription(_x41) {\n return _cancelSubscription.apply(this, arguments);\n }\n\n return cancelSubscription;\n }(),\n //创建阶段\n createStage: function () {\n var _createStage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee44(params) {\n var result;\n return regeneratorRuntime.wrap(function _callee44$(_context44) {\n while (1) {\n switch (_context44.prev = _context44.next) {\n case 0:\n _context44.next = 2;\n return axios({\n url: contextPath + '/kms/stages',\n method: \"POST\",\n data: params\n });\n\n case 2:\n result = _context44.sent;\n return _context44.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context44.stop();\n }\n }\n }, _callee44);\n }));\n\n function createStage(_x42) {\n return _createStage.apply(this, arguments);\n }\n\n return createStage;\n }(),\n //编辑阶段\n editStage: function () {\n var _editStage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee45(params) {\n var result;\n return regeneratorRuntime.wrap(function _callee45$(_context45) {\n while (1) {\n switch (_context45.prev = _context45.next) {\n case 0:\n _context45.next = 2;\n return axios({\n url: contextPath + '/kms/stages',\n method: \"PUT\",\n data: params\n });\n\n case 2:\n result = _context45.sent;\n return _context45.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context45.stop();\n }\n }\n }, _callee45);\n }));\n\n function editStage(_x43) {\n return _editStage.apply(this, arguments);\n }\n\n return editStage;\n }(),\n //删除阶段\n deleteStages: function () {\n var _deleteStages = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee46(params) {\n var result;\n return regeneratorRuntime.wrap(function _callee46$(_context46) {\n while (1) {\n switch (_context46.prev = _context46.next) {\n case 0:\n _context46.next = 2;\n return axios({\n url: contextPath + '/kms/stages',\n method: \"DELETE\",\n data: params\n });\n\n case 2:\n result = _context46.sent;\n return _context46.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context46.stop();\n }\n }\n }, _callee46);\n }));\n\n function deleteStages(_x44) {\n return _deleteStages.apply(this, arguments);\n }\n\n return deleteStages;\n }(),\n //获取评论\n getStageComments: function () {\n var _getStageComments = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee47(stageId) {\n var result;\n return regeneratorRuntime.wrap(function _callee47$(_context47) {\n while (1) {\n switch (_context47.prev = _context47.next) {\n case 0:\n _context47.next = 2;\n return axios.get(contextPath + '/kms/stages/' + stageId);\n\n case 2:\n result = _context47.sent;\n return _context47.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context47.stop();\n }\n }\n }, _callee47);\n }));\n\n function getStageComments(_x45) {\n return _getStageComments.apply(this, arguments);\n }\n\n return getStageComments;\n }(),\n //创建评论\n createComment: function () {\n var _createComment = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee48(stageId, params) {\n var result;\n return regeneratorRuntime.wrap(function _callee48$(_context48) {\n while (1) {\n switch (_context48.prev = _context48.next) {\n case 0:\n _context48.next = 2;\n return axios({\n url: contextPath + '/kms/stages/' + stageId + '/comments',\n method: \"POST\",\n data: params\n });\n\n case 2:\n result = _context48.sent;\n return _context48.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context48.stop();\n }\n }\n }, _callee48);\n }));\n\n function createComment(_x46, _x47) {\n return _createComment.apply(this, arguments);\n }\n\n return createComment;\n }(),\n //删除评论\n deleteComment: function () {\n var _deleteComment = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee49(params) {\n var result;\n return regeneratorRuntime.wrap(function _callee49$(_context49) {\n while (1) {\n switch (_context49.prev = _context49.next) {\n case 0:\n _context49.next = 2;\n return axios({\n url: contextPath + '/kms/stages/' + params.stageId + '/comments/' + params.commentId,\n method: \"DELETE\"\n });\n\n case 2:\n result = _context49.sent;\n return _context49.abrupt(\"return\", result);\n\n case 4:\n case \"end\":\n return _context49.stop();\n }\n }\n }, _callee49);\n }));\n\n function deleteComment(_x48) {\n return _deleteComment.apply(this, arguments);\n }\n\n return deleteComment;\n }(),\n //删除团队某个阶段下的单个文件\n stagesdeleteFile: function stagesdeleteFile(params, _ref85) {\n var onSucess = _ref85.onSucess,\n onError = _ref85.onError;\n axios({\n url: contextPath + \"/kms/disks/\" + params.diskId + \"/files/\" + params.fileId,\n method: 'DELETE',\n data: params\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n }\n};",null]}