fix(): 修改用户反馈管理四个统计一直显示0的bug以及反馈内容的状态不更新的bug

This commit is contained in:
yuj
2025-12-05 16:37:03 +08:00
parent 6fab903ebb
commit 0f91cf4347
2 changed files with 18 additions and 6 deletions

View File

@@ -12,4 +12,5 @@ VITE_APP_VERSION=1.0.0
VITE_ENABLE_DEVTOOLS=true VITE_ENABLE_DEVTOOLS=true
# Mock 数据 # Mock 数据
VITE_USE_MOCK=false VITE_USE_
MOCK=false

View File

@@ -12,7 +12,6 @@ import {
Image, Image,
Row, Row,
Col, Col,
Statistic,
DatePicker, DatePicker,
Drawer, Drawer,
Typography, Typography,
@@ -312,22 +311,34 @@ const UserFeedback: React.FC = () => {
<Row gutter={16} style={{ marginBottom: 24 }}> <Row gutter={16} style={{ marginBottom: 24 }}>
<Col span={6}> <Col span={6}>
<Card> <Card>
<Statistic title="总反馈数" value={statistics.total} /> <div>
<div style={{ color: 'rgba(0, 0, 0, 0.45)', fontSize: 14, marginBottom: 4 }}></div>
<div style={{ fontSize: 24, fontWeight: 600 }}>{statistics.total}</div>
</div>
</Card> </Card>
</Col> </Col>
<Col span={6}> <Col span={6}>
<Card> <Card>
<Statistic title="未处理" value={statistics.unhandled} valueStyle={{ color: '#cf1322' }} /> <div>
<div style={{ color: 'rgba(0, 0, 0, 0.45)', fontSize: 14, marginBottom: 4 }}></div>
<div style={{ fontSize: 24, fontWeight: 600, color: '#cf1322' }}>{statistics.unhandled}</div>
</div>
</Card> </Card>
</Col> </Col>
<Col span={6}> <Col span={6}>
<Card> <Card>
<Statistic title="已处理" value={statistics.handled} valueStyle={{ color: '#3f8600' }} /> <div>
<div style={{ color: 'rgba(0, 0, 0, 0.45)', fontSize: 14, marginBottom: 4 }}></div>
<div style={{ fontSize: 24, fontWeight: 600, color: '#3f8600' }}>{statistics.handled}</div>
</div>
</Card> </Card>
</Col> </Col>
<Col span={6}> <Col span={6}>
<Card> <Card>
<Statistic title="今日新增" value={statistics.today_count} /> <div>
<div style={{ color: 'rgba(0, 0, 0, 0.45)', fontSize: 14, marginBottom: 4 }}></div>
<div style={{ fontSize: 24, fontWeight: 600 }}>{statistics.today_count}</div>
</div>
</Card> </Card>
</Col> </Col>
</Row> </Row>