From 6e09e21b98b487621e7f19e1b91012a0e9e617ed Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期五, 21 三月 2025 13:06:26 +0800
Subject: [PATCH] 	z-index: 1;

---
 src/components/chat/components/playBar/businessTable/ChartDisplay.vue |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/components/chat/components/playBar/businessTable/ChartDisplay.vue b/src/components/chat/components/playBar/businessTable/ChartDisplay.vue
index f9b318b..f9997c8 100644
--- a/src/components/chat/components/playBar/businessTable/ChartDisplay.vue
+++ b/src/components/chat/components/playBar/businessTable/ChartDisplay.vue
@@ -8,7 +8,7 @@
 
 <script setup lang="ts" name="ChartDisplay">
 import { defaultsDeep, groupBy } from 'lodash-es';
-import { computed, ref } from 'vue';
+import { computed, onMounted, ref, watch } from 'vue';
 import { getChatChartOption, SCATTER_SYMBOL_SIZE } from '../../../chatComponents/common';
 import { ChartTypeEnum } from '../../../chatComponents/types';
 import { useDrawChatChart } from '/@/components/chat/chatComponents/hooks/useDrawChatChart';
@@ -102,7 +102,7 @@
 		} as echarts.EChartsOption,
 		getChatChartOption()
 	);
-	chartInstance.value.setOption(combineOption, {
+	chartInstance.value?.setOption(combineOption, {
 		notMerge: true,
 	});
 };
@@ -174,5 +174,12 @@
 
 const chartLoading = ref(false);
 const { chartContainerResize, chartInstance } = useDrawChatChart({ chartRef, drawChart });
+
+watch(
+	() => props.records,
+	(val) => {
+		drawChart();
+	}
+);
 </script>
 <style scoped lang="scss"></style>

--
Gitblit v1.9.3