From d16a200a729e69f40d57c7ae21ca4c37059ad376 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Thu, 31 Oct 2024 19:15:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E7=BB=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/ma/typeConfigKeeper/index.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/material/ma/typeConfigKeeper/index.vue b/src/views/material/ma/typeConfigKeeper/index.vue index 688fbf5d..88b89726 100644 --- a/src/views/material/ma/typeConfigKeeper/index.vue +++ b/src/views/material/ma/typeConfigKeeper/index.vue @@ -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();