فهرست منبع

fix(bpm): 修正路由跳转时way参数传递问题

liujt 2 ماه پیش
والد
کامیت
db0830ad9d
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      src/views/bpm/tickets/productions/index.vue

+ 4 - 4
src/views/bpm/tickets/productions/index.vue

@@ -58,7 +58,7 @@
         </template>
 
         <template v-slot:code="{ row }">
-          <el-link type="primary" :underline="false" @click="handelRouterTo(row)">
+          <el-link type="primary" :underline="false" @click="handelRouterTo('done', row)">
             {{ row.code }}
           </el-link>
         </template>
@@ -175,7 +175,7 @@
             v-if="way == 'todo'"
             type="primary"
             :underline="false"
-            @click="handelRouterTo(row)"
+            @click="handelRouterTo('todo', row)"
           >
             报工
           </el-link>
@@ -841,8 +841,8 @@
     },
 
     methods: {
-      handelRouterTo(row) {
-        window.history.pushState(null, '', '/page-mes/produceOrder?isWt=true&way=' + this.way + '&item=' + JSON.stringify(row));
+      handelRouterTo(way, row) {
+        window.history.pushState(null, '', '/page-mes/produceOrder?isWt=true&way=' + way + '&item=' + JSON.stringify(row));
         // this.$router.push(path);
       },
       //派单