if (this.evendata.<#if calendaritem.getItemType()??>${calendaritem.getItemType()?lower_case}</#if>.length > 0) {
...
...
@@ -456,7 +465,7 @@ import moment from 'moment';
}
</#list>
</#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';
* @param any
* @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.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) => {