This commit is contained in:
2026-01-30 16:58:42 +08:00
parent b4219e2d2b
commit ac3201028f
2 changed files with 22 additions and 8 deletions

View File

@@ -34,9 +34,23 @@ const Index: React.FC = () => {
xField: 'date',
yField: 'count',
smooth: true, // 平滑曲线
point: { size: 4, shape: 'circle' }, // 小圆点
tooltip: { showMarkers: true },
height: 300,
height: 380,
point: {
shape: 'circle',
size: 4,
},
tooltip: {
title: 'date',
items: [
{
channel: 'y',
name: '用户注册数',
},
],
},
style: {
lineWidth: 2,
},
};
return (
@@ -164,17 +178,17 @@ const Index: React.FC = () => {
<Col span={12}>
<Card style={{ height: '100%' }}>
<Statistic title='今日用户登录次数' value={stats?.today_login_cnt || 0} />
<Statistic title='七日活跃' value={stats?.last_7days_active || 0} />
</Card>
</Col>
<Col span={12}>
<Card style={{ height: '100%' }}>
<Statistic title='七日活跃' value={stats?.last_7days_active || 0} />
<Statistic title='活跃' value={stats?.month_active || 0} />
</Card>
</Col>
<Col span={24}>
<Card style={{ height: '100%' }}>
<Statistic title='月活跃' value={stats?.month_active || 0} />
<Statistic title='今日用户登录次数' value={stats?.today_login_cnt || 0} />
</Card>
</Col>
</Row>
@@ -182,7 +196,7 @@ const Index: React.FC = () => {
{/* 右边折线图 */}
<Col span={12}>
<Card title='一周用户注册趋势' style={{ height: '100%' }}>
<Card title='七日用户注册趋势' style={{ height: '100%' }}>
<Line {...lineConfig} />
</Card>
</Col>

View File

@@ -60,7 +60,7 @@ const GrpListForm: React.FC = () => {
fixed: tableFixedByPhone('left'),
render: (_, item) => (
<GapBox>
{item?.group_id != localStorage.getItem('admin_id') && (
{item?.group_id != 1 && (
<>
{auth.SF_ADMIN_GROUP_EDIT && (
<Button