From acad95128e2c26c98b4cdd456b389e75387b1020 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Fri, 4 Aug 2023 14:10:04 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]echarts=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/statistic-analysis/home/home.component.html | 3 ++- src/app/statistic-analysis/home/home.component.ts | 13 ++++++------- src/index.html | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/statistic-analysis/home/home.component.html b/src/app/statistic-analysis/home/home.component.html index 7cd0441..527bcfa 100644 --- a/src/app/statistic-analysis/home/home.component.html +++ b/src/app/statistic-analysis/home/home.component.html @@ -50,8 +50,9 @@ -
+
+
预案编制总量
diff --git a/src/app/statistic-analysis/home/home.component.ts b/src/app/statistic-analysis/home/home.component.ts index e2efb3b..f08dca0 100644 --- a/src/app/statistic-analysis/home/home.component.ts +++ b/src/app/statistic-analysis/home/home.component.ts @@ -21,12 +21,7 @@ export class HomeComponent implements OnInit { public element: ElementRef, private router: Router, public emitService: EchartsDataService - ) { - this.http.get("assets/echarts/tianjin.json").subscribe((res) => { - this.mapData = res; - console.log("--- result :: ", res); - }); - } + ) {} map: IMap; //地图 yuandata; @@ -34,7 +29,11 @@ export class HomeComponent implements OnInit { this.getechartsdata(); this.getYearlyCompleteProgress(); setTimeout(() => { - this.echartsMap(); + this.http.get("assets/echarts/tianjin.json").subscribe((res) => { + this.mapData = res; + this.echartsMap(); + console.log("--- result :: ", res); + }); }, 0); } diff --git a/src/index.html b/src/index.html index a773f74..a2df9ad 100644 --- a/src/index.html +++ b/src/index.html @@ -16,5 +16,5 @@ - + \ No newline at end of file