Sfoglia il codice sorgente

任务为完成和终止状态时,不可反馈、评论

yanshichao 1 anno fa
parent
commit
f360aaf789
2 ha cambiato i file con 14 aggiunte e 1 eliminazioni
  1. 6 1
      src/views/task/projectView.vue
  2. 8 0
      src/views/task/view.vue

+ 6 - 1
src/views/task/projectView.vue

@@ -365,7 +365,12 @@ export default {
       })
     },
     cellDbClick(row, column, cell, event) {
-      if (row.status === '4' || row.status === '5') {
+      if (row.status === '4') {
+        this.$message.warning("任务已完成,不可评论")
+        return;
+      }
+      if (row.status === '5') {
+        this.$message.warning("任务已终止,不可评论")
         return;
       }
       let feedbackDate = DateUtil.getFeedBackDate(this.queryParams.startDate, this.queryParams.endDate, column.property)

+ 8 - 0
src/views/task/view.vue

@@ -487,6 +487,14 @@ export default {
       })
     },
     cellDbClick(row, column, cell, event) {
+      if (row.status === '4' || row.status === '5') {
+        this.$message.warning("任务已完成,不可反馈")
+        return;
+      }
+      if (row.status === '5') {
+        this.$message.warning("任务已终止,不可反馈")
+        return;
+      }
       let feedbackDate = DateUtil.getFeedBackDate(this.queryParams.startDate, this.queryParams.endDate, column.property)
       if (DateUtil.unix(feedbackDate) > DateUtil.unix()) {
         this.$message.warning("反馈时间不能超过:" + DateUtil.day())