NEZ-1959 fix:在不同的时间格式下查看其他时间格式下使用过的最近时间显示范围时内容显示有误

This commit is contained in:
zhangyu
2022-06-20 16:54:37 +08:00
parent c8efd6773b
commit b7facbfd3c

View File

@@ -92,9 +92,9 @@
class="date-range-history-item"
@click="historyChange(item)"
>
{{ timeFormate(item.start) }}
{{ momentTz(item.start) }}
{{ $t("dashboard.panel.to") }}
{{ timeFormate(item.end) }}
{{ momentTz(item.end) }}
</div>
</div>
</el-col>
@@ -340,8 +340,8 @@ export default {
}
this.isCustom = true
this.rangeHistory.unshift({
start: item[0],
end: item[1]
start: this.momentStrToTimestamp(item[0]),
end: this.momentStrToTimestamp(item[1])
})
localStorage.setItem(
'date-range-history' + this.sign,