Browse Source

网点 才提示“本网点还未编制预案,请及时到网页端网点预案管理菜单维护”

zhulu 1 year ago
parent
commit
b6d58f7310
1 changed files with 11 additions and 8 deletions
  1. 11 8
      src/views/core/drill/task/index.vue

+ 11 - 8
src/views/core/drill/task/index.vue

@@ -393,15 +393,18 @@ export default {
   created() {
   created() {
     this.getList();
     this.getList();
     this.getTaskStatus();
     this.getTaskStatus();
-    listDrillDictionaryBranch({orgId: this.$store.getters.orgId}).then(res => {
-      let { code, rows, msg } = res
-      if (code == 200) {
-        console.log("res:"+res)
-        if (rows.length === 0){
-          this.$modal.alert("本网点还未编制预案,请及时到网页端网点预案管理菜单维护");
+    if (this.$store.getters.orgType == 4)
+    {
+      listDrillDictionaryBranch({orgId: this.$store.getters.orgId}).then(res => {
+        let { code, rows, msg } = res
+        if (code == 200) {
+          console.log("res:"+res)
+          if (rows.length === 0){
+            this.$modal.alert("本网点还未编制预案,请及时到网页端网点预案管理菜单维护");
+          }
         }
         }
-      }
-    })
+      })
+    }
   },
   },
   beforeRouteEnter(to,from,next){
   beforeRouteEnter(to,from,next){
     console.log(from,'to')
     console.log(from,'to')