فهرست منبع

提交车间pC文件

Lijy 1 سال پیش
والد
کامیت
71650064fa

+ 11 - 5
fhKeeper/formulahousekeeper/timesheet-workshop/src/views/plan/planComponent.vue

@@ -680,14 +680,20 @@ export default {
         pathUrl = "/plan/planDetil";
       }
       console.log(pathUrl);
+      localStorage.setItem("planDetilData", JSON.stringify(item));
       this.$router.push({
         path: pathUrl,
         name: "计划详情",
-        params: {
-          id: item.id,
-          topText: item.productSchedulingNum,
-          leftText: item.productName,
-        },
+        // query: {
+        //   id: item.id,
+        //   topText: item.productSchedulingNum,
+        //   leftText: item.productName,
+        // },
+        // params: {
+        //   id: item.id,
+        //   topText: item.productSchedulingNum,
+        //   leftText: item.productName,
+        // },
       });
     },
     // 导入数据

+ 7 - 4
fhKeeper/formulahousekeeper/timesheet-workshop/src/views/plan/planComponentDetil.vue

@@ -114,11 +114,14 @@ export default {
     watch: {},
     created() { },
     mounted() { 
-        const { id, topText, leftText } = this.$route.params
-        console.log(this.$route.params, '携带')
+        // const { id, topText, leftText } = this.$route.params
+        // const { id, topText, leftText } = this.$route.query
+        // console.log(this.$route.query, '携带')
+        const planDetilData = JSON.parse(localStorage.getItem('planDetilData'))
+        const { id, productSchedulingNum, productName } = planDetilData
         this.id = id
-        this.topText = topText
-        this.leftText = leftText
+        this.topText = productSchedulingNum
+        this.leftText = productName
         this.getPlanDetail()
      },
     methods: {