|
@@ -636,6 +636,16 @@ export default {
|
|
];
|
|
];
|
|
} else {
|
|
} else {
|
|
this.rules.orgId = [];
|
|
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() {
|
|
rootOrgChanged4Search() {
|