提交 147c4eb8 编写于 作者: KK's avatar KK

日历视图逻辑调整

上级 38430f1b
...@@ -462,7 +462,7 @@ import moment from 'moment'; ...@@ -462,7 +462,7 @@ import moment from 'moment';
public setSign(){ public setSign(){
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>);
let obj = {} let obj = {}
this.sign = this.sign.reduce((cur,next) => { this.sign = this.sign.reduce((cur: any ,next: any) => {
obj[next.id] ? "" : obj[next.id] = true && cur.push(next); obj[next.id] ? "" : obj[next.id] = true && cur.push(next);
return cur; return cur;
},[]) },[])
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册