fix: 修复实体列表选择时间后刷新界面,时间选择器被重置为1hour的问题

This commit is contained in:
刘洪洪
2023-06-30 14:17:52 +08:00
parent e8e8bd3462
commit 09c83e215c

View File

@@ -442,7 +442,8 @@ export default {
q: q,
mode: mode,
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime)
endTime: getSecond(this.timeFilter.endTime),
range: this.timeFilter.dateRangeValue
})
if (!this.showList) {
@@ -454,7 +455,8 @@ export default {
q: q,
mode: mode,
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime)
endTime: getSecond(this.timeFilter.endTime),
range: this.timeFilter.dateRangeValue
}
})
this.showList = true
@@ -837,7 +839,6 @@ export default {
timeFilter.value.startTime = parseInt(startTimeParam)
timeFilter.value.endTime = parseInt(endTimeParam)
}
timeFilter.value.dateRangeValue = 60
return {
timeFilter
}