Mr. Robot 3 months ago
parent
commit
89d2350644
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/views/OperationalReliabilityPrediction/index.vue

+ 6 - 3
src/views/OperationalReliabilityPrediction/index.vue

@@ -196,15 +196,18 @@ const getAllDomElements = async () => {
 };
 const goAdvice = async (name: string) => {
   if (route.query.source == 3) {
-    const idArr = route.query.pageId.split(",");
+    const idArr = route.query.pageId.split('|');
     const dc = await devicesAndCategories({});
     const devices = dc.data.devices;
     const newOrder = devices.findIndex((item) => item == name);
     idArr[2] = newOrder;
     router.push({
-      id: idArr.join('|'),
       path: "/repair/MaintenanceStrategyAssistanceViewHis",
-      type: 'auto',
+      query: {
+        id: idArr.join('|'),
+        name,
+        type: 'auto',
+      }
     });
   } else {
     router.push({