|
|
@@ -203,6 +203,7 @@
|
|
|
clearable
|
|
|
multiple
|
|
|
style="width: 100%"
|
|
|
+ @change="handleCoLockerChange"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="dict in this.form.ticketUserDTOList"
|
|
|
@@ -605,9 +606,20 @@ export default {
|
|
|
}
|
|
|
this.updateCoLocker()
|
|
|
},
|
|
|
+ // 更新界面中共锁人下拉框显示的内容
|
|
|
updateCoLocker() {
|
|
|
this.form.coLocker = this.form.ticketUserDTOList.map(user => user.userName);
|
|
|
},
|
|
|
+ // 共锁人下拉框删除事件
|
|
|
+ handleCoLockerChange(newValues) {
|
|
|
+ console.log(newValues, 'ticketUserDTOList-newsValue');
|
|
|
+
|
|
|
+ // 根据新值更新 this.form.ticketUserDTOList
|
|
|
+ this.form.ticketUserDTOList = this.form.ticketUserDTOList.filter(user => newValues.includes(user.userName));
|
|
|
+
|
|
|
+ // 更新 coLocker 显示的内容
|
|
|
+ this.updateCoLocker();
|
|
|
+ },
|
|
|
handleClick(tab, event) {
|
|
|
// console.log(tab, event);
|
|
|
}
|
|
|
@@ -743,15 +755,14 @@ export default {
|
|
|
this.outsideMumber = false
|
|
|
this.form.ticketUserDTOList=[]
|
|
|
this.dialogForm.deptId=""
|
|
|
- this.dialogForm.nickname=""
|
|
|
-
|
|
|
+ this.dialogForm.nickname=''
|
|
|
},
|
|
|
addOutside() {
|
|
|
this.open = true
|
|
|
this.title = '添加外部人员'
|
|
|
this.insideMumber = false
|
|
|
this.outsideMumber = true
|
|
|
- this.dialogForm.username=""
|
|
|
+ this.dialogForm.username=null
|
|
|
},
|
|
|
// 取消按钮
|
|
|
cancel() {
|