if (this.evendata.<#if calendaritem.getItemType()??>${calendaritem.getItemType()?lower_case}</#if>.length > 0) {
if (this.evendata.<#if calendaritem.getItemType()??>${calendaritem.getItemType()?lower_case}</#if>.length > 0) {
...
@@ -456,7 +465,7 @@ import moment from 'moment';
...
@@ -456,7 +465,7 @@ import moment from 'moment';
}
}
</#list>
</#list>
</#if>
</#if>
this.setSign();
this.setSign(<#if ctrl.getPSSysCalendarItems()??><#list ctrl.getPSSysCalendarItems() as calendaritem><#if calendaritem.getItemType()??>${calendaritem.getItemType()?lower_case}Item</#if>,</#list></#if>);
}
}
/**
/**
...
@@ -465,9 +474,17 @@ import moment from 'moment';
...
@@ -465,9 +474,17 @@ import moment from 'moment';
* @param any
* @param any
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
*/
public setSign(){
public setSign(<#if ctrl.getPSSysCalendarItems()??><#list ctrl.getPSSysCalendarItems() as calendaritem><#if calendaritem.getItemType()??>${calendaritem.getItemType()?lower_case}Item: any</#if>,</#list></#if>){
this.sign.push(<#if ctrl.getPSSysCalendarItems()??><#list ctrl.getPSSysCalendarItems() as calendaritem><#if calendaritem.getItemType()??>...JSON.parse(JSON.stringify(this.evendata.${calendaritem.getItemType()?lower_case}))</#if>,</#list></#if>);
this.sign.push(<#if ctrl.getPSSysCalendarItems()??><#list ctrl.getPSSysCalendarItems() as calendaritem><#if calendaritem.getItemType()??>...JSON.parse(JSON.stringify(this.evendata.${calendaritem.getItemType()?lower_case}))</#if>,</#list></#if>);
this.sign.forEach((item:any) => {
this.sign.push(<#if ctrl.getPSSysCalendarItems()??><#list ctrl.getPSSysCalendarItems() as calendaritem><#if calendaritem.getItemType()??>...${calendaritem.getItemType()?lower_caseItem}</#if>,</#list></#if>);
let obj: any = {}
//去重
this.sign = this.sign.reduce((cur: any ,next: any) => {