{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\jenkins\\workspace\\damDance-fvue\\src\\api\\flow.js","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\api\\flow.js","mtime":1696817248168},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import req from \"@/request.js\";\nimport { Message } from 'element-ui';\nvar bpmModel = window.context.bpmModel;\nvar bpmRunTime = window.context.bpmRunTime;\nexport default {\n getMyOftenFlow: function getMyOftenFlow(cb) {\n req.get(bpmRunTime + \"/runtime/instance/v1/getMyOftenFlow\").then(function (rep) {\n cb(rep.data);\n }).catch(function (error) {\n error.message && Message.error({\n message: error.message,\n type: 'error'\n });\n });\n },\n getHasAuthFlowList: function getHasAuthFlowList(queryFilter, cb) {\n req.post(bpmRunTime + \"/runtime/instance/v1/getHasAuthFlowList\", queryFilter).then(function (rep) {\n cb(rep.data);\n }).catch(function (error) {\n error.message && Message.error({\n message: error.message,\n type: 'error'\n });\n });\n },\n saveOftenFlow: function saveOftenFlow(data, cb) {\n req.post(bpmModel + \"/bpmModel/BpmOftenFlow/v1/saveMyOftenFlow\", data).then(function (rep) {\n cb(rep.data);\n }).catch(function (error) {\n error.message && Message.error({\n message: error.message,\n type: 'error'\n });\n });\n },\n relatedProcess: function relatedProcess(data, cb) {\n req.post(bpmRunTime + \"/runtime/instance/v1/relatedProcess\", data).then(function (response) {\n cb(response);\n });\n },\n flowHasStartRights: function flowHasStartRights(defKey, cb) {\n req.get(bpmModel + \"/flow/def/v1/flowHasStartRights?defKey=\".concat(defKey)).then(function (response) {\n cb(response);\n }, function (error) {\n error.message && Message.error({\n message: error.message,\n type: 'error'\n });\n });\n },\n forbiddenInstance: function forbiddenInstance(instId) {\n return new Promise(function (resolve, reject) {\n req.get(\"\".concat(bpmRunTime, \"/runtime/instance/v1/forbiddenInstance?instId=\").concat(instId)).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n unForbiddenInstance: function unForbiddenInstance(instId) {\n return new Promise(function (resolve, reject) {\n req.get(\"\".concat(bpmRunTime, \"/runtime/instance/v1/unForbiddenInstance?instId=\").concat(instId)).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n //通过流程实例ID获取审批意见\n getBpmSaveOpinionByTeam: function getBpmSaveOpinionByTeam(params) {\n return new Promise(function (resolve, reject) {\n req.get(\"\".concat(bpmRunTime, \"/runtime/task/v1/getBpmSaveOpinionByTeam?instId=\").concat(params.instId, \"&taskId=\").concat(params.taskId)).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n //新增或修改暂存的审批意见\n createBpmSaveOpinion: function createBpmSaveOpinion(bpmSaveOpinion) {\n return new Promise(function (resolve, reject) {\n req.post(\"\".concat(bpmRunTime, \"/runtime/task/v1/createBpmSaveOpinion\"), bpmSaveOpinion).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getWatermarkByInstId: function getWatermarkByInstId(id) {\n return new Promise(function (resolve, reject) {\n req.get(\"\".concat(bpmModel, \"/bpmModel/bpmWatermark/v1/getByInstId?instId=\").concat(id)).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n getMainByDefKey: function getMainByDefKey(key) {\n return req.get(\"\".concat(bpmModel, \"/flow/def/v1/getJson?defKey=\").concat(key));\n }\n};",null]}