Browse Source

添加路政文件

dev
dengyinhuan 1 year ago
parent
commit
9137e55cb6
  1. 32
      web/client/src/sections/fillion/containers/luzheng.js

32
web/client/src/sections/fillion/containers/luzheng.js

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

Loading…
Cancel
Save