From 8c83da3c4eb6cb6ebafe7f148e26a30f8b01e15f Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Fri, 4 Mar 2022 10:06:43 +0800 Subject: [PATCH] dd --- src/views/modules/visual/communityParty/community.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/modules/visual/communityParty/community.vue b/src/views/modules/visual/communityParty/community.vue index 1146ca2d..a9d7e3a5 100644 --- a/src/views/modules/visual/communityParty/community.vue +++ b/src/views/modules/visual/communityParty/community.vue @@ -436,9 +436,9 @@ export default { const start = new Date(); start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); console.log('time-rtt', this.timeFormat(start), this.timeFormat(end)) - this.timeRange = [this.timeFormat(start), this.timeFormat(end)] + this.timeRange = [this.timeFormat(start, '00:00:00'), this.timeFormat(end, '23:59:59')] }, - timeFormat (date) { + timeFormat (date, h) { if (!date || typeof date === 'string') { return false } @@ -448,7 +448,7 @@ export default { var d = date.getDate() //日 if (d < 10) d = '0' + d - return y + '-' + m + '-' + d + ' 00:00:00' + return y + '-' + m + '-' + d + ' ' + h }, async loadUnit () { const url = "/heart/serviceitem/dict-list"