This commit is contained in:
闫晓茹 2024-03-01 13:35:30 +08:00
parent 29c2bb1a95
commit 7bab1657d9

View File

@ -885,18 +885,19 @@ export default {
methods: { methods: {
// //
handleSelectionChangen(selection) { handleSelectionChangen(selection) {
console.log(selection, "56"); // console.log(selection, "56");
// this.abc=selection // this.abc=selection
// console.log(data,"9"); // console.log(data,"9");
// this.selection=[] // this.selection=[]
if (selection.length >1) { 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.nowSelectData = selection; this.nowSelectData = selection;
this.nowSelectRightData=[] this.formlist.agencyId = selection[0].agencyId;
// 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");
@ -913,7 +914,7 @@ export default {
this.$refs.multipleTables.toggleRowSelection(selection.pop()); // this.$refs.multipleTables.toggleRowSelection(selection.pop()); //
} }
this.nowSelectRightData = selection; this.nowSelectRightData = selection;
this.nowSelectData=[] // this.nowSelectData=[]
}, },
addresetQuerylist() { addresetQuerylist() {
this.formmat.agencyName = ""; this.formmat.agencyName = "";
@ -936,8 +937,10 @@ export default {
}, },
// //
leftcontent() { leftcontent() {
console.log(this.formlists,'4578')
updateUser(this.formlists).then((response) => { updateUser(this.formlists).then((response) => {
if (response.code == 200) { if (response.code == 200) {
console.log(response.code)
this.info(); this.info();
this.info2(); this.info2();
} }
@ -1079,10 +1082,10 @@ 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;
this.tableData2 = res.rows;
if (res.rows.length > 0) { if (res.rows.length > 0) {
this.tableData2 = res.rows;
this.belongAgencyNum = res.rows[0].agencyNum; this.belongAgencyNum = res.rows[0].agencyNum;
} }
}); });