fix: 修改 diagram tooltip的时间 未跟panel一致的问题

This commit is contained in:
zhangyu
2021-07-16 09:56:48 +08:00
parent 9ae70267bf
commit c5be6b8143
4 changed files with 34 additions and 6 deletions

View File

@@ -661,8 +661,9 @@ export default {
})
})
}
const endTime = this.filterTime[1]
const startTime = this.filterTime[0]
const panelTime = localStorage.getItem('panelTime') ? JSON.parse(localStorage.getItem('panelTime')) : ['', '']
const endTime = panelTime[1] || this.filterTime[1]
const startTime = panelTime[0] || this.filterTime[0]
const step = bus.getStep(startTime, endTime)
data.pens && data.pens.forEach((item, index) => {
this.chartGetData.push({ id: item.id, res: [] })