Explorar o código

新建需求fix bug

wangziqian %!s(int64=4) %!d(string=hai) anos
pai
achega
065eb313f9
Modificáronse 1 ficheiros con 11 adicións e 7 borrados
  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({