Przeglądaj źródła

新建需求fix bug

wangziqian 4 lat temu
rodzic
commit
065eb313f9
1 zmienionych plików z 11 dodań i 7 usunięć
  1. 11 7
      src/views/projectManage/requirement/list/create.vue

+ 11 - 7
src/views/projectManage/requirement/list/create.vue

@@ -273,15 +273,19 @@ export default {
         }
         this.$emit('cancel', false)
       }
+    },
+    bizId: {
+      handler(newV) {
+        if (newV === -1) return
+        this.settingGetBizList()
+        this.projectListProject()
+        this.settingQueryBizRqmtOrntList()
+        this.getIterationList()
+        this.showRequirementEnum()
+      },
+      immediate: true
     }
   },
-  mounted() {
-    this.settingGetBizList()
-    this.projectListProject()
-    this.settingQueryBizRqmtOrntList()
-    this.getIterationList()
-    this.showRequirementEnum()
-  },
   methods: {
     async getIterationList() { // 获取所属迭代列表
       const res = await iterationList({