zdl
|
ce4da40ef6
|
refactor(DeepAnalysis): TypeScript 重构,提取 useDeepAnalysisData Hook
- 新增 types.ts:API 类型定义、状态接口、Tab 映射常量
- 新增 hooks/useDeepAnalysisData.ts:提取数据获取逻辑
- 懒加载:按 Tab 按需请求
- 数据缓存:已加载数据不重复请求
- 竞态处理:stockCode 变更时防止旧请求覆盖
- 重写 index.tsx:memo 优化,代码行数 229 → 81
- 新增 README.md:组件文档
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-19 13:42:16 +08:00 |
|
zdl
|
50d59fd2ad
|
perf(DeepAnalysis): 优化初始加载,只请求 comprehensive 接口
- 移除初始加载时的 industryRank 请求
- 只加载默认 Tab(战略分析)需要的核心数据
- 其他数据按需懒加载
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-18 18:27:57 +08:00 |
|
zdl
|
c83d239219
|
refactor(Company): fetch 请求迁移至 axios
- DeepAnalysis: 4 个 fetch → axios
- DynamicTracking: 3 个 fetch → axios (NewsPanel, ForecastPanel)
- MarketDataView/services: 4 个 fetch → axios
- CompanyOverview/hooks: 9 个 fetch → axios (6 个文件)
- StockQuoteCard/hooks: 1 个 fetch → axios
- ValueChainNodeCard: 1 个 fetch → axios
清理:
- 删除未使用的 useCompanyOverviewData.ts
- 移除所有 getApiBase/API_BASE_URL 引用
总计: 22 个 fetch 调用迁移, 复用项目已有的 axios 拦截器配置
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-17 11:54:32 +08:00 |
|
zdl
|
3f1f438440
|
feat(DeepAnalysis): 增强策略Tab功能
- 新增策略相关类型定义
- StrategyTab 功能增强
- 调整组件结构
|
2025-12-16 16:22:39 +08:00 |
|
zdl
|
b89837d22e
|
feat(DeepAnalysis): 实现 Tab 懒加载,按需请求数据
- DeepAnalysis/index.js: 重构为懒加载模式
- 添加 TAB_API_MAP 映射 Tab 与接口关系
- 战略分析/业务结构共享 comprehensive-analysis 接口
- 产业链/发展历程按需加载对应接口
- 使用 loadedApisRef 缓存已加载状态,避免重复请求
- 各接口独立 loading 状态管理
- 添加 stockCode 竞态条件保护
- DeepAnalysisTab/index.tsx: 支持受控模式
- 新增 activeTab/onTabChange props
- loading 状态下保持 Tab 导航可切换
- types.ts: 新增 DeepAnalysisTabKey 类型和相关 props
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 15:20:37 +08:00 |
|
zdl
|
2dd7dd755a
|
refactor: Company 页面一级 Tab 重构为 6 个
- 新增深度分析 Tab(从 CompanyOverview 提取为独立组件)
- 新增动态跟踪 Tab(占位组件,后续添加内容)
- Tab 顺序:公司概览 | 深度分析 | 股票行情 | 财务全景 | 盈利预测 | 动态跟踪
- 简化 CompanyOverview:移除内部 Tabs,只保留头部卡片 + 基本信息
- DeepAnalysis 组件独立管理深度分析数据加载(3个接口)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-09 17:52:23 +08:00 |
|