|
|
@ -4,7 +4,7 @@ import { getAssess, delAssess, editAssess } from '../actions/assess'; |
|
|
|
import { getRoadadministration, addRoadadministration, delRoadadministration, modifyRoadadministration } from '../actions/luzheng'; |
|
|
|
import ProTable from '@ant-design/pro-table'; |
|
|
|
import AssessModal from '../components/luzhengmodel'; |
|
|
|
import { Form, Space, DatePicker, Button, Select, Popconfirm ,Image} from 'antd' |
|
|
|
import { Form, Space, DatePicker, Button, Select, Popconfirm, Image, Tooltip } from 'antd' |
|
|
|
import moment from 'moment'; |
|
|
|
import { values } from 'lodash'; |
|
|
|
|
|
|
@ -66,8 +66,10 @@ function Assess(props) { |
|
|
|
<div style={{ marginBottom: '20px', display: 'flex', justifyContent: 'space-between' }}> |
|
|
|
<Form layout="inline" onFinish={(v) => { |
|
|
|
|
|
|
|
setQuery({ ...query, page:1,unit: v.unit,startTime : v?.time && moment(v?.time[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss'), |
|
|
|
endTime : v?.time && moment(v?.time[1]).add(1, 'days').endOf('day').format('YYYY-MM-DD HH:mm:ss') }) |
|
|
|
setQuery({ |
|
|
|
...query, page: 1, unit: v.unit, startTime: v?.time && moment(v?.time[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss'), |
|
|
|
endTime: v?.time && moment(v?.time[1]).add(1, 'days').endOf('day').format('YYYY-MM-DD HH:mm:ss') |
|
|
|
}) |
|
|
|
}}> |
|
|
|
|
|
|
|
|
|
|
@ -97,12 +99,22 @@ function Assess(props) { |
|
|
|
{ |
|
|
|
title: '执法道路', |
|
|
|
dataIndex: 'roadname', |
|
|
|
key: 'roadname' |
|
|
|
key: 'roadname', |
|
|
|
render: (t, r) => { |
|
|
|
return <Tooltip title={r?.roadname}> |
|
|
|
<span className='shenglve'>{r?.roadname && r?.roadname?.length > 20 ? r?.roadname?.substr(0, 20) + '...' : r?.roadname}</span> |
|
|
|
</Tooltip> |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '执法成果', |
|
|
|
dataIndex: 'enforcementreslt', |
|
|
|
key: 'enforcementreslt', |
|
|
|
render: (t, r) => { |
|
|
|
return <Tooltip title={r?.enforcementreslt}> |
|
|
|
<span className='shenglve'>{r?.enforcementreslt && r?.enforcementreslt?.length > 20 ? r?.enforcementreslt?.substr(0, 20) + '...' : r?.enforcementreslt}</span> |
|
|
|
</Tooltip> |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '执法图片', |
|
|
@ -149,7 +161,7 @@ function Assess(props) { |
|
|
|
setLoading(false) |
|
|
|
if (res.success) { |
|
|
|
setQuery({ ...query, page: 1, pageSize: 10, limit: 10 }) |
|
|
|
// getData(page)
|
|
|
|
// getData(page)
|
|
|
|
} |
|
|
|
}) |
|
|
|
}} |
|
|
|