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