fix(mocks): 优化 financial.js Mock 数据
This commit is contained in:
@@ -285,18 +285,29 @@ export const generateFinancialData = (stockCode) => {
|
|||||||
publish_date: '2024-10-15'
|
publish_date: '2024-10-15'
|
||||||
},
|
},
|
||||||
|
|
||||||
// 行业排名
|
// 行业排名(数组格式,符合 IndustryRankingView 组件要求)
|
||||||
industryRank: {
|
industryRank: [
|
||||||
industry: '银行',
|
{
|
||||||
total_companies: 42,
|
period: '2024-09-30',
|
||||||
rankings: [
|
report_type: '三季报',
|
||||||
{ metric: '总资产', rank: 8, value: 5024560, percentile: 19 },
|
rankings: [
|
||||||
{ metric: '营业收入', rank: 9, value: 162350, percentile: 21 },
|
{
|
||||||
{ metric: '净利润', rank: 8, value: 52860, percentile: 19 },
|
industry_name: stockCode === '000001' ? '银行' : '制造业',
|
||||||
{ metric: 'ROE', rank: 12, value: 16.23, percentile: 29 },
|
level_description: '一级行业',
|
||||||
{ metric: '不良贷款率', rank: 18, value: 1.02, percentile: 43 }
|
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: {
|
periodComparison: {
|
||||||
|
|||||||
Reference in New Issue
Block a user