dedsudiyu пре 9 месеци
родитељ
комит
63d212c188
1 измењених фајлова са 17 додато и 11 уклоњено
  1. 17 11
      src/views/creditViolation/credit/violation/index.vue

+ 17 - 11
src/views/creditViolation/credit/violation/index.vue

@@ -476,7 +476,8 @@ export default {
         ],
         handleDay: [
           { required: true, message: "请输入处理天数时限", trigger: "blur" },
-          { required: true, message: "请输入处理天数时限", validator: this.spaceJudgment, trigger: "blur" }
+          { required: true, message: "请输入处理天数时限", validator: this.spaceJudgment, trigger: "blur" },
+          { required: true, message: "只能输入数字", validator: this.isNum, trigger: "blur" },
         ],
       },
       rules1: {
@@ -826,6 +827,11 @@ export default {
         checkListTwo:[],
         learnStatusType:false,
         practiceStatusType:false,
+        learnHour:"",
+        learnMinute:"",
+        numberTopics:"",
+        numberAccuracy:"",
+        handleDay:"",
       }
       this.$set(this,"form",obj);
       this.optionsUser = [];
@@ -970,17 +976,17 @@ export default {
             }
             this.form.handleDay = res.data.handleDay;
           }else{
-            this.form.checkList=[];
-            this.form.checkListTwo=[];
-            this.form.learnHour='';
-            this.form.learnMinute='';
-            this.form.learnStatusType=false;
-            this.form.numberTopics='';
-            this.form.numberAccuracy='';
-            this.form.practiceStatusType=false;
-            this.form.handleDay='';
-
+            this.$set(this.form,'checkList',[]);
+            this.$set(this.form,'checkListTwo',[]);
+            this.$set(this.form,'learnHour','');
+            this.$set(this.form,'learnMinute','');
+            this.$set(this.form,'learnStatusType',false);
+            this.$set(this.form,'numberTopics','');
+            this.$set(this.form,'numberAccuracy','');
+            this.$set(this.form,'practiceStatusType',false);
+            this.$set(this.form,'handleDay','');
           }
+          this.$forceUpdate();
         });
       }
     },