فهرست منبع

Update home.component.ts

shimingxy 6 ماه پیش
والد
کامیت
c004252e44
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/dashboard/home/home.component.ts

+ 3 - 2
maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/dashboard/home/home.component.ts

@@ -144,10 +144,11 @@ export class HomeComponent implements OnInit {
         name: this.provinceTableData[i].name,
         itemStyle: { color: this.mapColor.length - 1 }
       });
-      if (maxMapCount < this.provinceMapData[i].reportcount) {
-        maxMapCount = this.provinceMapData[i].reportcount;
+      if (maxMapCount < this.provinceMapData[i].value) {
+        maxMapCount = this.provinceMapData[i].value;
       }
     }
+    console.log(`maxMapCount ${maxMapCount}`);
     if (maxMapCount <= 100) {
       //100以内
       this.mapSplitList = [