|
@@ -1,9 +1,9 @@
|
1
|
1
|
import React, { useState, useEffect } from 'react';
|
2
|
|
-import { Col, Row, Button, Modal} from 'antd'
|
|
2
|
+import { Col, Row, Button, Modal } from 'antd'
|
|
3
|
+import { router } from 'umi';
|
3
|
4
|
import ZmageImg from '../../../components/ZmageImg/ZmageImg'
|
4
|
5
|
import request from '../../../utils/request';
|
5
|
6
|
import apis from '../../../services/apis';
|
6
|
|
-import { router } from 'umi';
|
7
|
7
|
|
8
|
8
|
|
9
|
9
|
function body (props) {
|
|
@@ -12,51 +12,49 @@ function body (props) {
|
12
|
12
|
|
13
|
13
|
useEffect(() => {
|
14
|
14
|
getList()
|
15
|
|
-
|
16
|
15
|
}, [])
|
17
|
16
|
// , documentVerifyId: documentVerifyId
|
18
|
|
- function getList (params) {
|
|
17
|
+ function getList (_params) {
|
19
|
18
|
// 网路请求
|
20
|
|
- console.log(props,'1111')
|
21
|
|
- request({ ...apis.system.documentVerifyDetail, urlData:{ id:documentVerifyId } }).then(data => {
|
|
19
|
+ console.log(props, '1111')
|
|
20
|
+ request({ ...apis.system.documentVerifyDetail, urlData: { id: documentVerifyId } }).then(data => {
|
22
|
21
|
console.log('data:', data.imgList)
|
23
|
22
|
setData(data.imgList)
|
24
|
|
- }).catch(err => {
|
|
23
|
+ }).catch(_err => {
|
25
|
24
|
// eslint-disable-next-line no-unused-expressions
|
26
|
25
|
|
27
|
26
|
})
|
28
|
27
|
}
|
29
|
|
-
|
30
|
28
|
|
31
|
|
- const cancelPage = () =>{
|
|
29
|
+
|
|
30
|
+ const cancelPage = () => {
|
32
|
31
|
router.push({
|
33
|
32
|
pathname: '/system/document/list',
|
34
|
33
|
});
|
35
|
34
|
}
|
36
|
35
|
|
37
|
36
|
|
38
|
|
-
|
39
|
37
|
return (
|
40
|
38
|
<>
|
41
|
39
|
<div style={{ background: '#ECECEC', padding: '30px' }}>
|
42
|
40
|
<Row gutter={16}>
|
43
|
41
|
{
|
44
|
42
|
// data.consultant && data.consultant.projects.map((item, _) => <span>{item}</span>)
|
45
|
|
- data.map((data, inx) =>
|
46
|
|
- <Col span={6}>
|
47
|
|
- <ZmageImg style={{ width: '300px', height: '400px' }} src={data.img} />
|
48
|
|
- </Col>
|
|
43
|
+ data.map(item =>
|
|
44
|
+ <Col span={6} key={item.documentImgId}>
|
|
45
|
+ <ZmageImg style={{ width: '300px', height: '400px' }} src={item.img} />
|
|
46
|
+ </Col>,
|
49
|
47
|
)
|
50
|
48
|
}
|
51
|
49
|
</Row>
|
52
|
50
|
</div>
|
53
|
51
|
<div style={{ marginTop: '10px', display: 'flex', justifyContent: 'center' }}>
|
54
|
|
-
|
|
52
|
+
|
55
|
53
|
<Button onClick={cancelPage}>返回</Button>
|
56
|
|
-
|
|
54
|
+
|
57
|
55
|
</div>
|
58
|
|
-
|
59
|
|
-
|
|
56
|
+
|
|
57
|
+
|
60
|
58
|
</>
|
61
|
59
|
)
|
62
|
60
|
}
|