|
|
@ -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" |
|
|
|