ソースを参照

优化任务详情创建缺陷自动填充所属模块

qinzhipeng_v@didiglobal.com 4 年 前
コミット
6cfff2f632

+ 2 - 0
src/views/projectManage/bugList/file/createdBug.vue

@@ -366,6 +366,7 @@ export default {
       this.nowPageId = bizId_id[1]
     },
     init(e, ele) {
+      console.log(e, ele, '才能健康的事')
       this.modalShow = true
       this.createLoading = false
       this.$nextTick(() => {
@@ -385,6 +386,7 @@ export default {
         this.titleName = '新建缺陷'
         if (ele !== undefined) {
           this.$set(this.formInline, 'taskId', ele.id)
+          this.$set(this.formInline, 'moduleIds', ele.moduleIds)
         }
       }
       if (e === 2) {

+ 2 - 1
src/views/projectManage/taskList/taskViewDetail.vue

@@ -902,9 +902,10 @@ export default {
       }
     },
     created_bug() { // 缺陷创建
+      console.log(this.form_query)
       this.bug_open = true
       this.$nextTick(() => {
-        this.$refs.createdBug.init(1, { id: this.taskId })
+        this.$refs.createdBug.init(1, { id: this.taskId, moduleIds: this.form_query.moduleIds })
       })
     },
     createReport(e, ele) { // 创建报告