diff --git a/web/client/src/sections/patrolManage/actions/index.js b/web/client/src/sections/patrolManage/actions/index.js index d6e7974..ad713eb 100644 --- a/web/client/src/sections/patrolManage/actions/index.js +++ b/web/client/src/sections/patrolManage/actions/index.js @@ -2,12 +2,14 @@ import * as plan from './plan' import * as record from './record' +import * as report from './report' import * as template from './template' import * as checkItems from './checkItems' export default { ...plan, ...record, + ...report, ...template, ...checkItems, } \ No newline at end of file diff --git a/web/client/src/sections/patrolManage/actions/report.js b/web/client/src/sections/patrolManage/actions/report.js new file mode 100644 index 0000000..ca1d63e --- /dev/null +++ b/web/client/src/sections/patrolManage/actions/report.js @@ -0,0 +1,15 @@ +'use strict'; + +import { basicAction } from '@peace/utils' +import { ApiTable } from '$utils' + +// export function getPatrolReport (query) { +// return dispatch => basicAction({ +// type: 'get', +// query, +// dispatch: dispatch, +// actionType: 'GET_PATROL_REPORT', +// url: ApiTable.getPatrolReport, +// msg: { error: '获取巡检报告失败' }, +// }); +// } \ No newline at end of file diff --git a/web/client/src/sections/patrolManage/containers/index.js b/web/client/src/sections/patrolManage/containers/index.js index acdb15d..8bcbd53 100644 --- a/web/client/src/sections/patrolManage/containers/index.js +++ b/web/client/src/sections/patrolManage/containers/index.js @@ -2,7 +2,8 @@ import PatrolPlan from './patrolPlan'; import PatrolReocrd from './patrolRecord'; +import PatrolReport from './patrolReport'; import CheckItems from './checkItems'; import PlanTemplate from './patrolTemplate'; -export { PatrolPlan, PatrolReocrd, CheckItems, PlanTemplate }; \ No newline at end of file +export { PatrolPlan, PatrolReocrd, PatrolReport, CheckItems, PlanTemplate }; \ No newline at end of file diff --git a/web/client/src/sections/patrolManage/containers/patrolReport.js b/web/client/src/sections/patrolManage/containers/patrolReport.js new file mode 100644 index 0000000..dee37e8 --- /dev/null +++ b/web/client/src/sections/patrolManage/containers/patrolReport.js @@ -0,0 +1,88 @@ +import React, { useState, useRef } from 'react'; +import { connect } from 'react-redux'; +import { Button } from 'antd'; +import ProTable from '@ant-design/pro-table'; +import { getCheckItems } from '../actions/checkItems'; + +function patrolReport(props) { + const { dispatch } = props; + const tableRef = useRef(); + const [dataSource, setDataSource] = useState([{}]); + + const columns = [{ + title: '结构物名称', + dataIndex: 'name', + key: 'name', + ellipsis: true, + width: 150, + }, { + title: '巡检报告名称', + dataIndex: 'groupName', + key: 'groupName', + ellipsis: true, + search: false, + width: 250, + render: (_, record) => { + return