This commit is contained in:
jjLv 2024-10-31 19:15:56 +08:00
parent aafbf5d30d
commit d16a200a72
1 changed files with 7 additions and 2 deletions

View File

@ -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();