wujingjing
2024-09-25 a656cfbcd0fea1048a633434f1e530fe40d4e3a0
src/components/chat/chatComponents/summaryCom/components/recordSet/RecordSet.vue
@@ -1,3 +1,4 @@
<!-- 昨日供水管网概况 -->
<template>
   <div class="w-full">
      <div class="flex mb-4 flex-wrap">
@@ -44,7 +45,6 @@
import { ChartTypeEnum } from '../../../types';
const chartRef = ref<HTMLDivElement>(null);
const defaultDisplayType = 'line';
const yRange = ref({
   min: null as number,
   max: null as number,
@@ -116,8 +116,7 @@
let preData = null;
let activeChartType: ChartTypeEnum = ChartTypeEnum.Line;
let activeChartType: ChartTypeEnum = props.data.chart_type ?? ChartTypeEnum.Line;
const getChartTypeSeriesOption = (type: ChartTypeEnum) => {
   let result = {};
   switch (type) {
@@ -160,9 +159,7 @@
         return {
            name: item === 'default' ? '' : item,
            data: values.map((item) => [item[timeIndex], item[valueIndex]]),
            type: defaultDisplayType,
            symbol: 'none',
            smooth: true,
            ...getChartTypeSeriesOption(activeChartType)
         };
      });
   }
@@ -172,7 +169,7 @@
      },
      legend: {
         top: 19,
         show: series?.length > 1,
         show: true,
         type: 'scroll',
      },
      toolbox: {