From cefe914628acd813a729a8a7ec697fe9810812f3 Mon Sep 17 00:00:00 2001
From: zhangzeli <123456>
Date: 星期三, 05 一月 2022 11:37:06 +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