فهرست منبع

feature(打卡记录): 默认往前查询一个月的数据

likai 2 سال پیش
والد
کامیت
a25bf303a6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/views/plat/punchRecords/index.vue

+ 1 - 1
src/views/plat/punchRecords/index.vue

@@ -90,7 +90,7 @@
         queryForm: {
           userNickName: '',
           daysBeforeToday: 0,
-          date: [],
+          date: [this.parseTime(new Date().setMonth(new Date().getMonth() - 1)), this.parseTime(new Date())],
           beginTime: undefined,
           endTime: undefined,
         },