fix(): 修改用户反馈管理四个统计一直显示0的bug以及反馈内容的状态不更新的bug
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user