|
@@ -1,18 +1,13 @@
|
1
|
|
-
|
2
|
|
-import React, { useRef } from 'react'
|
|
1
|
+import React from 'react'
|
3
|
2
|
import moment from 'moment';
|
4
|
|
-import { Badge, Image, DatePicker } from 'antd';
|
|
3
|
+import { Badge, Image } from 'antd';
|
5
|
4
|
import { PageHeaderWrapper } from '@ant-design/pro-layout';
|
6
|
|
-import { getList } from '@/services/work'
|
|
5
|
+import { getAbnormalList } from '@/services/work'
|
7
|
6
|
import PageTable from '@/components/PageTable'
|
8
|
|
-import OrgSearch from '@/components/OrgSearch';
|
9
|
|
-
|
10
|
|
-const { RangePicker } = DatePicker;
|
11
|
7
|
|
12
|
8
|
const formatterTime = (val) => {
|
13
|
9
|
return val ? moment(val).format('YYYY-MM-DD HH:mm') : '';
|
14
|
10
|
};
|
15
|
|
-
|
16
|
11
|
export default (props) => {
|
17
|
12
|
const columns = [
|
18
|
13
|
{
|
|
@@ -29,7 +24,7 @@ export default (props) => {
|
29
|
24
|
title: '抗原截图',
|
30
|
25
|
dataIndex: 'antigenImage',
|
31
|
26
|
key: 'antigenImage',
|
32
|
|
- render: t => {t?<Image src={t} width="64px" height="64px" />:''}
|
|
27
|
+ render: t => { t ? <Image src={t} width="64px" height="64px" /> : '' }
|
33
|
28
|
},
|
34
|
29
|
{
|
35
|
30
|
title: '抗原结果',
|
|
@@ -53,7 +48,7 @@ export default (props) => {
|
53
|
48
|
key: 'nucleicIsNormal',
|
54
|
49
|
render: t => (
|
55
|
50
|
<span>
|
56
|
|
- {t ? <Badge status="success" text="正常" /> : <Badge status="error" text="异常" />}
|
|
51
|
+ {t ? <Badge status="success" text="正常" /> : <Badge status="error" text="异常" />}
|
57
|
52
|
</span>
|
58
|
53
|
)
|
59
|
54
|
},
|
|
@@ -65,12 +60,11 @@ export default (props) => {
|
65
|
60
|
},
|
66
|
61
|
]
|
67
|
62
|
|
68
|
|
-
|
69
|
63
|
return (
|
70
|
64
|
<PageHeaderWrapper>
|
71
|
65
|
<PageTable
|
72
|
66
|
columns={columns}
|
73
|
|
- request={getList}
|
|
67
|
+ request={getAbnormalList}
|
74
|
68
|
search={false}
|
75
|
69
|
options={false}
|
76
|
70
|
rowKey="formId"
|