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;