NEZ-3500 fix: 图表时间查询有误

This commit is contained in:
zyh
2024-09-19 15:41:31 +08:00
parent 22dfe521fd
commit 2950d40195
5 changed files with 11 additions and 4 deletions

View File

@@ -70,6 +70,7 @@ import alertDetail from '@/components/common/alert/alertDetail'
import dashboard from '@/components/page/integration/integration-tabs/dashboard'
import { fromRoute } from '@/components/common/js/constants'
import snapshotProgress from '@/components/common/snapshotProgress/snapshotProgress.vue'
import bus from '@/libs/bus'
// import alertLabelMixin from '@/components/common/mixin/alertLabelMixin'
export default {
name: 'alertMessageInfoTab',
@@ -185,7 +186,10 @@ export default {
immediate: true,
handler (n) {
if (n && n.length) {
this.timeRange = [this.timeFormate(n[0] * 1000), this.timeFormate(n[1] * 1000)]
this.timeRange = this.timeRange = [
bus.timeFormate(bus.computeTimezone(n[0] * 1000)),
bus.timeFormate(bus.computeTimezone(n[1] * 1000))
]
}
}
}