|
@@ -3,10 +3,6 @@ import { PageContainer } from '@ant-design/pro-layout';
|
3
|
3
|
import { Card, Row, Col } from 'antd';
|
4
|
4
|
import { useIntl } from 'umi';
|
5
|
5
|
import WCard from '@/components/WelcomeCard'
|
6
|
|
-import userImg from '@/assets/welcome/user.png'
|
7
|
|
-import cooperative from '@/assets/welcome/cooperative.png'
|
8
|
|
-import machinery from '@/assets/welcome/machinery.png'
|
9
|
|
-import order from '@/assets/welcome/order.png'
|
10
|
6
|
import Bar from '@/components/Bar/index.jsx';
|
11
|
7
|
import Pie from '@/components/Pie';
|
12
|
8
|
import PieArea from '@/components/PieArea';
|
|
@@ -16,25 +12,29 @@ const Welcome = () => {
|
16
|
12
|
const intl = useIntl();
|
17
|
13
|
const topData = [
|
18
|
14
|
{
|
19
|
|
- icon: userImg,
|
|
15
|
+ icon: 'icon-icon',
|
|
16
|
+ color: '#1cbbb4',
|
20
|
17
|
title: '注册用户',
|
21
|
18
|
value: 580239,
|
22
|
19
|
percentage: 32.6
|
23
|
20
|
},
|
24
|
21
|
{
|
25
|
|
- icon: cooperative,
|
|
22
|
+ icon: 'icon-show_gongsiguanli_fill',
|
|
23
|
+ color: '#8dc63f',
|
26
|
24
|
title: '合作社数',
|
27
|
25
|
value: 2017,
|
28
|
26
|
percentage: 5.6
|
29
|
27
|
},
|
30
|
28
|
{
|
31
|
|
- icon: machinery,
|
|
29
|
+ icon: 'icon-tuolaji',
|
|
30
|
+ color: '#a5673f',
|
32
|
31
|
title: '农用机数',
|
33
|
32
|
value: 2000,
|
34
|
33
|
percentage: 42.6
|
35
|
34
|
},
|
36
|
35
|
{
|
37
|
|
- icon: order,
|
|
36
|
+ icon: 'icon-dingdanguanli',
|
|
37
|
+ color: '#8799a3',
|
38
|
38
|
title: '订单数',
|
39
|
39
|
value: 2075994,
|
40
|
40
|
percentage: -1.6
|
|
@@ -43,11 +43,13 @@ const Welcome = () => {
|
43
|
43
|
const centerData = [
|
44
|
44
|
{
|
45
|
45
|
title: '预约订单',
|
|
46
|
+ color: '#70d4d4',
|
46
|
47
|
keyList: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
47
|
48
|
valueList: [320, 332, 301, 334, 390, 88, 320, 332, 301, 334, 390, 88]
|
48
|
49
|
},
|
49
|
50
|
{
|
50
|
51
|
title: '完成订单',
|
|
52
|
+ color: '#c3b6e6',
|
51
|
53
|
keyList: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
52
|
54
|
valueList: [220, 182, 191, 234, 290, 256, 220, 182, 191, 234, 290, 356]
|
53
|
55
|
}
|
|
@@ -55,6 +57,7 @@ const Welcome = () => {
|
55
|
57
|
|
56
|
58
|
const [machineryStatus, setMachineryStatus] = useState([
|
57
|
59
|
{
|
|
60
|
+ color: '#70d4d4',
|
58
|
61
|
keyList: ['预约', '作业', '闲置', '离线', '维修'],
|
59
|
62
|
valueList: [350, 900, 650, 180, 380],
|
60
|
63
|
}
|