const branchUnionCadreAudit = { template: /*language=HTML*/ ` 已审核 未审核 `, mixins: [initTableMixins], data() { return { pageForm: { audit: false }, tableColumns: [ { prop: 'loginName', label: '工号' }, { prop: 'userName', label: '姓名' }, { prop: 'unionName', label: '所属工会' }, { prop: 'mobile', label: '联系方式' }, { prop: 'roleName', label: '职务' }, { prop: 'isJoin', label: '申请类型' }, { prop: "curTaskName", label: "当前节点" }, { prop: "instanceState", label: "流程状态" } ], multipleSelection: [], } }, methods: { handleSelectionChange(val) { this.multipleSelection = val; }, doAudit(pass) { this.$confirm('是否确认提交?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(async () => { const ids = JSON.stringify(this.multipleSelection.map(v => v.id)) this.$axios.post('/platform/sys/union/cadreDoAudit', {ids, pass}) .then(resp => { if (resp.code === 0) { this.pageData() this.$refs.table.clearSelection(); this.$message.success(resp.msg) }else{ this.$message.error(resp.msg) } }) }) }, handleTaskAction(row, val) { const msg = val === 1 ? "通过" : "拒绝" this.$confirm("您确定要" + msg + "吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => { const loading = createLoading() this.formData = { origin: row.origin, processTaskId: row.taskId, taskName: row.curTaskName } this.$axios.post("/flow/common/executeTask", { data: JSON.stringify({ ...this.formData, submitType: val }) }).then((res) => { if (res.code === 0) { this.$message.success(res.msg) this.doSearch() } }).finally(() => { loading.close() }) }) }, pageData() { this.$axios.post('/platform/sys/union/cadrePageData', this.pageForm) .then(resp => { if (resp.code === 0) { this.tableData = resp.data.list this.pageForm.totalCount = resp.data.totalCount } }) } } }