{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\AuditCenter\\toDoTask\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\AuditCenter\\toDoTask\\index.vue","mtime":1701808851533},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport \"core-js/modules/es6.string.starts-with\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.array.find-index\";\nimport _defineProperty from \"D:/jenkins/workspace/jd_cgpt_fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.regexp.search\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState, mapActions } from 'vuex';\nimport process from '@/api/process';\nimport utils from '@/utils.js';\nimport { Message } from 'element-ui';\nimport TaskImage from '@/components/flow/task/taskImage.vue';\nimport req from '@/request.js';\nvar STATUS = {\n NORMAL: '待办',\n TRANSFORMED: '流转',\n TRANSFORMEDINQU: '征询',\n DELIVERTO: '转办',\n FOLLOW: '跟踪',\n COMMU: '沟通',\n BACK: '驳回',\n ADDSIGN: '会签加签',\n AGENT: '委托',\n SHARE: '共享',\n BACKSHARE: '驳回共享',\n APPROVELINEED: '并行审批',\n SIGNSEQUENCEED: '顺序签署',\n SIGNLINEED: '并行签署',\n USERADDSIGN: '用户加签'\n};\nexport default {\n name: 'todo',\n components: {\n TaskImage: TaskImage\n },\n props: {\n defKey: {\n type: String,\n default: ''\n },\n orgName: {\n type: String,\n default: ''\n },\n orgId: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n isAsideShow: false,\n batchHandleIds: [],\n asideShow: false,\n form: {\n tableData: '',\n date: '',\n orgName: '',\n orgId: ''\n },\n status: STATUS,\n currentTree: '',\n show: false,\n fullscreenLoading: true,\n sorter: [],\n urgentStateConf: {},\n urgentStateConfList: [],\n urgentStateVal: '',\n ids: '',\n //待办任务id集合\n defaultFiledShowConf: '',\n defaultFiledShowConfList: [{\n name: 'subject',\n desc: '标题',\n frontShow: true\n }, {\n name: 'orgName',\n desc: '发起企业',\n frontShow: true\n }, {\n name: 'procInstId',\n desc: '流程编号',\n frontShow: true\n }, {\n name: 'projectName',\n desc: '项目名称',\n frontShow: true\n }, {\n name: 'procDefName',\n desc: '流程名称',\n frontShow: true\n }, {\n name: 'yetx',\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: 'dueExpDate',\n desc: '到期时间',\n frontShow: false\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 selectInstanceId: '',\n selectBpmnInstId: '',\n selectDefId: '',\n batchDialogVisible: false,\n batchHandleSetting: {},\n batchResultDialog: false,\n batchCompleteList: [],\n batchFailedList: [],\n batchUnBatchableList: [],\n batchNotAuthList: [],\n failedMsgMap: {},\n batchSubmitBtnLoad: false,\n skipMsg: '',\n unBatchMsg: '',\n tableMaxHeight: 600\n };\n },\n watch: {\n 'form.orgId': {\n handler: function handler(newName, oldName) {\n this.search('find');\n },\n immediate: true\n }\n },\n computed: _objectSpread(_objectSpread({}, mapState('storeProcess', ['rows', 'pagination', 'total'])), {}, {\n currentSwitchValue: function currentSwitchValue() {\n return localStorage.todoAsideShow === 'true' || localStorage.todoAsideShow === true;\n },\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }),\n created: function created() {\n this.getTaskList();\n this.asideShow = this.currentSwitchValue;\n this.isAsideShow = this.currentSwitchValue;\n },\n mounted: function mounted() {\n var _this = this;\n\n this.calcTableHeight();\n this.$root.$on('resize', function () {\n _this.calcTableHeight(500);\n });\n },\n methods: {\n calcTableHeight: function calcTableHeight(delay) {\n var _this2 = this;\n\n // 动态计算表格的高度,自适应当前容器\n setTimeout(function () {\n if (!_this2.$refs.contentPanel) {\n return;\n }\n\n var contentPanelHeight = _this2.$refs.contentPanel && _this2.$refs.contentPanel.clientHeight;\n var btnPanelHeight = _this2.$refs.btnPanel && _this2.$refs.btnPanel.clientHeight || 0;\n var paginationPanelHeight = _this2.$refs.paginationPanel && _this2.$refs.paginationPanel ? 32 : 0; // (this.$refs.paginationPanel &&\n // this.$refs.paginationPanel.clientHeight) ||\n // 0;\n\n _this2.tableMaxHeight = contentPanelHeight - btnPanelHeight - paginationPanelHeight - 42;\n }, delay || 0);\n },\n //将当前展开或者收起的值存在localStorage中\n handleSwitch: function handleSwitch(val) {\n localStorage.todoAsideShow = val;\n },\n getTaskList: function getTaskList() {\n var _this3 = this;\n\n this.$http.get('${portal}/sys/sysProperties/v1/getDecryptByAlias?alias=taskListFiledConf').then(function (resp) {\n var tempConf = {};\n\n if (resp.data) {\n tempConf = JSON.parse(resp.data.value);\n } else {\n tempConf = _this3.defaultFiledShowConfList;\n }\n\n _this3.formatConfListToObj(tempConf);\n });\n var querys = [];\n\n if (this.defKey) {\n querys.push({\n property: 'bt.proc_def_key_',\n value: this.defKey,\n operation: 'EQUAL',\n relation: 'AND'\n });\n } //判断是否有URL传参\n\n\n if (this.orgName && this.orgId) {\n this.form.orgName = this.orgName;\n this.form.orgId = this.orgId;\n querys.push({\n group: 'orgId',\n property: 'inst.CREATE_ORG_PATH_',\n value: this.orgId,\n operation: 'LIKE',\n relation: 'AND'\n });\n }\n\n var pageBean = {\n pageBean: {\n page: '1',\n pageSize: '10',\n showTotal: 'true'\n },\n querys: querys\n }; //初次加载默认pageBean\n\n this.$store.dispatch('storeProcess/getTodoByPagination', pageBean).then(function () {\n //页面加载调用tudo.js里面的分页方法\n _this3.fullscreenLoading = false;\n });\n },\n rowClick: function rowClick(row, column, event) {\n //操作列不触发多选按钮\n if (column && column.label == '流程图') {\n return;\n }\n\n this.$refs.multipleSelection.toggleRowSelection(row);\n },\n //流程传阅\n taskToCopyTo: function taskToCopyTo() {\n if (this.ids == '') {\n Message.warning('请选择要传阅的流程');\n return;\n }\n\n this.$refs.taskToCopyTo.handleClose(); //父组件调用子组件方法\n },\n //批量勾选待办流程获取\n handleSelectionChange: function handleSelectionChange(val) {\n this.ids = '';\n\n if (val.length > 0) {\n for (var i = 0; i < val.length; i++) {\n this.ids = this.ids + val[i].id + ',';\n }\n\n this.ids = this.ids.substring(0, this.ids.length - 1);\n }\n },\n //Loading 加载中\n openFullScreen: function openFullScreen() {\n this.fullscreenLoading = true;\n },\n handleSizeChange: function handleSizeChange(size) {\n //每页下拉显示数据\n this.$store.dispatch('storeProcess/setPaginationSize', size);\n this.search();\n },\n handleCurrentChange: function handleCurrentChange(currentPage) {\n //点击第几页\n this.$store.dispatch('storeProcess/setPaginationPageNum', currentPage);\n this.search();\n },\n //回车查询\n searchEnterFun: function searchEnterFun(e) {\n var keyCode = window.event ? e.keyCode : e.which;\n\n if (keyCode == 13) {\n this.search('find');\n }\n },\n // 处理排序\n handleSortChange: function handleSortChange(m) {\n this.sorter.splice(this.sorter.findIndex(function (s) {\n return s.property == m.prop;\n }), 1);\n\n if (m.order) {\n this.sorter.push({\n property: m.prop,\n direction: m.order == 'ascending' ? 'ASC' : 'DESC'\n });\n }\n\n this.search();\n },\n // 查询\n search: function search(str) {\n var _this4 = this;\n\n if (str == 'find') {\n this.$store.dispatch('storeProcess/setPaginationPageNum', 1);\n }\n\n var querys = []; //查询条件\n\n var queryFilter = {};\n var pageBean = {\n pageBean: this.pagination\n };\n var beginDate = ''; //开始时间\n\n var endDate = ''; //结束时间\n\n var group = 'main'; //判断条件\n\n if (this.form.tableData) {\n querys = [{\n property: 'bt.subject_',\n value: this.form.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'bt.proc_inst_id_',\n value: this.form.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'bt.proc_def_name_',\n value: this.form.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }, {\n property: 'bt.name_',\n value: this.form.tableData,\n group: 'main',\n operation: 'LIKE',\n relation: 'OR'\n }];\n var temp = 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 querys.push(query);\n }\n }\n\n if (this.form.orgId) {\n querys.push({\n property: 'inst.CREATE_ORG_PATH_',\n value: this.form.orgId,\n group: 'orgId',\n operation: 'LIKE',\n relation: 'AND'\n });\n }\n\n if (this.currentTree) {\n querys.push({\n property: 'bt.type_id_',\n value: this.currentTree,\n group: 'typeId',\n operation: 'IN',\n relation: 'AND'\n });\n }\n\n if (this.defKey) {\n querys.push({\n property: 'bt.proc_def_key_',\n value: this.defKey,\n operation: 'EQUAL',\n relation: 'AND'\n });\n }\n\n if (this.form.date) {\n beginDate = utils.formatDate(this.form.date[0].getTime());\n endDate = utils.formatDate(this.form.date[1].getTime());\n querys.push({\n property: 'bt.create_time_',\n value: [beginDate, endDate],\n group: 'time',\n operation: 'BETWEEN',\n relation: 'AND'\n });\n }\n\n queryFilter = {\n pageBean: this.pagination,\n querys: querys,\n sorter: this.sorter\n };\n this.openFullScreen();\n this.$store.dispatch('storeProcess/getTodoByPagination', queryFilter).then(function () {\n _this4.rows.forEach(function (item) {\n if (item.procDefKey == 'yetx') {\n _this4.show = true;\n } else {\n _this4.show = false;\n }\n });\n\n _this4.fullscreenLoading = false;\n });\n },\n //重置\n reset: function reset() {\n this.form = {\n tableData: '',\n date: '',\n orgName: '',\n orgId: ''\n };\n this.search('find');\n },\n handleRowClick: function handleRowClick(row, newWin) {\n console.log(row, 'row');\n\n if (row.status == 'SHARE' || row.status == 'BACKSHARE') {\n if (row.identityList && row.identityList.length == 1) {\n var url = '/task/' + row.id + '/' + row.identityList[0].id;\n this.handleOpenUrl(url, newWin);\n } else {\n var html = '';\n var this_ = this;\n this.$alert(html, '请选择一个领导代为审批', {\n dangerouslyUseHTMLString: true,\n beforeClose: function beforeClose(action, instance, done) {\n if (action == 'confirm') {\n var se = document.getElementById('approvalLeaderSelect');\n\n if (se.selectedIndex == 0) {\n this.$message.warning('请选择代为审批的领导');\n } else {\n instance.close();\n this_.handleOpenUrl('/task/' + row.id + '/' + se[se.selectedIndex].value, newWin);\n }\n } else {\n instance.close();\n }\n }\n });\n }\n } else if (row.status == 'AGENT' && row.ownerId != row.assigneeId && row.ownerId == this.$store.state.login.currentUser.userId) {\n //委托任务\n this.handleOpenUrl('/instRead/' + row.procInstId + '/agent', newWin);\n } else if (row.status == 'FOLLOW') {\n //跟踪任务\n this.handleOpenUrl('/taskRead/' + row.id + '/FOLLOW', newWin);\n } else {\n var _url = '/task/' + row.id + '/0';\n\n if (this.defKey) {\n _url = '/sysModuleInst/' + row.id + '/0' + '/' + this.defKey + '/true';\n }\n\n this.handleOpenUrl(_url, newWin);\n }\n },\n handleOpenUrl: function handleOpenUrl(url, newWin) {\n if (!newWin) {\n this.$router.push(url);\n return;\n }\n\n if (!url) {\n return;\n }\n\n var token = this.$store.state.login.currentUser.token;\n\n if (!url.toLowerCase().startsWith('http')) {\n url = window.context.front + url;\n }\n\n if (url.indexOf('?') == -1) {\n url = url + '?token=' + token;\n } else {\n url = url + '&token=' + token;\n }\n\n window.open(url, '_blank');\n },\n //子组件传值父组件(待办分类查询)\n getCurrent: function getCurrent(data) {\n var _this5 = this;\n\n if (data.id == 6) {\n this.currentTree = '';\n this.openFullScreen();\n var pageBean = {\n pageBean: this.pagination\n };\n this.$store.dispatch('storeProcess/getTodoByPagination', pageBean).then(function () {\n _this5.fullscreenLoading = false;\n });\n } else {\n var ids = [];\n this.getFlowTrees(data, ids);\n this.currentTree = ids.join(',');\n this.search('find');\n }\n },\n getFlowTrees: function getFlowTrees(data, ids) {\n ids.push(data.id);\n var arr = data.children;\n\n for (var i = 0; i < arr.length; i++) {\n this.getFlowTrees(arr[i], ids);\n }\n },\n formatConfListToObj: function formatConfListToObj(tempList) {\n var editConfObj = {};\n tempList.forEach(function (c) {\n var key = c.name;\n editConfObj[key] = c;\n });\n this.$set(this, 'defaultFiledShowConf', editConfObj);\n },\n loadCount: function loadCount() {\n return process.getCountByUserId(this.pagination);\n },\n computeTime: function computeTime(deadline) {\n if (deadline) {\n var time = new Date(deadline).getTime();\n var nowTime = new Date().getTime();\n var duration = time - nowTime;\n if (duration > 0) return deadline;else {\n var hour = Math.floor(Math.abs(duration / 3600000));\n var minute = Math.ceil(Math.abs(duration % 3600000 / 60000));\n return '已到期' + hour + '时' + minute + '分';\n }\n }\n\n return '';\n },\n computeColor: function computeColor(deadline) {\n if (deadline) {\n var time = new Date(deadline).getTime();\n var nowTime = new Date().getTime();\n var day = (time - nowTime) / 86400000;\n if (day > 0) //绿色\n return {\n color: '#22870D'\n };else {\n if (Math.ceil(Math.abs(day)) >= 3) //红色\n return {\n color: '#F1300A'\n }; //黄色\n else return {\n color: '#E1A306'\n };\n }\n }\n\n return {};\n },\n handleShowTaskImage: function () {\n var _handleShowTaskImage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(row) {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return this.changeSeletion(row);\n\n case 2:\n this.$refs.taskImage.handleOpen();\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function handleShowTaskImage(_x) {\n return _handleShowTaskImage.apply(this, arguments);\n }\n\n return handleShowTaskImage;\n }(),\n changeSeletion: function changeSeletion(row) {\n this.selectInstanceId = row.procInstId;\n this.selectBpmnInstId = row.bpmnInstId;\n },\n batchHandle: function batchHandle() {\n var _this6 = this;\n\n var selectTasks = this.$refs.multipleSelection.selection;\n\n if (!selectTasks || selectTasks.length == 0) {\n this.$message({\n type: 'warning',\n message: '请至少选择一条任务'\n });\n return;\n } //忽略掉非待办类型的任务\n\n\n var ids = [];\n this.skipMsg = '';\n\n for (var i = selectTasks.length - 1; i >= 0; i--) {\n if (selectTasks[i].status == 'NORMAL') {\n ids.push(selectTasks[i].id);\n } else {\n this.skipMsg += selectTasks[i].subject + '
';\n selectTasks.splice(i, 1);\n }\n }\n\n if (ids.length > 0) {\n req.get('${bpmRunTime}/runtime/task/v1/filterUnBatchable?taskIds=' + ids.join(',')).then(function (resp) {\n if (resp.data.state && resp.data.value) {\n if (resp.data.value.length != ids.length) {\n ids = resp.data.value;\n var unBatchMsg = '以下任务未配置批量处理
';\n\n for (var _i = selectTasks.length - 1; _i >= 0; _i--) {\n if (!resp.data.value.includes(selectTasks[_i].id)) {\n unBatchMsg += selectTasks[_i].subject + '
';\n selectTasks.splice(_i, 1);\n }\n } //this.$message({type:\"warning\",dangerouslyUseHTMLString:true,message:unBatchMsg});\n\n\n _this6.unBatchMsg = unBatchMsg;\n }\n\n if (ids && ids.length > 0) {\n _this6.batchHandleIds = ids;\n _this6.batchDialogVisible = true;\n } else {\n _this6.showMsg();\n }\n }\n });\n } else {\n if (this.skipMsg) {\n this.showMsg();\n }\n }\n\n this.batchHandleCheck();\n },\n batchHandleCheck: function batchHandleCheck() {},\n batchHandleSubmit: function batchHandleSubmit() {\n var _this7 = this;\n\n var errMsg = '';\n this.batchSubmitBtnLoad = true;\n\n if (!this.batchHandleSetting.opinion || !this.batchHandleSetting.action) {\n errMsg = '完善表单信息';\n }\n\n if (this.batchHandleSetting.action == 'reject' && (!this.batchHandleSetting.backHandMode || !this.batchHandleSetting.rejectType)) {\n errMsg = '请完善驳回设置';\n }\n\n if (errMsg) {\n this.$message({\n type: 'warning',\n message: errMsg\n });\n this.batchSubmitBtnLoad = false;\n return;\n }\n\n var action;\n\n if (this.batchHandleSetting.action == 'agree') {\n action = 'agree';\n } else {\n action = this.batchHandleSetting.rejectType || this.batchHandleSetting.action;\n }\n\n this.$http.post(window.context.bpmRunTime + '/runtime/task/v1/batchHandle', {\n taskIds: this.batchHandleIds.join(','),\n action: action,\n opinion: this.batchHandleSetting.opinion\n }).then(function (resp) {\n if (resp.data && resp.data.state) {\n _this7.batchDialogVisible = false;\n _this7.batchSubmitBtnLoad = false;\n\n _this7.showBatchResult(resp.data.value);\n }\n });\n },\n showBatchResult: function showBatchResult(taskMaps) {\n this.batchCompleteList = taskMaps['complete'];\n this.batchFailedList = taskMaps['failedList'];\n this.batchUnBatchableList = taskMaps['unHandleList'];\n this.batchNotAuthList = taskMaps['notAuth'];\n this.failedMsgMap = taskMaps['failedMsg'];\n this.batchResultDialog = true;\n },\n afterBatchClose: function afterBatchClose() {\n this.batchDialogVisible = false;\n this.batchHandleSetting = {};\n },\n afterResultClose: function afterResultClose() {\n this.batchCompleteList = [];\n this.batchFailedList = [];\n this.batchUnBatchableList = [];\n this.batchNotAuthList = [];\n this.failedMsgMap = [];\n this.batchResultDialog = false;\n this.search('find');\n },\n open: function open(row) {\n var token = this.$store.state.login.currentUser.token;\n\n if (row.status == 'SHARE' || row.status == 'BACKSHARE') {\n if (row.identityList && row.identityList.length == 1) {\n var url = '/task/' + row.id + '/' + row.identityList[0].id + '?token=' + token; //this.$router.push(url);\n\n window.open(window.context.front + url, '_blank');\n } else {\n var html = '';\n var this_ = this;\n this.$alert(html, '请选择一个领导代为审批', {\n dangerouslyUseHTMLString: true,\n beforeClose: function beforeClose(action, instance, done) {\n if (action == 'confirm') {\n var se = document.getElementById('approvalLeaderSelect');\n\n if (se.selectedIndex == 0) {\n this.$message.warning('请选择代为审批的领导');\n } else {\n instance.close();\n /*this_.$router.push(\r\n \"/task/\" + row.id + \"/\" + se[se.selectedIndex].value\r\n );*/\n\n var _url2 = window.context.front + '/task/' + row.id + '/' + se[se.selectedIndex].value + '?token=' + token;\n\n window.open(_url2, '_blank');\n }\n } else {\n instance.close();\n }\n }\n });\n }\n } else if (row.status == 'AGENT' && row.ownerId != row.assigneeId && row.ownerId == this.$store.state.login.currentUser.userId) {\n //委托任务\n //this.$router.push(\"/instRead/\" + row.procInstId + \"/agent\");\n window.open(window.context.front + '/instRead/' + row.procInstId + '/agent' + '?token=' + token, '_blank');\n } else if (row.status == 'FOLLOW') {\n //跟踪任务\n //this.$router.push(\"/taskRead/\" + row.id + \"/FOLLOW\");\n window.open(window.context.front + '/taskRead/' + row.id + '/FOLLOW' + '?token=' + token, '_blank');\n } else {\n var _url3 = '/task/' + row.id + '/0';\n\n if (this.defKey) {\n _url3 += '/noSingle' + '?token=' + token;\n } //this.$router.push(url);\n\n\n window.open(window.context.front + _url3, '_blank');\n }\n },\n doneView: function doneView(procId) {\n var token = this.$store.state.login.currentUser.token;\n var url = window.context.front + '/inst/' + procId + '/doneList?token=' + token;\n window.open(url, '_blank');\n },\n afterOpen: function afterOpen() {\n this.showMsg();\n },\n showMsg: function showMsg() {\n var message = '';\n\n if (this.skipMsg) {\n message = '以下任务不是待办任务,不支持批量处理:
' + this.skipMsg + '
';\n }\n\n if (this.unBatchMsg) {\n message += this.unBatchMsg;\n }\n\n if (message) {\n this.$message({\n dangerouslyUseHTMLString: true,\n message: message,\n type: 'warning'\n });\n }\n }\n }\n};",null]}