This commit is contained in:
闫晓茹 2024-03-01 13:41:02 +08:00
parent 7bab1657d9
commit 470fb14411

View File

@ -1073,9 +1073,11 @@ export default {
console.log(this.formmat); console.log(this.formmat);
selectUserAgencyleft(this.formmat).then((res) => { selectUserAgencyleft(this.formmat).then((res) => {
// console.log(res) // console.log(res)
if (res.rows.length > 0) {
this.tableData1 = res.rows; this.tableData1 = res.rows;
if (res.rows.length > 0) {
this.agencyNum = res.rows[0].agencyNum; this.agencyNum = res.rows[0].agencyNum;
}else{
this.agencyNum=0
} }
this.totalag = res.total; this.totalag = res.total;
}); });
@ -1087,6 +1089,9 @@ export default {
this.tableData2 = res.rows; this.tableData2 = res.rows;
if (res.rows.length > 0) { if (res.rows.length > 0) {
this.belongAgencyNum = res.rows[0].agencyNum; this.belongAgencyNum = res.rows[0].agencyNum;
}else{
this.belongAgencyNum=0
} }
}); });
}, },
@ -1101,7 +1106,7 @@ export default {
this.formlists.userId = row.userId; this.formlists.userId = row.userId;
this.formlists.userName = row.userName; this.formlists.userName = row.userName;
this.formmat.userName = row.userName; this.formmat.userName = row.userName;
console.log(this.formmat.userId, "898"); // console.log(this.formmat.userId, "898");
this.info(); this.info();
this.info2(); this.info2();