wujingjing
2025-03-11 c144c39d9f3f86e1b52ae4247f8322f6396a4320
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>