{"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\\TaskManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\flow\\TaskManager.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/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\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//\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport form from '@/api/form.js';\nimport req from '@/request.js';\nimport utils from '@/hotent-ui-util.js';\nimport { mapState, mapActions } from 'vuex';\nimport { Base64 } from 'js-base64';\n\nvar MessageTypeSelector = function MessageTypeSelector() {\n  return import('@/components/flow/MessageTypeSelector.vue');\n};\n\nvar eipUserSelector = function eipUserSelector() {\n  return import('@/components/selector/EipUserSelector.vue');\n};\n\nvar InstanceUrgent = function InstanceUrgent() {\n  return import('@/views/flow/InstanceUrgent.vue');\n};\n\nexport default {\n  components: {\n    MessageTypeSelector: MessageTypeSelector,\n    eipUserSelector: eipUserSelector,\n    InstanceUrgent: InstanceUrgent\n  },\n  data: function data() {\n    return {\n      treeData: [],\n      defaultProps: {\n        children: 'children',\n        label: 'name'\n      },\n      data: [],\n      pageResult: {\n        page: 1,\n        pageSize: 50,\n        total: 0\n      },\n      curSlectTaskId: '',\n      statusArray: [{\n        text: '待办',\n        value: 'NORMAL',\n        type: 'success'\n      }, {\n        text: '委托',\n        value: 'AGENT',\n        type: 'info'\n      }, {\n        text: '征询',\n        value: 'TRANSFORMEDINQU',\n        type: 'info'\n      }, {\n        text: '转办',\n        value: 'DELIVERTO',\n        type: 'success'\n      }, {\n        text: '接收流转',\n        value: 'TRANSFORMED'\n      }, {\n        text: '沟通',\n        value: 'COMMU'\n      }, {\n        text: '流转源',\n        value: 'TRANSFORMING',\n        type: 'warning'\n      }, {\n        text: '被驳回',\n        value: 'BACK',\n        type: 'danger'\n      }, {\n        text: '跟踪',\n        value: 'FOLLOW',\n        type: 'info'\n      }, {\n        text: '并行审批源',\n        value: 'APPROVELINEING',\n        type: 'success'\n      }, {\n        text: '接收并行审批',\n        value: 'APPROVELINEED',\n        type: 'success'\n      }, {\n        text: '顺序签署源',\n        value: 'SIGNSEQUENCEING',\n        type: 'info'\n      }, {\n        text: '接收顺序签署',\n        value: 'SIGNSEQUENCEED',\n        type: 'info'\n      }, {\n        text: '并行签署源',\n        value: 'SIGNLINEING',\n        type: 'info'\n      }, {\n        text: '接收并行签署',\n        value: 'SIGNLINEED',\n        type: 'info'\n      }, {\n        text: '传阅',\n        value: 'COPYTO',\n        type: 'info'\n      }, {\n        text: '用户加签',\n        value: 'USERADDSIGN',\n        type: 'info'\n      }, {\n        text: '会签加签',\n        value: 'ADDSIGN'\n      }],\n      dialogVisible: false,\n      filedConfDialogVisible: false,\n      modifyparam: {\n        type: 'sms'\n      },\n      defaultFiledShowConf: {},\n      defaultFiledShowConfList: [{\n        name: 'subject',\n        desc: '标题',\n        frontShow: true\n      }, {\n        name: 'procInstId',\n        desc: '流程编号',\n        frontShow: true\n      }, {\n        name: 'procDefName',\n        desc: '流程名称',\n        frontShow: true\n      }, {\n        name: 'name',\n        desc: '任务名称',\n        frontShow: true\n      }, {\n        name: 'status',\n        desc: '类型',\n        frontShow: true\n      }, {\n        name: 'createTime',\n        desc: '创建时间',\n        frontShow: true\n      }, {\n        name: 'creator',\n        desc: '创建人',\n        frontShow: true\n      }, {\n        name: 'urgentStateValue',\n        desc: '紧急状态',\n        frontShow: true\n      }, {\n        name: 'ownerName',\n        desc: '所属人',\n        frontShow: false\n      }, {\n        name: 'assigneeName',\n        desc: '待审批人',\n        frontShow: false\n      }, {\n        name: 'prop1',\n        desc: '扩展1',\n        frontShow: false\n      }, {\n        name: 'prop2',\n        desc: '扩展2',\n        frontShow: false\n      }, {\n        name: 'prop3',\n        desc: '扩展3',\n        frontShow: false\n      }, {\n        name: 'prop4',\n        desc: '扩展4',\n        frontShow: false\n      }, {\n        name: 'prop5',\n        desc: '扩展5',\n        frontShow: false\n      }, {\n        name: 'prop6',\n        desc: '扩展6',\n        frontShow: false\n      }],\n      filedShowConfList: [],\n      editFiledConf: {\n        name: '待办列表字段显示配置',\n        alias: 'taskListFiledConf',\n        encrypt: '1',\n        description: '应用端待办列表字段显示配置',\n        value: ''\n      },\n      typeNameConf: {\n        org: '组织',\n        job: '职务',\n        position: '岗位',\n        role: '角色',\n        user: '用户'\n      }\n    };\n  },\n  computed: mapState({\n    account: function account(state) {\n      return state.login.currentUser.account;\n    },\n    token: function token(state) {\n      return state.login.currentUser.token;\n    },\n    frontUrl: function frontUrl(state) {\n      return window.context.front + '/task/' + this.curSlectTaskId + '/0?token=' + this.token + '&showMenu=true' // Base64.encode(this.account)\n      ;\n    }\n  }),\n  methods: {\n    rowClick: function rowClick(row, column, event) {\n      this.$refs.htTable.$refs.htTable.toggleRowSelection(row);\n    },\n    //查看候选人详情\n    candidateDetail: function candidateDetail(row) {\n      var this_ = this;\n      this.$http.get('${bpmRunTime}/runtime/task/v1/getCandidatesListByTaskId?taskId=' + row.id).then(function (resp) {\n        if (resp.data) {\n          var temp = {};\n          var tempList = [];\n          resp.data.forEach(function (c) {\n            c.groupType = c.groupType ? c.groupType : c.type;\n\n            if (!temp[c.groupType]) {\n              temp[c.groupType] = [];\n            }\n\n            temp[c.groupType].push({\n              type: c.name,\n              users: c.userNames\n            });\n          });\n\n          for (var type in temp) {\n            tempList.push({\n              type: type,\n              typeName: this_.typeNameConf[type],\n              list: temp[type]\n            });\n          }\n\n          this_.$set(row, 'cList', tempList);\n        }\n      });\n    },\n    //流程催办\n    handleUrgent: function handleUrgent(row) {\n      this.$refs.instanceUrgent.handleOpen(row.procInstId, row.procDefId, row.subject, row.nodeId); //父组件调用子组件方法\n    },\n    openSetDialog: function openSetDialog() {\n      var this_ = this;\n      this.$http.get('${portal}/sys/sysProperties/v1/getJson?id=taskListFiledConf').then(function (resp) {\n        if (resp.data) {\n          this_.editFiledConf = resp.data;\n          this_.filedShowConfList = JSON.parse(this_.editFiledConf.value);\n        } else {\n          this_.filedShowConfList = JSON.parse(JSON.stringify(this_.defaultFiledShowConfList));\n        }\n\n        this_.filedConfDialogVisible = true;\n      });\n    },\n    saveConf: function saveConf() {\n      var _this = this;\n\n      var this_ = this;\n      utils.validateForm(this, 'conf-form').then(function (r) {\n        _this.editFiledConf.value = JSON.stringify(_this.filedShowConfList);\n\n        _this.$http.post('${portal}/sys/sysProperties/v1/save', _this.editFiledConf).then(function (resp) {\n          if (resp.data && resp.data.state) {\n            this_.editFiledConf = resp.data;\n            this_.formatConfListToObj();\n            this_.$message({\n              type: 'success',\n              message: '保存成功',\n              onClose: function onClose() {\n                window.location.reload();\n                this_.filedConfDialogVisible = false;\n              }\n            });\n          }\n        });\n      }).catch(function (items) {\n        _this.$message.error(\"\\u8FD8\\u6709\\u5185\\u5BB9\\u672A\\u586B\\u5199\\uFF0C\\u65E0\\u6CD5\\u4FDD\\u5B58\\u3002\");\n      });\n    },\n    closeDialog: function closeDialog() {\n      this.dialogVisible = false;\n    },\n    confirm: function confirm() {\n      var this_ = this;\n      var param = JSON.parse(JSON.stringify(this.modifyparam));\n\n      if (!param.userIds) {\n        this.$message.warning('执行人不能为空！');\n        return;\n      }\n\n      if (!param.messageType) {\n        this.$message.warning('通知类型不能为空！');\n        return;\n      }\n\n      if (!param.cause) {\n        this.$message.warning('通知内容不能为空！');\n        return;\n      }\n\n      param.userIds = param.userIds.split(',');\n      req.post(window.context.bpmRunTime + '/runtime/task/v1/setTaskExecutors', param).then(function (response) {\n        var data = response.data;\n\n        if (data.state) {\n          this_.$message.success(data.message);\n          this_.$refs.htTable.load();\n          this_.dialogVisible = false;\n        } else {\n          this_.$message.fail(data.message);\n        }\n      });\n    },\n    completeTask: function completeTask(id) {\n      this.curSlectTaskId = id;\n      window.open(this.frontUrl, '_blank');\n    },\n    modifyExcutor: function modifyExcutor(id) {\n      this.modifyparam = {\n        taskId: id\n      };\n      this.dialogVisible = true;\n    },\n    loadData: function loadData(param, cb) {\n      var _this2 = this;\n\n      if (this.$refs.htTable && this.$refs.htTable.quickSearchWord) {\n        if (param.querys && param.querys.length > 0) {\n          var temp = param.querys[0];\n\n          for (var index = 1; index < 7; index++) {\n            var query = JSON.parse(JSON.stringify(temp));\n            query.property = 'prop' + index;\n            query.relation = 'OR';\n            param.querys.push(query);\n          }\n        }\n      }\n\n      req.post(window.context.bpmRunTime + '/runtime/task/v1/list', param).then(function (data) {\n        var response = data.data;\n        _this2.data = response.rows;\n        _this2.pageResult = {\n          page: response.page,\n          pageSize: response.pageSize || 50,\n          total: response.total\n        };\n      }).finally(function () {\n        return cb();\n      });\n    },\n    handleCommand: function handleCommand(params) {\n      switch (params.command) {\n        case 'modifyExcutor':\n          this.modifyExcutor(params.row.id);\n          break;\n\n        case 'handleUrgent':\n          this.handleUrgent(params.row);\n          break;\n\n        case 'completeTask':\n          this.completeTask(params.row.id);\n          break;\n\n        case 'jump':\n          this.openJumpDialog(params.row.id);\n          break;\n      }\n    },\n    formatConfListToObj: function formatConfListToObj() {\n      var editConfObj = {};\n      var tempList = JSON.parse(JSON.stringify(this.filedShowConfList));\n      tempList.forEach(function (c) {\n        var key = c.name;\n        editConfObj[key] = c;\n      });\n      this.$set(this, 'defaultFiledShowConf', editConfObj);\n    },\n    openJumpDialog: function openJumpDialog(id) {\n      this.curSlectTaskId = id;\n      window.open(this.frontUrl + '&type=free&showMenu=true', '_blank');\n    }\n  },\n  created: function created() {\n    var this_ = this;\n    this.$http.get('${portal}/sys/sysProperties/v1/getDecryptByAlias?alias=taskListFiledConf').then(function (resp) {\n      if (resp.data) {\n        this_.filedShowConfList = JSON.parse(resp.data.value);\n      } else {\n        this_.filedShowConfList = JSON.parse(JSON.stringify(this_.defaultFiledShowConfList));\n      }\n\n      this_.formatConfListToObj();\n    });\n  }\n};",null]}