时间调整一下

This commit is contained in:
2024-07-11 19:32:26 +08:00
parent 3ecd2daef4
commit 9a8b741a21

View File

@@ -77,7 +77,7 @@ export default {
})).then(res => { })).then(res => {
if (res?.data) { if (res?.data) {
this.summary = res.data.total this.summary = res.data.total
this.tableData = res.data?.page?.records?.map(e => ({...e, hour: `${`${e.hour - 1}`.padStart(2, '0')}:00-${e.hour.padStart(2, '0')}:00`})) || [] this.tableData = res.data?.page?.records?.map(e => ({...e, hour: `${e.hour.padStart(2, '0')}:00-${`${Number(e.hour)+1}`.padStart(2, '0')}:00`})) || []
} }
}) })
}, },