Przeglądaj źródła

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

likai 2 lat temu
rodzic
commit
a25bf303a6
1 zmienionych plików z 1 dodań i 1 usunięć
  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,
         },