From 34f23c6d5a76765850fe7a67e08d3ccf1c13946c Mon Sep 17 00:00:00 2001 From: xuhongjie <1943105267@qq.com> Date: Wed, 16 Apr 2025 15:57:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=BE=E8=A1=A8=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/components/Charts/Bars/index.ts | 2 +- src/packages/components/Charts/Lines/index.ts | 2 +- src/views/AI/chat/index.vue | 2 +- .../ChartDataMatchingAndShow/index.vue | 205 +++++++++++++++--- .../components/ChartSetting/index.vue | 2 +- .../components/hooks/useTargetData.hook.ts | 1 + .../chart/ContentConfigurations/index.vue | 16 +- 7 files changed, 188 insertions(+), 42 deletions(-) diff --git a/src/packages/components/Charts/Bars/index.ts b/src/packages/components/Charts/Bars/index.ts index 03b088d..626b0dd 100644 --- a/src/packages/components/Charts/Bars/index.ts +++ b/src/packages/components/Charts/Bars/index.ts @@ -3,4 +3,4 @@ import { BarCrossrangeConfig } from './BarCrossrange/index' import { CapsuleChartConfig } from './CapsuleChart/index' import { BarLineConfig } from './BarLine/index' -export default [BarCommonConfig, BarCrossrangeConfig, BarLineConfig, CapsuleChartConfig] +export default [BarCommonConfig, BarCrossrangeConfig, ]//BarLineConfig,CapsuleChartConfig diff --git a/src/packages/components/Charts/Lines/index.ts b/src/packages/components/Charts/Lines/index.ts index e8c37e0..47d1f91 100644 --- a/src/packages/components/Charts/Lines/index.ts +++ b/src/packages/components/Charts/Lines/index.ts @@ -3,4 +3,4 @@ import { LineLinearSingleConfig } from './LineLinearSingle/index' import { LineGradientSingleConfig } from './LineGradientSingle/index' import { LineGradientsConfig } from './LineGradients/index' -export default [LineCommonConfig, LineLinearSingleConfig, LineGradientSingleConfig, LineGradientsConfig] +export default [LineCommonConfig, LineLinearSingleConfig]//LineGradientSingleConfig,LineGradientsConfig diff --git a/src/views/AI/chat/index.vue b/src/views/AI/chat/index.vue index 223189d..e7790f6 100644 --- a/src/views/AI/chat/index.vue +++ b/src/views/AI/chat/index.vue @@ -102,7 +102,7 @@ const styleColor: string[] = ['简约风', '商务风', '科技风'] const handleSend = async () => { if (!keyWord.value.trim()) { - messageDialog.warning('请先输入您想知道的问题!') + messageDialog.warning('请先输入需要统计的数据!') return } diff --git a/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.vue b/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.vue index 19c6a65..44d966e 100644 --- a/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.vue +++ b/src/views/chart/ContentConfigurations/components/ChartData/components/ChartDataMatchingAndShow/index.vue @@ -7,6 +7,21 @@ height: chatRoom + 'px' }" > +
+ + + +
+
当前数据
+
+ {{ toString(source)}} +
+
+
+ +
- @@ -161,6 +305,7 @@ onMounted(() => { gap: 25px; width: 100%; overflow-y: auto; + overflow-x: hidden; .chat-item { display: flex; gap: 6px; diff --git a/src/views/chart/ContentConfigurations/components/ChartSetting/index.vue b/src/views/chart/ContentConfigurations/components/ChartSetting/index.vue index 21c7d96..c7a5d60 100644 --- a/src/views/chart/ContentConfigurations/components/ChartSetting/index.vue +++ b/src/views/chart/ContentConfigurations/components/ChartSetting/index.vue @@ -7,7 +7,7 @@ - +
diff --git a/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.ts b/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.ts index 0fde624..c18bc39 100644 --- a/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.ts +++ b/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.ts @@ -8,6 +8,7 @@ export const useTargetData = () => { const targetData: Ref = computed(() => { const list = chartEditStore.getComponentList const targetIndex = chartEditStore.fetchTargetIndex() + return list[targetIndex] }) return { targetData, chartEditStore } diff --git a/src/views/chart/ContentConfigurations/index.vue b/src/views/chart/ContentConfigurations/index.vue index 6df86d1..c18edbd 100644 --- a/src/views/chart/ContentConfigurations/index.vue +++ b/src/views/chart/ContentConfigurations/index.vue @@ -134,16 +134,16 @@ const chartsDefaultTabList = [ icon: ConstructIcon, render: ChartSetting }, - { - key: TabsEnum.CHART_ANIMATION, - title: '动画', - icon: LeafIcon, - render: ChartAnimation - } + // { + // key: TabsEnum.CHART_ANIMATION, + // title: '动画', + // icon: LeafIcon, + // render: ChartAnimation + // } ] const chartsTabList = [ - // ...chartsDefaultTabList, + ...chartsDefaultTabList, { key: TabsEnum.CHART_DATA, title: '统计数据', @@ -171,7 +171,7 @@ const chartsTabList = [ } ::v-deep .n-scrollbar-content{ height: 100%; -overflow: hidden; + } .n-tabs{ height: 100%;