From 2285d94d0885ca91b214da59483ca60651b580f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=85=81=E6=9E=9E?= <3422692813@qq.com> Date: Tue, 15 Oct 2024 15:34:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B010.15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fuintAdmin/src/views/shopowner.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/fuintAdmin/src/views/shopowner.vue b/fuintAdmin/src/views/shopowner.vue index 7e737eff7..80d6a07b1 100644 --- a/fuintAdmin/src/views/shopowner.vue +++ b/fuintAdmin/src/views/shopowner.vue @@ -324,6 +324,8 @@ export default { let nowDate = new Date(); let oneWeekAgo = new Date(nowDate.getTime() - 6 * 24 * 60 * 60 * 1000) this.value1 = [parseTime(oneWeekAgo), parseTime(nowDate)] + this.countValue = [parseTime(oneWeekAgo), parseTime(nowDate)] + this.showValue = [parseTime(oneWeekAgo), parseTime(nowDate)] this.getStoreTotal() // this.selectChildByDeptIdApi() this.getStoreAmount() @@ -461,8 +463,8 @@ export default { //油站首页数据展示 getDataShow() { const data = { - "startTime": this.value1[0].split(' ')[0], - "endTime": this.value1[1].split(' ')[0] + "startTime": this.showValue[0].split(' ')[0], + "endTime": this.showValue[1].split(' ')[0] } getDataShow(data).then(res => { // console.log('首页数据展示', res.data) @@ -473,8 +475,8 @@ export default { //油站首页数据统计 getDataCount() { const data = { - "startTime": this.value1[0].split(' ')[0], - "endTime": this.value1[1].split(' ')[0] + "startTime": this.countValue[0].split(' ')[0], + "endTime": this.countValue[1].split(' ')[0] } getDataCount(data).then(res => { // console.log('首页数据统计', res.data)