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