From 470fb144119c0b2e776cd52671c32fbcd7192d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Fri, 1 Mar 2024 13:41:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/index.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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();