This commit is contained in:
闫晓茹 2024-03-01 13:14:06 +08:00
parent c768eaed8b
commit 29c2bb1a95

View File

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