소스 검색

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