紧凑样式
This commit is contained in:
@@ -338,12 +338,12 @@ const WorkOrderPage = () => {
|
||||
{`
|
||||
.compact-table .ant-table-thead > tr > th {
|
||||
background: #f8fafc;
|
||||
padding: 10px 12px !important;
|
||||
padding: 2px 4px !important;
|
||||
font-size: 12px;
|
||||
color: #4E5969;
|
||||
}
|
||||
.compact-table .ant-table-tbody > tr > td {
|
||||
padding: 10px 12px !important;
|
||||
padding: 2px 4px !important;
|
||||
font-size: 12px;
|
||||
}
|
||||
.filter-label {
|
||||
@@ -381,7 +381,7 @@ const WorkOrderPage = () => {
|
||||
</div>
|
||||
|
||||
{/* 统计卡片 */}
|
||||
<Row gutter={[12, 12]} style={{ marginBottom: 16 }}>
|
||||
<Row gutter={[8, 8]} style={{ marginBottom: 8 }}>
|
||||
{stats.map((item, index) => (
|
||||
<Col key={index} xs={24} sm={12} md={8} xl={4}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '20px 16px' }} style={cardStyle}>
|
||||
@@ -417,7 +417,7 @@ const WorkOrderPage = () => {
|
||||
</Row>
|
||||
|
||||
{/* 筛选栏 */}
|
||||
<Card bordered={false} bodyStyle={{ padding: '12px 16px' }} style={{ ...cardStyle, marginBottom: 16 }}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '12px 16px' }} style={{ ...cardStyle, marginBottom: 8 }}>
|
||||
<Row gutter={[16, 12]} align="middle">
|
||||
<Col xs={12} sm={8} md={4} xl={3}>
|
||||
<div style={{ display: 'flex', alignItems: 'center' }}>
|
||||
@@ -472,14 +472,14 @@ const WorkOrderPage = () => {
|
||||
</Row>
|
||||
</Card>
|
||||
|
||||
<Row gutter={[12, 12]}>
|
||||
<Row gutter={[8, 8]}>
|
||||
{/* 左侧:列表 + 底部图表 */}
|
||||
<Col xs={24} xl={15}>
|
||||
<Card
|
||||
bordered={false}
|
||||
title={<Space size={8}><Text strong style={{ fontSize: 15, color: '#1D2129' }}>工单列表</Text><Text type="secondary" style={{ fontSize: 12 }}>(共 {workOrderTotal} 条)</Text></Space>}
|
||||
bodyStyle={{ padding: 0 }}
|
||||
style={{ ...cardStyle, marginBottom: 16 }}
|
||||
style={{ ...cardStyle, marginBottom: 8 }}
|
||||
>
|
||||
<Table
|
||||
dataSource={workOrderList}
|
||||
|
||||
Reference in New Issue
Block a user