data.tsx
1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import type { ReactNode } from 'react';
import { ShopOutlined, SyncOutlined, DownloadOutlined, WarningOutlined } from '@ant-design/icons';
export interface Kpi {
label: string;
value: string;
delta: number;
icon: ReactNode;
tint: string;
color: string;
spark: number[];
}
export const kpis: Kpi[] = [
{
label: '待上架门店',
value: '12',
delta: 8.2,
icon: <ShopOutlined />,
tint: 'rgba(43,92,230,.10)',
color: '#2B5CE6',
spark: [4, 6, 5, 7, 9, 8, 10, 12],
},
{
label: '营业中门店',
value: '86',
delta: 3.1,
icon: <SyncOutlined />,
tint: 'rgba(22,163,74,.10)',
color: '#16A34A',
spark: [70, 72, 75, 74, 80, 82, 84, 86],
},
{
label: '本月导入批次',
value: '5',
delta: -1.0,
icon: <DownloadOutlined />,
tint: 'rgba(217,119,6,.10)',
color: '#D97706',
spark: [6, 5, 7, 6, 8, 7, 6, 5],
},
{
label: '异常 / 下架',
value: '4',
delta: -2.4,
icon: <WarningOutlined />,
tint: 'rgba(229,72,77,.10)',
color: '#E5484D',
spark: [9, 8, 7, 6, 6, 5, 5, 4],
},
];
export const dist = [
{ label: '营业中', value: 86, color: '#16A34A' },
{ label: '待上架', value: 12, color: '#2B5CE6' },
{ label: '异常 / 下架', value: 4, color: '#E5484D' },
];
export const todos = [
{ t: '上海虹桥旗舰店 待提交上架资料', tag: '待上架', color: '#D97706' },
{ t: '模板 V1.0.1 校验规则待复核', tag: '待复核', color: '#2B5CE6' },
{ t: '北京朝阳店 营业状态异常', tag: '异常', color: '#E5484D' },
{ t: '广州天河店 导入批次 #2048 完成', tag: '已完成', color: '#16A34A' },
];