Browse Source

Update home.component.ts

shimingxy 6 months ago
parent
commit
c004252e44

+ 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 = [