提交 4d6a7f59 编写于 作者: KK's avatar KK

异步调整

上级 dfdcf444
...@@ -1012,7 +1012,7 @@ import { Util } from '@/ibiz-core/utils'; ...@@ -1012,7 +1012,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 (await !this.validAll()) { if (!await this.validAll()) {
return Promise.reject(); return Promise.reject();
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -1060,7 +1060,7 @@ import { Util } from '@/ibiz-core/utils'; ...@@ -1060,7 +1060,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 (await !this.validAll()) { if (!await this.validAll()) {
this.$notice.error('值规则校验异常'); this.$notice.error('值规则校验异常');
return Promise.reject(); return Promise.reject();
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册