提交 4051ece8 编写于 作者: KK's avatar KK

update 日历视图报错

上级 7e45f757
......@@ -432,11 +432,11 @@ import moment from 'moment';
if(this.calendarItems.<#if calendaritem.getItemType()??>${calendaritem.getItemType()?lower_case}</#if>){
this.calendarItems.<#if calendaritem.getItemType()??>${calendaritem.getItemType()?lower_case}</#if>.forEach((item:any) => {
if(${calendaritem.getItemType()?lower_case}Item.length == 0){
${calendaritem.getItemType()?lower_case}Item.push({time:item.create_date.substring(0, 10),evens:[item]});
${calendaritem.getItemType()?lower_case}Item.push({time:item.item.<#if calendaritem.getBeginTimePSAppDEField()?? && calendaritem.getBeginTimePSAppDEField().getName()??>${calendaritem.getBeginTimePSAppDEField().getName()?lower_case}<#else>start</#if>.substring(0, 10),evens:[item]});
}else{
${calendaritem.getItemType()?lower_case}Item.forEach((sig:any)=>{
if(sig.time.substring(0, 10) != item.create_date.substring(0, 10)){
${calendaritem.getItemType()?lower_case}Item.push({time:item.create_date.substring(0, 10),evens:[item]});
if(sig.time.substring(0, 10) != item.<#if calendaritem.getBeginTimePSAppDEField()?? && calendaritem.getBeginTimePSAppDEField().getName()??>${calendaritem.getBeginTimePSAppDEField().getName()?lower_case}<#else>start</#if>.substring(0, 10)){
${calendaritem.getItemType()?lower_case}Item.push({time:item.<#if calendaritem.getBeginTimePSAppDEField()?? && calendaritem.getBeginTimePSAppDEField().getName()??>${calendaritem.getBeginTimePSAppDEField().getName()?lower_case}<#else>start</#if>.substring(0, 10),evens:[item]});
}
})}
if(item.<#if calendaritem.getBeginTimePSAppDEField()?? && calendaritem.getBeginTimePSAppDEField().getName()??>${calendaritem.getBeginTimePSAppDEField().getName()?lower_case}<#else>start</#if>){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册