浏览代码

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

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;