Jelajahi Sumber

fix:默认个人任务统计时间为当月

liujiayin 3 tahun lalu
induk
melakukan
f793b9135d
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      src/views/peopleManages/taskStatistics/index.vue

+ 2 - 1
src/views/peopleManages/taskStatistics/index.vue

@@ -202,7 +202,7 @@ export default {
                     { prop: 'jian_ce_zhuang_ta', label: '检测状态' }
                 ]
             },
-            startDate: '2022-1-1',
+            startDate: '',
             endDate: '',
             chartData: [],
             pagination: { limit: 20, page: 1 },
@@ -383,6 +383,7 @@ export default {
     },
     created() {
         const initendDate = new Date();
+        this.startDate = initendDate.getFullYear() + '-' + (initendDate.getMonth() + 1) + '-01'
         this.endDate = initendDate.getFullYear() + '-' + (initendDate.getMonth() + 1) + '-' + initendDate.getDate()
         this.monthValues = [new Date(this.startDate), new Date(initendDate.getFullYear() + '-' + (initendDate.getMonth() + 1) + '-' + initendDate.getDate())]
         this.chartLoading()