minitiger 8 жил өмнө
parent
commit
d25054020f

+ 4 - 0
VisualInspection/js/statistics/assess_ranking.js

@@ -229,6 +229,10 @@ function exportExcel(){
     }else{
         start_date += " 23:00:00";
         end_date += " 23:00:00";
+        var start = new Date(start_date);
+        //开始日期取前一天的23:00
+        start.setDate(start.getDate()-1);
+        start_date = start.Format("yyyy-MM-dd HH:mm:ss");
     }
     if(!dept_id) dept_id="";
     window.open( getserveraddr() + "/file/employee/order?dept_id="+dept_id+

+ 5 - 0
VisualInspection/js/statistics/assess_situation.js

@@ -226,6 +226,11 @@ function exportExcel(){
     }else{
         start_date += " 23:00:00";
         end_date += " 23:00:00";
+
+        var start = new Date(start_date);
+        //开始日期取前一天的23:00
+        start.setDate(start.getDate()-1);
+        start_date = start.Format("yyyy-MM-dd HH:mm:ss");
     }
     window.open( getserveraddr() + "/file/score/info?start_date="+start_date+"&end_date="+end_date);
 }

+ 4 - 0
VisualInspection/js/statistics/assess_type.js

@@ -319,6 +319,10 @@ function exportExcel(){
     }else{
         start_date += " 23:00:00";
         end_date += " 23:00:00";
+        var start = new Date(start_date);
+        //开始日期取前一天的23:00
+        start.setDate(start.getDate()-1);
+        start_date = start.Format("yyyy-MM-dd HH:mm:ss");
     }
     window.open( getserveraddr() + "/file/score/item/info?start_date="+start_date+"&end_date="+end_date);
 }

+ 2 - 2
VisualInspection/view/statistics/assess_type.html

@@ -1,5 +1,5 @@
-<script src="/js/statistics/assess_type.js"></script>
-<link rel="stylesheet" type="text/css" href="/css/statistics/assess_situation.css">
+<script src="/js/statistics/assess_type.js?__inline"></script>
+<link rel="stylesheet" type="text/css" href="/css/statistics/assess_situation.css?__inline">
 <div class="container-fluid ">
     <div class="form-div">
         <form  class="form-horizontal">