ソースを参照

新增判断 活动开始时间与结束时间不能相等

DELL 3 年 前
コミット
d4db73d1a8
1 ファイル変更4 行追加0 行削除
  1. 4 0
      src/views/business/marketing/add.vue

+ 4 - 0
src/views/business/marketing/add.vue

@@ -222,6 +222,10 @@ export default {
     update() {
       this.$refs.addItem.validate((valid, items) => {
         if (valid) {
+          if(this.addData.dateValue[0] == this.addData.dateValue[1]){
+            this.msgError('活动开始时间与结束时间不能相等!')
+            return;
+          }
           if(this.awardsList.length < 1) {
             this.msgError('请至少设置一个奖级的的奖品!')
             return;