chenbaoxin 4 months ago
parent
commit
94db81b9ea
1 changed files with 17 additions and 2 deletions
  1. 17 2
      src/views/OperationalReliabilityPrediction/index.vue

+ 17 - 2
src/views/OperationalReliabilityPrediction/index.vue

@@ -201,9 +201,24 @@ onMounted(() => {
   if (pageId) {
     source = 2;
   }
-  proxy.$loading.start();
+  // evaluateHealthStatus({ source, fileId: pageId }).then((res: any) => {
+  //   const result: any = res.data;
+  //   xAxisData.value = result.chart.x;
+  //   forecast_result.value=result.forecast_result
+  //   devicesArr.value=result.devices
+  //   currentBtn.value={
+  //     ...result.devices[0],
+  //     ...result.devices[0].maintenance_suggestion,
+  //     ...result.devices[0].reliability_forecast
+  //   }
+  //   seriesData.value = [
+  //     {
+  //       name: "趋势",
+  //       data: result.chart.y,
+  //     },
+  //   ];
 
-  evaluateHealthStatus({ source, field: pageId })
+  evaluateHealthStatus({ source, fileId: pageId })
     .then((res: any) => {
       proxy.$loading.stop();