tony.cheng
2026-01-27 94eba98e7e2c86d65a449807d0aa79cfb59c1db4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import React from 'react';
import { Card, Tag, Descriptions, Typography } from 'antd';
 
const { Paragraph, Text } = Typography;
 
/**
 * 案例卡片组件
 */
const CaseCard = ({ caseData }) => {
  const {
    caseTitle,
    caseType,
    disputeType,
    caseNumber,
    court,
    judgmentDate,
    region,
    parties,
    caseSummary,
  } = caseData;
 
  // 案件类型对应颜色
  const caseTypeColorMap = {
    判决: 'blue',
    调解: 'green',
    仲裁: 'orange',
  };
 
  return (
    <Card style={{ width: '100%', marginBottom: 16 }}>
      <div style={{ marginBottom: 12 }}>
        <Text strong style={{ fontSize: 16, marginRight: 8 }}>
          {caseTitle}
        </Text>
        <Tag color={caseTypeColorMap[caseType] || 'default'}>{caseType}</Tag>
        <Tag>{disputeType}</Tag>
      </div>
 
      <Descriptions column={2} size="small">
        <Descriptions.Item label="案号">{caseNumber}</Descriptions.Item>
        <Descriptions.Item label="审理机构">{court}</Descriptions.Item>
        <Descriptions.Item label="裁判日期">{judgmentDate}</Descriptions.Item>
        <Descriptions.Item label="地区">{region}</Descriptions.Item>
        <Descriptions.Item label="当事人" span={2}>
          {parties}
        </Descriptions.Item>
      </Descriptions>
 
      <div style={{ marginTop: 12 }}>
        <Text type="secondary">案例摘要:</Text>
        <Paragraph
          ellipsis={{ rows: 2, expandable: true, symbol: '展开' }}
          style={{ marginTop: 4 }}
        >
          {caseSummary}
        </Paragraph>
      </div>
    </Card>
  );
};
 
export default CaseCard;