diff --git a/src/mocks/data/financial.js b/src/mocks/data/financial.js index 0b3cfcfc..f48c9365 100644 --- a/src/mocks/data/financial.js +++ b/src/mocks/data/financial.js @@ -285,18 +285,29 @@ export const generateFinancialData = (stockCode) => { publish_date: '2024-10-15' }, - // 行业排名 - industryRank: { - industry: '银行', - total_companies: 42, - rankings: [ - { metric: '总资产', rank: 8, value: 5024560, percentile: 19 }, - { metric: '营业收入', rank: 9, value: 162350, percentile: 21 }, - { metric: '净利润', rank: 8, value: 52860, percentile: 19 }, - { metric: 'ROE', rank: 12, value: 16.23, percentile: 29 }, - { metric: '不良贷款率', rank: 18, value: 1.02, percentile: 43 } - ] - }, + // 行业排名(数组格式,符合 IndustryRankingView 组件要求) + industryRank: [ + { + period: '2024-09-30', + report_type: '三季报', + rankings: [ + { + industry_name: stockCode === '000001' ? '银行' : '制造业', + level_description: '一级行业', + metrics: { + eps: { value: 2.72, rank: 8, industry_avg: 1.85 }, + bvps: { value: 15.23, rank: 12, industry_avg: 12.50 }, + roe: { value: 16.23, rank: 10, industry_avg: 12.00 }, + revenue_growth: { value: 8.2, rank: 15, industry_avg: 5.50 }, + profit_growth: { value: 12.5, rank: 9, industry_avg: 8.00 }, + operating_margin: { value: 32.56, rank: 6, industry_avg: 25.00 }, + debt_ratio: { value: 92.5, rank: 35, industry_avg: 88.00 }, + receivable_turnover: { value: 5.2, rank: 18, industry_avg: 4.80 } + } + } + ] + } + ], // 期间对比 periodComparison: {