echarts
This commit is contained in:
@@ -34,9 +34,23 @@ const Index: React.FC = () => {
|
|||||||
xField: 'date',
|
xField: 'date',
|
||||||
yField: 'count',
|
yField: 'count',
|
||||||
smooth: true, // 平滑曲线
|
smooth: true, // 平滑曲线
|
||||||
point: { size: 4, shape: 'circle' }, // 小圆点
|
height: 380,
|
||||||
tooltip: { showMarkers: true },
|
point: {
|
||||||
height: 300,
|
shape: 'circle',
|
||||||
|
size: 4,
|
||||||
|
},
|
||||||
|
tooltip: {
|
||||||
|
title: 'date',
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
channel: 'y',
|
||||||
|
name: '用户注册数',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
lineWidth: 2,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -164,17 +178,17 @@ const Index: React.FC = () => {
|
|||||||
|
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Card style={{ height: '100%' }}>
|
<Card style={{ height: '100%' }}>
|
||||||
<Statistic title='今日用户登录次数' value={stats?.today_login_cnt || 0} />
|
<Statistic title='七日活跃' value={stats?.last_7days_active || 0} />
|
||||||
</Card>
|
</Card>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Card style={{ height: '100%' }}>
|
<Card style={{ height: '100%' }}>
|
||||||
<Statistic title='七日活跃' value={stats?.last_7days_active || 0} />
|
<Statistic title='月活跃' value={stats?.month_active || 0} />
|
||||||
</Card>
|
</Card>
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={24}>
|
<Col span={24}>
|
||||||
<Card style={{ height: '100%' }}>
|
<Card style={{ height: '100%' }}>
|
||||||
<Statistic title='月活跃' value={stats?.month_active || 0} />
|
<Statistic title='今日用户登录次数' value={stats?.today_login_cnt || 0} />
|
||||||
</Card>
|
</Card>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
@@ -182,7 +196,7 @@ const Index: React.FC = () => {
|
|||||||
|
|
||||||
{/* 右边折线图 */}
|
{/* 右边折线图 */}
|
||||||
<Col span={12}>
|
<Col span={12}>
|
||||||
<Card title='一周用户注册趋势' style={{ height: '100%' }}>
|
<Card title='七日用户注册趋势' style={{ height: '100%' }}>
|
||||||
<Line {...lineConfig} />
|
<Line {...lineConfig} />
|
||||||
</Card>
|
</Card>
|
||||||
</Col>
|
</Col>
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ const GrpListForm: React.FC = () => {
|
|||||||
fixed: tableFixedByPhone('left'),
|
fixed: tableFixedByPhone('left'),
|
||||||
render: (_, item) => (
|
render: (_, item) => (
|
||||||
<GapBox>
|
<GapBox>
|
||||||
{item?.group_id != localStorage.getItem('admin_id') && (
|
{item?.group_id != 1 && (
|
||||||
<>
|
<>
|
||||||
{auth.SF_ADMIN_GROUP_EDIT && (
|
{auth.SF_ADMIN_GROUP_EDIT && (
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user