fix: 修复表格的时间过滤问题

This commit is contained in:
Orange
2020-10-13 14:48:06 +08:00
committed by 老广
parent 1519ccb8e2
commit b849df1dc1
8 changed files with 21 additions and 14 deletions

View File

@@ -145,6 +145,13 @@ export function getDaysFuture(days, now) {
return new Date(now.getTime() + 3600 * 1000 * 24 * days)
}
export function getDayEnd(now) {
if (!now) {
now = new Date()
}
return new Date(new Date(now.toLocaleDateString()).getTime() + 24 * 60 * 60 * 1000 - 1)
}
export function setUrlParam(url, name, value) {
const urlArray = url.split('?')
if (urlArray.length === 1) {