Browse Source

优化提示为测试中和开发中

qinzhipeng_v 5 years ago
parent
commit
6bd7aceb04

+ 1 - 1
src/views/Platform/presentation/testPresentation.vue

@@ -315,7 +315,7 @@ export default {
           item.id === e ? taskData = item : ''
         })
         if (taskData.status !== 3) {
-          this.$message({ message: '存在状态不是【测试中】的任务,请将任务状态为【测试中】才可提测,请检查!', type: 'warning' })
+          this.$message({ message: '存在状态不是【测试中】的任务,请将任务状态为【测试中】才可准出,请检查!', type: 'warning' })
         } else {
           this.dialogClient = true
           this.$nextTick(() => {

+ 12 - 4
src/views/projectManage/taskList/taskViewDetails.vue

@@ -1010,16 +1010,24 @@ export default {
     createReport(e, ele) {
       switch (e) {
         case 1: // 提测
-          this.dialogVisible1 = true
-          this.$nextTick(() => { this.$refs.TestReport.init(1, ele) })
+          if (this.task_form.statusString !== '开发中') {
+            this.$message({ message: '存在状态不是【开发中】的任务,请将任务状态为【开发中】才可提测,请检查!', type: 'warning' })
+          } else {
+            this.dialogVisible1 = true
+            this.$nextTick(() => { this.$refs.TestReport.init(1, ele) })
+          }
           break
         case 2: // 日报
           this.dialogDaily = true
           this.$nextTick(() => { this.$refs.DailyReport.init(1) })
           break
         case 3:
-          this.dialogClient = true
-          this.$nextTick(() => { this.$refs.ClientReport.init(1, ele) })
+          if (this.task_form.statusString !== '测试中') {
+            this.$message({ message: '存在状态不是【测试中】的任务,请将任务状态为【测试中】才可准出,请检查!', type: 'warning' })
+          } else {
+            this.dialogClient = true
+            this.$nextTick(() => { this.$refs.ClientReport.init(1, ele) })
+          }
           break
         case 4:
           this.modalShow = true