{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\flow\\InstanceManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\flow\\InstanceManager.vue","mtime":1675071992835},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.array.from\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.to-string\";\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport flow from \"@/api/flow.js\";\nimport utils from \"@/hotent-ui-util.js\";\nimport req from \"@/request.js\";\n\nvar InstanceUrgent = function InstanceUrgent() {\n return import(\"@/views/flow/InstanceUrgent.vue\");\n};\n\nimport EipUserDialog from \"@/components/dialog/EipUserDialog.vue\";\n\nvar InstanceDetail = function InstanceDetail() {\n return import(\"@/views/flow/InstanceDetail.vue\");\n};\n\nexport default {\n components: {\n EipUserDialog: EipUserDialog,\n InstanceDetail: InstanceDetail,\n InstanceUrgent: InstanceUrgent\n },\n data: function data() {\n return {\n data: [],\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n loadDataUrl: \"\",\n dialogVisible: false,\n statusArray: [{\n text: \"运行中\",\n value: \"running\",\n type: \"success\"\n }, {\n text: \"结束\",\n value: \"end\",\n type: \"info\"\n }, {\n text: \"草稿\",\n value: \"draft\",\n type: \"info\"\n }, {\n text: \"驳回\",\n value: \"back\",\n type: \"danger\"\n }, {\n text: \"驳回到发起人\",\n value: \"backToStart\",\n type: \"danger\"\n }, {\n text: \"撤回\",\n value: \"revoke\",\n type: \"warning\"\n }, {\n text: \"撤回到发起人\",\n value: \"revokeToStart\",\n type: \"warning\"\n }, {\n text: \"人工终止\",\n value: \"manualend\",\n type: \"info\"\n }, {\n text: \"管理员结束\",\n value: \"adminmanualend\",\n type: \"info\"\n }],\n curInstance: \"\"\n };\n },\n computed: {\n isForbidden: function isForbidden() {\n return [{\n text: \"正常\",\n value: 0,\n type: \"info\"\n }, {\n text: \"挂起\",\n value: 1,\n type: \"danger\"\n }];\n },\n deleteUrl: function deleteUrl() {\n return window.context.bpmRunTime + \"/runtime/instance/v1/remove\";\n },\n saveRoleUrl: function saveRoleUrl() {\n var preUrl = window.context.uc + \"/api/role/v1/role\";\n\n if (this.role.id) {\n preUrl += \"/updateRole\";\n } else {\n preUrl += \"/addRole\";\n }\n\n return preUrl;\n }\n },\n mounted: function mounted() {\n this.$validator = this.$root.$validator;\n },\n methods: {\n rowClick: function rowClick(row, column, event) {\n this.$refs.htTable.$refs.htTable.toggleRowSelection(row);\n },\n batchRestore: function batchRestore() {\n var elTable = this.$refs.htTable;\n\n if (this.$refs.htTable.$refs && this.$refs.htTable.$refs.htTable) {\n elTable = this.$refs.htTable.$refs.htTable;\n }\n\n if (elTable && elTable.selection && elTable.selection.length == 0) {\n this.$message.warning(\"请选择至少一项记录\");\n return;\n }\n\n var ids = [];\n\n var _iterator = _createForOfIteratorHelper(elTable.selection),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n\n if (item.isDele == 1) {\n ids.push(item[\"id\"]);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n if (ids.length == 0) {\n this.$message.warning(\"所选记录不包含已删除记录,无需恢复\");\n return;\n }\n\n this.restore(ids.join(\",\"));\n },\n handleClose: function handleClose() {\n this.dialogVisible = false;\n },\n handleCloseMenuPerm: function handleCloseMenuPerm() {\n this.dialogVisibleMenuPerm = false;\n },\n dialogCancle: function dialogCancle(dialogVisible) {\n this[dialogVisible] = false;\n },\n loadData: function loadData(param, cb) {\n var _this = this;\n\n flow.getInstPage(param).then(function (response) {\n _this.data = response.rows;\n _this.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n return cb();\n });\n },\n handleCommand: function handleCommand(params) {\n switch (params.command) {\n case \"detail\":\n //查看\n this.curInstance = params.row;\n this.dialogVisible = true;\n break;\n\n case \"restore\":\n //恢复\n this.restore(params.row.id);\n break;\n\n case \"isForbidden\":\n //挂起/取消挂起\n this.forbiddenOrUnForbiddenInst(params.row);\n break;\n\n case \"instanceUrgent\":\n //实例ID催办\n this.instanceUrgent(params.row);\n break;\n\n case \"end\":\n //终止流程\n this.endProcess(params.row);\n break;\n\n case \"renew\":\n //终止流程\n this.renewProcess(params.row);\n break;\n\n default:\n break;\n }\n },\n //终止流程\n endProcess: function endProcess(row) {\n var this_ = this;\n this.$prompt(\"\", \"请输入终止原因\", {\n inputPattern: /^[\\s\\S]*.*[^\\s][\\s\\S]*$/,\n showCancelButton: false,\n inputErrorMessage: \"终止原因不能为空\"\n }).then(function (_ref) {\n var value = _ref.value;\n this_.$http.get(\"${bpmRunTime}/runtime/instance/v1/doEndProcessById?id=\" + row.id + \"&reason=\" + value).then(function (resp) {\n var data = resp.data;\n\n if (data.state) {\n this_.$message.success(\"操作成功\");\n this_.$refs.htTable.load();\n } else {\n this_.$message.error(data.mesage || \"操作失败\");\n }\n });\n }).catch(function () {});\n },\n //终止恢复流程\n renewProcess: function renewProcess(row) {\n var this_ = this;\n this.$prompt(\"\", \"请输入终止恢复原因\", {\n inputPattern: /^[\\s\\S]*.*[^\\s][\\s\\S]*$/,\n showCancelButton: false,\n inputErrorMessage: \"终止恢复原因不能为空\"\n }).then(function (_ref2) {\n var value = _ref2.value;\n this_.$http.get(\"${bpmRunTime}/runtime/instance/v1/renewProcess?id=\" + row.id + \"&reason=\" + value).then(function (resp) {\n var data = resp.data;\n\n if (data.state) {\n this_.$message.success(\"操作成功\");\n this_.$refs.htTable.load();\n } else {\n this_.$message.error(data.mesage || \"操作失败\");\n }\n });\n }).catch(function () {});\n },\n //流程催办\n instanceUrgent: function instanceUrgent(row) {\n this.$refs.instanceUrgent.handleOpen(row.id, row.procDefId, row.subject); //父组件调用子组件方法\n },\n forbiddenOrUnForbiddenInst: function forbiddenOrUnForbiddenInst(row) {\n var this_ = this;\n flow.forbiddenOrUnForbiddenInst(row).then(function (response) {\n if (response.state) {\n this_.$message.success(response.message);\n row.isForbidden = row.isForbidden == \"1\" ? \"0\" : \"1\";\n }\n });\n },\n restore: function restore(id) {\n var this_ = this;\n req.get(window.context.bpmRunTime + \"/runtime/instance/v1/restore?id=\" + id).then(function (response) {\n var data = response.data;\n\n if (data.state) {\n this_.$message.success(data.message);\n this_.$refs.htTable.load(true);\n } else {\n this_.$message.fail(data.message);\n }\n });\n },\n afterDelete: function afterDelete() {\n this.$refs.htTable.load();\n }\n }\n};",null]}