提交 8ca36373 编写于 作者: JunZai's avatar JunZai

update

上级 9497957e
...@@ -390,11 +390,11 @@ FullCalendar, ...@@ -390,11 +390,11 @@ FullCalendar,
let _context: any = Object.assign({},this.context); let _context: any = Object.assign({},this.context);
let itemType = event.itemType; let itemType = event.itemType;
switch(itemType) { switch(itemType) {
<#if ctrl.getPSSysCalendarItems()??> <#if ctrl.getPSSysGanttItems()??>
<#list ctrl.getPSSysCalendarItems() as calendarItem> <#list ctrl.getPSSysGanttItems() as ganttItem>
<#if calendarItem.getPSAppDataEntity()??> <#if ganttItem.getPSAppDataEntity()??>
<#assign _appde = calendarItem.getPSAppDataEntity() /> <#assign _appde = ganttItem.getPSAppDataEntity() />
case "${calendarItem.getItemType()}": case "${ganttItem.getItemType()}":
_context.${_appde.getCodeName()?lower_case} = event.${_appde.getCodeName()?lower_case}; _context.${_appde.getCodeName()?lower_case} = event.${_appde.getCodeName()?lower_case};
view = this.getEditView("${_appde.getCodeName()?lower_case}"); view = this.getEditView("${_appde.getCodeName()?lower_case}");
break; break;
...@@ -462,11 +462,11 @@ FullCalendar, ...@@ -462,11 +462,11 @@ FullCalendar,
arg.end = this.$util.dateFormat($event.event.end); arg.end = this.$util.dateFormat($event.event.end);
let itemType = $event.event._def.extendedProps.itemType; let itemType = $event.event._def.extendedProps.itemType;
switch(itemType) { switch(itemType) {
<#if ctrl.getPSSysCalendarItems()??> <#if ctrl.getPSSysGanttItems()??>
<#list ctrl.getPSSysCalendarItems() as calendarItem> <#list ctrl.getPSSysGanttItems() as ganttItem>
<#if calendarItem.getPSAppDataEntity()??> <#if ganttItem.getPSAppDataEntity()??>
<#assign _appde = calendarItem.getPSAppDataEntity() /> <#assign _appde = ganttItem.getPSAppDataEntity() />
case "${calendarItem.getItemType()}": case "${ganttItem.getItemType()}":
arg.${_appde.getCodeName()?lower_case} = $event.event._def.extendedProps.${_appde.getCodeName()?lower_case}; arg.${_appde.getCodeName()?lower_case} = $event.event._def.extendedProps.${_appde.getCodeName()?lower_case};
_context.${_appde.getCodeName()?lower_case} = $event.event._def.extendedProps.${_appde.getCodeName()?lower_case}; _context.${_appde.getCodeName()?lower_case} = $event.event._def.extendedProps.${_appde.getCodeName()?lower_case};
break; break;
......
...@@ -55,11 +55,11 @@ ...@@ -55,11 +55,11 @@
]; ];
switch(this.itemType){ switch(this.itemType){
<#-- 日历项实体映射 --> <#-- 日历项实体映射 -->
<#if ctrl.getPSSysCalendarItems()??> <#if ctrl.getPSSysGanttItems()??>
<#list ctrl.getPSSysCalendarItems() as calendarItem> <#list ctrl.getPSSysGanttItems() as ganttItem>
<#if calendarItem.getPSAppDataEntity()??> <#if ganttItem.getPSAppDataEntity()??>
<#assign appDataEntity = calendarItem.getPSAppDataEntity() /> <#assign appDataEntity = ganttItem.getPSAppDataEntity() />
case "${calendarItem.getItemType()}": case "${ganttItem.getItemType()}":
dataItems = [...dataItems, dataItems = [...dataItems,
{ {
name: '${appDataEntity.getCodeName()?lower_case}', name: '${appDataEntity.getCodeName()?lower_case}',
...@@ -71,11 +71,11 @@ ...@@ -71,11 +71,11 @@
}, },
{ {
name:'start', name:'start',
prop:'${calendarItem.getBeginTimePSDEField().getCodeName()?lower_case}' prop:'${ganttItem.getBeginTimePSDEField().getCodeName()?lower_case}'
}, },
{ {
name:'end', name:'end',
prop:'${calendarItem.getEndTimePSDEField().getCodeName()?lower_case}' prop:'${ganttItem.getEndTimePSDEField().getCodeName()?lower_case}'
}, },
]; ];
break; break;
......
<#assign import_block> <#assign import_block>
<#if ctrl.getPSSysCalendarItems()??> <#if ctrl.getPSSysGanttItems()??>
<#list ctrl.getPSSysCalendarItems() as calendarItem> <#list ctrl.getPSSysGanttItems() as ganttItem>
<#if calendarItem.getPSAppDataEntity()??> <#if ganttItem.getPSAppDataEntity()??>
<#assign _appde = calendarItem.getPSAppDataEntity() /> <#assign _appde = ganttItem.getPSAppDataEntity() />
<#if _appde.getId() != appde.getId()> <#if _appde.getId() != appde.getId()>
<#if !P.exists("importService", _appde.getId(), "")> <#if !P.exists("importService", _appde.getId(), "")>
import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffilepath2(_appde.getCodeName())}/${srffilepath2(_appde.getCodeName())}-service'; import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffilepath2(_appde.getCodeName())}/${srffilepath2(_appde.getCodeName())}-service';
...@@ -16,10 +16,10 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi ...@@ -16,10 +16,10 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
../@MACRO/SERVICE/SERVICE_HEADER.ts.ftl ../@MACRO/SERVICE/SERVICE_HEADER.ts.ftl
</#ibizinclude> </#ibizinclude>
<#if ctrl.getPSSysCalendarItems()??> <#if ctrl.getPSSysGanttItems()??>
<#list ctrl.getPSSysCalendarItems() as calendarItem> <#list ctrl.getPSSysGanttItems() as ganttItem>
<#if calendarItem.getPSAppDataEntity()??> <#if ganttItem.getPSAppDataEntity()??>
<#assign _appde = calendarItem.getPSAppDataEntity() /> <#assign _appde = ganttItem.getPSAppDataEntity() />
<#if _appde.getId() != appde.getId()> <#if _appde.getId() != appde.getId()>
<#if !P.exists("importService2", _appde.getId(), "")> <#if !P.exists("importService2", _appde.getId(), "")>
/** /**
...@@ -43,13 +43,13 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi ...@@ -43,13 +43,13 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
public eventsConfig: any[] = [ public eventsConfig: any[] = [
<#if ctrl.getPSSysCalendarItems()??> <#if ctrl.getPSSysGanttItems()??>
<#list ctrl.getPSSysCalendarItems() as calendarItem> <#list ctrl.getPSSysGanttItems() as ganttItem>
{ {
itemName : '${calendarItem.getName()}', itemName : '${ganttItem.getName()}',
itemType : '${calendarItem.getItemType()}', itemType : '${ganttItem.getItemType()}',
color : '${calendarItem.getBKColor()}', color : '${ganttItem.getBKColor()}',
textColor : '${calendarItem.getColor()}', textColor : '${ganttItem.getColor()}',
}, },
</#list> </#list>
</#if> </#if>
...@@ -71,17 +71,17 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi ...@@ -71,17 +71,17 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
let promises:any = []; let promises:any = [];
let tempRequest:any; let tempRequest:any;
<#if ctrl.getPSSysCalendarItems()??> <#if ctrl.getPSSysGanttItems()??>
<#list ctrl.getPSSysCalendarItems() as calendarItem> <#list ctrl.getPSSysGanttItems() as ganttItem>
<#if calendarItem.getPSAppDataEntity()?? && calendarItem.getPSDEDataSet()??> <#if ganttItem.getPSAppDataEntity()?? && ganttItem.getPSDEDataSet()??>
<#assign _appde = calendarItem.getPSAppDataEntity() /> <#assign _appde = ganttItem.getPSAppDataEntity() />
<#assign deDataSet = calendarItem.getPSDEDataSet() /> <#assign deDataSet = ganttItem.getPSDEDataSet() />
<#if !P.exists("importService3", _appde.getId() + deDataSet.getCodeName(), "")> <#if !P.exists("importService3", _appde.getId() + deDataSet.getCodeName(), "")>
<#if _appde.getId() == appde.getId()> <#if _appde.getId() == appde.getId()>
tempRequest = this.handleRequestData(action,context,data,true,"${calendarItem.getItemType()}"); tempRequest = this.handleRequestData(action,context,data,true,"${ganttItem.getItemType()}");
promises.push(this.appEntityService.Fetch${deDataSet.getCodeName()}(tempRequest.context, tempRequest.data, isloading)); promises.push(this.appEntityService.Fetch${deDataSet.getCodeName()}(tempRequest.context, tempRequest.data, isloading));
<#else> <#else>
tempRequest = this.handleRequestData(action,context,data,true,"${calendarItem.getItemType()}"); tempRequest = this.handleRequestData(action,context,data,true,"${ganttItem.getItemType()}");
promises.push(this.${_appde.getCodeName()?lower_case}Service.Fetch${deDataSet.getCodeName()}(tempRequest.context, tempRequest.data, isloading)); promises.push(this.${_appde.getCodeName()?lower_case}Service.Fetch${deDataSet.getCodeName()}(tempRequest.context, tempRequest.data, isloading));
</#if> </#if>
</#if> </#if>
...@@ -134,18 +134,18 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi ...@@ -134,18 +134,18 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
let result: any; let result: any;
let tempRequest:any; let tempRequest:any;
switch(itemType) { switch(itemType) {
<#if ctrl.getPSSysCalendarItems()??> <#if ctrl.getPSSysGanttItems()??>
<#list ctrl.getPSSysCalendarItems() as calendarItem> <#list ctrl.getPSSysGanttItems() as ganttItem>
<#if calendarItem.getPSAppDataEntity()??> <#if ganttItem.getPSAppDataEntity()??>
<#assign _appde = calendarItem.getPSAppDataEntity() /> <#assign _appde = ganttItem.getPSAppDataEntity() />
<#if _appde.getId() == appde.getId()> <#if _appde.getId() == appde.getId()>
case "${calendarItem.getItemType()}": case "${ganttItem.getItemType()}":
tempRequest = this.handleRequestData("",context,data,false,"${calendarItem.getItemType()}"); tempRequest = this.handleRequestData("",context,data,false,"${ganttItem.getItemType()}");
result = this.appEntityService.Update(tempRequest.context, tempRequest.data, isloading); result = this.appEntityService.Update(tempRequest.context, tempRequest.data, isloading);
break; break;
<#else> <#else>
case "${calendarItem.getItemType()}": case "${ganttItem.getItemType()}":
tempRequest = this.handleRequestData("",context,data,false,"${calendarItem.getItemType()}"); tempRequest = this.handleRequestData("",context,data,false,"${ganttItem.getItemType()}");
result = this.${_appde.getCodeName()?lower_case}Service.Update(tempRequest.context, tempRequest.data, isloading); result = this.${_appde.getCodeName()?lower_case}Service.Update(tempRequest.context, tempRequest.data, isloading);
break; break;
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册