提交 d8c665ec 编写于 作者: Mosher's avatar Mosher

表格行编辑保存逻辑修改

上级 2e124c30
...@@ -501,7 +501,7 @@ import { Environment } from '@/environments/environment'; ...@@ -501,7 +501,7 @@ import { Environment } from '@/environments/environment';
* @type {boolean} * @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public errorMessage: Array<any> = []; public errorMessages: Array<any> = [];
/** /**
* 部件刷新 * 部件刷新
...@@ -1957,7 +1957,7 @@ import { Environment } from '@/environments/environment'; ...@@ -1957,7 +1957,7 @@ import { Environment } from '@/environments/environment';
} }
} }
if(!await this.validateAll()){ if(!await this.validateAll()){
if(this.errorMessages $$ this.errorMessages.length > 0) { if(this.errorMessages && this.errorMessages.length > 0) {
this.errorMessages.forEach((message: any) => { this.errorMessages.forEach((message: any) => {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: message }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: message });
}) })
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册