Переглянути джерело

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,
         },