From 52d859a60b59df28e2db2d4d81aa664a2744465c Mon Sep 17 00:00:00 2001 From: QuAoLi Date: Tue, 1 Mar 2022 16:34:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/DataStatisticsList.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/data/DataStatisticsList.vue b/src/views/data/DataStatisticsList.vue index dd08be9..44b0745 100644 --- a/src/views/data/DataStatisticsList.vue +++ b/src/views/data/DataStatisticsList.vue @@ -178,6 +178,7 @@ } ], loadData1: parameter => { + if (!this.orgId) return [] return dataOrgStatistics(Object.assign(parameter, this.queryParam)).then((res) => { const data = res.rows data.forEach(function (val) { @@ -210,6 +211,7 @@ } ], loadData2: parameter => { + if (!this.orgId) return [] return dataPersonalStatistics(Object.assign(parameter, this.queryParam)).then((res) => { return res }) @@ -245,6 +247,7 @@ } ], loadDataTop1: parameter => { + if (!this.orgId) return [] return dataClassHourTop(Object.assign(parameter, this.queryParam)).then((res) => { return res.data }) @@ -280,6 +283,7 @@ } ], loadDataTop2: parameter => { + if (!this.orgId) return [] return dataClassHourTop(Object.assign(parameter, this.queryParam)).then((res) => { return res.data }) @@ -338,6 +342,7 @@ this.orgTree.forEach(item => { this.expandedKeys.push(item.id) }) + this.handleClick(this.orgId) }) }, /** @@ -345,6 +350,7 @@ */ handleClick (e) { this.queryParam.orgId = e.toString() + this.orgId = e.toString() if (this.keyType === '1') { this.$refs.table1.refresh(true) }