Преглед изворни кода

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