From 4e394d1f4ed0928d5498083621966aba390a7642 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期三, 05 三月 2025 16:05:15 +0800 Subject: [PATCH] 图表查询 --- src/components/chat/components/playBar/businessTable/ChartDisplay.vue | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/components/chat/components/playBar/businessTable/ChartDisplay.vue b/src/components/chat/components/playBar/businessTable/ChartDisplay.vue index f9b318b..7ad8873 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'; @@ -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