public defaultUpdateItems:Array<any> =[<#list ctrl.getPSDEGridEditItems() as editItem><#if editItem.getUpdateDV?? && editItem.getUpdateDV()??>'${editItem.getCodeName()?lower_case}'</#if><#if editItem_has_next>,</#if></#list>];
/**
/**
* 选中行数据
* 选中行数据
*
*
...
@@ -1604,6 +1611,13 @@ import { FormItemModel } from '@/model/form-detail';
...
@@ -1604,6 +1611,13 @@ import { FormItemModel } from '@/model/form-detail';
*/
*/
public async save(args: any[], params?: any, $event?: any, xData?: any){
public async save(args: any[], params?: any, $event?: any, xData?: any){
let _this = this;
let _this = this;
if(_this.items && _this.items.length >0){
for (const item of _this.items) {
if(Object.is(item.rowDataState, 'update')){
_this.updateDefault(item);
}
}
}
if(!await this.validateAll()){
if(!await this.validateAll()){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.rulesException') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.rulesException') as string) });
return [];
return [];
...
@@ -1631,7 +1645,7 @@ import { FormItemModel } from '@/model/form-detail';
...
@@ -1631,7 +1645,7 @@ import { FormItemModel } from '@/model/form-detail';