审批弹窗调整:删除已选人员时待选复选框没有取消,优化联动效果

approve-sys
WangHui 3 years ago
parent 8dc00f5b8c
commit 3e34a6cc9e

@ -72,7 +72,7 @@
<!--审批正常流程--> <!--审批正常流程-->
<el-dialog :title="completeTitle" :visible.sync="completeOpen" :width="checkSendUser? '60%':'40%'" append-to-body> <el-dialog :title="completeTitle" :visible.sync="completeOpen" :width="checkSendUser? '60%':'40%'" append-to-body>
<el-form ref="taskForm" :model="taskForm" label-width="80px" > <el-form ref="taskForm" :model="taskForm" label-width="80px" >
<el-form-item v-if="checkSendUser" label="处理人" prop="targetKey"> <el-form-item v-if="checkSendUser" prop="targetKey">
<el-row :gutter="20"> <el-row :gutter="20">
<!--部门数据--> <!--部门数据-->
<el-col :span="4" :xs="24"> <el-col :span="4" :xs="24">
@ -116,7 +116,7 @@
<h6>已选人员</h6> <h6>已选人员</h6>
<el-tag <el-tag
v-for="tag in userData" v-for="tag in userData"
:key="tag.nickName" :key="tag"
closable closable
@close="handleClose(tag)"> @close="handleClose(tag)">
{{tag.nickName}} {{tag.dept.deptName}} {{tag.nickName}} {{tag.dept.deptName}}
@ -350,6 +350,7 @@ export default {
// //
handleClose(tag) { handleClose(tag) {
this.userData.splice(this.userData.indexOf(tag), 1); this.userData.splice(this.userData.indexOf(tag), 1);
this.$refs.singleTable.toggleRowSelection(tag, false)
}, },
/** 流程变量赋值 */ /** 流程变量赋值 */
handleCheckChange(val) { handleCheckChange(val) {

Loading…
Cancel
Save