|
@@ -25,6 +25,8 @@ $(function(){
|
|
|
statisticsType = getUrlArgObjectNew("dateType",srcUrl)||"2"
|
|
|
from = getUrlArgObjectNew("from",srcUrl)||"1"
|
|
|
curDeptId = getUrlArgObjectNew("curDeptId",srcUrl)||""
|
|
|
+ let startDateParam = getUrlArgObjectNew("startDateParam",srcUrl)||""
|
|
|
+ let endDateParam = getUrlArgObjectNew("endDateParam",srcUrl)||""
|
|
|
if(statisticsType == 1){
|
|
|
$(".monthYear .mon").css({
|
|
|
backgroundColor:'#00A1FF',
|
|
@@ -34,7 +36,7 @@ $(function(){
|
|
|
backgroundColor:'#fff'
|
|
|
})
|
|
|
setDatePicker($("#datepicker"),$("#datepicker2"),1)
|
|
|
- }else{
|
|
|
+ }else if(statisticsType == 2){
|
|
|
$(".monthYear .year").css({
|
|
|
backgroundColor:'#00A1FF',
|
|
|
color:'#fff'
|
|
@@ -43,6 +45,11 @@ $(function(){
|
|
|
backgroundColor:'#fff'
|
|
|
})
|
|
|
setDatePicker($("#datepicker"),$("#datepicker2"),2)
|
|
|
+ }else if(statisticsType == 3){
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),3,new Date(startDateParam),new Date(endDateParam))
|
|
|
+ }
|
|
|
+ if(!statisticsType){
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),2)
|
|
|
}
|
|
|
if(deptId){
|
|
|
$(".selectDept").html(deptId).attr({
|