From d4682ef2c37b3f131b6f82ccdf28811a1758c07a Mon Sep 17 00:00:00 2001 From: tianq Date: Thu, 20 Apr 2023 10:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/census/census-accountList.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/views/modules/census/census-accountList.vue b/src/views/modules/census/census-accountList.vue index 6847870d7..aea098281 100644 --- a/src/views/modules/census/census-accountList.vue +++ b/src/views/modules/census/census-accountList.vue @@ -159,6 +159,7 @@ :total="total" > + @@ -498,7 +499,7 @@ export default { }, async getPiesubData(orgId, orgType) { // staffLoginLog/streetTotal - this.orgType = orgType; + console.log(orgType); let url = ''; if (orgType == 'street') { @@ -513,7 +514,7 @@ export default { console.log('orgType', orgType); // district street community // 1 是区县 2是镇街 3是社区 4是下级 - switch (orgType) { + switch (this.orgType) { case 'district': this.title = '区县级账号登录情况'; // url = '/gov/org/staffLoginLog/district-count'; @@ -672,12 +673,12 @@ export default { console.log('param', param); if (param.data.level != 'community') { - // if (param.data.level == 'district') { - // orgType = 'street'; - // } - // if (param.data.level == 'street') { - // orgType = 'community'; - // } + if (param.data.level == 'district') { + this.orgType = 'street'; + } + if (param.data.level == 'street') { + this.orgType = 'community'; + } this.pageNo = 1; this.getPiesubData(param.data.id, param.data.level);