Browse Source

一次性导出报告时间组件调整

guanyongjie 1 week ago
parent
commit
535398c2a4
1 changed files with 8 additions and 8 deletions
  1. 8 8
      src/views/news/components/dialog/oneClickExportReport.vue

+ 8 - 8
src/views/news/components/dialog/oneClickExportReport.vue

@@ -74,11 +74,11 @@ const shortcuts = [
     text: '上周',
     value: () => {
       const end = new Date();
-      end.setUTCDate(end.getDate() - end.getDay())
-      end.setUTCHours(23, 59, 59, 999)
+      end.setDate(end.getDate() - end.getDay())
+      end.setHours(23, 59, 59, 999)
       const start = new Date(end);  
-      start.setUTCDate(start.getDate() - 7)
-      start.setUTCHours(0, 0, 0, 0)
+      start.setDate(start.getDate() - 7)
+      start.setHours(0, 0, 0, 0)
       return [start,end]
     },
   },
@@ -86,11 +86,11 @@ const shortcuts = [
     text: '上个月',
     value: () => {
       const end = new Date();
-      end.setUTCDate(0);
-      end.setUTCHours(23, 59, 59, 999);
+      end.setDate(0);
+      end.setHours(23, 59, 59, 999);
       const start = new Date(end);
-      start.setUTCDate(1); 
-      start.setUTCHours(0, 0, 0, 0);
+      start.setDate(1); 
+      start.setHours(0, 0, 0, 0);
       return [start,end]
     },
   },