|
|
@ -97,7 +97,7 @@
|
|
|
|
<el-form-item v-if="checkSendUser" 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="6" :xs="24">
|
|
|
|
<h6>部门列表</h6>
|
|
|
|
<h6>部门列表</h6>
|
|
|
|
<div class="head-container">
|
|
|
|
<div class="head-container">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
@ -121,7 +121,7 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" :xs="24">
|
|
|
|
<el-col :span="10" :xs="24">
|
|
|
|
<h6>待选人员</h6>
|
|
|
|
<h6>待选人员</h6>
|
|
|
|
<el-table
|
|
|
|
<el-table
|
|
|
|
ref="singleTable"
|
|
|
|
ref="singleTable"
|
|
|
@ -137,11 +137,11 @@
|
|
|
|
<el-col :span="8" :xs="24">
|
|
|
|
<el-col :span="8" :xs="24">
|
|
|
|
<h6>已选人员</h6>
|
|
|
|
<h6>已选人员</h6>
|
|
|
|
<el-tag
|
|
|
|
<el-tag
|
|
|
|
v-for="tag in userData"
|
|
|
|
v-for="(user,index) in userData"
|
|
|
|
:key="tag"
|
|
|
|
:key="index"
|
|
|
|
closable
|
|
|
|
closable
|
|
|
|
@close="handleClose(tag)">
|
|
|
|
@close="handleClose(user)">
|
|
|
|
{{tag.nickName}} {{tag.dept.deptName}}
|
|
|
|
{{user.nickName}} {{user.dept.deptName}}
|
|
|
|
</el-tag>
|
|
|
|
</el-tag>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
@ -344,15 +344,17 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 多选框选中数据
|
|
|
|
// 多选框选中数据
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
|
|
|
if (selection) {
|
|
|
|
this.userData = selection
|
|
|
|
this.userData = selection
|
|
|
|
const val = selection.map(item => item.userId)[0];
|
|
|
|
const selectVal = selection.map(item => item.userId);
|
|
|
|
if (val instanceof Array) {
|
|
|
|
if (selectVal instanceof Array) {
|
|
|
|
this.taskForm.values = {
|
|
|
|
this.taskForm.values = {
|
|
|
|
"approval": val.join(',')
|
|
|
|
"approval": selectVal.join(',')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.taskForm.values = {
|
|
|
|
this.taskForm.values = {
|
|
|
|
"approval": val
|
|
|
|
"approval": selectVal
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|