{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js??ref--13-0!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/api.js","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/api.js","mtime":1749724987818},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/babel.config.js","mtime":1725957645200},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _defineProperty from \"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty.js\";\nvar _organizationsIDApi$j;\nimport axios from \"axios\";\nimport Constant from \"@/Constant.js\";\nimport store from \"./store.js\";\nimport ElementUI from \"element-ui\";\nimport \"element-ui/lib/theme-chalk/index.css\";\n// import config from \"../public/js/obpm.config.js\"\n\n// const contextPath = Constant.contextPath;\nvar contextPath = obpmConfig.contextPath; //config.contextPath;\nvar accessToken = Constant.accessToken;\nvar kmsPath = Constant.kmsPath;\nvar messagePath = obpmConfig.messagePath;\nvar statiContextPath = obpmConfig.statiContextPath;\nvar signonContextPath = obpmConfig.signonContextPath;\nvar obpmFilePath = obpmConfig.obpmFilePath;\nvar contextPathV3 = obpmConfig.contextPathV3;\nvar instance = axios.create({});\n\n//测试环境Authorization的token与accessToken\nvar tokenTest = localStorage.getItem(\"token\") || \"\";\nvar accessTokenTest = localStorage.getItem(\"accessToken\") || \"\";\n//http response 拦截器\ninstance.interceptors.request.use(function (config) {\n if (process.env.NODE_ENV == \"development\") {\n config.headers[\"Authorization\"] = \"Bearer \" + tokenTest;\n config.headers[\"accessToken\"] = accessTokenTest;\n config.headers[\"businessToken\"] = localStorage.getItem(\"businessToken\") || '';\n var domainId = localStorage.getItem(\"domainId\");\n localStorage.setItem(\"domainId\", domainId); //测试组织id\n localStorage.removeItem(\"HomeApplist_board\"); //测试环境清除所有应用缓存\n } else {\n config.headers[\"Authorization\"] = \"Bearer \" + localStorage.getItem(\"token\");\n config.headers[\"accessToken\"] = localStorage.getItem(\"accessToken\") || '';\n config.headers[\"businessToken\"] = localStorage.getItem(\"businessToken\") || '';\n }\n return config;\n}, function (err) {\n return Promise.reject(err);\n});\ninstance.interceptors.response.use(function (response) {\n store.commit(\"instanceDialog\", false);\n if (response.data.errcode == 500) {\n // ElementUI.Notification.error({\n // title: '错误',\n // message: '系统错误,请联系管理员!'\n // });\n }\n return response;\n}, function (error) {\n if (error.response.status == 401) {\n if (store.state.myProfile) {\n store.commit(\"instanceDialog\", true);\n } else {\n var url;\n if (statiContextPath) {\n url = window.location.origin + statiContextPath + signonContextPath + \"/index.html\";\n } else {\n url = window.location.origin + signonContextPath + \"/index.html\";\n }\n window.location.href = url;\n }\n } else if (error.response.status == 500) {\n // ElementUI.Notification.error({\n // title: '错误',\n // message: '系统错误,请联系管理员!'\n // });\n } else if (error.response.status == 400) {\n // ElementUI.Notification.error({\n // title: '错误',\n // message: '系统错误,请联系管理员!'\n // });\n // return Promise.resolve(error);\n } else {\n return Promise.reject(error);\n }\n});\ninstance.defaults.withCredentials = true;\nexport default (_organizationsIDApi$j = {\n organizationsIDApi: function organizationsIDApi(id, _ref) {\n var onSucess = _ref.onSucess,\n onError = _ref.onError;\n instance.get(contextPathV3 + \"/tenant/organizations/\" + id).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n judgePromoterApi: function judgePromoterApi(id, _ref2) {\n var onSucess = _ref2.onSucess,\n onError = _ref2.onError;\n instance.get(contextPathV3 + \"/tenant/organizations/is/promoter/\" + id).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getMyProfile: function getMyProfile(_ref3) {\n var onSucess = _ref3.onSucess,\n onError = _ref3.onError;\n instance.get(contextPathV3 + \"/tenant/users/current/profile\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n kmsMyProfile: function kmsMyProfile(_ref4) {\n var onSucess = _ref4.onSucess,\n onError = _ref4.onError;\n var url = \"\";\n if (statiContextPath) {\n url = kmsPath + \"kms/api/kms/users/myprofile\";\n } else {\n url = kmsPath + \"kms/kms/users/myprofile\";\n }\n instance.get(url).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getDepartmentsByParentId: function getDepartmentsByParentId(appid, parentId, _ref5) {\n var onSucess = _ref5.onSucess,\n onError = _ref5.onError;\n instance.get(contextPath + \"/runtime/\" + appid + \"/departments/selectbox/childs?parentId=\" + parentId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n searchDepartments: function searchDepartments(appid, keyWord, _ref6) {\n var onSucess = _ref6.onSucess,\n onError = _ref6.onError;\n instance.get(contextPath + \"/runtime/\" + appid + \"/departments/selectbox/search?keyword=\" + keyWord).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm%E5%8D%8E&_=0.8404497315018791\n\n /**\n * 主页锁屏功能\n */\n isLock: function isLock(jsonData, _ref7) {\n var onSucess = _ref7.onSucess,\n onError = _ref7.onError;\n // instance.put(contextPath + '/runtime/users/unlock?pwd=' + password).then(function (response) {\n // if (onSucess) onSucess(response);\n // }).catch(\n // function (error) {\n // if (onError) onError(error);\n // }\n // );\n // axios({\n // headers: {\n // \"Content-Type\": \"application/json\",\n // },\n // url: contextPath + \"/runtime/users/unlock\",\n // data: password,\n // method: \"put\",\n // })\n // .then(function (response) {\n // if (onSucess) onSucess(response);\n // })\n // .catch(function (error) {\n // if (onError) onError(error);\n // });\n instance({\n url: contextPathV3 + \"/identity/unlock\",\n method: \"post\",\n data: {\n password: jsonData\n }\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n signonLogin: function signonLogin(jsonData, _ref8) {\n var onSucess = _ref8.onSucess,\n onError = _ref8.onError;\n var url;\n if (statiContextPath) {\n url = contextPath + \"/runtime/login/loginWithCiphertext2\";\n } else {\n url = signonContextPath + \"/runtime/login/loginWithCiphertext2\";\n }\n instance.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 getDomainList: function getDomainList(_ref9) {\n var onSucess = _ref9.onSucess,\n onError = _ref9.onError;\n instance.get(contextPath + \"/runtime/usersetups/domains\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 切换企业域\n */\n switchDomain: function switchDomain(domain, _ref0) {\n var onSucess = _ref0.onSucess,\n onError = _ref0.onError;\n instance.put(contextPath + \"/runtime/usersetups/domains/switch?domain=\" + domain).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 5.13挂起流程\n * 保存文档并挂起流程。\n * 请求方式:PUT\n * 请求地址:/runtime/{applicationId}/documents/{docId}/workflows/suspend\n */\n suspendWorkflow: function suspendWorkflow(appId, docId, _ref1) {\n var onSucess = _ref1.onSucess,\n onError = _ref1.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/suspend\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 5.14恢复流程\n * 请求方式:PUT\n * 请求地址:/runtime/{applicationId}/documents/{docId}/workflows/recovery\n */\n recoveryWorkflow: function recoveryWorkflow(appId, docId, _ref10) {\n var onSucess = _ref10.onSucess,\n onError = _ref10.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/recovery\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 5.11撤回流程\n * 请求方式:PUT\n * 请求地址:/runtime/{applicationId}/documents/{docId}/workflows/retracement\n */\n retracementWorkflow: function retracementWorkflow(appId, docId, _ref11) {\n var onSucess = _ref11.onSucess,\n onError = _ref11.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/retracement\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 5.12终止流程\n * 请求方式:PUT\n * 请求地址:/runtime/{applicationId}/documents/{docId}/workflows/termination\n */\n terminationWorkflow: function terminationWorkflow(appId, docId, attitude, _ref12) {\n var onSucess = _ref12.onSucess,\n onError = _ref12.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/termination?attitude=\" + attitude).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getApplications: function getApplications(_ref13) {\n var onSucess = _ref13.onSucess,\n onError = _ref13.onError;\n instance.get(contextPath + \"/runtime/applications\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getMenus: function getMenus(appId, _ref14) {\n var onSucess = _ref14.onSucess,\n onError = _ref14.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/menus\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getHomePageConfig: function getHomePageConfig(_ref15) {\n var onSucess = _ref15.onSucess,\n onError = _ref15.onError;\n instance.get(contextPath + \"/runtime/homepage/config\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/runtime/homepage/config\n setHomePageConfig: function setHomePageConfig(jsonData, _ref16) {\n var onSucess = _ref16.onSucess,\n onError = _ref16.onError;\n instance.post(contextPath + \"/runtime/homepage/config\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n resetHomePageConfig: function resetHomePageConfig(_ref17) {\n var onSucess = _ref17.onSucess,\n onError = _ref17.onError;\n instance.post(contextPath + \"/runtime/homepage/config\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getStartMenus: function getStartMenus(appId, _ref18) {\n var onSucess = _ref18.onSucess,\n onError = _ref18.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/flowcenters/startmenus\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getMainPendings: function getMainPendings(appId, data, _ref19) {\n var onSucess = _ref19.onSucess,\n onError = _ref19.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/flowcenters/pendings\", {\n params: data\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getPendings: function getPendings(appId, _ref20) {\n var onSucess = _ref20.onSucess,\n onError = _ref20.onError;\n instance.get(contextPath + \"/runtime/flowcenters/navs/pendings?applicationId=\" + (appId ? appId : \"\")).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getPendingList: function getPendingList(appId, params, _ref21) {\n var onSucess = _ref21.onSucess,\n onError = _ref21.onError;\n var urlParams = \"\";\n for (var key in params) {\n if (urlParams == \"\") {\n urlParams += \"?\";\n } else {\n urlParams += \"&\";\n }\n urlParams += key + \"=\" + params[key];\n }\n instance.get(contextPath + \"/runtime/\" + (appId ? appId : \"\") + \"/flowcenters/pendings\" + urlParams).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getPendingListWithWidget: function getPendingListWithWidget(pageNo, linesPerPage, workflowOrder, _ref22) {\n var onSucess = _ref22.onSucess,\n onError = _ref22.onError;\n var _pageNo = pageNo ? pageNo : 1;\n var _linesPerPage = linesPerPage ? linesPerPage : 2147483646;\n instance.get(contextPath + \"/runtime/widget/myPending?pageNo=\" + _pageNo + \"&linesPerPage=\" + _linesPerPage + \"&workflowOrder=\" + workflowOrder).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getMainProcesseds: function getMainProcesseds(appId, data, _ref23) {\n var onSucess = _ref23.onSucess,\n onError = _ref23.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/flowcenters/processeds\", {\n params: data\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getNavsPeddings: function getNavsPeddings(appId, _ref24) {\n var onSucess = _ref24.onSucess,\n onError = _ref24.onError;\n instance.get(contextPath + \"/runtime/flowcenters/navs/pendings\", {\n applicationId: appId\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getNavsProcesseds: function getNavsProcesseds(appId, _ref25) {\n var onSucess = _ref25.onSucess,\n onError = _ref25.onError;\n instance.get(contextPath + \"/runtime/flowcenters/navs/processeds\", {\n applicationId: appId\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getProcessedList: function getProcessedList(appId, params, _ref26) {\n var onSucess = _ref26.onSucess,\n onError = _ref26.onError;\n var urlParams = \"\";\n for (var key in params) {\n if (urlParams == \"\") {\n urlParams += \"?\";\n } else {\n urlParams += \"&\";\n }\n urlParams += key + \"=\" + params[key];\n }\n instance.get(contextPath + \"/runtime/\" + (appId ? appId : \"\") + \"/flowcenters/processeds\" + urlParams).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getProcessedListWithWidget: function getProcessedListWithWidget(pageNo, linesPerPage, workflowOrder, _ref27) {\n var onSucess = _ref27.onSucess,\n onError = _ref27.onError;\n var _pageNo = pageNo ? pageNo : 1;\n var _linesPerPage = linesPerPage ? linesPerPage : 2147483646;\n instance.get(contextPath + \"/runtime/widget/myProcessing?pageNo=\" + _pageNo + \"&linesPerPage=\" + _linesPerPage + \"&workflowOrder=\" + workflowOrder).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getViewTemplate: function getViewTemplate(appId, viewId, exparams, _ref28) {\n var onSucess = _ref28.onSucess,\n onError = _ref28.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/views/\" + viewId + \"/template\", {\n params: exparams\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取视图打印模板\n //http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/views/__g4P1Z1Dms6kyAyMccsl/template?appId=sOZu9kthmxyP8qQfq0e&viewId=__g4P1Z1Dms6kyAyMccsl&isPrint=true\n getPrintViewTemplate: function getPrintViewTemplate(appId, viewId, isPrint, _ref29) {\n var onSucess = _ref29.onSucess,\n onError = _ref29.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/views/\" + viewId + \"/template?appId=\" + appId + \"&viewId=\" + viewId + \"&isPrint=\" + isPrint).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/views/n3RPxv8mWq8i8PpPkle/template?appId=sOZu9kthmxyP8qQfq0e&viewId=n3RPxv8mWq8i8PpPkle&test=11111&opentarget=target&containTitle=\n getBlankViewTemplate: function getBlankViewTemplate(appId, jsonData, _ref30) {\n var onSucess = _ref30.onSucess,\n onError = _ref30.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/views/\" + jsonData.viewId + \"/template\", {\n params: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //树形视图\n getViewTemplateP: function getViewTemplateP(appId, viewId, jsonData, _ref31) {\n var onSucess = _ref31.onSucess,\n onError = _ref31.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/views/\" + viewId + \"/template\", {\n params: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //折叠视图\n //?appId=sOZu9kthmxyP8qQfq0e&viewId=KEemd2e0Yn9a4qCw3iT&opentarget=detail&containTitle=%E6%8A%98%E5%8F%A0%E8%A7%86%E5%9B%BE\n getCollapsedviewTemplate: function getCollapsedviewTemplate(appId, exparams, _ref32) {\n var onSucess = _ref32.onSucess,\n onError = _ref32.onError;\n var viewId = exparams.viewId;\n var opentarget = exparams.opentarget;\n var containTitle = exparams.containTitle;\n instance.get(contextPath + \"/runtime/\" + appId + \"/views/\" + viewId + \"/template?appId=\" + appId + \"&viewId=\" + viewId + \"&opentarget=\" + opentarget + \"&containTitle\" + containTitle).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getSearchFormTemplate: function getSearchFormTemplate(appId, viewId, exparams, _ref33) {\n var onSucess = _ref33.onSucess,\n onError = _ref33.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/views/\" + viewId + \"/searchformtemplate\", {\n params: exparams\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 获取视图数据55\n */\n getViewData: function getViewData(appId, viewId, params, data, _ref34) {\n var onSucess = _ref34.onSucess,\n onError = _ref34.onError;\n var urlParams = \"\";\n var parentId = params.parentId ? params.parentId : \"\";\n var sortCol = params.sortCol ? params.sortCol : \"\";\n var sortStatus = params.sortStatus ? params.sortStatus : \"\";\n var currpage = params.currpage ? params.currpage : \"1\";\n var lines = params.lines ? params.lines : \"\";\n var treedocid = params.treedocid ? params.treedocid : \"\";\n var parentNodeId = params.parentNodeId ? params.parentNodeId : \"\";\n var docid = params.docid ? params.docid : \"\";\n var fieldid = params.fieldid ? params.fieldid : \"\";\n var isRelate = params.isRelate ? params.isRelate : \"\";\n var startDate = params.startDate ? params.startDate : \"\";\n var endDate = params.endDate ? params.endDate : \"\";\n var exparams = params.exparams ? params.exparams : \"\";\n var parentParam = params.parentParam ? params.parentParam : \"\";\n urlParams += \"?parentId=\" + parentId + \"&sortCol=\" + sortCol + \"&sortStatus=\" + sortStatus + \"&_currpage=\" + currpage + \"&lines=\" + lines + \"&treedocid=\" + treedocid + \"&parentNodeId=\" + parentNodeId + \"&_docid=\" + docid + \"&_fieldid=\" + fieldid + \"&isRelate=\" + isRelate + \"&startDate=\" + startDate + \"&endDate=\" + endDate + \"&parentParam=\" + parentParam;\n if (data && exparams) {\n data = Object.assign(data, exparams);\n }\n instance.post(contextPath + \"/runtime/\" + appId + \"/views/\" + viewId + \"/documents\" + urlParams, data ? data : {}).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getTreeViewTemplate: function getTreeViewTemplate(appId, viewId, hasListview, _ref35) {\n var onSucess = _ref35.onSucess,\n onError = _ref35.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/views/\" + viewId + \"/template?appId=\" + appId + \"&viewId=\" + viewId + \"&hasListview=\" + hasListview).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 获取树形视图数据\n */\n getTreeViewData: function getTreeViewData(appId, viewId, params, data, name, _ref36) {\n var onSucess = _ref36.onSucess,\n onError = _ref36.onError;\n var urlParams = \"\";\n var currpage = params.currpage ? params.currpage : \"1\";\n var sortCol = params.sortCol ? params.sortCol : \"\";\n var sortStatus = params.sortStatus ? params.sortStatus : \"\";\n var parentId = params.parentId ? params.parentId : \"\";\n var treedocid = params.parentId && !params.rootNode ? params.parentId : \"\";\n var parentNodeId = params.parentId && !params.rootNode ? params.parentId : \"\";\n var isSearchForm = params.isSearchForm;\n urlParams += \"?sortCol=\" + sortCol + \"&sortStatus=\" + sortStatus + \"&name=\" + name + \"&treedocid=\" + treedocid + \"&parentNodeId=\" + parentNodeId;\n \"&currpage=\" + currpage;\n instance.post(contextPath + \"/runtime/\" + appId + \"/treeviews/\" + viewId + \"/documents\" + urlParams, data ? data : {}).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 获取表单\n */\n getForm: function getForm(appId, formId, docId, exparams, _ref37) {\n var onSucess = _ref37.onSucess,\n onError = _ref37.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/forms/\" + formId + \"/documents/\" + docId, {\n params: exparams ? exparams : {}\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 获取表单\n */\n getDocument: function getDocument(appId, docId, _ref38) {\n var onSucess = _ref38.onSucess,\n onError = _ref38.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 获取空文档\n */\n getDocumentEmpty: function getDocumentEmpty(appId, formId, exparams, _ref39) {\n var onSucess = _ref39.onSucess,\n onError = _ref39.onError;\n // let ex = decodeURI(exparams)\n instance.get(contextPath + \"/runtime/\" + appId + \"/forms/\" + formId + \"/empty\", {\n params: exparams ? exparams : {}\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 6.4\t保存并启动流程 --接口有问题,要改 --TODO:Jarod\n */\n saveDocumentAndStartWorkflow: function saveDocumentAndStartWorkflow(appId, formId, docId, /**flowId,*/data, _ref40) {\n var onSucess = _ref40.onSucess,\n onError = _ref40.onError;\n var jsonData = {\n flowId: \"\",\n attitude: \"\",\n versions: \"\",\n document: {\n id: docId,\n formId: formId,\n applicationid: appId,\n stateid: \"\",\n versions: \"\",\n parentid: \"\",\n sign: \"\",\n items: data ? data : {}\n }\n };\n instance.post(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/activities/saveStartWorkFlow\", JSON.stringify(jsonData)).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 2.6\t更新文档(带校验)\n * 请求方式:PUT\n * 请求地址:/runtime/{applicationId}/documents/{id}\n */\n saveDocument: function saveDocument(appId, formId, docId, docJson, _ref41) {\n var onSucess = _ref41.onSucess,\n onError = _ref41.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId, docJson).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/documents/__K9sL2EHCL3DcW70DyEb/withoutValid\n saveWithoutValidDocument: function saveWithoutValidDocument(appId, docId, docJson, _ref42) {\n var onSucess = _ref42.onSucess,\n onError = _ref42.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/withoutValid\", docJson).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 复制文档v\n */\n copeDocument: function copeDocument(appId, docId, docJson, _ref43) {\n var onSucess = _ref43.onSucess,\n onError = _ref43.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/activities/copy\", docJson).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n *创建文档\n */\n createDocument: function createDocument(appId, formId, docJson, _ref44) {\n var onSucess = _ref44.onSucess,\n onError = _ref44.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/documents\", JSON.stringify(docJson)).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n createWithoutValidDocument: function createWithoutValidDocument(appId, formId, docJson, _ref45) {\n var onSucess = _ref45.onSucess,\n onError = _ref45.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/documents/withoutValid\", JSON.stringify(docJson)).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 2.10\t批量删除文档\n * 请求方式:DELETE\n * 请求地址:/runtime/{applicationId}/documents\n */\n batchRemoveDocuments: function batchRemoveDocuments(appId, idsArray, _ref46) {\n var onSucess = _ref46.onSucess,\n onError = _ref46.onError;\n instance.delete(contextPath + \"/runtime/\" + appId + \"/documents\", {\n data: idsArray\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n *树形视图右键删除节点\n **/\n deleteTreeviewNode: function deleteTreeviewNode(appId, nodeId, _ref47) {\n var onSucess = _ref47.onSucess,\n onError = _ref47.onError;\n instance.delete(contextPath + \"/runtime/\" + appId + \"/documents/\" + nodeId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n *5.4\t获取文档的流程提交面板\n *服务器返回当前文档流程面板所需要的全部信息,包含当前节点信息,下一步节点的相信配置信息。\n *请求方式:post\n *请求地址:/runtime/{applicationId}/documents/{docId}/panels/submission\n */\n getFlowPanel: function getFlowPanel(appId, docId, flowData, _ref48) {\n var onSucess = _ref48.onSucess,\n onError = _ref48.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/panels/submission\", flowData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n *5.5获取文档的流程回退面板\n * 服务器返回当前文档流程面板所需要的全部信息,包含当前节点信息,下一步节点的相关配置信息。\n * 请求方式:GET\n * 请求地址:/runtime/{applicationId}/document/{docId}/panels/back\n */\n getBackPanel: function getBackPanel(appId, docId, flowData, _ref49) {\n var onSucess = _ref49.onSucess,\n onError = _ref49.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/panels/back\", flowData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n *5.8\t提交流程\n *保存文档并提交流程。\n *请求方式:PUT\n *请求地址:/runtime/{applicationId}/documents/{docId}/workflows/submit\n */\n /**\n * {\n \"flowId\":\"14e7dwq091134ct9635fG\",\n \"flowType\":\"80\",\n \"currentNodeId\":\"1470911349635\",\n \"nextNodeIds\":[\"1470911349645\",\"1470911349644\"],---计算得出\n \"attitude\":\"\",\n \"signature\":\"\",\n \"submitTo\": \"\",\n \"circulatorInfo\":\"\",\n \"subFlowApproverInfo\":\"\",\n \"subFlowApproverInfoAll\":\"\"\n \"document\":{\n \"id\": \"value\",\n \"formId\": \"value\",\n \"applicationid\": \"value\",\n \"stateid\": \"value\",\n \"versions\": 0,\n \"parentid\": \"value\",\n …//其他系统字段\n \"sign\": \"value\",\n \"items\": [\n {\n \"name\": \"demo\",\n \"age\": 18,\n \"date\": \"2017-6-23\"\n }\n ]\n }\n }\n *\n */\n submitFlow: function submitFlow(appId, docId, flowData, _ref50) {\n var onSucess = _ref50.onSucess,\n onError = _ref50.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/submit\", flowData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 5.10回退流程\n * 保存文档并回退流程。\n * 请求方式:PUT\n * 请求地址:/runtime/{applicationId}/documents/{docId}/workflows/back\n {\n \"flowId\":\"14e7dwq091134ct9635fG\",\n \"flowType\":\"81\",\n \"currentNodeId\":\"1470911349635\",\n \"nextNodeIds\":[\"1470911349645\"],\n \"attitude\":\"\",\n \"signature\":\"\",\n \"document\":{\n \"id\": \"value\",\n \"formId\": \"value\",\n \"applicationid\": \"value\",\n \"stateid\": \"value\",\n \"versions\": 0,\n \"parentid\": \"value\",\n …//其他系统字段\n \"sign\": \"value\",\n \"items\": [\n {\n \"name\": \"demo\",\n \"age\": 18,\n \"date\": \"2017-6-23\"\n }\n ]\n }\n }\n */\n backFlow: function backFlow(appId, docId, flowData, _ref51) {\n var onSucess = _ref51.onSucess,\n onError = _ref51.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/back\", flowData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 5.9催办流程\n 保存文档并流程催办。\n 请求方式:PUT\n 请求地址:/runtime/{applicationId}/documents/{docId}/workflows/remind\n {\n \"reminderContent\":\"zz\",\n \"nodertIds\":[\"1470911349645\",\"1470911349644\"]\n }\n */\n remindFlow: function remindFlow(appId, docId, flowData, _ref52) {\n var onSucess = _ref52.onSucess,\n onError = _ref52.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/remind\", flowData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 自由流程-提交\n 请求方式:PUT\n 请求地址:/runtime/{applicationId}/documents/{docId}/freeflows/submit\n {\n \"flowType\":\"80\",\n \"nextUserId\":\"sf34sdsfKJg342\",\n \"attitude\":\"\",\n \"document\":{\n \"id\": \"value\",\n \"formId\": \"value\",\n \"applicationid\": \"value\",\n \"stateid\": \"value\",\n \"versions\": 0,\n \"parentid\": \"value\",\n …//其他系统字段\n \"sign\": \"value\",\n \"items\": [\n {\n \"name\": \"demo\",\n \"age\": 18,\n \"date\": \"2017-6-23\"\n }\n ]\n }\n }\n */\n submitFreeFlow: function submitFreeFlow(appId, docId, flowData, _ref53) {\n var onSucess = _ref53.onSucess,\n onError = _ref53.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/freeflows/submit\", flowData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 自由流程-回退\n 请求方式:PUT\n 请求地址:/runtime/{applicationId}/documents/{docId}/freeflows/back\n {\n \"flowType\":\"80\",zidingyi\n \"nextUserId\":\"sf34sdsfKJg342\",\n \"attitude\":\"\",\n \"document\":{\n \"id\": \"value\",\n \"formId\": \"value\",\n \"applicationid\": \"value\",\n \"stateid\": \"value\",\n \"versions\": 0,\n \"parentid\": \"value\",\n …//其他系统字段\n \"sign\": \"value\",\n \"items\": [\n {\n \"name\": \"demo\",\n \"age\": 18,\n \"date\": \"2017-6-23\"\n }\n ]\n }\n }\n */\n backFreeFlow: function backFreeFlow(appId, docId, flowData, _ref54) {\n var onSucess = _ref54.onSucess,\n onError = _ref54.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/freeflows/back\", flowData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 自由流程-结束\n 请求方式:PUT\n 请求地址:/runtime/{applicationId}/documents/{docId}/freeflows/complete\n {\n \"flowType\":\"7\",\n \"nextUserId\":\"sf34sdsfKJg342\",\n \"attitude\":\"\",\n \"document\":{\n \"id\": \"value\",\n \"formId\": \"value\",\n \"applicationid\": \"value\",\n \"stateid\": \"value\",\n \"versions\": 0,\n \"parentid\": \"value\",\n …//其他系统字段\n \"sign\": \"value\",\n \"items\": [\n {\n \"name\": \"demo\",\n \"age\": 18,\n \"date\": \"2017-6-23\"\n }\n ]\n }\n }\n */\n completeFreeFlow: function completeFreeFlow(appId, docId, flowData, _ref55) {\n var onSucess = _ref55.onSucess,\n onError = _ref55.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/freeflows/complete\", flowData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 3.7刷新表单\n * 表单某控件触发全局刷新表单的动作,服务器根据最新的文档状态重新运算开启重计算功能的全部控件的值脚本,返回状态发生变更的控件内容。\n * 请求方式:POST\n * 请求地址:/runtime/{applicationId}/forms/{formId}/documents/{docId}/refresh\n */\n refreshForm: function refreshForm(actField, docJson, _ref56) {\n var onSucess = _ref56.onSucess,\n onError = _ref56.onError;\n var appId = docJson.applicationId;\n var formId = docJson.formId;\n var docId = docJson.id;\n var refreshData = {\n actField: actField,\n tabId: \"\",\n document: docJson.document\n };\n instance.post(contextPath + \"/runtime/\" + appId + \"/forms/\" + formId + \"/documents/\" + docId + \"/refresh\", refreshData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n refreshView: function refreshView(docJson, _ref57) {\n var onSucess = _ref57.onSucess,\n onError = _ref57.onError;\n var appId = docJson.applicationId;\n var formId = docJson.formId;\n var docId = docJson.id;\n var refreshData = {\n tabId: \"\",\n document: docJson\n };\n instance.post(contextPath + \"/runtime/\" + appId + \"/forms/\" + formId + \"/documents/\" + docId + \"/refresh\", refreshData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 获取文档的流程历史\n */\n getFlowHistorys: function getFlowHistorys(appId, docId, content, _ref58) {\n var onSucess = _ref58.onSucess,\n onError = _ref58.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/flowhistorys?content=\" + content).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 获取文档的催办记录\n */\n getRemindHistorys: function getRemindHistorys(appId, docId, _ref59) {\n var onSucess = _ref59.onSucess,\n onError = _ref59.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/remind-historys\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 运算自定义动作脚本\n */\n executeCustom: function executeCustom(applicationId, id, data, params, _ref60) {\n var onSucess = _ref60.onSucess,\n onError = _ref60.onError;\n instance.put(contextPath + \"/runtime/\" + applicationId + \"/activities/\" + id + \"/execute\", data, {\n params: params\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 获取文档的流程发起面板\n */\n getPanelsInitiate: function getPanelsInitiate(applicationId, docId, docJson, _ref61) {\n var onSucess = _ref61.onSucess,\n onError = _ref61.onError;\n instance.post(contextPath + \"/runtime/\" + applicationId + \"/documents/\" + docId + \"/panels/initiate\", docJson).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 发起流程\n */\n InitiateWorkFlow: function InitiateWorkFlow(applicationId, docId, docJson, _ref62) {\n var onSucess = _ref62.onSucess,\n onError = _ref62.onError;\n instance.post(contextPath + \"/runtime/\" + applicationId + \"/documents/\" + docId + \"/workflows/initiate\", docJson).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 保存并启动流程\n */\n saveStartWorkFlow: function saveStartWorkFlow(applicationId, docJson, _ref63) {\n var onSucess = _ref63.onSucess,\n onError = _ref63.onError;\n instance.post(contextPath + \"/runtime/\" + applicationId + \"/documents/activities/saveStartWorkFlow\", docJson).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 签章\n */\n saveSign: function saveSign(applicationId, docId, docJson, _ref64) {\n var onSucess = _ref64.onSucess,\n onError = _ref64.onError;\n instance.post(contextPath + \"/runtime/\" + applicationId + \"/documents/\" + docId + \"/activities/sign\", JSON.stringify(docJson)).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 邮件和手机分享\n */\n toShare: function toShare(applicationId, docId, docJson, _ref65) {\n var onSucess = _ref65.onSucess,\n onError = _ref65.onError;\n instance.post(contextPath + \"/runtime/\" + applicationId + \"/documents/\" + docId + \"/activities/share\", docJson).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 归档\n */\n Archive: function Archive(applicationId, docId, _ref66) {\n var onSucess = _ref66.onSucess,\n onError = _ref66.onError;\n instance.get(contextPath + \"/runtime/\" + applicationId + \"/documents/\" + docId + \"/activities/archive\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 获取打印表单数据\n */\n getPrintForm: function getPrintForm(applicationId, formId, docId, _ref67) {\n var onSucess = _ref67.onSucess,\n onError = _ref67.onError;\n instance.get(contextPath + \"/runtime/\" + applicationId + \"/forms/\" + formId + \"/documents/\" + docId + \"/activities/print\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 清除所有数据\n */\n deleteAllData: function deleteAllData(applicationId, formId, _ref68) {\n var onSucess = _ref68.onSucess,\n onError = _ref68.onError;\n instance.delete(contextPath + \"/runtime/\" + applicationId + \"/forms/\" + formId + \"/activities/clear\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * Excel导入\n */\n importExcel: function importExcel(applicationId, viewId, docJson, _ref69) {\n var onSucess = _ref69.onSucess,\n onError = _ref69.onError;\n var url;\n if (docJson.type == \"excelimport\") {\n url = contextPath + \"/runtime/\" + applicationId + \"/views/\" + viewId + \"/activities/importExcel\";\n } else {\n url = contextPath + \"/runtime/\" + applicationId + \"/views/\" + viewId + \"/activities/validationExcel\";\n }\n instance.post(url, docJson).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 批量审批\n */\n batchApprove: function batchApprove(applicationId, docJson, _ref70) {\n var onSucess = _ref70.onSucess,\n onError = _ref70.onError;\n axios({\n url: contextPath + \"/runtime/\" + applicationId + \"/forms/activities/batchApprove\",\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 // instance.post(contextPath + \"/runtime/\" + applicationId + \"/forms/activities/batchApprove\",docJson).then(function (response) {\n // if (onSucess) onSucess(response);\n // }).catch(\n // function (error) {\n // if (onError) onError(error);\n // }\n // );\n },\n /**\n * 判断km团队和知识专题是否显示\n */\n kmMenuShow: function kmMenuShow(_ref71) {\n var onSucess = _ref71.onSucess,\n onError = _ref71.onError;\n instance.get(contextPath + \"/kms/realmAndTeam\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 视图列的提交按钮\n */\n operateSubmit: function operateSubmit(applicationId, viewId, docJson, _ref72) {\n var onSucess = _ref72.onSucess,\n onError = _ref72.onError;\n instance.post(contextPath + \"/runtime/\" + applicationId + \"/views/\" + viewId + \"/column/submit\", docJson).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 流程协办(点评)\n */\n review: function review(appId, instanceId, comments, _ref73) {\n var onSucess = _ref73.onSucess,\n onError = _ref73.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/workflows/\" + instanceId + \"/assist?attitude=\" + comments).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 添加/补签意见\n */\n supplement: function supplement(appId, instanceId, comments, _ref74) {\n var onSucess = _ref74.onSucess,\n onError = _ref74.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/workflows/\" + instanceId + \"/supplement?comments=\" + comments).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 加签(主办)\n */\n processHosting: function processHosting(appId, docId, data, _ref75) {\n var onSucess = _ref75.onSucess,\n onError = _ref75.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/approver/addition\", data).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 加签(协办)\n */\n processCoHosting: function processCoHosting(appId, docId, data, _ref76) {\n var onSucess = _ref76.onSucess,\n onError = _ref76.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/assist/addition\", data).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 企业域信息\n * */\n getEnterpriseinfo: function getEnterpriseinfo(domainId, _ref77) {\n var onSucess = _ref77.onSucess,\n onError = _ref77.onError;\n instance.get(contextPath + \"/portal/domain/\" + domainId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 视图选择框确认执行脚本\n */\n runViewDialogCallbackScript: function runViewDialogCallbackScript(docJson, _ref78) {\n var onSucess = _ref78.onSucess,\n onError = _ref78.onError;\n instance.post(contextPath + \"/runtime/views/selectbox/runViewDialogCallbackScript\", docJson).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 获取是否配置文件预览环境的信息\n */\n getenvironment: function getenvironment(_ref79) {\n var onSucess = _ref79.onSucess,\n onError = _ref79.onError;\n instance.get(contextPath + \"/runtime/files/preview/environment\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //id=__TK3KWkOfistq2Hn95RH&extName=.docx&url=%2Fuploads%2Fmessage%2F%2F__TK3KWkOfistq2Hn95RH.docx&_=1599807632731\n getPreview: function getPreview(data, _ref80) {\n var onSucess = _ref80.onSucess,\n onError = _ref80.onError;\n instance.get(messagePath + \"/message/messages/attachement/preview\", {\n params: data\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 通过文件路径和名称判断是否存在对应的PDF文件\n */\n getHasPdfFile: function getHasPdfFile(filePath, fileRealName, _ref81) {\n var onSucess = _ref81.onSucess,\n onError = _ref81.onError;\n instance.get(contextPath + \"/runtime/files/hasPdf?path=\" + filePath + \"&fileRealName=\" + fileRealName).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 视图框选择后回显\n * /runtime/{applicationId}/forms/{formId}/documents/{docId}/validateFieldValue\n */\n formValueEcho: function formValueEcho(appId, docId, formId, data, _ref82) {\n var onSucess = _ref82.onSucess,\n onError = _ref82.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/forms/\" + formId + \"/documents/\" + docId + \"/validateFieldValue\", JSON.stringify(data)).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 是否有打开表单的权限\n * /runtime/{applicationId}/forms/{formId}/documents/{docId}/openable\n */\n hasPermissionToForm: function hasPermissionToForm(appId, formId, _ref83) {\n var onSucess = _ref83.onSucess,\n onError = _ref83.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/forms/\" + formId + \"/openable\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 是否有打开视图的权限\n *\n */\n hasPermissionToView: function hasPermissionToView(appId, viewId, _ref84) {\n var onSucess = _ref84.onSucess,\n onError = _ref84.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/views/\" + viewId + \"/openable\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n runScript: function runScript(appId, actId, docId, fieldName, _, subSelectId, _ref85) {\n var onSucess = _ref85.onSucess,\n onError = _ref85.onError;\n var url = contextPath + \"/runtime/\" + appId + \"/activities/\" + actId + \"/runScript?docId=\" + docId + \"&fieldName=\" + fieldName + \"&_\" + _;\n if (subSelectId) {\n url += \"&subSelects=\" + subSelectId;\n }\n instance.get(url).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n deleteUpload: function deleteUpload(appId, formId, docId, path, _ref86) {\n var onSucess = _ref86.onSucess,\n onError = _ref86.onError;\n instance.delete(contextPath + \"/runtime/files/delete?applicationId=\" + appId + \"&formId=\" + formId + \"&docId=\" + docId + \"&path=\" + path).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n // 更新流程节点审批人\n approversWorkflow: function approversWorkflow(appId, docId, data, _ref87) {\n var onSucess = _ref87.onSucess,\n onError = _ref87.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/approvers\", data).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //智能提示搜索框\n intellectTip: function intellectTip(applicationId, formId, docId, data, _ref88) {\n var onSucess = _ref88.onSucess,\n onError = _ref88.onError;\n instance.post(contextPath + \"/runtime/\" + applicationId + \"/forms/\" + formId + \"/documents/\" + docId + \"/querySuggest\", data).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //角色\n getAllRoles: function getAllRoles(application, type, _ref89) {\n var onSucess = _ref89.onSucess,\n onError = _ref89.onError;\n instance.get(contextPath + \"/runtime/\" + application + \"/users/selectbox/role?type=\" + type).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取抄送人角色数据\n getCopyAllRoles: function getCopyAllRoles(application, docId, nodeId, flowId, type, _ref90) {\n var onSucess = _ref90.onSucess,\n onError = _ref90.onError;\n instance.get(contextPath + \"/runtime/\" + application + \"/users/selectbox/role?docId=\" + docId + \"&nodeId=\" + nodeId + \"&flowId=\" + flowId + \"&type=\" + type).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取部门树\n getDepartments: function getDepartments(parentId, _ref91) {\n var onSucess = _ref91.onSucess,\n onError = _ref91.onError;\n instance.get(contextPath + \"/runtime/users/selectbox/dept-tree?parentId=\" + parentId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //在线用户\n //runtime/users/selectbox/onlines?pageNum={pageNum}&pageSize={pageSize}\n getOnlines: function getOnlines(pageNum, pageSize, _ref92) {\n var onSucess = _ref92.onSucess,\n onError = _ref92.onError;\n instance.get(contextPath + \"/runtime/users/selectbox/onlines?pageNum=\" + pageNum + \"&pageSize=\" + pageSize).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //通讯录用户\n getContact: function getContact(contactsId, _ref93) {\n var onSucess = _ref93.onSucess,\n onError = _ref93.onError;\n instance.get(contextPath + \"/runtime/users/selectbox/contacts?contactsId=\" + contactsId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/runtime/users/selectbox/contacts?contactsId=&userName=1&pageSize=10&pageNum=1&_=1591596427610\n getSearchContact: function getSearchContact(jsonData, _ref94) {\n var onSucess = _ref94.onSucess,\n onError = _ref94.onError;\n instance.get(contextPath + \"/runtime/users/selectbox//contacts\", {\n params: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //查询\n getSearch: function getSearch(keyWord, pageNum, pageSize, _ref95) {\n var onSucess = _ref95.onSucess,\n onError = _ref95.onError;\n instance.get(contextPath + \"/runtime/users/selectbox/search?keyWord=\" + keyWord + \"&pageNum=\" + pageNum + \"&pageSize=\" + pageSize).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //部门用户**/runtime/{applicationId}/users/selectbox/department?deptId={deptId}\n getDeptUser: function getDeptUser(application, deptId, _ref96) {\n var onSucess = _ref96.onSucess,\n onError = _ref96.onError;\n instance.get(contextPath + \"/runtime/\" + application + \"/users/selectbox/department?deptId=\" + deptId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //角色\n getRoles: function getRoles(application, roleId, type, pageSize, pageNum, _ref97) {\n var onSucess = _ref97.onSucess,\n onError = _ref97.onError;\n instance.get(contextPath + \"/runtime/\" + application + \"/users/selectbox/role?roleId=\" + roleId + \"&type=\" + type + \"&pageSize=\" + pageSize + \"&pageNum=\" + pageNum).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getAddressBook: function getAddressBook(jsonData, _ref98) {\n var onSucess = _ref98.onSucess,\n onError = _ref98.onError;\n instance.get(contextPath + \"/runtime/users/selectbox/contacts\", {\n params: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //通讯录联系人分页\n //http://localhost:8080/obpm/runtime/users/selectbox/contacts?pageNum=2&pageSize=10\n ContactPage: function ContactPage(pageNum, pageSize, _ref99) {\n var onSucess = _ref99.onSucess,\n onError = _ref99.onError;\n instance.get(contextPath + \"/runtime/users/selectbox/contacts?pageNum=\" + pageNum + \"&pageSize=\" + pageSize).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //部门树分页\n ///runtime/HdPeBqYwJyFyjHkhZu3/users/selectbox/department?deptId=Z42xU8LmniRouZ93E7s&pageNum=3&pageSize=10\n departmentPage: function departmentPage(application, deptId, pageNum, pageSize, _ref100) {\n var onSucess = _ref100.onSucess,\n onError = _ref100.onError;\n instance.get(contextPath + \"/runtime/\" + application + \"/users/selectbox/department?deptId=\" + deptId + \"&pageNum=\" + pageNum + \"&pageSize=\" + pageSize).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //查询分页\n //http://localhost:8080/obpm/runtime/users/selectbox/search?keyWord=&pageNum=2&pageSize=10\n searchPage: function searchPage(keyWord, pageNum, pageSize, _ref101) {\n var onSucess = _ref101.onSucess,\n onError = _ref101.onError;\n instance.get(contextPath + \"/runtime/users/selectbox/search?keyWord=\" + keyWord + \"&pageNum=\" + pageNum + \"&pageSize=\" + pageSize).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //上传图片\n ///runtime/upload?applicationId={applicationId}&allowedTypes={allowedTypes}&fieldId={fieldId}&fileSaveMode={fileSaveMode}&path={path}&actionType={actionType}\n uploadFile: function uploadFile(files, appId, allowedTypes, fieldId, fileSaveMode, path, actionType, _ref102, callback1, uid) {\n var onSucess = _ref102.onSucess,\n onError = _ref102.onError;\n axios({\n headers: {\n \"content-type\": \"multipart/form-data;boundary=\" + Math.random()\n },\n data: files,\n url: contextPath + \"/runtime/upload?applicationId=\" + appId + \"&allowedTypes=\" + allowedTypes + \"&fieldId=\" + fieldId + \"&fileSaveMode=\" + fileSaveMode + \"&path=\" + path + \"&actionType=\" + actionType,\n method: \"post\",\n onUploadProgress: function onUploadProgress(progressEvent) {\n var complete = (progressEvent.loaded / progressEvent.total * 100 | 0) + \"%\";\n var num = progressEvent.loaded / progressEvent.total * 100 | 0;\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 uploadImages: function uploadImages(files, appId, allowedTypes, fieldId, fileSaveMode, path, actionType, _ref103, callback1, uid) {\n var onSucess = _ref103.onSucess,\n onError = _ref103.onError;\n axios({\n headers: {\n \"content-type\": \"multipart/form-data;boundary=\" + Math.random()\n },\n data: files,\n url: contextPath + \"/runtime/upload?applicationId=\" + appId + \"&allowedTypes=\" + allowedTypes + \"&fieldId=\" + fieldId + \"&fileSaveMode=\" + fileSaveMode + \"&path=\" + path + \"&actionType=\" + actionType,\n method: \"post\",\n onUploadProgress: function onUploadProgress(progressEvent) {\n var complete = (progressEvent.loaded / progressEvent.total * 100 | 0) + \"%\";\n var num = progressEvent.loaded / progressEvent.total * 100 | 0;\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 runViewDialogConfirmScript: function runViewDialogConfirmScript(docJson, _ref104) {\n var onSucess = _ref104.onSucess,\n onError = _ref104.onError;\n instance.post(contextPath + \"/runtime/views/selectbox/runViewDialogConfirmScript\", docJson).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /*\n 获取个人设置页面的软件列表\n */\n GetsoFtwareList: function GetsoFtwareList(_ref105) {\n var onSucess = _ref105.onSucess,\n onError = _ref105.onError;\n instance.get(contextPath + \"/runtime/applications\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 个人信息设置\n * 请求地址/runtime/usersetups/detail\n */\n PersonalInformationSettings: function PersonalInformationSettings(data, _ref106) {\n var onSucess = _ref106.onSucess,\n onError = _ref106.onError;\n instance.post(contextPath + \"/runtime/usersetups/detail\", data).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 皮肤设置\n * 请求地址:/runtime/users/skin\n */\n SkinSetting: function SkinSetting(data, _ref107) {\n var onSucess = _ref107.onSucess,\n onError = _ref107.onError;\n instance.post(contextPath + \"/runtime/users/skin\", data).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n /**\n * 退出系统\n * 请求地址:/logout\n */\n LogOut: function LogOut(_ref108) {\n var onSucess = _ref108.onSucess,\n onError = _ref108.onError;\n instance.post(contextPath + \"/runtime/logout?rdm=\" + Math.random()).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n LogOutAction: function LogOutAction(_ref109) {\n var onSucess = _ref109.onSucess,\n onError = _ref109.onError;\n instance.get(contextPath + \"/logout.action?rdm=\" + Math.random()).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //执行前脚本\n runBeforeActionScript: function runBeforeActionScript(applicationId, id, data, actType, treedocid, _flowType, _ref110) {\n var onSucess = _ref110.onSucess,\n onError = _ref110.onError;\n var docId = data.docId ? data.docId : \"\";\n var viewId = data.viewId ? data.viewId : \"\";\n var formId = data.formId ? data.formId : \"\";\n var templateForm = data.templateForm ? data.templateForm : \"\";\n var parentId = data.parentId ? data.parentId : \"\";\n var isRelate = data.isRelate ? data.isRelate : \"\";\n var acttype = actType ? actType : \"\";\n var flowType = _flowType ? _flowType : \"\";\n var url = contextPath + \"/runtime/\" + applicationId + \"/activities/\" + id + \"/runbeforeactionscript?docId=\" + docId + \"&viewId=\" + viewId + \"&formId=\" + formId + \"&_templateForm=\" + templateForm + \"&parentId=\" + parentId + \"&isRelate=\" + isRelate + \"&actType=\" + acttype + \"&_flowType=\" + flowType;\n if (treedocid) {\n url = url + \"&treedocid=\" + treedocid;\n }\n instance.post(url, data).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //执行后脚本\n ///runtime/HdPeBqYwJyFyjHkhZu3/activities/zLjmORGWoZmG7wXf8LF/runafteractionscript?docId=jPF4VGFTnIrk4wMwonl&viewId=&formId=IfoHRC8Rs6njW75HqiE&_templateForm=&parentId=&_=1566437405210\n runAfterActionScript: function runAfterActionScript(applicationId, id, docId, viewId, formId, _templateForm, parentId, _, data, actType, treedocid, _ref111) {\n var onSucess = _ref111.onSucess,\n onError = _ref111.onError;\n var fId = formId ? formId : \"\";\n var url = contextPath + \"/runtime/\" + applicationId + \"/activities/\" + id + \"/runafteractionscript?docId=\" + docId + \"&viewId=\" + viewId + \"&formId=\" + fId + \"&_templateForm=\" + _templateForm + \"&parentId=\" + parentId + \"&_=\" + _ + \"&actType=\" + actType;\n if (treedocid) {\n url = url + \"&treedocid=\" + treedocid;\n }\n if (data.isRelate) {\n url = url + \"&isRelate=\" + data.isRelate;\n }\n instance.post(url, data).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //执行前脚本--v3重构\n v3ActivitiesApi: function v3ActivitiesApi(step, applicationId, id, data, actType, treedocid, _flowType, _ref112) {\n var onSucess = _ref112.onSucess,\n onError = _ref112.onError;\n var docId = data.docId ? data.docId : \"\";\n var viewId = data.viewId ? data.viewId : \"\";\n var formId = data.formId ? data.formId : \"\";\n var templateForm = data.templateForm ? data.templateForm : \"\";\n var parentId = data.parentId ? data.parentId : \"\";\n var isRelate = data.isRelate ? data.isRelate : \"\";\n var acttype = actType ? actType : \"\";\n var flowType = _flowType ? _flowType : \"\";\n var url = contextPath + \"/runtime-ex/apps/\" + applicationId + \"/activities/\" + id + \"/documents?docId=\" + docId + \"&viewId=\" + viewId + \"&formId=\" + formId + \"&_templateForm=\" + templateForm + \"&parentId=\" + parentId + \"&isRelate=\" + isRelate + \"&actType=\" + acttype + \"&_flowType=\" + flowType + \"&step=\" + step;\n if (treedocid) {\n url = url + \"&treedocid=\" + treedocid;\n }\n instance.post(url, data).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //文件下载\n ///http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/activities/qS1l5oy9mA6wFjvYimO/download?docId=__hV1Ofp1vnl48vBkTeQx&newTime=1614146122549\n documentDownload: function documentDownload(applicationId, docId, actId, _ref113) {\n var onSucess = _ref113.onSucess,\n onError = _ref113.onError;\n instance({\n url: contextPath + \"/runtime/\" + applicationId + \"/activities/\" + actId + \"/download?docId=\" + docId,\n method: \"post\"\n // responseType: 'blob',\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n viewDocumentDownload: function viewDocumentDownload(applicationId, docId, actId, jsonData, _ref114) {\n var onSucess = _ref114.onSucess,\n onError = _ref114.onError;\n var url = contextPath + \"/runtime/\" + applicationId + \"/activities/\" + actId + \"/download?docId=\" + docId;\n var parentId = jsonData.parentId ? jsonData.parentId : \"\";\n var isRelate = jsonData.isRelate ? jsonData.isRelate : \"\";\n url += \"&parentId=\" + parentId + \"&isRelate=\" + isRelate;\n instance({\n url: url,\n method: \"post\"\n // responseType: 'blob',\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/runtime/file/download?filename=&filepath=/uploads/exceltemplate/%E6%93%8D%E4%BD%9C%E6%8C%89%E9%92%AE%E8%A1%A8%E5%8D%95.xls/\n templateDownload: function templateDownload(fileName, filepath, _ref115) {\n var onSucess = _ref115.onSucess,\n onError = _ref115.onError;\n instance({\n url: contextPath + \"/runtime/file/download?filename=\" + fileName + \"&filepath=\" + filepath,\n method: \"post\",\n responseType: \"blob\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/runtime/file/isFileExisted?filename=&filepath=/&newTime=1619146358715&_=1619146358039\n getFileExisted: function getFileExisted(fileName, filepath, _ref116) {\n var onSucess = _ref116.onSucess,\n onError = _ref116.onError;\n instance({\n url: contextPath + \"/runtime/file/isFileExisted?filename=\" + fileName + \"&filepath=\" + filepath,\n method: \"get\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //5.0PDF导出\n ///runtime/{applicationId}/forms/{formId}/documents/{docId}/activities/exportPdf\n trunkPDFExport: function trunkPDFExport(applicationId, formId, docId, data, _ref117) {\n var onSucess = _ref117.onSucess,\n onError = _ref117.onError;\n instance({\n url: contextPath + \"/runtime/\" + applicationId + \"/forms/\" + formId + \"/documents/\" + docId + \"/activities/exportPdf\",\n method: \"post\",\n data: data\n // responseType: 'blob',\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //4.4PDF导出\n stablePDFExport: function stablePDFExport(applicationId, formId, docId, _ref118) {\n var onSucess = _ref118.onSucess,\n onError = _ref118.onError;\n instance({\n url: contextPath + \"/runtime/\" + applicationId + \"/forms/\" + formId + \"/documents/\" + docId + \"/activities/exportPdf\",\n method: \"post\",\n responseType: \"blob\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //Excel\n //sOZu9kthmxyP8qQfq0e/views/zIDoeHr26TZtP1kZMdr/activities/exportExcel?actId=&filename=&isExpSub=false&parentId=&isRelate=undefined\n exportExcel: function exportExcel(applicationId, viewId, actId, filename, isExpSub, parentId, isRelate, params, obj, _ref119) {\n var onSucess = _ref119.onSucess,\n onError = _ref119.onError;\n var data = \"\";\n if (params) {\n for (var key in params) {\n data += \"&\" + encodeURIComponent(key) + \"=\" + params[key];\n }\n }\n instance({\n url: contextPath + \"/runtime/\" + applicationId + \"/views/\" + viewId + \"/activities/exportExcel?actId=\" + actId + \"&filename=\" + filename + \"&isExpSub=\" + isExpSub + \"&parentId=\" + parentId + \"&isRelate=\" + isRelate + data,\n method: \"post\",\n responseType: \"blob\",\n data: obj\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //excell导出进度条接口\n exportExcelProgress: function exportExcelProgress(_ref120) {\n var onSucess = _ref120.onSucess,\n onError = _ref120.onError;\n instance({\n url: contextPath + \"/runtime/exportExcel/readProcess\",\n method: \"get\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (response) {\n if (onError) onError(error);\n });\n },\n //excell导出进度条接口\n importExcelProgress: function importExcelProgress(_ref121) {\n var onSucess = _ref121.onSucess,\n onError = _ref121.onError;\n instance({\n url: contextPath + \"/runtime/importExcel/readProcess\",\n method: \"get\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (response) {\n if (onError) onError(error);\n });\n },\n //上传Excel文件\n //http://localhost:8081/obpm/portal/FrontFileAndImageUploadServlet?data=nullpath:IMPORTEXCEL_PATH,fileSaveMode:undefined,fieldid:null,allowedTypes:xls;xlsx,applicationid:sOZu9kthmxyP8qQfq0e\n uploadExcel: function uploadExcel(jsonData, _ref122) {\n var onSucess = _ref122.onSucess,\n onError = _ref122.onError;\n instance({\n url: contextPath + \"/portal/FrontFileAndImageUploadServlet\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //流程图接口(h5的接口)\n //http://localhost:8081/obpm/portal/dynaform/document/viewFlow.action?_docid=Bb8UEPb583uwa3tJ38Z&_instanceId=NRo4wpRuOejquOQGZxz&dateTime=1567495362264\n getViewFlow: function getViewFlow(docId, instanceId, dateTime, _ref123) {\n var onSucess = _ref123.onSucess,\n onError = _ref123.onError;\n instance.get(contextPath + \"/portal/dynaform/document/viewFlow.action?_docid=\" + docId + \"&_instanceId=\" + instanceId + \"&dateTime=\" + dateTime).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取常用意见\n ///runtime/users/{userId}/commonOpinions\n getMostUseSuggestion: function getMostUseSuggestion(userId, _ref124) {\n var onSucess = _ref124.onSucess,\n onError = _ref124.onError;\n instance.get(contextPath + \"/runtime/users/\" + userId + \"/commonOpinions\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //添加常用意见\n ///runtime/users/{userId}/commonOpinions?opinion={opinion}\n AddMostUseSuggestion: function AddMostUseSuggestion(userId, opinion, _ref125) {\n var onSucess = _ref125.onSucess,\n onError = _ref125.onError;\n instance.post(contextPath + \"/runtime/users/\" + userId + \"/commonOpinions?opinion=\" + opinion).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //删除常用意见\n ///runtime/users/{userId}/commonOpinions/{opId}\n deleteMostUseSuggestion: function deleteMostUseSuggestion(userId, opId, _ref126) {\n var onSucess = _ref126.onSucess,\n onError = _ref126.onError;\n instance.delete(contextPath + \"/runtime/users/\" + userId + \"/commonOpinions/\" + opId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //修改意见\n ///runtime/users/{userId}/commonOpinions/{opId}?opinion={opinion}\n editMostUseSuggestion: function editMostUseSuggestion(userId, opId, opinion, _ref127) {\n var onSucess = _ref127.onSucess,\n onError = _ref127.onError;\n instance.put(contextPath + \"/runtime/users/\" + userId + \"/commonOpinions/\" + opId + \"?opinion=\" + opinion).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //流程处理中获取头像\n //http://localhost:8081/obpm/contacts/contacts/getAvatar.action?id=GShxHeYbLQQ3d4Vy58b\n getAvatar: function getAvatar(id, _ref128) {\n var onSucess = _ref128.onSucess,\n onError = _ref128.onError;\n //H5的接口\n instance.put(contextPath + \"/contacts/contacts/getAvatar.action?id=\" + id).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取流程图\n getFlowchart: function getFlowchart(appid, docId, stateId, randomNumber, _ref129) {\n var onSucess = _ref129.onSucess,\n onError = _ref129.onError;\n instance.get(contextPath + \"/runtime/\" + appid + \"/documents/\" + docId + \"/workflows/\" + stateId + \"/flowchart?_=\" + randomNumber).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //更新缓存中子表数据(子表为网格视图时使用)\n ///runtime/{applicationId}/documents/{id}/childs\n setGridView: function setGridView(appid, viewId, parentId, jsonData, _ref130) {\n var onSucess = _ref130.onSucess,\n onError = _ref130.onError;\n instance.post(contextPath + \"/runtime/\" + appid + \"/views/\" + viewId + \"/documents/\" + parentId + \"/childs\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getbillflow: function getbillflow(data, _ref131) {\n var onSucess = _ref131.onSucess,\n onError = _ref131.onError;\n axios({\n headers: {\n \"Content-Type\": \"multipart/form-data;charset=UTF-8\"\n },\n url: contextPath + \"/\" + data,\n responseType: \"blob\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/portal/good/html/viewer.html?path=/uploads/doc/202003/9cf15bb6-4aa4-4df5-9709-719fc25fad50.doc&fileName=9cf15bb6-4aa4-4df5-9709-719fc25fad50.doc&name=9cf15bb6-4aa4-4df5-9709-719fc25fad50.doc&openWaterMark=false&waterMark=undefined&t=1564481981092\n getWordEditor: function getWordEditor(path, fileName, name, openWaterMark, waterMark, t, _ref132) {\n var onSucess = _ref132.onSucess,\n onError = _ref132.onError;\n instance.get(contextPath + \"/portal/good/html/viewer.html?path=\" + path + \"&fileName=\" + fileName + \"&name=\" + name + \"&openWaterMark=\" + openWaterMark + \"&waterMark=\" + waterMark + \"&t=\" + t).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //表单控件校验\n ///runtime/{applicationId}/documents/validate\n formValidation: function formValidation(appId, docJson, _ref133) {\n var onSucess = _ref133.onSucess,\n onError = _ref133.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/documents/validate\", docJson).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取常用意见\n ///runtime/users/{userId}/commonOpinions\n getCommonOpinions: function getCommonOpinions(userId, _ref134) {\n var onSucess = _ref134.onSucess,\n onError = _ref134.onError;\n instance.get(contextPath + \"/runtime/users/\" + userId + \"/commonOpinions\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //提交面板的执行前\n submitRunBeforeActionScript: function submitRunBeforeActionScript(applicationId, id, data, docId, viewId, formId, _templateForm, parentId, isRelate, _flowType, _ref135) {\n var onSucess = _ref135.onSucess,\n onError = _ref135.onError;\n instance.post(contextPath + \"/runtime/\" + applicationId + \"/activities/\" + id + \"/runbeforeactionscript?docId=\" + docId + \"&viewId=\" + viewId + \"&formId=\" + formId + \"&_templateForm=\" + _templateForm + \"&parentId=\" + parentId + \"&isRelate=\" + isRelate + \"&_flowType=\" + _flowType, data).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //提交面板的执行后\n submitRrunAfterActionScript: function submitRrunAfterActionScript(applicationId, id, params, docId, viewId, formId, _templateForm, parentId, isRelate, _flowType, _ref136) {\n var onSucess = _ref136.onSucess,\n onError = _ref136.onError;\n instance.post(contextPath + \"/runtime/\" + applicationId + \"/activities/\" + id + \"/runafteractionscript?docId=\" + docId + \"&viewId=\" + viewId + \"&formId=\" + formId + \"&_templateForm=\" + _templateForm + \"&parentId=\" + parentId + \"&isRelate=\" + isRelate + \"&_flowType=\" + _flowType, params).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/Consuming\n //仪表分析\n //提交面板的执行后\n getConsuming: function getConsuming(appId, jsonData, _ref137) {\n var onSucess = _ref137.onSucess,\n onError = _ref137.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/Consuming\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //代理设置接口\n //http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/usersetups/proxys?flowName=&pageNo=1&linesPerPage=10&_=1587881794427\n getproxys: function getproxys(appId, jsonData, _ref138) {\n var onSucess = _ref138.onSucess,\n onError = _ref138.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/usersetups/proxys\", {\n params: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //添加代理保存\n //http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/usersetups/proxys/save?id=\n saveProxys: function saveProxys(appId, jsonData, id, _ref139) {\n var onSucess = _ref139.onSucess,\n onError = _ref139.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/usersetups/proxys/save?id=\" + id, jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取代理流程\n //http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/usersetups/proxys/flows?_=1587889209026\n getProxysFlow: function getProxysFlow(appId, _ref140) {\n var onSucess = _ref140.onSucess,\n onError = _ref140.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/usersetups/proxys/flows\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //编辑代理流程\n //http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/usersetups/proxys/o5g2bRmv0c0B1oVuCpM?_=1587953401510\n editProxysFlow: function editProxysFlow(appId, id, _ref141) {\n var onSucess = _ref141.onSucess,\n onError = _ref141.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/usersetups/proxys/\" + id).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n // //删除代理流程\n // http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/usersetups/proxys\n deleteProxysFlow: function deleteProxysFlow(appId, arrIds, _ref142) {\n var onSucess = _ref142.onSucess,\n onError = _ref142.onError;\n instance.delete(contextPath + \"/runtime/\" + appId + \"/usersetups/proxys\", {\n data: arrIds\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取首页个人设置通讯录分组\n getContactGroup: function getContactGroup(_ref143) {\n var onSucess = _ref143.onSucess,\n onError = _ref143.onError;\n instance.get(contextPath + \"/runtime/users/selectbox/contacts/group\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //保存首页通讯录新建的分组\n //http://localhost:8081/obpm/runtime/users/contacts/groups?name=%E9%A1%B6%E9%A1%B6%E9%A1%B6%E9%A1%B6\n saveContactGroup: function saveContactGroup(name, _ref144) {\n var onSucess = _ref144.onSucess,\n onError = _ref144.onError;\n instance.post(contextPath + \"/runtime/users/contacts/groups?name=\" + name, name).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //编辑首页通讯录新建的分组\n //http://localhost:8081/obpm/runtime/users/contacts/groups/__0nwxZFYKqQormss1ZBI?name=%E5%8F%91%E5%B9%BF%E5%91%8A\n editContactGroup: function editContactGroup(id, name, _ref145) {\n var onSucess = _ref145.onSucess,\n onError = _ref145.onError;\n instance.post(contextPath + \"/runtime/users/contacts/groups/\" + id + \"?name=\" + name, name).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //删除首页通讯录新建的分组\n //http://localhost:8081/obpm/runtime/users/contacts/groups/__0nwxZFYKqQormss1ZBI\n deleteGroup: function deleteGroup(id, _ref146) {\n var onSucess = _ref146.onSucess,\n onError = _ref146.onError;\n instance.delete(contextPath + \"/runtime/users/contacts/groups/\" + id).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //添加新的数据到首页通讯录分组\n //http://localhost:8081/obpm\n addDataToGroup: function addDataToGroup(id, jsonData, _ref147) {\n var onSucess = _ref147.onSucess,\n onError = _ref147.onError;\n instance.post(contextPath + \"/runtime/users/contacts/groups/\" + id + \"/users\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //首页通讯录删除分组里的用户数据\n //http://localhost:8081/obpm\n deleteGroupUserList: function deleteGroupUserList(id, jsonData, _ref148) {\n var onSucess = _ref148.onSucess,\n onError = _ref148.onError;\n instance.delete(contextPath + \"/runtime/users/contacts/groups/\" + id + \"/users\", {\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //全部部门的列表\n // http://localhost:8081/obpm\n getAllDeptList: function getAllDeptList(_ref149) {\n var onSucess = _ref149.onSucess,\n onError = _ref149.onError;\n instance.get(contextPath + \"/runtime/department/list\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获得公告\n //http://localhost:8081/obpm/message/messages/announcement?_=1588829750160\n getAnnouncement: function getAnnouncement(_ref150) {\n var onSucess = _ref150.onSucess,\n onError = _ref150.onError;\n instance.get(messagePath + \"/message/messages/announcement\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //发公告\n //http://localhost:8081/obpm/message/messages/announcement\n makeAnnouncement: function makeAnnouncement(jsonData, _ref151) {\n var onSucess = _ref151.onSucess,\n onError = _ref151.onError;\n axios({\n headers: {\n \"Content-Type\": \"application/x-www-form-urlencoded; charset=UTF-8\"\n },\n url: messagePath + \"/message/messages/announcement\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //发布公告\n //http://localhost:8081/obpm/message/messages\n annouce: function annouce(jsonData, _ref152) {\n var onSucess = _ref152.onSucess,\n onError = _ref152.onError;\n axios({\n headers: {\n \"Content-Type\": \"application/x-www-form-urlencoded; charset=UTF-8\"\n },\n url: messagePath + \"/message/messages\",\n //contextPath + \"/message/messages\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //信息管理-企业动态公告列表\n //http://localhost:8081/obpm/message/messages/list?_=1588230210399\n getMessagesList: function getMessagesList(_ref153) {\n var onSucess = _ref153.onSucess,\n onError = _ref153.onError;\n instance.get(messagePath + \"/message/messages/list\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取评论回复\n //http://localhost:8081/obpm/message/comment?messageId=__hgqhG93gkiBTIaqcNND&_=1588234679724\n getMessagesReplay: function getMessagesReplay(id, _ref154) {\n var onSucess = _ref154.onSucess,\n onError = _ref154.onError;\n instance.get(messagePath + \"/message/comment?messageId=\" + id).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //评论回复\n doComment: function doComment(jsonData, _ref155) {\n var onSucess = _ref155.onSucess,\n onError = _ref155.onError;\n axios({\n headers: {\n \"Content-Type\": \"application/x-www-form-urlencoded; charset=UTF-8\"\n },\n url: messagePath + \"/message/comment\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //消息管理-工作事项-流程\n //http://localhost:8081/obpm/message/notice?readStatus=&type=0&_currpage=1&_rowcount=30\n getNotice: function getNotice(data, _ref156) {\n var onSucess = _ref156.onSucess,\n onError = _ref156.onError;\n instance.get(messagePath + \"/message/notice?readStatus=\".concat(data.readStatus, \"&type=\").concat(data.type, \"&_currpage=\").concat(data._currpage, \"&_rowcount=\").concat(data._rowcount)).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //删除工作事项\n //http://localhost:8081/obpm/message/notice?noticeId=__yP7DDIDfmi097yyUGKc\n deleteNotice: function deleteNotice(noticeId, _ref157) {\n var onSucess = _ref157.onSucess,\n onError = _ref157.onError;\n instance.delete(messagePath + \"/message/notice?noticeId=\" + noticeId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取我回复的\n //http://localhost:8081/obpm/message/comment/my/reply?_currpage=1&_rowcount=30&_=1588819405740\n getMyreply: function getMyreply(_currpage, _rowcount, _ref158) {\n var onSucess = _ref158.onSucess,\n onError = _ref158.onError;\n instance.get(messagePath + \"/message/comment/my/reply?_currpage=\" + _currpage + \"&_rowcount=\" + _rowcount).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取回复我的\n //http://localhost:8081/obpm/message/comment/my/receive?_currpage=1&_rowcount=30&_=1588819405742\n getReceive: function getReceive(_currpage, _rowcount, _ref159) {\n var onSucess = _ref159.onSucess,\n onError = _ref159.onError;\n instance.get(messagePath + \"/message/comment/my/receive?_currpage=\" + _currpage + \"&_rowcount=\" + _rowcount).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //全部标记已读\n //http://localhost:8081/obpm/message/notice/allRead\n setAllRead: function setAllRead(_ref160) {\n var onSucess = _ref160.onSucess,\n onError = _ref160.onError;\n instance.put(messagePath + \"/message/notice/allRead\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n // http://localhost:8081/obpm/message/notice/read?noticeId=__rGJrdh5McwSl0y7ovLw\n noticeRead: function noticeRead(noticeId, _ref161) {\n var onSucess = _ref161.onSucess,\n onError = _ref161.onError;\n instance.put(messagePath + \"/message/notice/read?noticeId=\" + noticeId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/message/comment?commentId=__8X34cOJ3BAu5DcufrbZ&messageId=__pXF1751980bwn9b9nbn\n deleteReply: function deleteReply(commentId, messageId, _ref162) {\n var onSucess = _ref162.onSucess,\n onError = _ref162.onError;\n instance.delete(messagePath + \"/message/comment?commentId=\" + commentId + \"&messageId=\" + messageId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/message/messages?messageId=__MMHdmCOJtczmHsaEHmg\n deleteMessage: function deleteMessage(messageId, _ref163) {\n var onSucess = _ref163.onSucess,\n onError = _ref163.onError;\n instance.delete(messagePath + \"/message/messages?messageId=\" + messageId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n lockAnnouncementInfo: function lockAnnouncementInfo(messageId, _ref164) {\n var onSucess = _ref164.onSucess,\n onError = _ref164.onError;\n instance.get(messagePath + \"/message/messages?messageId=\" + messageId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //修改自己的登录密码\n //http://localhost:8081/obpm/runtime/usersetups/password\n updatePassword: function updatePassword(jsonData, _ref165) {\n var onSucess = _ref165.onSucess,\n onError = _ref165.onError;\n instance.post(contextPathV3 + \"/identity/change-password\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/message/notification?_=1588921548331\n getNotification: function getNotification(_ref166) {\n var onSucess = _ref166.onSucess,\n onError = _ref166.onError;\n //使用instance写会继承500的拦截器,频繁报错\n axios({\n url: messagePath + \"/message/notification\",\n method: \"get\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/message/notification/login?_=1594020502704\n getNotificationNum: function getNotificationNum(_ref167) {\n var onSucess = _ref167.onSucess,\n onError = _ref167.onError;\n instance.get(messagePath + \"/message/notification/login\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n // http://localhost:8081/obpm/message/notification/count?_=1591251768378\n getMessage: function getMessage(radomNum, _ref168) {\n var onSucess = _ref168.onSucess,\n onError = _ref168.onError;\n instance.get(messagePath + \"/message/notification/count?_=\" + radomNum).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getChart: function getChart(id, _ref169) {\n var onSucess = _ref169.onSucess,\n onError = _ref169.onError;\n instance.post(contextPath + \"/runtime/chart/\" + id).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getChartData: function getChartData(id, data, _ref170) {\n var onSucess = _ref170.onSucess,\n onError = _ref170.onError;\n instance.post(contextPath + \"/runtime/chart/\" + id, data).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getWidgetsIscript: function getWidgetsIscript(id, _ref171) {\n var onSucess = _ref171.onSucess,\n onError = _ref171.onError;\n instance.get(contextPath + \"/runtime/widgets/\" + id).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getCustomreports: function getCustomreports(id, params, _ref172) {\n var onSucess = _ref172.onSucess,\n onError = _ref172.onError;\n var url = contextPath + \"/runtime/report/showjrxml/\" + id;\n var urlParams = \"\";\n if (params instanceof Object) {\n var ur = \"\";\n for (var key in params) {\n ur += \"&\" + key + \"=\" + params[key];\n }\n urlParams = \"?\" + ur;\n url += urlParams;\n }\n instance.post(url, params).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getCustomreportsHtml: function getCustomreportsHtml(url, _ref173) {\n var onSucess = _ref173.onSucess,\n onError = _ref173.onError;\n instance.post(obpmFilePath + url).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getPrintCustomreports: function getPrintCustomreports(id, docid, _ref174) {\n var onSucess = _ref174.onSucess,\n onError = _ref174.onError;\n instance.post(contextPath + \"/runtime/report/showjrxml/\" + id + \"?docid=\" + docid).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n searchReports: function searchReports(id, docid, jsonData, _ref175) {\n var onSucess = _ref175.onSucess,\n onError = _ref175.onError;\n instance.post(contextPath + \"/runtime/report/showjrxml/\" + id + \"?docid=\" + docid, jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //导出报表\n //http://localhost:8081/obpm/runtime/report/exportexcel/__9M30I7ZscGZKSI1qIR2?\n exportReportExcel: function exportReportExcel(id, params, _ref176) {\n var onSucess = _ref176.onSucess,\n onError = _ref176.onError;\n var url = contextPath + \"/runtime/report/exportexcel/\" + id + \"?\";\n if (params) {\n url += params;\n }\n axios({\n headers: {\n \"Content-Type\": \"application/json\"\n },\n url: url,\n method: \"POST\",\n responseType: \"blob\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/runtime/report/exportpdf/__mXw1keqArTCt2UrAoie?docid=undefined\n exportReportPdf: function exportReportPdf(id, params, _ref177) {\n var onSucess = _ref177.onSucess,\n onError = _ref177.onError;\n var url = contextPath + \"/runtime/report/exportpdf/\" + id + \"?\";\n if (params) {\n url += params;\n }\n axios({\n headers: {\n \"Content-Type\": \"application/json\"\n },\n url: url,\n method: \"POST\",\n responseType: \"blob\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/views/__jNTf9yWQNpnWT2CLOj6/columns/__lBZrqQoxAY6lwK2gTCX/runActionScript\n runActionScript: function runActionScript(appId, parentView, id, jsonData, _ref178) {\n var onSucess = _ref178.onSucess,\n onError = _ref178.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/views/\" + parentView + \"/columns/\" + id + \"/runActionScript\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //移除在线用户\n removeOnlineUser: function removeOnlineUser(_ref179) {\n var onSucess = _ref179.onSucess,\n onError = _ref179.onError;\n instance.delete(contextPath + \"/runtime/removeOnlineUser\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //流程提交时获取指定显示的用户\n //http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/documents/__xKeJfciUqTLp7o96vVY/workflows/fW1801qkQ6PsAcfxuI2/selectApprovers?nodeId=1566350840526&type=2&selectId=fBUXdkAlWTdGXqOq4cI\n getSelectApprovers: function getSelectApprovers(appId, docId, flowId, nodeId, type, selectId, pageNum, pageSize, _ref180) {\n var onSucess = _ref180.onSucess,\n onError = _ref180.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/\" + flowId + \"/selectApprovers?nodeId=\" + nodeId + \"&type=\" + type + \"&selectId=\" + selectId + \"&pageNum=\" + pageNum + \"&pageSize=\" + pageSize).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n selectCirculators: function selectCirculators(appId, docId, flowId, nodeId, type, selectId, pageNum, pageSize, _ref181) {\n var onSucess = _ref181.onSucess,\n onError = _ref181.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/workflows/\" + flowId + \"/selectCirculators?nodeId=\" + nodeId + \"&type=\" + type + \"&selectId=\" + selectId + \"&pageNum=\" + pageNum + \"&pageSize=\" + pageSize).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/runtime/flowcenters/navs/carboncopy?applicationId=&isread=true&_=1594186597018\n navCarboncopy: function navCarboncopy(jsonData, _ref182) {\n var onSucess = _ref182.onSucess,\n onError = _ref182.onError;\n instance.get(contextPath + \"/runtime/flowcenters/navs/carboncopy\", {\n params: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/flowcenters/carboncopy?title=&flowId=&initiatorId=&isRead=true&isMyWorkFlow=false&appId=sOZu9kthmxyP8qQfq0e&_=1594187825052\n getCarboncopyList: function getCarboncopyList(appId, jsonData, _ref183) {\n var onSucess = _ref183.onSucess,\n onError = _ref183.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/flowcenters/carboncopy\", {\n params: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/kms/kms/files/data?fileName=&orderByfield=CREATE_DATE&orderMode=desc&pageNo=1&linesPerPage=10&_=1594349604925\n getKmsFiles: function getKmsFiles(jsonData, _ref184) {\n var onSucess = _ref184.onSucess,\n onError = _ref184.onError;\n var url = \"\";\n if (statiContextPath) {\n url = \"kms/api/kms/files/data\";\n } else {\n url = kmsPath + \"kms/kms/files/data\";\n }\n instance.get(url, {\n params: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/documents/__KAgeEc3BJ3Bsje9ow4n/formhelper/inputlog?fieldName=%E6%96%87%E6%9C%AC%E6%A1%86&_=1594884665008\n getOperationLogs: function getOperationLogs(appId, docId, jsonData, _ref185) {\n var onSucess = _ref185.onSucess,\n onError = _ref185.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/formhelper/inputlog\", {\n params: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //获取自由流程可回退用户\n //runtime/{applicationId}/workflows/{instanceId}/hisActorsFreeFlow\n getHisActorsFreeFlow: function getHisActorsFreeFlow(appId, instanceId, _ref186) {\n var onSucess = _ref186.onSucess,\n onError = _ref186.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/workflows/\" + instanceId + \"/hisActorsFreeFlow\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n getAxecuteAddress: function getAxecuteAddress(appId, actId, jsonData, _ref187) {\n var onSucess = _ref187.onSucess,\n onError = _ref187.onError;\n var isRelate = jsonData.isRelate ? jsonData.isRelate : \"\";\n var parentId = jsonData.parentId ? jsonData.parentId : \"\";\n instance.put(contextPath + \"/runtime/\" + appId + \"/activities/\" + actId + \"/executeAddress?isRelate=\" + isRelate + \"&parentId=\" + parentId, jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n //http://localhost:8081/obpm/runtime/sOZu9kthmxyP8qQfq0e/documents/batch\n //保存网格视图\n saveGridview: function saveGridview(appId, jsonData, _ref188) {\n var onSucess = _ref188.onSucess,\n onError = _ref188.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/documents/batch\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n downloadWaterMarkFile: function downloadWaterMarkFile(waterMarkSetting, name, path, _ref189) {\n var onSucess = _ref189.onSucess,\n onError = _ref189.onError;\n var url;\n if (statiContextPath) {\n url = kmsPath + \"kms/api/portal/dynaform/document/previewWaterMark?waterMarkSetting=\" + encodeURI(waterMarkSetting);\n } else {\n url = contextPath + \"/portal/dynaform/document/previewWaterMark?waterMarkSetting=\" + encodeURI(waterMarkSetting);\n }\n instance.get(url).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n },\n importFile: function importFile(form, nullpath, fileSaveMode, fieldid, allowedTypes, appId, _ref190) {\n var onSucess = _ref190.onSucess,\n onError = _ref190.onError;\n axios({\n headers: {\n \"content-type\": \"multipart/form-data;boundary=\" + Math.random()\n },\n data: form,\n url: contextPath + \"/portal/FrontFileAndImageUploadServlet?data=\" + \"nullpath:\" + nullpath + \",fileSaveMode:\" + fileSaveMode + \",fieldid:\" + fieldid + \",allowedTypes:\" + allowedTypes + \",applicationid:\" + appId,\n method: \"post\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n }\n}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_organizationsIDApi$j, \"kmMenuShow\", function kmMenuShow(appId, _ref191) {\n var onSucess = _ref191.onSucess,\n onError = _ref191.onError;\n instance.get(contextPath + \"/runtime/domains/realmAndTeam\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"reportSearchformtemplate\", function reportSearchformtemplate(appId, id, _ref192) {\n var onSucess = _ref192.onSucess,\n onError = _ref192.onError;\n instance.get(contextPath + \"/runtime/report/\" + id + \"/searchformtemplate/\" + appId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"chartSearchformtemplate\", function chartSearchformtemplate(appId, id, _ref193) {\n var onSucess = _ref193.onSucess,\n onError = _ref193.onError;\n instance.get(contextPath + \"/runtime/chart/\" + id + \"/searchformtemplate/\" + appId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"beforescript\", function beforescript(appId, parentView, id, jsonData, _ref194) {\n var onSucess = _ref194.onSucess,\n onError = _ref194.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/views/\" + parentView + \"/columns/\" + id + \"/beforescript\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"deleteKmsFile\", function deleteKmsFile(appId, formId, docId, path, _ref195) {\n var onSucess = _ref195.onSucess,\n onError = _ref195.onError;\n instance.delete(contextPath + \"/runtime/files/delete?applicationId=\" + appId + \"&formId=\" + formId + \"&docId=\" + docId + \"&path=\" + path).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"messageUploadFile\", function messageUploadFile(form, _ref196) {\n var onSucess = _ref196.onSucess,\n onError = _ref196.onError;\n axios({\n headers: {\n \"content-type\": \"multipart/form-data;boundary=\" + Math.random()\n },\n data: form,\n url: messagePath + \"/message/servlet/upload\",\n method: \"post\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"markAsRead\", function markAsRead(_ref197) {\n var onSucess = _ref197.onSucess,\n onError = _ref197.onError;\n instance.get(contextPath + \"/runtime/flowcenters/pendings/allRead\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getSearchProxysFlows\", function getSearchProxysFlows(appId, subject, _ref198) {\n var onSucess = _ref198.onSucess,\n onError = _ref198.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/usersetups/proxys/flows?subject=\" + subject).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getHTMLsignature\", function getHTMLsignature(appId, docId, _ref199) {\n var onSucess = _ref199.onSucess,\n onError = _ref199.onError;\n axios({\n url: contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/htmlsignature\",\n method: \"get\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getPDFsignature\", function getPDFsignature(appId, docId, jsonData, _ref200) {\n var onSucess = _ref200.onSucess,\n onError = _ref200.onError;\n axios({\n url: contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/htmlsignature\",\n method: \"put\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_organizationsIDApi$j, \"getPdfsignatures\", function getPdfsignatures(appId, docJson, _ref201) {\n var onSucess = _ref201.onSucess,\n onError = _ref201.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/documents/\" + \"pdfsignatures\", docJson).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getCommentList\", function getCommentList(appId, docId, _ref202) {\n var onSucess = _ref202.onSucess,\n onError = _ref202.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/flags/\" + docId + \"/comments\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getReplyList\", function getReplyList(appId, commentId, _ref203) {\n var onSucess = _ref203.onSucess,\n onError = _ref203.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/comments/\" + commentId + \"/answers\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"publishComment\", function publishComment(appId, docId, jsonData, _ref204) {\n var onSucess = _ref204.onSucess,\n onError = _ref204.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/flags/\" + docId + \"/comments\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"setLike\", function setLike(appId, commentId, _ref205) {\n var onSucess = _ref205.onSucess,\n onError = _ref205.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/comments/\" + commentId + \"/like\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"setUnlike\", function setUnlike(appId, commentId, _ref206) {\n var onSucess = _ref206.onSucess,\n onError = _ref206.onError;\n instance.put(contextPath + \"/runtime/\" + appId + \"/comments/\" + commentId + \"/unlike\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getLikesCount\", function getLikesCount(appId, docId, _ref207) {\n var onSucess = _ref207.onSucess,\n onError = _ref207.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/flags/\" + docId + \"/comments/count\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getUserAvatar\", function getUserAvatar(id, _ref208) {\n var onSucess = _ref208.onSucess,\n onError = _ref208.onError;\n instance.get(contextPath + \"/runtime/\" + \"/users/\" + id + \"/avatar\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getSigns\", function getSigns(_ref209) {\n var onSucess = _ref209.onSucess,\n onError = _ref209.onError;\n instance.get(contextPath + \"/runtime/\" + \"/users/signs\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"deleteSigns\", function deleteSigns(idsArray, _ref210) {\n var onSucess = _ref210.onSucess,\n onError = _ref210.onError;\n instance.delete(contextPath + \"/runtime/\" + \"/users/signs\", {\n data: idsArray\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_organizationsIDApi$j, \"setCheckin\", function setCheckin(appId, widgetId, jsonData, _ref211) {\n var onSucess = _ref211.onSucess,\n onError = _ref211.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/widgets/\" + widgetId + \"/checkin\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getCheckin\", function getCheckin(appId, widgetId, _ref212) {\n var onSucess = _ref212.onSucess,\n onError = _ref212.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/widgets/\" + widgetId + \"/checkin\").then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"signInStatistics\", function signInStatistics(appId, widgetId, countType, _ref213) {\n var onSucess = _ref213.onSucess,\n onError = _ref213.onError;\n instance.get(contextPath + \"/runtime/\" + appId + \"/widgets/\" + widgetId + \"/checkins?countType=\" + countType).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"signatureUploadFile\", function signatureUploadFile(form, uuid, _ref214) {\n var onSucess = _ref214.onSucess,\n onError = _ref214.onError;\n axios({\n headers: {\n \"content-type\": \"multipart/form-data;boundary=\" + Math.random()\n },\n data: form,\n url: contextPath + \"/portal/share/component/sign/upload?uuid=\" + uuid,\n method: \"post\"\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"saveSignature\", function saveSignature(jsonData, _ref215) {\n var onSucess = _ref215.onSucess,\n onError = _ref215.onError;\n instance.post(contextPath + \"/runtime/users/signs\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"signConfirmPassword\", function signConfirmPassword(id, password, _ref216) {\n var onSucess = _ref216.onSucess,\n onError = _ref216.onError;\n instance.get(contextPath + \"/runtime/users/signs/\" + id + \"?password=\" + password).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"confirmSignature\", function confirmSignature(appId, docId, jsonData, _ref217) {\n var onSucess = _ref217.onSucess,\n onError = _ref217.onError;\n instance.post(contextPath + \"/runtime/\" + appId + \"/documents/\" + docId + \"/activities/sign\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"filterViewColumn\", function filterViewColumn(appId, viewId, fieldName, params, data, _ref218) {\n var onSucess = _ref218.onSucess,\n onError = _ref218.onError;\n var urlParams = \"\";\n var parentId = params.parentId ? params.parentId : \"\";\n var sortCol = params.sortCol ? params.sortCol : \"\";\n var sortStatus = params.sortStatus ? params.sortStatus : \"\";\n var currpage = params.currpage ? params.currpage : \"1\";\n var lines = params.lines ? params.lines : 30;\n var treedocid = params.treedocid ? params.treedocid : \"\";\n var parentNodeId = params.parentNodeId ? params.parentNodeId : \"\";\n var docid = params.docid ? params.docid : \"\";\n var fieldid = params.fieldid ? params.fieldid : \"\";\n var isRelate = params.isRelate ? params.isRelate : \"\";\n var startDate = params.startDate ? params.startDate : \"\";\n var endDate = params.endDate ? params.endDate : \"\";\n var exparams = params.exparams ? params.exparams : \"\";\n var parentParam = params.parentParam ? params.parentParam : \"\";\n urlParams += \"?parentId=\" + parentId + \"&sortCol=\" + sortCol + \"&sortStatus=\" + sortStatus + \"&_currpage=\" + currpage + \"&lines=\" + lines + \"&treedocid=\" + treedocid + \"&parentNodeId=\" + parentNodeId + \"&_docid=\" + docid + \"&_fieldid=\" + fieldid + \"&isRelate=\" + isRelate + \"&startDate=\" + startDate + \"&endDate=\" + endDate + \"&parentParam=\" + parentParam + \"&fieldName=\" + fieldName;\n if (data && exparams) {\n data = Object.assign(data, exparams);\n }\n var url = \"/runtime/\" + appId + \"/views/\" + viewId + \"/filterColumns\" + urlParams;\n // let url = \"/runtime/\" + appId + \"/views/\" + viewId + \"/filterColumns?fieldName=\" + fieldName\n instance.post(contextPath + url, data ? data : {}).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getApplicationsAll\", function getApplicationsAll(jsonData, _ref219) {\n var onSucess = _ref219.onSucess,\n onError = _ref219.onError;\n instance.post(contextPath + \"/runtime/__gZxrYDgj8OpfztxSuUg/views/__9cPXd26aFuwkRx4fJyA/documents\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getAnnouncementPage\", function getAnnouncementPage(currpage, pagesize, _ref220) {\n var onSucess = _ref220.onSucess,\n onError = _ref220.onError;\n instance.get(messagePath + \"/message/messages/announcement?_currpage=\".concat(currpage, \"&_rowcount=\").concat(pagesize)).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_organizationsIDApi$j, \"bcxplatAdlistApi\", function bcxplatAdlistApi(jsonData, _ref221) {\n var onSucess = _ref221.onSucess,\n onError = _ref221.onError;\n instance.post(contextPath + \"/runtime/__gZxrYDgj8OpfztxSuUg/views/__MMp6NPF0QpNr902YkAo/documents\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"bcxplatAdlistDetailApi\", function bcxplatAdlistDetailApi(jsonData, _ref222) {\n var onSucess = _ref222.onSucess,\n onError = _ref222.onError;\n instance.post(contextPath + \"/runtime/__gZxrYDgj8OpfztxSuUg/views/__EotKbTPxo52dK1qBA9o/documents\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getMarketAppcateliApi\", function getMarketAppcateliApi(jsonData, _ref223) {\n var onSucess = _ref223.onSucess,\n onError = _ref223.onError;\n instance.post(contextPath + \"/runtime/__gZxrYDgj8OpfztxSuUg/views/__5GF5cpq6ixD5ubIO577/documents\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getMarketappcatelistApi\", function getMarketappcatelistApi(jsonData, _ref224) {\n var onSucess = _ref224.onSucess,\n onError = _ref224.onError;\n instance.post(contextPath + \"/runtime/__gZxrYDgj8OpfztxSuUg/views/__fPhGJZPjOUtWzsCfoui/documents\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getMarketApplidetailApi\", function getMarketApplidetailApi(jsonData, _ref225) {\n var onSucess = _ref225.onSucess,\n onError = _ref225.onError;\n instance.post(contextPath + \"/runtime/__gZxrYDgj8OpfztxSuUg/views/__ST1ZSKfWZnc738RtkrC/documents\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getWebSiteApi\", function getWebSiteApi(jsonData, _ref226) {\n var onSucess = _ref226.onSucess,\n onError = _ref226.onError;\n instance.post(contextPath + \"/runtime/__gZxrYDgj8OpfztxSuUg/views/__o855hDAixL9yhESS8yJ/documents\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"AppMarketBannerlistApi\", function AppMarketBannerlistApi(jsonData, _ref227) {\n var onSucess = _ref227.onSucess,\n onError = _ref227.onError;\n instance.post(contextPath + \"/runtime/__gZxrYDgj8OpfztxSuUg/views/__TJX7JPhBSwACVZKNmp4/documents\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"AppMarketRecommlistApi\", function AppMarketRecommlistApi(jsonData, _ref228) {\n var onSucess = _ref228.onSucess,\n onError = _ref228.onError;\n instance.post(contextPath + \"/runtime/__gZxrYDgj8OpfztxSuUg/views/__doNmasJ1TerCkYO8mC0/documents\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"appMarketSevicelistApi\", function appMarketSevicelistApi(jsonData, _ref229) {\n var onSucess = _ref229.onSucess,\n onError = _ref229.onError;\n instance.post(contextPath + \"/runtime/__gZxrYDgj8OpfztxSuUg/views/__PzgIgQBHhUMjd4lL7k8/documents\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"appMarketSeviceDetailApi\", function appMarketSeviceDetailApi(jsonData, _ref230) {\n var onSucess = _ref230.onSucess,\n onError = _ref230.onError;\n instance.post(contextPath + \"/runtime/__gZxrYDgj8OpfztxSuUg/views/__8iueONXNlCvOusk5vVB/documents\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_organizationsIDApi$j, \"appMarketSeviceApplyEmptyApi\", function appMarketSeviceApplyEmptyApi(jsonData, _ref231) {\n var onSucess = _ref231.onSucess,\n onError = _ref231.onError;\n instance.get(contextPath + \"/runtime/__ekbsagrjF60f5gJnBQQ/forms/__Q2LnA902s6wQspGeR5a/empty\", jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"appMarketSeviceApplylistApi\", function appMarketSeviceApplylistApi(jsonData, _ref232) {\n var onSucess = _ref232.onSucess,\n onError = _ref232.onError;\n instance.put(contextPath + \"/runtime/__ekbsagrjF60f5gJnBQQ/documents/\".concat(jsonData.randomIdc), jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"appMarketSeviceApplylistNewApi\", function appMarketSeviceApplylistNewApi(jsonData, _ref233) {\n var onSucess = _ref233.onSucess,\n onError = _ref233.onError;\n instance({\n url: \"/obpm/magic-api/addorupdate/servicepackage\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"v3employeesInfoApi\", function v3employeesInfoApi(jsonData, _ref234) {\n var onSucess = _ref234.onSucess,\n onError = _ref234.onError;\n instance.get(contextPathV3 + \"/tenant/organizations/\".concat(jsonData.organizationId, \"/employees/\").concat(jsonData.id)).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"v3employeeTableListApi\", function v3employeeTableListApi(jsonData, obj2, _ref235) {\n var onSucess = _ref235.onSucess,\n onError = _ref235.onError;\n instance.post(contextPathV3 + \"/tenant/organizations/\".concat(obj2.domainId, \"/employees/search\"), jsonData).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"v3commonFileUploadApi\", function v3commonFileUploadApi(jsonData, _ref236) {\n var onSucess = _ref236.onSucess,\n onError = _ref236.onError;\n instance({\n url: contextPathV3 + \"/shared/common/resources\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"v3CalendarOkApi\", function v3CalendarOkApi(jsonData, _ref237) {\n var onSucess = _ref237.onSucess,\n onError = _ref237.onError;\n instance({\n url: \"/obpm/magic-api/schedule/form/save\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"v3CalendarOkUpdateApi\", function v3CalendarOkUpdateApi(jsonData, _ref238) {\n var onSucess = _ref238.onSucess,\n onError = _ref238.onError;\n instance({\n url: \"/obpm/magic-api/schedule/form/update\",\n method: \"put\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"v3searchCalendarListApi\", function v3searchCalendarListApi(jsonData, _ref239) {\n var onSucess = _ref239.onSucess,\n onError = _ref239.onError;\n instance({\n url: \"/obpm/magic-api/schedule/calendar/mySchedule\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"v3CanlendarFinishStatusApi\", function v3CanlendarFinishStatusApi(jsonData, _ref240) {\n var onSucess = _ref240.onSucess,\n onError = _ref240.onError;\n instance({\n url: \"/obpm/magic-api/schedule/finish\",\n method: \"put\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_organizationsIDApi$j, \"v3CanlendarDetailApi\", function v3CanlendarDetailApi(jsonData, _ref241) {\n var onSucess = _ref241.onSucess,\n onError = _ref241.onError;\n instance({\n url: \"/obpm/magic-api/schedule/scheduleDetails\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"v3CanlendarDelApi\", function v3CanlendarDelApi(jsonData, _ref242) {\n var onSucess = _ref242.onSucess,\n onError = _ref242.onError;\n instance({\n url: \"/obpm/magic-api/schedule/form/delete\",\n method: \"delete\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"v3CockPitListApi\", function v3CockPitListApi(jsonData, _ref243) {\n var onSucess = _ref243.onSucess,\n onError = _ref243.onError;\n instance({\n url: \"/obpm/magic-api/getdataboardcategory\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"v3CockPitChildId\", function v3CockPitChildId(jsonData, _ref244) {\n var onSucess = _ref244.onSucess,\n onError = _ref244.onError;\n instance({\n url: \"/obpm/magic-api/getdataboardbyid\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getEnterpriseUserinfo\", function getEnterpriseUserinfo(domainId, _ref245) {\n var onSucess = _ref245.onSucess,\n onError = _ref245.onError;\n instance.get(contextPathV3 + \"/tenant/organizations/\" + domainId).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"softwareApplication\", function softwareApplication(appId, _ref246) {\n var onSucess = _ref246.onSucess,\n onError = _ref246.onError;\n instance.get(\"/designer/api/designtime/applications/\".concat(appId)).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"gtlistApi\", function gtlistApi(jsonData, _ref247) {\n var onSucess = _ref247.onSucess,\n onError = _ref247.onError;\n instance(_defineProperty({\n url: \"/obpm/magic-api/gtzz/getbaseinfo\",\n method: \"post\",\n data: jsonData\n }, \"data\", data)).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"jdzhyjlistApi\", function jdzhyjlistApi(jsonData, _ref248) {\n var onSucess = _ref248.onSucess,\n onError = _ref248.onError;\n instance({\n url: \"/obpm/magic-api/jdzhyj/getbaseinfo\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"lhzbrblistApi\", function lhzbrblistApi(jsonData, _ref249) {\n var onSucess = _ref249.onSucess,\n onError = _ref249.onError;\n instance({\n url: \"/obpm/magic-api/gzrb/getWorkNote\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"xxhlistApi\", function xxhlistApi(jsonData, _ref250) {\n var onSucess = _ref250.onSucess,\n onError = _ref250.onError;\n instance({\n url: \"/obpm/magic-api/xxhhy/getbaseinfo\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_organizationsIDApi$j, \"ndgzydlistApi\", function ndgzydlistApi(jsonData, _ref251) {\n var onSucess = _ref251.onSucess,\n onError = _ref251.onError;\n instance({\n url: \"/obpm/magic-api/ndgzyd/getMainPoints\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"duty24listApi\", function duty24listApi(jsonData, _ref252) {\n var onSucess = _ref252.onSucess,\n onError = _ref252.onError;\n instance({\n url: \"/obpm/magic-api/724xszb/getbaseinfo\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"xxhzzrylistApi\", function xxhzzrylistApi(jsonData, _ref253) {\n var onSucess = _ref253.onSucess,\n onError = _ref253.onError;\n instance({\n url: \"/obpm/magic-api/xxhzzry/getPerson\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"xjrygllistApi\", function xjrygllistApi(jsonData, _ref254) {\n var onSucess = _ref254.onSucess,\n onError = _ref254.onError;\n instance({\n url: \"/obpm/magic-api/xjrygl/getConstruction\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"xtrcxclistApi\", function xtrcxclistApi(jsonData, _ref255) {\n var onSucess = _ref255.onSucess,\n onError = _ref255.onError;\n instance({\n url: \"/obpm/magic-api/xtrcxj/getInspection\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"xmqklistApi\", function xmqklistApi(jsonData, _ref256) {\n var onSucess = _ref256.onSucess,\n onError = _ref256.onError;\n instance({\n url: \"/obpm/magic-api/getReportData\",\n method: \"get\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"jtnetlistApi\", function jtnetlistApi(jsonData, _ref257) {\n var onSucess = _ref257.onSucess,\n onError = _ref257.onError;\n instance({\n url: \"/obpm/magic-api/rtmeetings/meetingArrangement/leadingGroupMeeting\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"xxhgzlistApi\", function xxhgzlistApi(jsonData, _ref258) {\n var onSucess = _ref258.onSucess,\n onError = _ref258.onError;\n instance({\n url: \"/obpm/magic-api/rtmeetings/meetingArrangement2/weeklyMeeting\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"waitTokenApi\", function waitTokenApi(jsonData, _ref259) {\n var onSucess = _ref259.onSucess,\n onError = _ref259.onError;\n instance({\n url: \"/seeyon/rest/token\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"waitlistApi\", function waitlistApi(jsonData, _ref260) {\n var onSucess = _ref260.onSucess,\n onError = _ref260.onError;\n instance({\n url: \"/seeyon/rest/processInfo/agenda/\".concat(jsonData.loginName, \"?token=\").concat(jsonData.token),\n method: \"get\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_organizationsIDApi$j, \"dzdbsxlistApi\", function dzdbsxlistApi(jsonData, _ref261) {\n var onSucess = _ref261.onSucess,\n onError = _ref261.onError;\n instance({\n url: \"/obpm/magic-api/xwgl/getvalue\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"newsCateApi\", function newsCateApi(jsonData, _ref262) {\n var onSucess = _ref262.onSucess,\n onError = _ref262.onError;\n instance({\n url: \"/obpm/magic-api/xwgl/getclassification\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"newslistApi\", function newslistApi(jsonData, _ref263) {\n var onSucess = _ref263.onSucess,\n onError = _ref263.onError;\n instance({\n url: \"/obpm/magic-api/xwgl/getsomeclassification\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"newsdetailliApi\", function newsdetailliApi(jsonData, _ref264) {\n var onSucess = _ref264.onSucess,\n onError = _ref264.onError;\n instance({\n url: \"/obpm/magic-api/xwgl/getarticle\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"newsdetailReadingApi\", function newsdetailReadingApi(jsonData, _ref265) {\n var onSucess = _ref265.onSucess,\n onError = _ref265.onError;\n instance({\n url: \"/obpm/magic-api/xwgl/insertreading\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"RtrolePermissiondisplay\", function RtrolePermissiondisplay(jsonData, _ref266) {\n var onSucess = _ref266.onSucess,\n onError = _ref266.onError;\n instance({\n url: \"/obpm/magic-api/workbench/rolePermission/pageDisplay\",\n method: \"get\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"workbenchProjectDataApi\", function workbenchProjectDataApi(jsonData, _ref267) {\n var onSucess = _ref267.onSucess,\n onError = _ref267.onError;\n instance({\n url: \"/obpm/magic-api/workbench/ProjectData\",\n method: \"get\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"workbenchDataEntryApi\", function workbenchDataEntryApi(jsonData, _ref268) {\n var onSucess = _ref268.onSucess,\n onError = _ref268.onError;\n instance({\n url: \"/obpm/magic-api/workbench/dataEntry\",\n method: \"get\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"workbenchfiveLibraryApi\", function workbenchfiveLibraryApi(jsonData, _ref269) {\n var onSucess = _ref269.onSucess,\n onError = _ref269.onError;\n instance({\n url: \"/obpm/magic-api/workbench/fiveLibrary\",\n method: \"get\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"groupSupervisionListApi\", function groupSupervisionListApi(jsonData, _ref270) {\n var onSucess = _ref270.onSucess,\n onError = _ref270.onError;\n instance({\n url: \"/obpm/magic-api/Matters_supervised/GroupSupervision\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_organizationsIDApi$j, \"performanceAppraisalListApi\", function performanceAppraisalListApi(jsonData, _ref271) {\n var onSucess = _ref271.onSucess,\n onError = _ref271.onError;\n instance({\n url: \"/obpm/magic-api/ndgzyd/AnnualHighlights\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"AnnualHighlightsListApi\", function AnnualHighlightsListApi(jsonData, _ref272) {\n var onSucess = _ref272.onSucess,\n onError = _ref272.onError;\n instance({\n url: \"/obpm/magic-api/jxkhzb/performanceAppraisal\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"inServiceListApi\", function inServiceListApi(jsonData, _ref273) {\n var onSucess = _ref273.onSucess,\n onError = _ref273.onError;\n instance({\n url: \"/obpm/magic-api/inService\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"questionListApi\", function questionListApi(jsonData, _ref274) {\n var onSucess = _ref274.onSucess,\n onError = _ref274.onError;\n instance({\n url: \"/obpm/magic-api/questions\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"WorkReportApi\", function WorkReportApi(jsonData, _ref275) {\n var onSucess = _ref275.onSucess,\n onError = _ref275.onError;\n instance({\n url: \"/obpm/magic-api/gzbg/WorkReport\",\n method: \"get\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"isSupervisedApi\", function isSupervisedApi(domainId, _ref276) {\n var onSucess = _ref276.onSucess,\n onError = _ref276.onError;\n instance({\n url: \"\".concat(contextPathV3, \"/tenant/organizations/\").concat(domainId, \"/info/complete\"),\n method: \"post\",\n data: {}\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"orgshoptoken\", function orgshoptoken(jsonData, _ref277) {\n var onSucess = _ref277.onSucess,\n onError = _ref277.onError;\n instance({\n url: \"/obpm/magic-api/org/shoptoken\",\n method: \"get\",\n data: {}\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"appLevelsListApi\", function appLevelsListApi(jsonData, _ref278) {\n var onSucess = _ref278.onSucess,\n onError = _ref278.onError;\n instance({\n url: \"/obpm/api/runtime/currentuser/rbac/apps?isMobile=false\",\n method: \"get\",\n data: {}\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getPointListApi\", function getPointListApi(jsonData, _ref279) {\n var onSucess = _ref279.onSucess,\n onError = _ref279.onError;\n instance({\n url: \"/obpm/magic-api/duty/task/path/point/list\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}), \"getRailListApi\", function getRailListApi(jsonData, _ref280) {\n var onSucess = _ref280.onSucess,\n onError = _ref280.onError;\n instance({\n url: \"/obpm/magic-api/duty/rank/police/incidents\",\n method: \"post\",\n data: jsonData\n }).then(function (response) {\n if (onSucess) onSucess(response);\n }).catch(function (error) {\n if (onError) onError(error);\n });\n}));",null]}