qinzhipeng_v@didiglobal.com 4 lat temu
rodzic
commit
bd47110955

+ 43 - 31
src/views/projectManage/requirement/requirementDetail.vue

@@ -551,6 +551,8 @@ export default {
       requirementInfo.status = this.statusValue
       if (e === 1) {
         const data = {
+          techInRealTime: this.form_query.techInRealTime,
+          onlineRealTime: this.form_query.onlineRealTime,
           rdLeader: this.form_query.rdLeader.join(),
           qaLeader: this.form_query.qaLeader.join(),
           id: this.$route.query.id,
@@ -621,16 +623,6 @@ export default {
       const res = await getRequirementById({ id: this.$route.query.id })
       if (res.code === 200) {
         this.form_query = res.data
-        if (this.form_query.rdLeader === null || this.form_query.rdLeader === '') {
-          this.$set(this.form_query, 'rdLeader', [])
-        } else {
-          this.form_query.rdLeader = this.form_query.rdLeader.split(',')
-        }
-        if (this.form_query.qaLeader === null || this.form_query.qaLeader === '') {
-          this.$set(this.form_query, 'qaLeader', [])
-        } else {
-          this.form_query.qaLeader = this.form_query.qaLeader.split(',')
-        }
         if (this.form_query.iterationId === -1) {
           this.$set(this.form_query, 'iterationName', '')
           this.$set(this.form_query, 'iterationId', '')
@@ -651,31 +643,39 @@ export default {
         } else {
           this.form_query.rqmtProposer = this.form_query.rqmtProposer.split(',')
         }
-      }
-      this.availableStatusList.map(item => {
-        if (item.name === 'BRD评审通过') {
-          if (this.form_query.status >= item.code) {
-            this.brdPassRealTime = true
+        this.availableStatusList.map(item => {
+          if (item.name === 'BRD评审通过') {
+            if (this.form_query.status >= item.code) {
+              this.brdPassRealTime = true
+            } else {
+              this.brdPassRealTime = false
+            }
           }
-        }
-        if (item.name === 'PRD评审通过') {
-          if (this.form_query.status >= item.code) {
-            this.prdPassRealTime = true
+          if (item.name === 'PRD评审通过') {
+            if (this.form_query.status >= item.code) {
+              this.prdPassRealTime = true
+            } else {
+              this.prdPassRealTime = false
+            }
           }
-        }
-        if (item.name === '技术准入') {
-          if (this.form_query.status >= item.code) {
-            this.techInRealTime = true
+          if (item.name === '技术准入') {
+            if (this.form_query.status >= item.code) {
+              this.techInRealTime = true
+            } else {
+              this.techInRealTime = false
+            }
           }
-        }
-        if (item.name === '已上线') {
-          if (this.form_query.status >= item.code) {
-            this.onlineRealTime = true
+          if (item.name === '已上线') {
+            if (this.form_query.status >= item.code) {
+              this.onlineRealTime = true
+            } else {
+              this.onlineRealTime = false
+            }
           }
-        }
-      })
-      this.$refs.timeLine1.taskGetWorkFlow()
-      this.$refs.record.operationLogTask()
+        })
+        this.$refs.timeLine1.taskGetWorkFlow()
+        this.$refs.record.operationLogTask()
+      }
     },
     async getCommentList() { // 获取需求评论
       const res = await getCommentList({ type: 4, joinId: this.$route.query.id })
@@ -705,6 +705,18 @@ export default {
         this.statusName = status.label
         this.statusValue = status.value
         this.dialogStatusVisible = true
+        this.$nextTick(() => {
+          if (this.form_query.rdLeader === null || this.form_query.rdLeader === '') {
+            this.$set(this.form_query, 'rdLeader', [])
+          } else {
+            this.form_query.rdLeader = this.form_query.rdLeader.split(',')
+          }
+          if (this.form_query.qaLeader === null || this.form_query.qaLeader === '') {
+            this.$set(this.form_query, 'qaLeader', [])
+          } else {
+            this.form_query.qaLeader = this.form_query.qaLeader.split(',')
+          }
+        })
         status.label === 'BRD评审通过' ? this.form_query.brdPassRealTime = moment().locale('zh-cn').format('YYYY.MM.DD') : '' // BRD评审通过时间
         status.label === 'PRD评审通过' ? this.form_query.prdPassRealTime = moment().locale('zh-cn').format('YYYY.MM.DD') : '' // PRD评审通过时间
         status.label === '技术准入' ? this.form_query.techInRealTime = moment().locale('zh-cn').format('YYYY.MM.DD') : '' // 技术准入