This commit is contained in:
parent
aafbf5d30d
commit
d16a200a72
|
|
@ -289,6 +289,7 @@ export default {
|
||||||
label: "label",
|
label: "label",
|
||||||
},
|
},
|
||||||
userList:[],
|
userList:[],
|
||||||
|
userNoList:[],
|
||||||
userIdTemp: -1,
|
userIdTemp: -1,
|
||||||
typeIdTemp: -1,
|
typeIdTemp: -1,
|
||||||
// 查询参数
|
// 查询参数
|
||||||
|
|
@ -455,13 +456,16 @@ export default {
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.userList=[];
|
this.userList=[];
|
||||||
|
this.userNoList=[];
|
||||||
this.selectionRows = selection,
|
this.selectionRows = selection,
|
||||||
this.ids = selection.map((item) =>item.typeId);
|
this.ids = selection.map((item) =>item.typeId);
|
||||||
|
|
||||||
selection.forEach(item=>{
|
selection.forEach(item=>{
|
||||||
this.userList.push({'typeId':item.typeId,'userId':this.userIdTemp})
|
this.userList.push({'typeId':item.typeId,'userId':this.userIdTemp})
|
||||||
})
|
})
|
||||||
|
selection.forEach(item=>{
|
||||||
|
this.userNoList.push({'typeId':item.typeId,'userId':item.keeperUserId})
|
||||||
|
})
|
||||||
this.single = selection.length != 1;
|
this.single = selection.length != 1;
|
||||||
this.multiple = !selection.length;
|
this.multiple = !selection.length;
|
||||||
|
|
||||||
|
|
@ -560,10 +564,11 @@ export default {
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}else{
|
}else{
|
||||||
noBindKeeper(this.userList).then((response) => {
|
noBindKeeper(this.userNoList).then((response) => {
|
||||||
this.$modal.msgSuccess("解绑成功");
|
this.$modal.msgSuccess("解绑成功");
|
||||||
this.ids = null;
|
this.ids = null;
|
||||||
this.userList = null;
|
this.userList = null;
|
||||||
|
this.userNoList= null;
|
||||||
this.getTreeData();
|
this.getTreeData();
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$refs.multipleTable.clearSelection();
|
this.$refs.multipleTable.clearSelection();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue