seimin 1 year ago
parent
commit
ffa5fb6f68
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/newIncident.vue

+ 5 - 1
src/views/newIncident.vue

@@ -1762,7 +1762,11 @@ export default {
1762 1762
       }
1763 1763
 
1764 1764
       // 回显院区
1765
-      this.model.branch = this.loginUser.duty ? this.loginUser.duty.branch : this.loginUser.branch.id;
1765
+      if(this.$route.params.model){
1766
+        this.model.branch = this.$route.params.model.branch;
1767
+      }else{
1768
+        this.model.branch = this.loginUser.duty ? this.loginUser.duty.branch : this.loginUser.branch.id;
1769
+      }
1766 1770
     }
1767 1771
   },
1768 1772
   beforeRouteLeave(to, from, next) {