Browse Source

下发时间截止

daiqisheng 3 years ago
parent
commit
88f91ef9ed
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/pages/main/performance/mould.vue

+ 6 - 0
src/pages/main/performance/mould.vue

@@ -350,6 +350,12 @@ export default {
               ),
               templateId: this.issue_id,
             };
+            if (this.issue_form.endTime) {
+              if (this.issue_form.endTime.getTime() < new Date().getTime()) {
+                this.$message.error("截止时间不能小于当前时间");
+                return false;
+              }
+            }
           }
           this.$http({
             url: url,