Browse Source

fix():修改bug

tags/PMS_V1.0.0_Alpha7
guoxin 1 year ago
parent
commit
fac4060f29
  1. 3
      src/components/SelectGaodeLngLat/index.jsx
  2. 6
      src/pages/InRoadMgm/BusinessMgm/AbnormalParking/ExceptionParkReport/loadable.jsx
  3. 1
      src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx
  4. 1
      src/pages/InRoadMgm/BusinessMgm/ChargeRules/FormModal.jsx
  5. 11
      src/pages/InRoadMgm/RecordInquiry/ParkRecordTotal/index.scss
  6. 13
      src/pages/InRoadMgm/RoadMgm/AddRoad/loadable.jsx
  7. 20
      src/pages/InRoadMgm/RoadMgm/RoadConf/loadable.jsx
  8. 2
      src/pages/InRoadMgm/Stuff/StuffMgm/loadable.jsx
  9. 11
      src/pages/OperationCenter/CustomerServieMgm/ErrorCorrection/loadable.jsx

3
src/components/SelectGaodeLngLat/index.jsx

@ -18,6 +18,7 @@ function SelectGaodeLngLat(props) {
onChange = () => { },
isClickMarker = false //
} = props;
console.log(lngLatVisible);
const [lnglat, setLnglat] = useState([]);
const [marker, setMarker] = useState([]);
const [address, setAddress] = useState("");
@ -95,7 +96,7 @@ function SelectGaodeLngLat(props) {
</Button>
<Modal
className="map-modal"
visible={lngLatVisible}
open={lngLatVisible}
width={1000}
footer={false}
onCancel={close}

6
src/pages/InRoadMgm/BusinessMgm/AbnormalParking/ExceptionParkReport/loadable.jsx

@ -484,13 +484,13 @@ function ExceptionParkReport(props) {
</div>
<div className="operatorName">
<div className="top">
<div className="name">车牌号:{getDetailId.plateNumber}</div>
<div className="name">车牌号{getDetailId.plateNumber}</div>
<div className="type">异常类型{getDetailId.exceptDictName}</div>
<div className="time">上报时间:{getDetailId.reportTime}</div>
<div className="time">上报时间{getDetailId.reportTime}</div>
</div>
<div className="middle">
<div className="type">停车场{getDetailId.parkName}</div>
<div className="time">入场时间:{getDetailId.entryTime}</div>
<div className="time">入场时间{getDetailId.entryTime}</div>
</div>
<div className="bottom">
{

1
src/pages/InRoadMgm/BusinessMgm/ChargeRules/EditModal.jsx

@ -509,6 +509,7 @@ const FormModal = (props) => {
}
const data = options;
handleOptionsProcessing(i, z, data, type)//
form.setFieldsValue(currentFormValues)
console.log("表单数据", currentFormValues);
return true;
}

1
src/pages/InRoadMgm/BusinessMgm/ChargeRules/FormModal.jsx

@ -489,6 +489,7 @@ const FormModal = (props) => {
// 4.
const data = options;
handleOptionsProcessing(i, z, data, type)//
form.setFieldsValue(currentFormValues)
console.log("表单数据", currentFormValues);
return true;
}

11
src/pages/InRoadMgm/RecordInquiry/ParkRecordTotal/index.scss

@ -48,6 +48,11 @@ $color-primary: var(--color-primary);
}
}
}
.ant-picker {
width: 100%;
background-color: var(--color-search-list-item-bg);
border-color: var(--color-border);
}
}
.ant-input::-webkit-input-placeholder {
@ -165,11 +170,7 @@ $color-primary: var(--color-primary);
}
}
.ant-picker {
width: 100%;
background-color: var(--color-search-list-item-bg);
border-color: var(--color-border);
}
// .yisa-table {
// width: 100%;

13
src/pages/InRoadMgm/RoadMgm/AddRoad/loadable.jsx

@ -19,7 +19,7 @@ import {
import { PlusOutlined } from "@ant-design/icons";
import { useLocation, useNavigate } from "react-router-dom";
import { ImgUpload, TreeSelectGroup, SelectGaodeLngLat } from "@/components";
import { ImgUpload, TreeSelectGroup, SelectGaodeLngLat2 } from "@/components";
import moment from "moment";
import "./index.scss";
import ajax from "@/services";
@ -50,7 +50,8 @@ function AddRoad(props) {
];
const {
getDetailList = {},
setDetailModel=()=>{}
setDetailModel=()=>{},
setcheckModel=()=>{},
} = props
const navigate = useNavigate();
const location = useLocation();
@ -76,7 +77,7 @@ function AddRoad(props) {
//
const [operatorId, setOperatorId] = useState(null);
//
const [isEdit, setIsEdit] = useState(id !== null);
const [isEdit, setIsEdit] = useState(id !== undefined);
//
const [tradingAreaList, setTradingAreaList] = useState({
left: [],
@ -154,6 +155,7 @@ function AddRoad(props) {
if (res.status === 20000) {
message.success(res.message);
setDetailModel(false)
setcheckModel(false)
} else {
message.error(res.message);
}
@ -550,7 +552,7 @@ function AddRoad(props) {
<Input value={lngLat} />
</Col>
<Col span={5}>
<SelectGaodeLngLat
<SelectGaodeLngLat2
open={() => setLngLatVisible(true)}
lngLatVisible={lngLatVisible}
getLntLat={(value) => {
@ -603,7 +605,7 @@ function AddRoad(props) {
{isEdit ? (
<>
<Col span={8}>
<Form.Item label="泊位总数" name="berth_num" rules={rules}>
<Form.Item label="泊位总数" name="berth_num" >
<Input disabled />
</Form.Item>
</Col>
@ -859,6 +861,7 @@ function AddRoad(props) {
<Button
onClick={() => {
setDetailModel(false)
setcheckModel(false)
}}
type="primary"
>

20
src/pages/InRoadMgm/RoadMgm/RoadConf/loadable.jsx

@ -24,6 +24,7 @@ import "./index.scss";
import ConfigRoad from "../ConfigRoad"
import AddRoad from "../AddRoad"
import RoadDetail from "../RoadDetail"
// import AddRoad from "../AddRoad"
import AuditModifyModal from "./AuditModifyModal";
// import errorImg from "@/assets/images/layout/error.png"
// import { useLocation } from "react-router-dom";
@ -184,6 +185,7 @@ function RoadConf() {
const [handleDetail, setHandleDetail] = useState(false)
const [detailModel, setDetailModel] = useState(false)
const [checkDetailModel, setCheckDetailModel] = useState(false)
const [checkModel, setcheckModel] = useState(false)
const [getRecordList, setGetRecordList] = useState({})
const handleModal = (record) => {
setGetRecordList(record)
@ -208,6 +210,9 @@ function RoadConf() {
const handleCheckDetails=()=>{
setCheckDetailModel(false)
}
const CheckDetails=()=>{
setcheckModel(false)
}
const [loading, setLoading] = useState(false);
const [resultData, setReusltData] = useSetState({
//
@ -311,7 +316,7 @@ function RoadConf() {
};
//
function addRoad(params) {
navigate("/inRoad/addRoad");
setcheckModel(true)
}
function cascaderChange(value, options) {
@ -715,6 +720,19 @@ function RoadConf() {
>
</RoadDetail>
</Modal>
<Modal
visible={checkModel}
onCancel={CheckDetails}
footer={false}
className="handleCloseDetailModel"
destroyOnClose={true}
>
<AddRoad
getCheckDetailList={getCheckDetailList}
setcheckModel={setcheckModel}
>
</AddRoad>
</Modal>
</div>
{/* <AuditModifyModal
open={auditModalData.visible}

2
src/pages/InRoadMgm/Stuff/StuffMgm/loadable.jsx

@ -313,7 +313,7 @@ function StuffMgm(props) {
//
const getResetData = () => {
setGetOption(['0'])
getAssetData()
setFormData({
...parameter,
})

11
src/pages/OperationCenter/CustomerServieMgm/ErrorCorrection/loadable.jsx

@ -48,6 +48,7 @@ function ErrorCorrection(props) {
}
}
console.log(res);
setFormData({ ...formData, areId:value })
setAreaSelectedList(res);
}
const addChild = (child, res) => {
@ -121,11 +122,11 @@ function ErrorCorrection(props) {
setImgVisible(false)
}
//
const getData = (data = formData) => {
const getData = (data = formData,reset='') => {
setAjaxLoading(true)
let dataList = {
...data,
areId: areaSelectedList
areId:!reset ? areaSelectedList :[]
}
ajax.getCarErrorList(dataList).then(res => {
setAjaxLoading(false)
@ -180,8 +181,8 @@ function ErrorCorrection(props) {
setFormData({
...parameter
})
setAreaId([])
getData({...parameter,pn: 1} )
setAreaSelectedList([])
getData({ ...parameter, pn: 1 },'reset')
}
const [getCanCaDer, setGetCanCaDer] = useState([])
@ -204,7 +205,7 @@ function ErrorCorrection(props) {
<div className="yisa-search">
<label>区域</label>
<Cascader
defaultValue={formData.areId}
value={formData.areId}
options={getCanCaDer}
allowClear={false}
onChange={onChangeList}

Loading…
Cancel
Save