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

修改日历部件逻辑

上级 f3d34fa5
...@@ -460,7 +460,12 @@ import moment from 'moment'; ...@@ -460,7 +460,12 @@ import moment from 'moment';
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
public setSign(){ public setSign(){
this.sign = [<#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 = {}
this.sign = this.sign.reduce((cur,next) => {
obj[next.id] ? "" : obj[next.id] = true && cur.push(next);
return cur;
},[])
this.sign.forEach((item:any) => { this.sign.forEach((item:any) => {
if(item.time.length == 10){ if(item.time.length == 10){
let year = item.time.split('-')[0]; let year = item.time.split('-')[0];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册