Explorar o código

子机构校验

Michael Wang %!s(int64=6) %!d(string=hai) anos
pai
achega
c5aaca84f4
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      src/modules/basic/view/user.vue

+ 10 - 0
src/modules/basic/view/user.vue

@@ -636,6 +636,16 @@ export default {
         ];
       } else {
         this.rules.orgId = [];
+        if (this.updateDialog) {
+          this.$refs.updateForm && this.$refs.updateForm.clearValidate("orgId");
+        } else if (this.addingDialog) {
+          this.$refs.addingForm && this.$refs.addingForm.clearValidate("orgId");
+        }
+      }
+      if (this.updateDialog) {
+        this.$refs.updateForm && this.$refs.updateForm.validateField("orgId");
+      } else if (this.addingDialog) {
+        this.$refs.addingForm && this.$refs.addingForm.validateField("orgId");
       }
     },
     rootOrgChanged4Search() {