|
@@ -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();
|
|
|
|