index.js
4.1 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
import React, { Fragment } from 'react';
import { formatMessage, FormattedMessage } from 'umi/locale';
import { Button, Row, Col, Icon, Steps, Card } from 'antd';
import { Result } from 'ant-design-pro';
const { Step } = Steps;
const desc1 = (
<div
style={{
fontSize: 12,
color: 'rgba(0, 0, 0, 0.45)',
position: 'relative',
left: 42,
textAlign: 'left',
}}
>
<div style={{ margin: '8px 0 4px' }}>
<FormattedMessage id="BLOCK_BAME.success.step1-operator" defaultMessage="Qu Lili" />
<Icon style={{ marginLeft: 8 }} type="dingding-o" />
</div>
<div>2016-12-12 12:32</div>
</div>
);
const desc2 = (
<div style={{ fontSize: 12, position: 'relative', left: 42, textAlign: 'left' }}>
<div style={{ margin: '8px 0 4px' }}>
<FormattedMessage id="BLOCK_BAME.success.step2-operator" defaultMessage="Zhou Maomao" />
<Icon type="dingding-o" style={{ color: '#00A0E9', marginLeft: 8 }} />
</div>
<div>
<a href="">
<FormattedMessage id="BLOCK_BAME.success.step2-extra" defaultMessage="Urge" />
</a>
</div>
</div>
);
const extra = (
<Fragment>
<div
style={{
fontSize: 16,
color: 'rgba(0, 0, 0, 0.85)',
fontWeight: '500',
marginBottom: 20,
}}
>
<FormattedMessage id="BLOCK_BAME.success.operate-title" defaultMessage="Project Name" />
</div>
<Row style={{ marginBottom: 16 }}>
<Col xs={24} sm={12} md={12} lg={12} xl={6}>
<span style={{ color: 'rgba(0, 0, 0, 0.85)' }}>
<FormattedMessage id="BLOCK_BAME.success.operate-id" defaultMessage="Project ID:" />
</span>
23421
</Col>
<Col xs={24} sm={12} md={12} lg={12} xl={6}>
<span style={{ color: 'rgba(0, 0, 0, 0.85)' }}>
<FormattedMessage id="BLOCK_BAME.success.principal" defaultMessage="Principal:" />
</span>
<FormattedMessage id="BLOCK_BAME.success.step1-operator" defaultMessage="Qu Lili" />
</Col>
<Col xs={24} sm={24} md={24} lg={24} xl={12}>
<span style={{ color: 'rgba(0, 0, 0, 0.85)' }}>
<FormattedMessage
id="BLOCK_BAME.success.operate-time"
defaultMessage="Effective time:"
/>
</span>
2016-12-12 ~ 2017-12-12
</Col>
</Row>
<Steps style={{ marginLeft: -42, width: 'calc(100% + 84px)' }} progressDot current={1}>
<Step
title={
<span style={{ fontSize: 14 }}>
<FormattedMessage id="BLOCK_BAME.success.step1-title" defaultMessage="Create project" />
</span>
}
description={desc1}
/>
<Step
title={
<span style={{ fontSize: 14 }}>
<FormattedMessage
id="BLOCK_BAME.success.step2-title"
defaultMessage="Departmental preliminary review"
/>
</span>
}
description={desc2}
/>
<Step
title={
<span style={{ fontSize: 14 }}>
<FormattedMessage
id="BLOCK_BAME.success.step3-title"
defaultMessage="Financial review"
/>
</span>
}
/>
<Step
title={
<span style={{ fontSize: 14 }}>
<FormattedMessage id="BLOCK_BAME.success.step4-title" defaultMessage="Finish" />
</span>
}
/>
</Steps>
</Fragment>
);
const actions = (
<Fragment>
<Button type="primary">
<FormattedMessage id="BLOCK_BAME.success.btn-return" defaultMessage="Back to list" />
</Button>
<Button>
<FormattedMessage id="BLOCK_BAME.success.btn-project" defaultMessage="View project" />
</Button>
<Button>
<FormattedMessage id="BLOCK_BAME.success.btn-print" defaultMessage="Print" />
</Button>
</Fragment>
);
export default () => (
<Card bordered={false}>
<Result
type="success"
title={formatMessage({ id: 'BLOCK_BAME.success.title' })}
description={formatMessage({ id: 'BLOCK_BAME.success.description' })}
extra={extra}
actions={actions}
style={{ marginTop: 48, marginBottom: 16 }}
/>
</Card>
);