feat-实现AI洞察功能

This commit is contained in:
zhang.weiwei
2025-03-23 06:58:52 +08:00
parent 823287b054
commit 900aefc926
29 changed files with 493 additions and 40 deletions

View File

@@ -2,6 +2,10 @@
<div class="container">
<div class="chart-container">
<ChartAction @update:action="handleUpdateAction" :chartTypeOptions="chartTypeOptions" />
<AiInsightResult
v-if="data.question_conclusion"
:result="data.question_conclusion"
/>
<div class="chart-wrapper">
<pieChart :chart-option="option" ref="chart" />
</div>
@@ -33,6 +37,7 @@ import ChartAction from '@/views/DataAnalyse/diagram/components/ChartAction';
import RenderTableTitle from '@/views/DataAnalyse/components/RenderTableTitle';
import RenderTableTitleLo from '@/views/DataAnalyse/components/RenderTableTitleLo';
import useChartOption from '@/views/DataAnalyse/diagram/composables/useChartOption';
import AiInsightResult from '@/views/DataAnalyse/diagram/components/AiInsightResult';
import * as cheerio from 'cheerio';
import { generateTableCustomRender } from './renderTableGroup';
@@ -77,7 +82,8 @@ export default defineComponent({
components: {
RenderTableTitle,
ChartAction,
pieChart
pieChart,
AiInsightResult
},
setup(props) {
const chartInstance = inject('chartInstance');
@@ -211,7 +217,8 @@ export default defineComponent({
.container {
height: 100%;
.chart-container {
height: 300px;
min-height: 300px;
padding-bottom: 20px;
}
.table-container {