Ver código fonte

预案演练跟踪进度默认值处理

jiawuxian 1 ano atrás
pai
commit
ceff7f260d
2 arquivos alterados com 13 adições e 12 exclusões
  1. 12 10
      src/views/core/drill/task/index.vue
  2. 1 2
      src/views/index.vue

+ 12 - 10
src/views/core/drill/task/index.vue

@@ -371,16 +371,18 @@ export default {
     this.getList();
     this.getTaskStatus();
   },
-  // beforeRouteEnter(to,from,next){
-  //   console.log(from,'to')
-  //   if(from.path === '/home'){
-  //     next(vm=>{
-  //       vm.queryParams.status = parseInt(to.query.status);
-  //     })
-  //   }else {
-  //     next()
-  //   }
-  // },
+  beforeRouteEnter(to,from,next){
+    console.log(from,'to')
+    if(from.path === '/home'){
+      next(vm=>{
+        if(to.query.status!=undefined){
+          vm.queryParams.status = parseInt(to.query.status);
+        }
+      })
+    }else {
+      next()
+    }
+  },
   computed: {
     ...mapGetters(["orgId", "orgName"]),
   },

+ 1 - 2
src/views/index.vue

@@ -240,8 +240,7 @@ export default {
           menuName = "整改情况跟踪";
           break;
       }
-
-      debugger
+      
       if (!checkPermi([authStr])) {
         this.$alert(`您没有${menuName}的权限,请联系管理员!`, "提示");
         return;