From 29c2bb1a95e01fd6de20a37d8bac5fd8b18ca63a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Fri, 1 Mar 2024 13:14:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/index.vue | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index d52d3aa..82137dd 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -866,6 +866,7 @@ export default { }, ], }, + // abc:{} }; }, watch: { @@ -885,20 +886,28 @@ export default { // 左边选中事件 handleSelectionChangen(selection) { console.log(selection, "56"); - if (selection.length > 1) { + // this.abc=selection + // console.log(data,"9"); + // this.selection=[] + if (selection.length >1) { this.$refs.multipleTable.clearSelection(); // 清空所有选择 this.$refs.multipleTable.toggleRowSelection(selection.pop()); // 设置选择项 - } this.formlist.agencyId = selection[0].agencyId; + + } + this.nowSelectData = selection; + this.nowSelectRightData=[] // this.formlist.agencyCode = selection[0].agencyCode; // console.log(this.formlist.agencyId, "99999999"); - this.nowSelectData = selection; - this.nowSelectRightData=[] + // console.log(selection, "7474"); + + + }, // 右边选中事件 handleSelectionChangenright(selection) { - console.log(selection, "56"); + console.log(selection, "56888"); if (selection.length > 1) { this.$refs.multipleTables.clearSelection(); // 清空所有选择 this.$refs.multipleTables.toggleRowSelection(selection.pop()); // 设置选择项 @@ -912,7 +921,8 @@ export default { }, // 点击去右边 rightcontent() { - console.log(this.tableData2, "78798"); + // console.log("78798",this.abc); + console.log(this.tableData2,'85') if (this.tableData2.length == 1) { this.$message.error("只能选择一个机构"); } else { @@ -1069,7 +1079,7 @@ export default { }, info2() { selectUserAgency(this.userName).then((res) => { - // console.log(res); + console.log(res,"/////////"); // this.agencyNum = res.data.agencyNum; if (res.rows.length > 0) { this.tableData2 = res.rows;