用户
This commit is contained in:
parent
c768eaed8b
commit
29c2bb1a95
@ -866,6 +866,7 @@ export default {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
// abc:{}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -885,20 +886,28 @@ export default {
|
|||||||
// 左边选中事件
|
// 左边选中事件
|
||||||
handleSelectionChangen(selection) {
|
handleSelectionChangen(selection) {
|
||||||
console.log(selection, "56");
|
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.clearSelection(); // 清空所有选择
|
||||||
this.$refs.multipleTable.toggleRowSelection(selection.pop()); // 设置选择项
|
this.$refs.multipleTable.toggleRowSelection(selection.pop()); // 设置选择项
|
||||||
}
|
|
||||||
this.formlist.agencyId = selection[0].agencyId;
|
this.formlist.agencyId = selection[0].agencyId;
|
||||||
|
|
||||||
|
}
|
||||||
|
this.nowSelectData = selection;
|
||||||
|
this.nowSelectRightData=[]
|
||||||
// this.formlist.agencyCode = selection[0].agencyCode;
|
// this.formlist.agencyCode = selection[0].agencyCode;
|
||||||
|
|
||||||
// console.log(this.formlist.agencyId, "99999999");
|
// console.log(this.formlist.agencyId, "99999999");
|
||||||
this.nowSelectData = selection;
|
// console.log(selection, "7474");
|
||||||
this.nowSelectRightData=[]
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// 右边选中事件
|
// 右边选中事件
|
||||||
handleSelectionChangenright(selection) {
|
handleSelectionChangenright(selection) {
|
||||||
console.log(selection, "56");
|
console.log(selection, "56888");
|
||||||
if (selection.length > 1) {
|
if (selection.length > 1) {
|
||||||
this.$refs.multipleTables.clearSelection(); // 清空所有选择
|
this.$refs.multipleTables.clearSelection(); // 清空所有选择
|
||||||
this.$refs.multipleTables.toggleRowSelection(selection.pop()); // 设置选择项
|
this.$refs.multipleTables.toggleRowSelection(selection.pop()); // 设置选择项
|
||||||
@ -912,7 +921,8 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击去右边
|
// 点击去右边
|
||||||
rightcontent() {
|
rightcontent() {
|
||||||
console.log(this.tableData2, "78798");
|
// console.log("78798",this.abc);
|
||||||
|
console.log(this.tableData2,'85')
|
||||||
if (this.tableData2.length == 1) {
|
if (this.tableData2.length == 1) {
|
||||||
this.$message.error("只能选择一个机构");
|
this.$message.error("只能选择一个机构");
|
||||||
} else {
|
} else {
|
||||||
@ -1069,7 +1079,7 @@ export default {
|
|||||||
},
|
},
|
||||||
info2() {
|
info2() {
|
||||||
selectUserAgency(this.userName).then((res) => {
|
selectUserAgency(this.userName).then((res) => {
|
||||||
// console.log(res);
|
console.log(res,"/////////");
|
||||||
// this.agencyNum = res.data.agencyNum;
|
// this.agencyNum = res.data.agencyNum;
|
||||||
if (res.rows.length > 0) {
|
if (res.rows.length > 0) {
|
||||||
this.tableData2 = res.rows;
|
this.tableData2 = res.rows;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user