From 7ebd84a4ad1f6561f450d5e92d987d22924d59ec Mon Sep 17 00:00:00 2001 From: zhangzeli <123456> Date: 星期二, 04 一月 2022 13:35:12 +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