Browse Source

Merge branch '0601Action' into test

mo 3 years ago
parent
commit
392f23b475
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/views/couponManager/couponUpdate.vue

+ 3 - 2
src/views/couponManager/couponUpdate.vue

@@ -133,7 +133,7 @@
         <el-col style="width: 395px" v-if="form.effectiveType == 'DAYS'">
         <el-col style="width: 395px" v-if="form.effectiveType == 'DAYS'">
           <el-form-item
           <el-form-item
             prop="deadline"
             prop="deadline"
-            :rules="[{ required: true, message: '请选择有效期天数' }]"
+            :rules="[{ required: true, message: '请输入有效期天数' }]"
           >
           >
             <span style="color: #606266"
             <span style="color: #606266"
               ><span style="color:#F56C6C">*</span>有效期天数
               ><span style="color:#F56C6C">*</span>有效期天数
@@ -305,7 +305,8 @@ export default {
     changeEffectiveType() {
     changeEffectiveType() {
       // this.form.effectiveTime = [];
       // this.form.effectiveTime = [];
       this.$set(this.form,'effectiveTime',[])
       this.$set(this.form,'effectiveTime',[])
-      this.form.deadline = "";
+      this.$set(this.form,'deadline',null)
+      // this.form.deadline = "";
     },
     },
     onCancel() {
     onCancel() {
       this.$router.push("/couponManager");
       this.$router.push("/couponManager");