提交 39d81085 编写于 作者: KK's avatar KK

异步校验

上级 ab193fe9
...@@ -995,7 +995,7 @@ import { Util } from '@/ibiz-core/utils'; ...@@ -995,7 +995,7 @@ import { Util } from '@/ibiz-core/utils';
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected async autoSave(opt: any = {}): Promise<any> { protected async autoSave(opt: any = {}): Promise<any> {
if (!this.formValidateStatus()) { if (await !this.formValidateStatus()) {
return Promise.reject(); return Promise.reject();
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -1043,7 +1043,7 @@ import { Util } from '@/ibiz-core/utils'; ...@@ -1043,7 +1043,7 @@ import { Util } from '@/ibiz-core/utils';
protected async save(opt: any = {}, showResultInfo?: boolean, isStateNext: boolean = true): Promise<any> { protected async save(opt: any = {}, showResultInfo?: boolean, isStateNext: boolean = true): Promise<any> {
showResultInfo = showResultInfo === undefined ? true : false; showResultInfo = showResultInfo === undefined ? true : false;
opt.saveEmit = opt.saveEmit === undefined ? true : false; opt.saveEmit = opt.saveEmit === undefined ? true : false;
if (!this.formValidateStatus()) { if (await !this.formValidateStatus()) {
this.$notice.error('值规则校验异常'); this.$notice.error('值规则校验异常');
return Promise.reject(); return Promise.reject();
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册