|
@@ -45,16 +45,7 @@ $(function() {
|
|
|
if(startDateParam){
|
|
|
const startDate = new Date(startDateParam);
|
|
|
const endDate = new Date(endDateParam);
|
|
|
- $( "#datepicker" ).datepicker({
|
|
|
- changeMonth: true,
|
|
|
- changeYear: true,
|
|
|
- dateFormat:"yy/mm/dd",
|
|
|
- }).datepicker( "setDate", startDate);
|
|
|
- $( "#datepicker2" ).datepicker({
|
|
|
- changeMonth: true,
|
|
|
- changeYear: true,
|
|
|
- dateFormat:"yy/mm/dd"
|
|
|
- }).datepicker( "setDate",endDate);
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),"",startDate,endDate);
|
|
|
}else{
|
|
|
setDatePicker($("#datepicker"), $("#datepicker2"), 1);
|
|
|
}
|
|
@@ -75,8 +66,8 @@ $(function() {
|
|
|
$.alerModal({"message":'开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
return
|
|
|
}
|
|
|
- expJson(api.getQcClickByDeptExport,param).then(res =>{
|
|
|
- downloadExportedData(res.data,"临床质控使用统计(科室)"+startDateParam.substr(0,10).replace(/\//g,'')+"-"+endDateParam.substr(0,10).replace(/\//g,'')+".xls");
|
|
|
+ expJson(api.getQcClickInnerPageByExport,param).then(res =>{
|
|
|
+ downloadExportedData(res.data,"临床质控使用统计详情"+startDateParam.substr(0,10).replace(/\//g,'')+"-"+endDateParam.substr(0,10).replace(/\//g,'')+".xls");
|
|
|
})
|
|
|
})
|
|
|
//给每一个标题绑定一个排序事件
|