{"remainingRequest":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/eslint-loader/index.js??ref--13-0!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/service/CommontoolsAPI.js","dependencies":[{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/service/CommontoolsAPI.js","mtime":1701674859505},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js","mtime":1701674874584},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/thread-loader/dist/cjs.js","mtime":1701674873947},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js","mtime":1701674874357},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/eslint-loader/index.js","mtime":1701674874119}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/es6.function.name\";\nimport instance from \"./ajax\";\n/**\n * 获取角色列表\n */\n\nexport var getRoles = function getRoles(params) {\n return instance({\n url: contextPath + \"/designtime/applications/\" + params.appId + \"/roles?name=\" + params.name + \"&pageNo=\" + params.pageNo + \"&linesPerPage=\" + params.linesPerPage,\n method: 'get'\n });\n};\n/**\n * 删除角色\n */\n\nexport var deleteRoles = function deleteRoles(params) {\n return instance({\n url: contextPath + \"/designtime/applications/roles\",\n method: \"delete\",\n data: params\n });\n};\n/**\n * 创建角色\n */\n\nexport var createRoles = function createRoles(params) {\n return instance({\n url: contextPath + \"/designtime/applications/\" + params.appId + \"/roles\",\n method: \"post\",\n data: params\n });\n};\n/**\n * 更新角色\n */\n\nexport var updateRoles = function updateRoles(params) {\n return instance({\n url: contextPath + \"/designtime/applications/roles/\" + params.id,\n method: \"put\",\n data: params\n });\n};\n/**\n * **获取菜单列表(根据上级)\n * get\n * /designtime/applications/{applicationId}/menus?isMobile={isMobile}&parentId={parentId}\n */\n\nexport var getMenuList = function getMenuList(param) {\n return instance({\n url: contextPath + \"/designtime/applications/\".concat(param.applicationId, \"/menus?isMobile=\").concat(param.isMobile, \"&parentId=\").concat(param.parentId),\n method: 'get'\n });\n};\n/**\n * *批量更新授权配置**\n * post\n * /designtime/applications/{appcationId}/permissions\n */\n\nexport var updatePermissions = function updatePermissions(param) {\n return instance({\n url: contextPath + \"/designtime/applications/\".concat(param.applicationId, \"/permissions\"),\n method: 'post',\n data: param.data\n });\n};\n/**\n * *查询所属模块的表单或视图配置资源列表****\n * get\n * /designtime/applications/{applicationId}/modules/{moduleId}/permissions?roleId={roleId}\n */\n\nexport var getModuleResource = function getModuleResource(param) {\n return instance({\n url: contextPath + \"/designtime/applications/\".concat(param.applicationId, \"/modules/\").concat(param.moduleId, \"/permissions?roleId=\").concat(param.roleId),\n method: 'get'\n });\n};\n/**\n * **查询pc菜单配置资源列表(根据上级)**\n */\n\nexport var getPcResource = function getPcResource(param) {\n return instance({\n url: contextPath + \"/designtime/applications/\".concat(param.applicationId, \"/permissions/pc?parentId=\").concat(param.parentId, \"&roleId=\").concat(param.roleId),\n method: 'get'\n });\n};\n/**\n * 查询mobile菜单配置资源列表(根据上级)\n */\n\nexport var getMobileResource = function getMobileResource(param) {\n return instance({\n url: contextPath + \"/designtime/applications/\".concat(param.applicationId, \"/permissions/mobile?parentId=\").concat(param.parentId, \"&roleId=\").concat(param.roleId),\n method: 'get'\n });\n};\n/**\n * **新建菜单\n * POST\n * /designtime/applications/{applicationId}/menus\n */\n\nexport var newMenu = function newMenu(applicationId, isMobile, content) {\n return instance({\n url: contextPath + \"/designtime/applications/\".concat(applicationId, \"/menus?isMobile=\").concat(isMobile),\n method: 'post',\n data: content\n });\n};\n/**\n * **删除菜单\n * DELETE\n * /designtime/applications/menus\n */\n\nexport var delMenu = function delMenu(data) {\n return instance({\n url: contextPath + \"/designtime/applications/menus\",\n method: 'delete',\n data: data\n });\n};\n/**\n * **获取所有菜单\n * get\n * /designtime/applications/{applicationId}/menu/getAllMenus?currentMenuId={currentMenuId}&type={type}&showType={showType}\n */\n\nexport var getAllMenu = function getAllMenu(_ref, _ref2) {\n var applicationId = _ref.applicationId,\n _ref$currentMenuId = _ref.currentMenuId,\n currentMenuId = _ref$currentMenuId === void 0 ? \"\" : _ref$currentMenuId,\n _ref$type = _ref.type,\n type = _ref$type === void 0 ? \"\" : _ref$type,\n showType = _ref.showType;\n var onSucess = _ref2.onSucess,\n onError = _ref2.onError;\n instance.get(contextPath + \"/designtime/applications/\".concat(applicationId, \"/menu/getAllMenus?currentMenuId=\").concat(currentMenuId, \"&type=\").concat(type, \"&showType=\").concat(showType)).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n};\n/**\n * 获取表单列表\n */\n\nexport var getFormList = function getFormList(_ref3, _ref4) {\n var _ref3$moduleId = _ref3.moduleId,\n moduleId = _ref3$moduleId === void 0 ? \"\" : _ref3$moduleId,\n _ref3$searchword = _ref3.searchword,\n searchword = _ref3$searchword === void 0 ? \"\" : _ref3$searchword,\n _ref3$type = _ref3.type,\n type = _ref3$type === void 0 ? 1 : _ref3$type,\n _ref3$pageNo = _ref3.pageNo,\n pageNo = _ref3$pageNo === void 0 ? 1 : _ref3$pageNo,\n _ref3$linesPerPage = _ref3.linesPerPage,\n linesPerPage = _ref3$linesPerPage === void 0 ? 10 : _ref3$linesPerPage;\n var onSucess = _ref4.onSucess,\n onError = _ref4.onError;\n instance.get(contextPath + \"/designtime/applications/modules/\" + moduleId + \"/forms?searchword=\" + searchword + \"&type=\" + type + \"&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 * **获取菜单详情\n * get\n * /designtime/applications/menus/{menuId}\n */\n\nexport var getMenuDetail = function getMenuDetail(menuId, _ref5) {\n var onSucess = _ref5.onSucess,\n onError = _ref5.onError;\n instance.get(contextPath + \"/designtime/applications/menus/\".concat(menuId)).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n};\n/**\n * **更新菜单\n * PUT\n * /designtime/applications/{applicationId}/menus/{menuId}\n */\n\nexport var putMenuDetail = function putMenuDetail(_ref6) {\n var applicationId = _ref6.applicationId,\n menuId = _ref6.menuId,\n data = _ref6.data;\n return instance({\n url: contextPath + \"/designtime/applications/\".concat(applicationId, \"/menus/\").concat(menuId),\n method: 'put',\n data: data\n });\n};\n/**\n * **复制菜单\n * POST\n * /designtime/applications/{applicationId}/menus/copy\n */\n\nexport var copyMenu = function copyMenu(_ref7) {\n var _ref7$applicationId = _ref7.applicationId,\n applicationId = _ref7$applicationId === void 0 ? \"\" : _ref7$applicationId,\n destid = _ref7.destid,\n isMobile = _ref7.isMobile,\n data = _ref7.data;\n return instance({\n url: contextPath + \"/designtime/applications/\".concat(applicationId, \"/menus/copy?destid=\").concat(destid, \"&isMobile=\").concat(isMobile),\n method: 'post',\n data: data\n });\n};\n/**\n * **获取图标集合\n * get\n * /designtime/applications/icons\n */\n\nexport var getAllIcon = function getAllIcon(path, _ref8) {\n var onSucess = _ref8.onSucess,\n onError = _ref8.onError;\n instance.get(contextPath + \"/designtime/applications/icons?path=\".concat(path)).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n};\n/**\n * **删除自定义图标\n * get\n * /designtime/applications/icon\n */\n\nexport var deleteIcon = function deleteIcon(_ref9, _ref10) {\n var data = _ref9.data;\n var onSucess = _ref10.onSucess,\n onError = _ref10.onError;\n instance.delete(contextPath + \"/designtime/applications/icon\", {\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 * get\n * /designtime/applications/icons\n */\n\nexport var getLogoUrl = function getLogoUrl(url) {\n return \"\".concat(contextPath.replace(/\\/api/, \"\")) + url;\n};\n/**\n * **返回图片文件夹路径\n * get\n * /designtime/applications/icons\n */\n\nexport var getLogoPrefixUrl = function getLogoPrefixUrl(url) {\n return \"\".concat(contextPath.replace(/\\/api/, \"\")) + '/uploads/lib/icon' + url;\n};\n/**\n * **获取widget列表\n */\n\nexport var getWidgets = function getWidgets(params) {\n return instance({\n url: contextPath + \"/designtime/applications/\" + params.appId + \"/widgets?name=\" + params.name + \"&pageNo=\" + params.pageNo + \"&linesPerPage=\" + params.linesPerPage,\n method: 'get'\n });\n};\n/**\n * 删除widget\n */\n\nexport var deleteWidgets = function deleteWidgets(multipleSelectionId) {\n return instance({\n url: contextPath + \"/designtime/applications/widgets\",\n method: \"delete\",\n data: multipleSelectionId\n });\n};\n/**\n * 新建保存widget\n */\n\nexport var saveWidgets = function saveWidgets(applicationId, data) {\n return instance({\n url: contextPath + \"/designtime/applications/\" + applicationId + \"/widgets\",\n method: \"post\",\n data: data\n });\n};\n/**\n * 更新保存widget\n */\n\nexport var updateWidgets = function updateWidgets(data) {\n return instance({\n url: contextPath + \"/designtime/applications/widgets\",\n method: \"put\",\n data: data\n });\n};\n/**\n * 获取widget详情\n */\n\nexport var getWidgetsData = function getWidgetsData(widgetId) {\n return instance({\n url: contextPath + \"/designtime/applications/widgets/\" + widgetId,\n method: \"get\"\n });\n};\n/**\n * **获取任务列表\n */\n\nexport var getTasks = function getTasks(params) {\n return instance({\n url: contextPath + \"/designtime/applications/\" + params.appId + \"/tasks?searchword=\" + params.name + \"&pageNo=\" + params.pageNo + \"&linesPerPage=\" + params.linesPerPage,\n method: 'get'\n });\n};\n/**\n * 删除任务\n */\n\nexport var deleteTasks = function deleteTasks(multipleSelectionId, params) {\n return instance({\n url: contextPath + \"/designtime/applications/\" + params.appId + \"/tasks\",\n method: \"delete\",\n data: multipleSelectionId\n });\n};\n/**\n * 创建任务\n */\n\nexport var createTasks = function createTasks(params) {\n return instance({\n url: contextPath + \"/designtime/applications/\" + params.appId + \"/tasks?rDate=\" + params.rDate + \"&rTime=\" + params.rTime,\n method: \"post\",\n data: params\n });\n};\n/**\n * 更新任务\n */\n\nexport var updateTasks = function updateTasks(params) {\n return instance({\n url: contextPath + \"/designtime/applications/tasks\",\n method: \"put\",\n data: params\n });\n};\n/**\n * 开始任务\n */\n\nexport var startTask = function startTask(params) {\n return instance({\n url: contextPath + \"/designtime/applications/task/start?rDate=\" + params.rDate + \"&rTime=\" + params.rTime + \"&id=\" + params.id,\n method: \"put\"\n });\n};\n/**\n * 停止任务\n */\n\nexport var stopTask = function stopTask(params) {\n return instance({\n url: contextPath + \"/designtime/applications/task/stop?id=\" + params.id,\n method: \"put\"\n });\n};\n/**\n * **获取状态标签列表\n */\n\nexport var getStateLabels = function getStateLabels(params) {\n return instance({\n url: contextPath + \"/designtime/applications/\" + params.appId + \"/statelabels?searchword=\" + params.name + \"&pageNo=\" + params.pageNo + \"&linesPerPage=\" + params.linesPerPage,\n method: 'get'\n });\n};\n/**\n * **获取状态标签详情\n */\n\nexport var getStateLabelDetail = function getStateLabelDetail(stateLabelId) {\n return instance({\n url: contextPath + \"/designtime/applications/statelabels/\".concat(stateLabelId),\n method: 'get'\n });\n};\n/**\n * 创建状态标签\n */\n\nexport var createStatuslabel = function createStatuslabel(params) {\n return instance({\n url: contextPath + \"/designtime/applications/\" + params.appId + \"/statelabels\",\n method: \"post\",\n data: params\n });\n};\n/**\n * 更新状态标签\n */\n\nexport var updateStatuslabel = function updateStatuslabel(params) {\n return instance({\n url: contextPath + \"/designtime/applications/statelabels\",\n method: \"put\",\n data: params\n });\n};\n/**\n * 删除状态标签\n */\n\nexport var deleteStatuslabel = function deleteStatuslabel(params) {\n return instance({\n url: contextPath + \"/designtime/applications/statelabels\",\n method: \"delete\",\n data: params\n });\n};\n/**\n * 获取widget作用视图\n */\n\nexport var getViewsModuleList = function getViewsModuleList(moduleId, params, _ref11) {\n var onSucess = _ref11.onSucess,\n onError = _ref11.onError;\n instance.get(contextPath + \"/designtime/applications/modules/\" + moduleId + \"/views?searchword=\" + params.name + \"&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};",null]}