deepsea 1 year ago
parent
commit
1897c5501a
2 changed files with 7 additions and 4 deletions
  1. 4 1
      src/store/modules/plan/mutations.js
  2. 3 3
      src/views/ordinaryPage/index.vue

+ 4 - 1
src/store/modules/plan/mutations.js

@@ -43,7 +43,10 @@ export default {
     });
   },
   setAutoPlanDetail(state, planDetail) {
-    let detail = state.autoPlanList[planDetail.data.id - 101];
+    debugger
+    planDetail = planDetail.data;
+    let id = planDetail.id - 101
+    let detail = state.autoPlanList.find(p => p.id == id);
     if (detail) {
       for (let key in planDetail) {
         detail[key] = planDetail[key];

+ 3 - 3
src/views/ordinaryPage/index.vue

@@ -424,7 +424,7 @@
                 "ticket_status": 0,
                 "ticket_type": 0
             })
-            //that.$store.dispatch('planList/fetchPlanList');
+            // that.$store.dispatch('planList/fetchPlanList');
             //setInterval(() => {
             //  that.$store.dispatch('benchList/fetchBenchList');
             //}, 1500)
@@ -649,8 +649,8 @@
                 console.log('task id',benchId);
                 this.$store.dispatch('planList/fetchPlanList', {
                   page_num: 1,
-                  page_size: 100,
-                  task_id: benchId
+                  page_size: 10000,
+                  task_id: ''
                 })
                 console.log('test',this.isShowTaskList,this.isShowPlanList);
                 this.isShowTaskList = false;