提交 38430f1b 编写于 作者: zcdtk's avatar zcdtk

Merge remote-tracking branch 'core/dev' into dev

......@@ -37,24 +37,24 @@
*/
public async search(itemType: string, context: any = {}, data: any = {}, isLoading?: boolean): Promise<HttpResponse> {
let item: any = {};
data = this.handleRequestData('', context, data);
await this.onBeforeAction('', context, data, isLoading);
this.model.itemType = itemType;
try {
<#if ctrl.getPSSysCalendarItems()??>
item = {
<#list ctrl.getPSSysCalendarItems() as calendarItem>
<#if calendarItem.getPSAppDataEntity()?? && calendarItem.getPSDEDataSet()??>
<#assign _appde = calendarItem.getPSAppDataEntity() />
<#assign deDataSet = calendarItem.getPSDEDataSet() />
this.model.itemType = '${calendarItem.getItemType()?lower_case}';
const _${calendarItem.getItemType()?lower_case}_data = this.handleRequestData('', context, data);
await this.onBeforeAction('', context, _${calendarItem.getItemType()?lower_case}_data, isLoading);
item = {
<#if _appde.getId() == appde.getId()>
...{ ${calendarItem.getItemType()?lower_case}: await this.loadDEDataSet('Fetch${deDataSet.getCodeName()}', context, data, '${calendarItem.getItemType()?lower_case}') },
...{ ${calendarItem.getItemType()?lower_case}: await this.loadDEDataSet('Fetch${deDataSet.getCodeName()}', context, _${calendarItem.getItemType()?lower_case}_data, '${calendarItem.getItemType()?lower_case}') },
<#else>
...{ ${calendarItem.getItemType()?lower_case}: await this.loadDEDataSet('Fetch${deDataSet.getCodeName()}', context, data, '${calendarItem.getItemType()?lower_case}') },
...{ ${calendarItem.getItemType()?lower_case}: await this.loadDEDataSet('Fetch${deDataSet.getCodeName()}', context, _${calendarItem.getItemType()?lower_case}_data, '${calendarItem.getItemType()?lower_case}', '${_appde.getCodeName()?lower_case}') },
</#if>
};
</#if>
</#list>
};
</#if>
} catch (response) {
await this.onAfterAction('', context, response);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册