dengyinhuan
2 years ago
47 changed files with 4343 additions and 2448 deletions
Binary file not shown.
@ -0,0 +1,25 @@ |
|||
{ |
|||
"公司": "company", |
|||
"车队": "fleet", |
|||
"车队长": "carCaptain", |
|||
"副车队长": "assistantCarCaptain", |
|||
"办公地点": "officeLocation", |
|||
"线路名称": "lineName", |
|||
"线路类型": "lineType", |
|||
"线路划分": "lineDivision", |
|||
"GPS编号": "gPSNumber", |
|||
"起点终点": "startingPointEndPoint", |
|||
"车辆数": "numberOfVehicles", |
|||
"全程公里数": "totalKilometers", |
|||
"票价": "ticketPrice", |
|||
"开通时间": "openingTime", |
|||
"运行时间": "runningTime", |
|||
"开班时间夏令": "openingTimeSummer", |
|||
"收班时间夏令": "shiftClosingTimeSummer", |
|||
"开班时间冬令": "openingTimeWinter", |
|||
"收班时间冬令": "shiftClosingTimeWinter", |
|||
"沿途站点上行": "uplinkOfStationsAlongTheWay", |
|||
"沿途站点下行": "downlinkOfStationsAlongTheWay", |
|||
"所属区域": "area", |
|||
"备注": "remarks" |
|||
} |
@ -0,0 +1,25 @@ |
|||
{ |
|||
"company": "公司", |
|||
"fleet": "车队", |
|||
"carCaptain": "车队长", |
|||
"assistantCarCaptain": "副车队长", |
|||
"officeLocation": "办公地点", |
|||
"lineName": "线路名称", |
|||
"lineType": "线路类型", |
|||
"lineDivision": "线路划分", |
|||
"gPSNumber": "GPS编号", |
|||
"startingPointEndPoint": "起点终点", |
|||
"numberOfVehicles": "车辆数", |
|||
"totalKilometers": "全程公里数", |
|||
"ticketPrice": "票价", |
|||
"openingTime": "开通时间", |
|||
"runningTime": "运行时间", |
|||
"openingTimeSummer": "开班时间夏令", |
|||
"shiftClosingTimeSummer": "收班时间夏令", |
|||
"openingTimeWinter": "开班时间冬令", |
|||
"shiftClosingTimeWinter": "收班时间冬令", |
|||
"uplinkOfStationsAlongTheWay": "沿途站点上行", |
|||
"downlinkOfStationsAlongTheWay": "沿途站点下行", |
|||
"area": "所属区域", |
|||
"remarks": "备注" |
|||
} |
@ -0,0 +1,25 @@ |
|||
{ |
|||
"公司": "company", |
|||
"车队": "fleet", |
|||
"车队长": "car_Captain", |
|||
"副车队长": "assistant_car_Captain", |
|||
"办公地点": "office_location", |
|||
"线路名称": "line_name", |
|||
"线路类型": "line_type", |
|||
"线路划分": "line_division", |
|||
"GPS编号": "gPS_number", |
|||
"起点终点": "starting_point_end_point", |
|||
"车辆数": "number_of_vehicles", |
|||
"全程公里数": "total_kilometers", |
|||
"票价": "ticket_Price", |
|||
"开通时间": "opening_time", |
|||
"运行时间": "running_time", |
|||
"开班时间夏令": "opening_time_summer", |
|||
"收班时间夏令": "shift_closing_time_summer", |
|||
"开班时间冬令": "opening_time_Winter", |
|||
"收班时间冬令": "shift_closing_time_winter", |
|||
"沿途站点上行": "uplink_of_stations_along_the_way", |
|||
"沿途站点下行": "downlink_of_stations_along_the_way", |
|||
"所属区域": "area", |
|||
"备注": "remarks" |
|||
} |
@ -0,0 +1,29 @@ |
|||
-- 公交线路 |
|||
|
|||
CREATE TABLE if not exists "bus_line" ( id serial not null ); |
|||
|
|||
CREATE unique index if not exists bus_line_id_uindex |
|||
ON bus_line (id); alter TABLE bus_line add constraint bus_line_pk primary key (id); alter TABLE bus_line add Company varchar(1024); comment |
|||
ON column bus_line.Company is '公司'; alter TABLE bus_line add Fleet varchar(1024); comment |
|||
ON column bus_line.Fleet is '车队'; alter TABLE bus_line add Car_Captain varchar(1024); comment |
|||
ON column bus_line.Car_Captain is '车队长'; alter TABLE bus_line add Assistant_Car_Captain varchar(1024); comment |
|||
ON column bus_line.Assistant_Car_Captain is '副车队长'; alter TABLE bus_line add Office_Location varchar(1024); comment |
|||
ON column bus_line.Office_Location is '办公地点'; alter TABLE bus_line add Line_Name varchar(1024); comment |
|||
ON column bus_line.Line_Name is '线路名称'; alter TABLE bus_line add Line_Type varchar(1024); comment |
|||
ON column bus_line.Line_Type is '线路类型'; alter TABLE bus_line add Line_Division varchar(1024); comment |
|||
ON column bus_line.Line_Division is '线路划分'; alter TABLE bus_line add GPS_Number varchar(1024); comment |
|||
ON column bus_line.GPS_Number is 'GPS编号'; alter TABLE bus_line add Starting_Point_End_Point varchar(1024); comment |
|||
ON column bus_line.Starting_Point_End_Point is '起点终点'; alter TABLE bus_line add Number_Of_Vehicles varchar(1024); comment |
|||
ON column bus_line.Number_Of_Vehicles is '车辆数'; alter TABLE bus_line add Total_Kilometers varchar(1024); comment |
|||
ON column bus_line.Total_Kilometers is '全程公里数'; alter TABLE bus_line add Ticket_Price varchar(1024); comment |
|||
ON column bus_line.Ticket_Price is '票价'; alter TABLE bus_line add Opening_Time varchar(1024); comment |
|||
ON column bus_line.Opening_Time is '开通时间'; alter TABLE bus_line add Running_Time varchar(1024); comment |
|||
ON column bus_line.Running_Time is '运行时间'; alter TABLE bus_line add Opening_Time_Summer varchar(1024); comment |
|||
ON column bus_line.Opening_Time_Summer is '开班时间夏令'; alter TABLE bus_line add Shift_Closing_Time_Summer varchar(1024); comment |
|||
ON column bus_line.Shift_Closing_Time_Summer is '收班时间夏令'; alter TABLE bus_line add Opening_Time_Winter varchar(1024); comment |
|||
ON column bus_line.Opening_Time_Winter is '开班时间冬令'; alter TABLE bus_line add Shift_Closing_Time_Winter varchar(1024); comment |
|||
ON column bus_line.Shift_Closing_Time_Winter is '收班时间冬令'; alter TABLE bus_line add Uplink_Of_Stations_Along_The_Way varchar(1024); comment |
|||
ON column bus_line.Uplink_Of_Stations_Along_The_Way is '沿途站点上行'; alter TABLE bus_line add Downlink_Of_Stations_Along_The_Way varchar(1024); comment |
|||
ON column bus_line.Downlink_Of_Stations_Along_The_Way is '沿途站点下行'; alter TABLE bus_line add Area varchar(1024); comment |
|||
ON column bus_line.Area is '所属区域'; alter TABLE bus_line add Remarks varchar(1024); comment |
|||
ON column bus_line.Remarks is '备注'; |
@ -0,0 +1,3 @@ |
|||
export default { |
|||
navigationBarTitleText: '巡查养护' |
|||
} |
@ -1,9 +1,206 @@ |
|||
import React from 'react' |
|||
import { View } from '@tarojs/components'; |
|||
import React, { useState, useEffect } from 'react'; |
|||
import { |
|||
View, |
|||
RadioGroup, |
|||
Radio, |
|||
Button, |
|||
Image, |
|||
Input, |
|||
Textarea, |
|||
Picker |
|||
} from '@tarojs/components'; |
|||
import { AtForm, AtInput, AtButton, AtTextarea, AtImagePicker, AtTimeline } from 'taro-ui'; |
|||
// import InputPicker from '../components/inputPicker'; |
|||
import './index.scss'; |
|||
import arrowIcon from '../../static/img/patrol/arrow-down.svg'; |
|||
|
|||
const Index = () => { |
|||
const [isPatrol, setIsPatrol] = useState(true) // 巡查 or 养护 |
|||
const [prjTypeSelector, setPrjTypeSelector] = useState([]) |
|||
const [roadSelector, setRoadSelector] = useState([]) |
|||
const [projectType, setProjectType] = useState('') |
|||
const [road, setRoad] = useState('') |
|||
|
|||
const [images, setimages] = useState([]) |
|||
|
|||
const reportType = [ |
|||
{ |
|||
value: '巡查', |
|||
text: '巡查', |
|||
checked: true |
|||
}, |
|||
{ |
|||
value: '养护', |
|||
text: '养护', |
|||
checked: false |
|||
} |
|||
] |
|||
|
|||
useEffect(() => { |
|||
const prjTypeSelector = ['道路', '桥梁', '涵洞'] |
|||
const roadSelector = ['富山一路', '金沙大道', '玉湖路'] |
|||
setPrjTypeSelector(prjTypeSelector) |
|||
setRoadSelector(roadSelector) |
|||
}, []) |
|||
|
|||
useEffect(() => { |
|||
if (projectType) { |
|||
setPrjTypeSelector(prjTypeSelector.filter(s => s.includes(projectType))) |
|||
} |
|||
}, [projectType]) |
|||
// useEffect(() => { |
|||
// if (projectType) { |
|||
// setPrjTypeSelector(prjTypeSelector.filter(s => s.includes(projectType))) |
|||
// } |
|||
// }, [projectType]) |
|||
|
|||
function onTypeChange(e) { |
|||
if (e.detail.value === '巡查') { |
|||
setIsPatrol(true) |
|||
} else { |
|||
setIsPatrol(false) |
|||
} |
|||
} |
|||
|
|||
function onPrjTypeChange(e) { |
|||
setProjectType(selector[e.detail.value]) |
|||
} |
|||
|
|||
function onImgPickerChange() { |
|||
|
|||
} |
|||
|
|||
return ( |
|||
<View>巡查养护</View> |
|||
<View className='patrol'> |
|||
<View className='report-type'> |
|||
<View className='text'>上报类型</View> |
|||
<RadioGroup onChange={onTypeChange}> |
|||
{ |
|||
reportType.map((item, i) => { |
|||
return ( |
|||
<Radio |
|||
key={i} |
|||
value={item.value} |
|||
checked={item.checked} |
|||
className='radio' |
|||
color='#346FC2' |
|||
> |
|||
{item.text} |
|||
</Radio> |
|||
) |
|||
}) |
|||
} |
|||
</RadioGroup> |
|||
</View> |
|||
|
|||
<View className='input-picker'> |
|||
<AtInput |
|||
className='input' |
|||
title='工程类型:' |
|||
type='text' |
|||
placeholder='请选择工程类型' |
|||
border={false} |
|||
value={projectType} |
|||
onChange={value => setProjectType(value)} |
|||
/> |
|||
<Picker mode='selector' range={prjTypeSelector} onChange={onPrjTypeChange}> |
|||
<Image src={arrowIcon} className='img-r' /> |
|||
</Picker> |
|||
</View> |
|||
<View className='input-picker'> |
|||
<AtInput |
|||
className='input' |
|||
title='所在道路:' |
|||
type='text' |
|||
placeholder='请选择您所在的道路' |
|||
border={false} |
|||
value={road} |
|||
onChange={value => setRoad(value)} |
|||
/> |
|||
<Picker mode='selector' range={roadSelector} onChange={onPrjTypeChange}> |
|||
<Image src={arrowIcon} className='img-r' /> |
|||
</Picker> |
|||
</View> |
|||
|
|||
{/* <InputPicker |
|||
className='input-picker' |
|||
title='工程类型:' |
|||
placeholder='请选择工程类型' |
|||
value={projectType} |
|||
onChange={setProjectType} |
|||
selector={prjTypeSelector} |
|||
/> |
|||
<InputPicker |
|||
className='input-picker' |
|||
title='所在道路:' |
|||
placeholder='请选择您所在的道路' |
|||
value={road} |
|||
onChange={setRoad} |
|||
selector={roadSelector} |
|||
/> */} |
|||
|
|||
<View className='input-picker'> |
|||
<AtInput |
|||
className='input' |
|||
title='所属路段:' |
|||
type='text' |
|||
placeholder='路段名称' |
|||
border={false} |
|||
// value={this.state.value} |
|||
// onChange={this.handleChange.bind(this, 'value')} |
|||
/> |
|||
<Image src={arrowIcon} className='img-l' /> |
|||
<AtInput |
|||
className='input' |
|||
type='text' |
|||
placeholder='路段名称' |
|||
border={false} |
|||
// value={this.state.value} |
|||
// onChange={this.handleChange.bind(this, 'value')} |
|||
/> |
|||
<Image src={arrowIcon} className='img-r' /> |
|||
</View> |
|||
|
|||
<View> |
|||
<AtTextarea |
|||
count={false} |
|||
title='具体位置:' |
|||
type='text' |
|||
placeholder='具体位置:根据定位自动获取,可手动修改' |
|||
border={false} |
|||
// value={this.state.value} |
|||
// onChange={this.handleChange.bind(this, 'value')} |
|||
/> |
|||
</View> |
|||
|
|||
{ |
|||
isPatrol ? |
|||
<View className='img-picker'> |
|||
现场图片: |
|||
<AtImagePicker |
|||
length={3} |
|||
files={images} |
|||
onChange={onImgPickerChange} |
|||
/> |
|||
</View> : |
|||
<View> |
|||
养护图片: |
|||
<AtTimeline |
|||
items={[ |
|||
{ |
|||
title: '养护前', |
|||
}, |
|||
{ title: '养护中' }, |
|||
{ title: '养护后' } |
|||
]} |
|||
> |
|||
</AtTimeline> |
|||
</View> |
|||
} |
|||
|
|||
<AtButton formType='submit' type='primary' className='sub-btn'>上报</AtButton> |
|||
|
|||
</View> |
|||
) |
|||
} |
|||
|
|||
|
@ -0,0 +1,51 @@ |
|||
.patrol { |
|||
height: 100vh; |
|||
width: 100vw; |
|||
background-color: #f6f6f6; |
|||
padding-top: 20px; |
|||
|
|||
.report-type { |
|||
height: 96px; |
|||
background-color: #fff; |
|||
margin-bottom: 20px; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
align-items: center; |
|||
|
|||
.text { |
|||
margin-left: 30px; |
|||
} |
|||
|
|||
.radio { |
|||
margin-right: 30px; |
|||
} |
|||
} |
|||
|
|||
.input-picker { |
|||
display: flex; |
|||
justify-content: space-between; |
|||
align-items: center; |
|||
background-color: #fff; |
|||
margin-bottom: 5px; |
|||
|
|||
.img-r { |
|||
width: 24px; |
|||
height: 14px; |
|||
margin-right: 30px; |
|||
// margin-left: 10px; |
|||
} |
|||
.img-l { |
|||
width: 24px; |
|||
height: 14px; |
|||
} |
|||
} |
|||
|
|||
.img-picker { |
|||
background-color: #fff; |
|||
|
|||
} |
|||
|
|||
.sub-btn { |
|||
width: 70%; |
|||
} |
|||
} |
@ -1,29 +1,29 @@ |
|||
.page { |
|||
display: flex; |
|||
flex-direction: column; |
|||
align-items: center; |
|||
display: flex; |
|||
flex-direction: column; |
|||
align-items: center; |
|||
|
|||
.fill { |
|||
margin-top: 30px; |
|||
padding: 10px; |
|||
width: 94%; |
|||
height: 360px; |
|||
background: url('../../static/img/patrol//fill-bg.svg') no-repeat; |
|||
background-size:100% 100%; |
|||
} |
|||
.fill { |
|||
margin-top: 30px; |
|||
padding: 10px; |
|||
width: 94%; |
|||
height: 360px; |
|||
background: url('../../static/img/home/fill-bg.svg') no-repeat; |
|||
background-size: 100% 100%; |
|||
} |
|||
|
|||
.title { |
|||
margin: 50px 0 0 48px; |
|||
color: #fff; |
|||
font-size: 48px; |
|||
} |
|||
.title { |
|||
margin: 50px 0 0 48px; |
|||
color: #fff; |
|||
font-size: 48px; |
|||
} |
|||
|
|||
.btn { |
|||
margin: 20px 0 0 50px; |
|||
color: #fff; |
|||
text-align: center; |
|||
width: 200px; |
|||
border: solid 1px #fff; |
|||
border-radius: 10px; |
|||
} |
|||
.btn { |
|||
margin: 30px 0 0 50px; |
|||
color: #fff; |
|||
text-align: center; |
|||
width: 200px; |
|||
border: solid 1px #fff; |
|||
border-radius: 10px; |
|||
} |
|||
} |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.5 MiB |
File diff suppressed because it is too large
@ -1,118 +0,0 @@ |
|||
// import React, { useEffect, useState } from 'react';
|
|||
// import { connect } from 'react-redux';
|
|||
// import { Spin, Drawer, Button } from 'antd';
|
|||
// import '../style.less';
|
|||
// import { EditableProTable } from '@ant-design/pro-table';
|
|||
|
|||
// const CompileDrawer = (props) => {
|
|||
// const { dispatch, actions, user, loading, visible, checkRow, close, reportRectifyDetail, checkAction } = props
|
|||
// const [requesting, setRequesting] = useState(false)
|
|||
// const [dataSource, setDataSource] = useState([])
|
|||
// const { report } = actions
|
|||
// const isCheck = checkAction == 'check'
|
|||
|
|||
// useEffect(() => {
|
|||
// if (checkRow.day) {
|
|||
// dispatch(report.reportRectifyDetail(checkRow.day, checkRow.depId))
|
|||
// }
|
|||
// }, [checkRow])
|
|||
|
|||
// useEffect(() => {
|
|||
// let data = reportRectifyDetail
|
|||
// let i = 1
|
|||
// for (let d of data) {
|
|||
// d.index_ = i++
|
|||
// }
|
|||
// setDataSource(data)
|
|||
// }, [reportRectifyDetail])
|
|||
|
|||
// return (
|
|||
// <Drawer
|
|||
// title={"合用场所安全隐患排查整治汇总表"}
|
|||
// placement="right"
|
|||
// onClose={() => {
|
|||
// close()
|
|||
// }}
|
|||
// visible={visible}
|
|||
// width={'82%'}
|
|||
// >
|
|||
// <Spin spinning={loading || requesting}>
|
|||
// <EditableProTable
|
|||
// columns={[
|
|||
// {
|
|||
// title: '序号',
|
|||
// dataIndex: 'index_',
|
|||
// readonly: true,
|
|||
// },
|
|||
// {
|
|||
// title: '名称',
|
|||
// dataIndex: 'name',
|
|||
// readonly: true,
|
|||
// }, {
|
|||
// title: '地址',
|
|||
// dataIndex: 'address',
|
|||
// readonly: true,
|
|||
// }, {
|
|||
// title: '排查发现隐患',
|
|||
// dataIndex: 'hiddenDanger',
|
|||
// readonly: true,
|
|||
// }, {
|
|||
// title: '采取整改措施',
|
|||
// dataIndex: 'correctiveAction',
|
|||
// }, {
|
|||
// title: '实施处罚、强制措施情况',
|
|||
// dataIndex: 'punishment',
|
|||
// },
|
|||
// ]}
|
|||
// controlled={true}
|
|||
// value={dataSource}
|
|||
// onChange={setDataSource}
|
|||
// rowKey="id"
|
|||
// headerTitle={`填报单位:${checkRow.region};时间:${checkRow.day}`}
|
|||
// maxLength={5}
|
|||
// recordCreatorProps={false}
|
|||
// editable={{
|
|||
// type: 'multiple',
|
|||
// editableKeys: isCheck ? [] : dataSource.map(r => r.id)
|
|||
// }}
|
|||
// toolBarRender={() => [
|
|||
// isCheck ? '' :
|
|||
// <Button
|
|||
// type="primary"
|
|||
// key="save"
|
|||
// onClick={() => {
|
|||
// // dataSource 就是当前数据,可以调用 api 将其保存
|
|||
// setRequesting(true)
|
|||
// const data = dataSource
|
|||
// for (let d of data) {
|
|||
// d.userId = user.id
|
|||
// delete d.index_
|
|||
// }
|
|||
// dispatch(report.compileReportRectifyDetail(dataSource)).then(res => {
|
|||
// setRequesting(false)
|
|||
// })
|
|||
// }}
|
|||
// >
|
|||
// 保存数据
|
|||
// </Button>
|
|||
// ]}
|
|||
// >
|
|||
|
|||
// </EditableProTable>
|
|||
// </Spin>
|
|||
// </Drawer >
|
|||
// )
|
|||
// }
|
|||
|
|||
// function mapStateToProps (state) {
|
|||
// const { auth, global, members, reportRectifyDetail } = state;
|
|||
// return {
|
|||
// loading: reportRectifyDetail.isRequesting,
|
|||
// user: auth.user,
|
|||
// actions: global.actions,
|
|||
// members: members.data,
|
|||
// reportRectifyDetail: reportRectifyDetail.data || []
|
|||
// };
|
|||
// }
|
|||
|
|||
// export default connect(mapStateToProps)(CompileDrawer);
|
@ -1,124 +0,0 @@ |
|||
// import React, { useEffect, useRef } from 'react';
|
|||
// import { connect } from 'react-redux';
|
|||
// import { Spin, Button, Modal, Form, Switch } from 'antd';
|
|||
// import ProForm, { ProFormText, ProFormSelect } from '@ant-design/pro-form';
|
|||
// import { useState } from 'react';
|
|||
|
|||
// const ConfigModal = (props) => {
|
|||
// const { dispatch, actions, user, loading, visible, close, editData, allAreas, reportType } = props
|
|||
// const [excuteTimeOptions, setExcuteTimeOptions] = useState([])
|
|||
// const formRef = useRef()
|
|||
// const { report } = actions
|
|||
|
|||
// useEffect(() => {
|
|||
// let excuteTimeOptions = []
|
|||
// for (let i = 0; i < 24; i++) {
|
|||
// let curT = i
|
|||
// if (curT < 10) {
|
|||
// curT = '0' + curT
|
|||
// }
|
|||
// excuteTimeOptions.push({
|
|||
// value: curT + ':00',
|
|||
// label: curT + ':00',
|
|||
// })
|
|||
// excuteTimeOptions.push({
|
|||
// value: curT + ':30',
|
|||
// label: curT + ':30',
|
|||
// })
|
|||
// }
|
|||
// setExcuteTimeOptions(excuteTimeOptions);
|
|||
// }, [])
|
|||
|
|||
// return (
|
|||
// <Modal
|
|||
// title={`${editData ? '编辑' : '新增'}报表配置`}
|
|||
// visible={visible}
|
|||
// onOk={() => {
|
|||
// formRef.current.validateFields().then(v => {
|
|||
// v.excuteTime = String(v.excuteTime)
|
|||
// console.log(v);
|
|||
// dispatch(editData ? report.editReportConfig(v, editData.id) : report.addReportConfig(v)).then(res => {
|
|||
// if (res.success) {
|
|||
// dispatch(report.getReportConfig())
|
|||
// close()
|
|||
// }
|
|||
// })
|
|||
// })
|
|||
// }}
|
|||
// onCancel={() => {
|
|||
// close()
|
|||
// }}
|
|||
// >
|
|||
// <ProForm
|
|||
// formRef={formRef}
|
|||
// autoFocusFirstInput
|
|||
// layout={'horizontal'}
|
|||
// labelCol={{ span: 4 }}
|
|||
// wrapperCol={{ span: 18 }}
|
|||
// initialValues={
|
|||
// editData ?
|
|||
// editData :
|
|||
// {
|
|||
// excuteTime: '00:00',
|
|||
// isEnable: true
|
|||
// }
|
|||
// }
|
|||
// submitter={false}
|
|||
// formKey='config-form'
|
|||
// >
|
|||
// <ProFormText
|
|||
// name={'reportName'}
|
|||
// label="报表名称"
|
|||
// placeholder="请输入名称"
|
|||
// required
|
|||
// rules={[{ required: true, message: '请输入名称' }]}
|
|||
// />
|
|||
// <ProFormSelect
|
|||
// options={reportType}
|
|||
// cacheForSwr
|
|||
// name="reportTypeId"
|
|||
// label="报表类型"
|
|||
// required
|
|||
// rules={[{ required: true, message: '请选择报表类型' }]}
|
|||
// />
|
|||
// <ProFormSelect
|
|||
// options={
|
|||
// allAreas.map(a => {
|
|||
// return {
|
|||
// value: a.id,
|
|||
// label: a.name,
|
|||
// }
|
|||
// })}
|
|||
// cacheForSwr
|
|||
// name="regionId"
|
|||
// label="区域"
|
|||
// required
|
|||
// rules={[{ required: true, message: '请选择区域' }]}
|
|||
// />
|
|||
// <Form.Item name="isEnable" label="状态" valuePropName="checked">
|
|||
// <Switch checkedChildren="启用" unCheckedChildren="禁用" />
|
|||
// </Form.Item>
|
|||
// <ProFormSelect
|
|||
// options={excuteTimeOptions}
|
|||
// addonBefore={'每天'}
|
|||
// addonAfter={'时'}
|
|||
// cacheForSwr
|
|||
// name="excuteTime"
|
|||
// label="生成时间"
|
|||
// />
|
|||
// </ProForm>
|
|||
// </Modal>
|
|||
// )
|
|||
// }
|
|||
|
|||
// function mapStateToProps (state) {
|
|||
// const { auth, global, allAreas } = state;
|
|||
// console.log(allAreas);
|
|||
// return {
|
|||
// user: auth.user,
|
|||
// actions: global.actions,
|
|||
// allAreas: allAreas.data || []
|
|||
// };
|
|||
// }
|
|||
|
|||
// export default connect(mapStateToProps)(ConfigModal);
|
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,124 +0,0 @@ |
|||
// import React from 'react';
|
|||
// import { connect } from 'react-redux';
|
|||
// import { Spin, Table } from 'antd';
|
|||
// import { ModalForm } from '@ant-design/pro-form';
|
|||
// import moment from 'moment';
|
|||
// const UserModal = (props) => {
|
|||
// const { visible, onVisibleChange } = props
|
|||
// const datas = props.modalRecord || {}
|
|||
// const scopeOfExamination = { ...datas }.hiddenDangerItem12
|
|||
// const arr = [
|
|||
// ' 1、合用场所的所有权人、使用人是否遵守消防法律、法规、规章;',
|
|||
// ' 2、住宿场所是否违规搭建;',
|
|||
// ' 3、合用场所是否配置灭火器、消防应急照明等消防器材和设施;',
|
|||
// ' 4、合用场所的电器产品的安装、使用及其线路和管路的设计、敷设、维护保养、检测,是否符合消防技术标准和管理规定;',
|
|||
// ' 5、合用场所住宿是否超过2人;(judge_0) 若超过,人员住宿是否设置在首层,并直通室外安全出口;(judge_1)',
|
|||
// ' 6、电动自行车是否违规室内充电、停放;',
|
|||
// ' 7、合用场所是否违规生产、储存、经营易燃易爆危险品;',
|
|||
// ' 8、合用场所除厨房外是否违规使用或者放置瓶装液化石油气、可燃液体;',
|
|||
// ' 9、放置瓶装液化石油气的厨房是否采取防火分隔措施,并设置自然排风窗;',
|
|||
// ' 10、合用场所疏散通道、安全出口是否保持畅通;',
|
|||
// ' 11、合用场所的外窗或阳台是否设置金属栅栏;(judge_0) 若设置,是否能从内部易于开启。(judge_1)',
|
|||
// ' 12、存在其他安全隐患;',
|
|||
// ]
|
|||
// const columns = [
|
|||
// {
|
|||
// title: '场所名称',
|
|||
// dataIndex: 'reportName',
|
|||
// hideInSearch: true,
|
|||
// render: () => {
|
|||
// return <div>{datas.placeName}</div>
|
|||
// }
|
|||
// }, {
|
|||
// title: '场所基本情况',
|
|||
// dataIndex: 'reportName',
|
|||
// hideInSearch: true,
|
|||
// render: () => {
|
|||
// return <div>
|
|||
// <li>使用性质:{datas.placeType}</li>
|
|||
// <li>地址:{datas.address}</li>
|
|||
// <li>负责人:{datas.placeOwner}</li>
|
|||
// <li>电话:{datas.phone}</li>
|
|||
// <li>面积:{datas.dimension}</li>
|
|||
// <li>层数:{datas.floors}</li>
|
|||
// <li>常驻人口:{datas.numberOfPeople}</li>
|
|||
// </div>
|
|||
// }
|
|||
// }, {
|
|||
// title: '检查内容',
|
|||
// dataIndex: 'reportName',
|
|||
// hideInSearch: true,
|
|||
// render: () => {
|
|||
// return datas.hiddenDangerItem12 ?
|
|||
// scopeOfExamination.map((item, index) => {
|
|||
// let message = arr[index]
|
|||
// if (arr[index].indexOf('judge_') > -1) {
|
|||
// if (item.child && item.child.itemIndex) {
|
|||
// message = message.replace(`judge_${item.child.itemIndex}`, item.child.value ? "是" : "否")
|
|||
// } else {
|
|||
// message = message.replace(`judge_1`, '---')
|
|||
// }
|
|||
|
|||
// if (arr[index].indexOf('judge_0') > -1) {
|
|||
// return <li key={index}>{message.replace(`judge_0`, item.value ? "是" : "否")}</li>
|
|||
// }
|
|||
// }
|
|||
// return <li key={index}>{message}({item.value ? "是" : "否"})</li>
|
|||
// })
|
|||
// : '---'
|
|||
// }
|
|||
// }, {
|
|||
// title: '存在具体问题',
|
|||
// dataIndex: 'reportName',
|
|||
// hideInSearch: true,
|
|||
// render: () => {
|
|||
// return <div>{datas.description ? datas.description : '---'}</div>
|
|||
// }
|
|||
// },
|
|||
// ]
|
|||
// const data = [
|
|||
// {
|
|||
// key: '1',
|
|||
|
|||
// address: 'New York No. 1 Lake Park',
|
|||
// tags: ['nice', 'developer'],
|
|||
// },
|
|||
// ];
|
|||
// return (
|
|||
// <Spin spinning={false}>
|
|||
// <ModalForm
|
|||
// width={'90rem'}
|
|||
// visible={visible}
|
|||
// onVisibleChange={onVisibleChange}
|
|||
// submitter={false}
|
|||
// >
|
|||
// <div style={{ width:'71vw'}}><span style={{ fontSize: '16px' }}>排查单位:{(datas || {}).checkAreaName || ''}</span>
|
|||
// <span style={{ fontSize: '16px', float:'right',marginBottom:'10px'}}>填报日期:{moment((datas || {}).time).format('YYYY-MM-DD') || ''}</span><span style={{clear:'both'}}></span></div>
|
|||
// <Table columns={columns} dataSource={data} width={'50rem'} pagination={false}
|
|||
|
|||
// />
|
|||
// <div style={{ width:'71vw',marginTop:'10px'}}>
|
|||
// <span style={{ fontSize: '16px' }}>排查人:{(datas || {}).checkUserName || ''}</span>
|
|||
// <span style={{ fontSize: '16px',float:'right' }}>手机号:{(datas || {}).checkUserPhone || ''}</span></div>
|
|||
// </ModalForm>
|
|||
// </Spin>
|
|||
// )
|
|||
// }
|
|||
// function mapStateToProps (state) {
|
|||
// const { depMessage } = state;
|
|||
// const pakData = (dep) => {
|
|||
// return dep.map((d) => {
|
|||
// return {
|
|||
// title: d.name,
|
|||
// value: d.id,
|
|||
// children: pakData(d.subordinate)
|
|||
// }
|
|||
// })
|
|||
// }
|
|||
// let depData = pakData(depMessage.data || [])
|
|||
// return {
|
|||
// loading: depMessage.isRequesting,
|
|||
// depData,
|
|||
// };
|
|||
// }
|
|||
// export default connect(mapStateToProps)(UserModal);
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue