Sfoglia il codice sorgente

优化提测延期原因时在预览页没有展示

qinzhipeng_v 4 anni fa
parent
commit
2b724d5a05

+ 1 - 1
src/views/reportManagement/Testing/TestingPreview.vue

@@ -26,7 +26,7 @@
         </el-col>
       </el-row>
 
-      <el-row v-show="fromCreateData.isDelay === 1">
+      <el-row v-if="fromCreateData.deliverTestPlanTime < fromCreateData.deliverTestActualTime ">
         <el-col :span="24" class="Layout_space_between">
           <span class="parent-style">提测延期原因 : {{ fromCreateData.delayReason }}</span>
         </el-col>

+ 1 - 1
src/views/reportManagement/Testing/components/deliverDetails.vue

@@ -29,7 +29,7 @@
           </el-col>
         </el-row>
 
-        <el-row v-show="details.isDelay === 1">
+        <el-row v-if="details.deliverTestPlanTime < details.deliverTestActualTime ">
           <el-col :span="24" class="Layout_space_between task-bot">
             <span class="from-namea"><span class="test-details">提测延期原因:</span>{{ details.delayReason }}</span>
           </el-col>

+ 4 - 1
src/views/reportManagement/Testing/newTestingTemplate.vue

@@ -165,7 +165,7 @@ export default {
     },
     taskIds: {
       handler(newV) {
-        if (newV) {
+        if (newV[0]) {
           this.taskId = newV
           this.reportdelivertestInitReportRelease(newV)
         }
@@ -209,6 +209,7 @@ export default {
       if (from.devActualTimeStart) {
         this.$set(this.from, 'devActualTimeStart', [from.devActualTimeStart, from.devActualTimeEnd]) // 实际开发时间
       }
+      this.$set(this.from, 'delayReason', from.delayReason) // 延期原因
       this.from.deliverTestActualTime = from.deliverTestActualTime // 实际提测时间
       this.$set(this.from, 'followVersion', from.followVersion) // 是否跟版1 跟版 2 不跟版
       this.$set(this.from, 'isCodeReview', from.isCodeReview) // 是否code review 0:否 1:是
@@ -256,6 +257,7 @@ export default {
             data.taskIds = this.taskId
             data.bizId = localStorage.getItem('bizId')
             data.moduleId = this.tpltId
+            data.delayReason = this.from.delayReason
             data.deliverTestPlanTime = this.from.deliverTestPlanTime // 计划提测时间
             data.deliverTestActualTime = this.from.deliverTestActualTime // 实际提测时间
             if (this.from.devPlanTimeStart) {
@@ -284,6 +286,7 @@ export default {
             data.taskIds = this.taskId
             data.bizId = localStorage.getItem('bizId')
             data.moduleId = this.tpltId
+            data.delayReason = this.from.delayReason
             data.deliverTestPlanTime = this.from.deliverTestPlanTime // 计划提测时间
             data.deliverTestActualTime = this.from.deliverTestActualTime // 实际提测时间
             if (this.from.devPlanTimeStart) {