搞定 分享
var p_date = dateAdd(now(),"dayofyear",-7)
var p_date2 = dateAdd(now(),"dayofyear",-57)
var p_date1 = dateAdd(now(),"dayofyear",-1)
var startdate=formatDate(p_date,'yyyy-MM-dd');
var enddate=formatDate(p_date1,'yyyy-MM-dd');
var startdate1=formatDate(p_date2,'yyyy-MM');
var enddate1=formatDate(p_date1,'yyyy-MM');
if(param["WORKSHOP"]=="月维度"){
debug("aa");
START_MON.value=startdate1;
START_DAY.value='';
START_DAY.visible=false;
END_DAY.visible=true;
END_MON.value=enddate1;
END_DAY.value='';
END_DAY.visible=false;
END_MON.visible=true;
}
else {
debug("bb");
START_MON.value='';
START_MON.visible=false;
START_DAY.visible=true;
START_DAY.value=startdate;
END_MON.value='';
END_DAY.value=enddate;
END_MON.visible=false;
END_DAY.visible=true;
} |