From 649377c926979e7607960e0cf4c6d97d26080403 Mon Sep 17 00:00:00 2001
From: zhangzeli <123456>
Date: 星期一, 29 十一月 2021 08:37:54 +0800
Subject: [PATCH] 报表

---
 src/views/your/carCost-manage/carCostManage.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/your/carCost-manage/carCostManage.vue b/src/views/your/carCost-manage/carCostManage.vue
index c483b3f..311f36c 100644
--- a/src/views/your/carCost-manage/carCostManage.vue
+++ b/src/views/your/carCost-manage/carCostManage.vue
@@ -473,8 +473,12 @@
           this.searchForm.endTime = this.selectDate(this.value[1]);
           this.page=false;
         }else{
-          this.searchForm.beginTime = "";
-          this.searchForm.endTime = "";
+          var date = new Date();
+          this.searchForm.endTime = this.selectDate(date);
+          this.value[1] = this.searchForm.endTime;
+          date.setDate(1);
+          this.value[0] = date;
+          this.searchForm.beginTime = this.selectDate(date);
         }
         getOilExcel(this.searchForm).then((res) => {
           this.loading = false;

--
Gitblit v1.9.1