Преглед изворни кода

#646 离线-跳转至可靠性预测无结果显示

zhangchuang пре 3 месеци
родитељ
комит
186ba205f2

+ 1 - 1
src/views/MaintenanceStrategyAssistance/offline/index.vue

@@ -114,7 +114,7 @@ const toRpc = async (row: any) => {
     query: {
       id: row.id,
       name: row.name,
-      fileName: row.name,
+      fileName: row.fileName,
     },
   });
 };

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

@@ -258,6 +258,7 @@ onMounted(() => {
   let source = 1;
   const pageId = route.query.id;
   const name = route.query.name;
+  const file_name = route.query.fileName;
   fileName.value = name;
 
   if (pageId) {
@@ -291,7 +292,7 @@ if (!!route.query.start_time) {
 if (!!route.query.end_time) {
   timeObj.end_time=route.query.end_time.replaceAll('+',' ')
 }
-  evaluateHealthStatus({ source, fileName: fileName.value, [source == 2 ? "fileId" : "id"]: pageId,...timeObj })
+  evaluateHealthStatus({ source, fileName: file_name, [source == 2 ? "fileId" : "id"]: pageId,...timeObj })
     .then((res: any) => {
       proxy.$loading.stop();