|
|
@ -1,9 +1,9 @@ |
|
|
|
import React, { useState, useEffect } from 'react'; |
|
|
|
import { connect } from 'react-redux'; |
|
|
|
import { getAssess, delAssess, editAssess } from '../actions/assess'; |
|
|
|
import {getRoadadministration} from '../actions/luzheng' |
|
|
|
import { getRoadadministration,addRoadadministration,delRoadadministration,modifyRoadadministration } from '../actions/luzheng'; |
|
|
|
import ProTable from '@ant-design/pro-table'; |
|
|
|
import AssessModal from '../components/assessModal'; |
|
|
|
import AssessModal from '../components/luzhengmodel'; |
|
|
|
import { Form, Space, DatePicker, Button, Select, Popconfirm } from 'antd' |
|
|
|
import moment from 'moment'; |
|
|
|
|
|
|
@ -46,7 +46,7 @@ function Assess(props) { |
|
|
|
|
|
|
|
const getData = () => { |
|
|
|
setLoading(true) |
|
|
|
dispatch(getAssess(query)).then(res => { |
|
|
|
dispatch(getRoadadministration(query)).then(res => { |
|
|
|
setLoading(false) |
|
|
|
}) |
|
|
|
} |
|
|
@ -83,22 +83,24 @@ function Assess(props) { |
|
|
|
</div> |
|
|
|
<ProTable |
|
|
|
columns={[{ |
|
|
|
title: '责任单位', |
|
|
|
dataIndex: 'unit', |
|
|
|
key: 'unit', |
|
|
|
title: '执法日期', |
|
|
|
dataIndex: 'enforcementdate', |
|
|
|
key: 'enforcementdate', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '考核月份', |
|
|
|
dataIndex: 'month', |
|
|
|
key: 'month', |
|
|
|
render: (text, record) => ( |
|
|
|
text ? moment(record.month).format('YYYY-MM') : '' |
|
|
|
) |
|
|
|
title: '执法道路', |
|
|
|
dataIndex: 'roadname', |
|
|
|
key: 'roadname' |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '执法成果', |
|
|
|
dataIndex: 'enforcementreslt', |
|
|
|
key: 'enforcementreslt', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '考核得分', |
|
|
|
dataIndex: 'totalPoints', |
|
|
|
key: 'totalPoints', |
|
|
|
title: '执法图片', |
|
|
|
dataIndex: 'picfile', |
|
|
|
key: 'picfile', |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '操作', |
|
|
|