diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 0785224..20a950e 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -1073,9 +1073,11 @@ export default { console.log(this.formmat); selectUserAgencyleft(this.formmat).then((res) => { // console.log(res) + this.tableData1 = res.rows; if (res.rows.length > 0) { - this.tableData1 = res.rows; this.agencyNum = res.rows[0].agencyNum; + }else{ + this.agencyNum=0 } this.totalag = res.total; }); @@ -1087,6 +1089,9 @@ export default { this.tableData2 = res.rows; if (res.rows.length > 0) { this.belongAgencyNum = res.rows[0].agencyNum; + }else{ + this.belongAgencyNum=0 + } }); }, @@ -1101,7 +1106,7 @@ export default { this.formlists.userId = row.userId; this.formlists.userName = row.userName; this.formmat.userName = row.userName; - console.log(this.formmat.userId, "898"); + // console.log(this.formmat.userId, "898"); this.info(); this.info2();