|
@@ -1,5 +1,4 @@
|
1
|
1
|
import { useEffect, useState } from 'react';
|
2
|
|
-import { history } from 'umi';
|
3
|
2
|
import { Row, Col } from 'antd'
|
4
|
3
|
import { AppstoreOutlined, AuditOutlined, FieldTimeOutlined } from '@ant-design/icons'
|
5
|
4
|
import { getcomm } from '@/services/statis';
|
|
@@ -14,13 +13,6 @@ const colorList = [
|
14
|
13
|
export default (props) => {
|
15
|
14
|
const [cardData, setCardData] = useState()
|
16
|
15
|
|
17
|
|
- const toApplichtion = () => {
|
18
|
|
- history.push('../../applicationList');
|
19
|
|
- }
|
20
|
|
- const toAudit = () => {
|
21
|
|
- history.push('../../examine');
|
22
|
|
- }
|
23
|
|
-
|
24
|
16
|
useEffect(() => {
|
25
|
17
|
getcomm().then((res) => {
|
26
|
18
|
setCardData(res || []);
|
|
@@ -46,8 +38,6 @@ export default (props) => {
|
46
|
38
|
{...colorList[1]}
|
47
|
39
|
icon={<AuditOutlined />
|
48
|
40
|
}
|
49
|
|
- onClick1={toAudit}
|
50
|
|
- onClick2={toAudit}
|
51
|
41
|
/>
|
52
|
42
|
</Col>
|
53
|
43
|
<Col span={8}>
|
|
@@ -57,7 +47,6 @@ export default (props) => {
|
57
|
47
|
data2={{ title: '本月提交数', value: cardData ? cardData[5].value : 0 }}
|
58
|
48
|
{...colorList[2]}
|
59
|
49
|
icon={<FieldTimeOutlined />}
|
60
|
|
- onClick1={toApplichtion}
|
61
|
50
|
/>
|
62
|
51
|
</Col>
|
63
|
52
|
</Row>
|