故障录波:关闭后清除图表数据

This commit is contained in:
高云鹏 2024-11-13 15:50:09 +08:00
parent a9c6329c44
commit 644ef9c3a2

View File

@ -349,6 +349,7 @@ const readFile = (data: tableItemData) => {
const closePreviewFileDialog = () => { const closePreviewFileDialog = () => {
previewTreeData.value = [] previewTreeData.value = []
previewChartData = [] previewChartData = []
selectPreviewTree = []
curSeries = [] curSeries = []
previewChartInstance && previewChartInstance.clear() previewChartInstance && previewChartInstance.clear()
} }
@ -377,7 +378,7 @@ const previewSearchTree = (val: string) => {
}) })
} }
const selectPreviewTree: any = [] let selectPreviewTree: any = []
const handleCheckChange = (data: any, state: boolean) => { const handleCheckChange = (data: any, state: boolean) => {
previewChartInstance && previewChartInstance.clear() previewChartInstance && previewChartInstance.clear()
console.log(data, state) console.log(data, state)