Browse Source

1. 优化

MONSTER-ygh 11 months ago
parent
commit
9e406e47cf

+ 1 - 1
src/views/tourism/marketingActivities/formBox/couponManagementForm.vue

@@ -426,7 +426,7 @@ export default {
     submitForm() {
       this.$refs["form"].validate((valid ,object)=> {
         if (valid) {
-          if(new Date(this.form.grantTime[1]) > new Date(this.form.useDate[1])) {
+          if(new Date(this.form.grantTime[1]).getTime() > new Date(this.form.useDate[1]).getTime()) {
             this.$message.error("发放时间最晚不能大于最晚有效时间!!!");
             return
           }