Browse Source

fix: datav params missing

Signed-off-by: Carlos <568187512@qq.com>
Carlos 6 days ago
parent
commit
89740159c4

+ 4 - 2
src/app/pages/datav/digital-line/right-panel/plan-panel/plan-panel.component.ts

@@ -51,13 +51,15 @@ export class PlanPanelComponent {
 
     made.value = this.data?.troubleshootResolveInfo?.unissued || 0;
     made.percent = this.data?.troubleshootResolveInfo?.unissuedPercentage || '0%';
-    publish.value = this.data?.troubleshootResolveInfo?.uninitiated || 0;
 
+    publish.value = this.data?.troubleshootResolveInfo?.uninitiated || 0;
     publish.percent = this.data?.troubleshootResolveInfo?.uninitiatedPercentage || '0%';
-    processing.value = this.data?.troubleshootResolveInfo?.initiated || 0;
 
+    processing.value = this.data?.troubleshootResolveInfo?.initiated || 0;
     processing.percent = this.data?.troubleshootResolveInfo?.initiatedPercentage || '0%';
+
     completed.value = this.data?.troubleshootResolveInfo?.completed || 0;
+    completed.percent = this.data?.troubleshootResolveInfo?.completedPercentage || '0%';
 
     this.infos = this.infos.slice(); // for refreshing chart
   }

+ 2 - 2
src/app/pages/datav/digital-line/right-panel/right-panel.component.ts

@@ -46,8 +46,8 @@ export class RightPanelComponent {
   monthOptions: Option<number>[] = [];
   yearOptions: Option<number>[] = [];
 
-  month = 1;
-  year = 2024;
+  month = new Date(this.serverTime).getMonth() + 1;
+  year = new Date(this.serverTime).getFullYear();
 
   constructor(private api: ApiService) {}
   ngOnInit() {