xiao547607 5 năm trước cách đây
mục cha
commit
413f21f77b
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/views/base/personDeviceLog-list.vue

+ 3 - 0
src/views/base/personDeviceLog-list.vue

@@ -295,6 +295,7 @@ export default {
       var date = new Date();
       //date.get(1);
       var month = parseInt(date.getMonth() + 1);
+      //获取三天前时间
       var day = date.getDate() - 3;
       if (month < 10) month = "0" + month;
       if (day < 10) day = "0" + day;
@@ -306,6 +307,8 @@ export default {
       //设置当前月份+1
       //lastDate.setDate(0);
       //获取上个月最后一天=本月最后一天
+      //var lastDay = lastDate.getDate() - 1;
+      //获取三天后时间
       var lastDay = lastDate.getDate() + 3;
       var endTime =
         date.getFullYear() + "-" + month + "-" + lastDay + " 23:59:59";