From 944b176d4734a75ecd9d310c6ee45bb00b8def42 Mon Sep 17 00:00:00 2001 From: Sjh <55341701@qq.com> Date: Sat, 7 Oct 2023 09:57:44 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E9=A6=96=E9=A1=B5echarts?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../add-unit-two-type-statistics.component.ts | 30 ++++++++++++------- .../home/home.component.html | 22 +++++++++++++- .../home/home.component.scss | 26 +++++++++++----- .../statistic-analysis/home/home.component.ts | 28 +++++++++++++++++ 4 files changed, 86 insertions(+), 20 deletions(-) diff --git a/src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts b/src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts index 2fe2c1d..448d4a7 100644 --- a/src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts +++ b/src/app/statistic-analysis/addUnit/add-unit-two-type-statistics/add-unit-two-type-statistics.component.ts @@ -527,10 +527,20 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit { params.offsetY, ])[0]; if (this.zhiorbuild == "zhi") { + if ( (this.data.level == "0" || this.data.level == "1") && this.tabledata[0].buildingTypes[xIndex].organizations.length >= 1 ) { + this.router.navigate(["/statisticanalysis/CompangInfo"], { + queryParams: { + name: option.xAxis.data[xIndex], + type: 1, + jsid: this.lastId, + buildid: option.xAxis.id[xIndex], + }, + }); + return; // 总队,支队跳转 this.router.navigate( ["/statisticanalysis/addUnit_one/addUnit_two_typeDetails"], @@ -555,21 +565,19 @@ export class AddUnitTwoTypeStatisticsComponent implements OnInit { }); } } else { - // console.log(this.data.level) - // console.log(this.tabledata[0].organizations[xIndex].subOrganizations) - this.router.navigate(["/statisticanalysis/CompangInfo"], { - queryParams: { - name: option.xAxis.data[xIndex], - type: 1, - jsid: option.xAxis.id[xIndex], - buildid: this.lastId, - }, - }); - return if ( (this.data.level == "0" || this.data.level == "1") && this.tabledata[0].organizations[xIndex].subOrganizations.length >= 1 ) { + this.router.navigate(["/statisticanalysis/CompangInfo"], { + queryParams: { + name: option.xAxis.data[xIndex], + type: 1, + jsid: option.xAxis.id[xIndex], + buildid: this.lastId, + }, + }); + return; //总队,支队跳转 this.router.navigate( ["/statisticanalysis/addUnit_one/addUnit_two_typeDetails"], diff --git a/src/app/statistic-analysis/home/home.component.html b/src/app/statistic-analysis/home/home.component.html index e786423..0e99240 100644 --- a/src/app/statistic-analysis/home/home.component.html +++ b/src/app/statistic-analysis/home/home.component.html @@ -15,7 +15,27 @@