wujingjing
2024-07-04 89323ef5405d9e1721b85afcba55984feb9d1942
src/components/chat/chatComponents/recordSetCom/RecordSetCom.vue
@@ -29,7 +29,7 @@
import type { TabsPaneContext } from 'element-plus';
import type { PropType } from 'vue';
import { onMounted, ref } from 'vue';
import { ChartTypeEnum, chartTypeMapEchart, chartTypeMapName } from './types';
import { ChartTypeEnum, chartTypeMapEchart, chartTypeMapName } from '../types';
import type { RecordSetValues } from '/@/api/ai/chat';
import { dateRegex } from '/@/utils/toolsValidate';
const activeName = ref('first');
@@ -78,7 +78,9 @@
         show: true,
      },
      title: {
         // text: props.data.title,
         text: props.data.title,
         left: 'center',
      },
      xAxis: {
         name: props.data?.names[0],
@@ -104,7 +106,8 @@
   setTimeout(() => {
      const parent = chartRef.value.parentElement;
      if(!parent){
      }
      const parentBound = parent.getBoundingClientRect();
      chartInstance = echarts.init(chartRef.value,undefined,{
         width:parentBound.width,