Browse Source

新建需求fix bug

wangziqian 4 năm trước cách đây
mục cha
commit
065eb313f9
1 tập tin đã thay đổi với 11 bổ sung7 xóa
  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({