plg 2 місяців тому
батько
коміт
ec59d1a8b1
1 змінених файлів з 7 додано та 2 видалено
  1. 7 2
      src/components/Register.vue

+ 7 - 2
src/components/Register.vue

@@ -265,18 +265,23 @@ export default {
       this.gradeOption = list.reverse();
     },
     resetData() {
+      this.ruleForm.position = "";
       if (this.isView) {
         this.ruleForm.group = "";
       }
-      this.$refs["ruleForm"].clearValidate();
+     
       //清空表单
       this.ruleForm.grade = "";
-
+    
       this.ruleForm.name = "";
       this.ruleForm.studentNumber = "";
       // this.ruleForm.password = "";
       // this.ruleForm.comPassword = "";
       this.ruleForm.sex = "";
+      setTimeout(()=>{
+        this.$refs["ruleForm"].clearValidate();
+      })
+      
     },
     //获取组织架构方法--------------------开始-----------------------
     getChannel() {