|
|
@ -51,13 +51,17 @@ import { getToken } from "@/config/cookie"; |
|
|
|
import { useSetState, useSessionStorageState, useUpdateEffect } from "ahooks"; |
|
|
|
|
|
|
|
const { TextArea } = Input; |
|
|
|
function ConfigRoad() { |
|
|
|
const ConfigRoad = (props) => { |
|
|
|
const { |
|
|
|
getRecordList = {} |
|
|
|
} = props |
|
|
|
console.log(getRecordList); |
|
|
|
const navigate = useNavigate(); |
|
|
|
//编辑泊位提交的编辑泊位 |
|
|
|
const location = useLocation(); |
|
|
|
const parking_id = location.search.split("=")[1].split("&")[0]; |
|
|
|
const operator_id = location.search.split("&")[1].split("=")[1]; |
|
|
|
const region_id = location.search.split("&")[2].split("=")[1]; |
|
|
|
const parking_id = getRecordList.id; |
|
|
|
const operator_id = getRecordList.operator_id; |
|
|
|
// const region_id = location.search.split("&")[2].split("=")[1]; |
|
|
|
const [modalBtnLoading, setModalBtnLoading] = useState(false) |
|
|
|
//泊位管理Form |
|
|
|
const [berthForm] = Form.useForm(); |
|
|
@ -633,7 +637,7 @@ function ConfigRoad() { |
|
|
|
downloadUrl: "/api/bpm/device/road_set_pole_position_import_template", |
|
|
|
importProps: { |
|
|
|
name: "file", |
|
|
|
action: "/api/bpm/device/road_set_import_pole_position", |
|
|
|
action: "/PMS/api/bpm/device/road_set_import_pole_position", |
|
|
|
data: { road_id: parking_id }, |
|
|
|
headers: { |
|
|
|
Authorization: getToken(), |
|
|
@ -1522,9 +1526,9 @@ function ConfigRoad() { |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
const [getEditTarket,setGetEditTarket]=useState([]) |
|
|
|
const [getLeftEditTarket,setGetLeftEditTarket]=useState([]) |
|
|
|
const [getSelectedKeys,setGetSelectedKeyst]=useState([]) |
|
|
|
const [getEditTarket, setGetEditTarket] = useState([]) |
|
|
|
const [getLeftEditTarket, setGetLeftEditTarket] = useState([]) |
|
|
|
const [getSelectedKeys, setGetSelectedKeyst] = useState([]) |
|
|
|
function getEditRoadDevice(record) { |
|
|
|
let data = { |
|
|
|
road_id: parking_id, |
|
|
@ -1564,9 +1568,9 @@ function ConfigRoad() { |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
const [getDeviceTarket,setGetDeviceTarket]=useState([]) |
|
|
|
const [getLeftDeviceTarket,setGetLeftDeviceTarket]=useState([]) |
|
|
|
const [getLeftDevicetargetKey,setGetLeftDevicetargetKey]=useState([]) |
|
|
|
const [getDeviceTarket, setGetDeviceTarket] = useState([]) |
|
|
|
const [getLeftDeviceTarket, setGetLeftDeviceTarket] = useState([]) |
|
|
|
const [getLeftDevicetargetKey, setGetLeftDevicetargetKey] = useState([]) |
|
|
|
function getDevice(record) { |
|
|
|
let data = { |
|
|
|
road_id: parking_id, |
|
|
@ -1777,7 +1781,7 @@ function ConfigRoad() { |
|
|
|
<div className="right-list"> |
|
|
|
<div className="total-row-wrapper"> |
|
|
|
<span className="number-wrapper"> |
|
|
|
<span> |
|
|
|
{/* <span> |
|
|
|
<Button |
|
|
|
type="primary" |
|
|
|
style={{ marginRight: "10px" }} |
|
|
@ -1787,7 +1791,7 @@ function ConfigRoad() { |
|
|
|
> |
|
|
|
返回 |
|
|
|
</Button> |
|
|
|
</span> |
|
|
|
</span> */} |
|
|
|
<span className="letter">共查询到</span> |
|
|
|
<span className="total-number"> {resultData.total_records}</span> |
|
|
|
<span className="letter">条结果</span> |
|
|
@ -1947,7 +1951,8 @@ function ConfigRoad() { |
|
|
|
</p> |
|
|
|
<p>2.请选择上传文件,并上传。</p> |
|
|
|
<Upload {...currentObj.importProps} beforeUpload={beforeUpload}> |
|
|
|
<Button type="primary" icon={<UploadOutlined />}> |
|
|
|
<Button type="primaryimport { pages } from '@/pages'; |
|
|
|
" icon={<UploadOutlined />}> |
|
|
|
上传 |
|
|
|
</Button> |
|
|
|
</Upload> |
|
|
|