From 1c35ea24cd5f9bfef5cce0c0af4697361006f3c5 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Thu, 11 Dec 2025 18:49:17 +0800 Subject: [PATCH] =?UTF-8?q?chore(DeepAnalysisTab):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89=E5=92=8C=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - types.ts: 扩展类型定义支持新组件结构 - index.tsx: 更新组件 props 传递 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../CompanyOverview/DeepAnalysisTab/index.tsx | 5 +-- .../CompanyOverview/DeepAnalysisTab/types.ts | 41 ++++++++++++++++++- 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/src/views/Company/components/CompanyOverview/DeepAnalysisTab/index.tsx b/src/views/Company/components/CompanyOverview/DeepAnalysisTab/index.tsx index 18868398..8d3f5944 100644 --- a/src/views/Company/components/CompanyOverview/DeepAnalysisTab/index.tsx +++ b/src/views/Company/components/CompanyOverview/DeepAnalysisTab/index.tsx @@ -59,10 +59,7 @@ const DeepAnalysisTab: React.FC = ({ {/* 竞争地位分析 */} {comprehensiveData?.competitive_position && ( - + )} {/* 业务结构分析 */} diff --git a/src/views/Company/components/CompanyOverview/DeepAnalysisTab/types.ts b/src/views/Company/components/CompanyOverview/DeepAnalysisTab/types.ts index 54c988ae..f6d756a6 100644 --- a/src/views/Company/components/CompanyOverview/DeepAnalysisTab/types.ts +++ b/src/views/Company/components/CompanyOverview/DeepAnalysisTab/types.ts @@ -44,9 +44,48 @@ export interface CompetitivePosition { // ==================== 核心定位类型 ==================== +/** 特性项(用于核心定位下方的两个区块:零售业务/综合金融) */ +export interface FeatureItem { + /** 图标名称,如 'bank', 'fire' */ + icon: string; + /** 标题,如 '零售业务' */ + title: string; + /** 描述文字 */ + description: string; +} + +/** 投资亮点项(结构化) */ +export interface InvestmentHighlightItem { + /** 图标名称,如 'users', 'trending-up' */ + icon: string; + /** 标题,如 '综合金融优势' */ + title: string; + /** 描述文字 */ + description: string; +} + +/** 商业模式板块 */ +export interface BusinessModelSection { + /** 标题,如 '零售银行核心驱动' */ + title: string; + /** 描述文字 */ + description: string; + /** 可选的标签,如 ['AI应用深化', '大数据分析'] */ + tags?: string[]; +} + export interface CorePositioning { + /** 一句话介绍 */ one_line_intro?: string; - investment_highlights?: string; + /** 核心特性(2个,显示在核心定位区域下方) */ + features?: FeatureItem[]; + /** 投资亮点 - 支持结构化数组(新格式)或字符串(旧格式) */ + investment_highlights?: InvestmentHighlightItem[] | string; + /** 结构化商业模式数组 */ + business_model_sections?: BusinessModelSection[]; + /** 原 investment_highlights 文本格式(兼容旧数据,优先级低于 investment_highlights) */ + investment_highlights_text?: string; + /** 商业模式描述(兼容旧数据) */ business_model_desc?: string; }