Commit c93c1852 by lianyang

checkAll,没有错时,清除之前的校验状态

parent ab698803
...@@ -80,6 +80,8 @@ export default { ...@@ -80,6 +80,8 @@ export default {
const fieldErrors = result.fieldErrors; const fieldErrors = result.fieldErrors;
this.updateModel(result.data); this.updateModel(result.data);
if(fieldErrors && Object.keys(fieldErrors).length == 0){ if(fieldErrors && Object.keys(fieldErrors).length == 0){
// 清除之前的校验状态
this.getRoot().$refs.modelForm.clearValidate();
this.$notify({ this.$notify({
title: "成功", title: "成功",
message: "校验成功", message: "校验成功",
...@@ -88,7 +90,6 @@ export default { ...@@ -88,7 +90,6 @@ export default {
return return
} }
const tab = this.showBackendErrors(fieldErrors) const tab = this.showBackendErrors(fieldErrors)
if (tab) { if (tab) {
// tab切换之后,需出发tab-click的事件 // tab切换之后,需出发tab-click的事件
this.tabClick(tab); this.tabClick(tab);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment