Browse Source

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

DELL 3 năm trước cách đây
mục cha
commit
d4db73d1a8
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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;