Browse Source

fix():特殊放行记录页面接口对接

tags/PMS_V1.0.0_Alpha5
xingjx 1 year ago
parent
commit
58c5c1d364
  1. 39
      src/pages/OutRoadMgm/OutExceptionMgm/SpecialReleaseMgm/index.jsx
  2. 30
      src/pages/OutRoadMgm/OutRoadOverview/loadable.jsx
  3. 2
      src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/TollCollectorManagement.jsx
  4. 20
      src/services/OutRoadMgm/OutExceptionMgm/index.js
  5. 9
      src/services/OutRoadMgm/OutRoadOverview.js

39
src/pages/OutRoadMgm/OutExceptionMgm/SpecialReleaseMgm/index.jsx

@ -15,7 +15,6 @@ import {
import moment from "moment"; import moment from "moment";
import ajax from '@/services' import ajax from '@/services'
import { TableModule } from "@/components"; import { TableModule } from "@/components";
import { dictionary } from "@/config/common.js";
import "./index.scss"; import "./index.scss";
//specialReleaseMgm //specialReleaseMgm
function SpecialReleaseMgm() { function SpecialReleaseMgm() {
@ -42,56 +41,56 @@ function SpecialReleaseMgm() {
{ {
title: "车牌号", title: "车牌号",
dataIndex: "plate", dataIndex: "plate",
key: "plate_old",
key: "plate",
align: "center", align: "center",
fixed: "right", fixed: "right",
}, },
{ {
title: "入场时间", title: "入场时间",
dataIndex: "plate",
key: "plate_new",
dataIndex: "in_time",
key: "in_time",
align: "center", align: "center",
fixed: "right", fixed: "right",
}, },
{ {
title: "出场时间", title: "出场时间",
dataIndex: "cr",
key: "cr",
dataIndex: "out_time",
key: "out_time",
align: "center", align: "center",
fixed: "right", fixed: "right",
}, },
{ {
title: "应收金额", title: "应收金额",
dataIndex: "co",
key: "co",
dataIndex: "shouldPay",
key: "shouldPay",
align: "center", align: "center",
fixed: "right", fixed: "right",
}, },
{ {
title: "通道名称", title: "通道名称",
dataIndex: "op",
key: "oe",
dataIndex: "parkName",
key: "parkName",
align: "center", align: "center",
fixed: "right", fixed: "right",
}, },
{ {
title: "开闸时间", title: "开闸时间",
dataIndex: "o",
key: "o",
dataIndex: "open_gate_time",
key: "open_gate_time",
align: "center", align: "center",
fixed: "right", fixed: "right",
}, },
{ {
title: "开闸原因", title: "开闸原因",
dataIndex: "",
key: "o",
dataIndex: "reason",
key: "reason",
align: "center", align: "center",
fixed: "right", fixed: "right",
}, },
{ {
title: "操作人", title: "操作人",
dataIndex: "o",
key: "o",
dataIndex: "operatename",
key: "operatename",
align: "center", align: "center",
fixed: "right", fixed: "right",
}, },
@ -106,7 +105,7 @@ function SpecialReleaseMgm() {
<Button <Button
type="primary" type="primary"
onClick={() => { onClick={() => {
getDetailData(record.id)
//getDetailData(record.id)
}} }}
> >
详情 详情
@ -125,7 +124,7 @@ function SpecialReleaseMgm() {
placeholder: "请输入车场名称", placeholder: "请输入车场名称",
}, },
{ {
name: "c",
name: "operatename",
type: "Input", type: "Input",
label: "操作人", label: "操作人",
placeholder: "请输入操作人", placeholder: "请输入操作人",
@ -141,7 +140,7 @@ function SpecialReleaseMgm() {
// //
function search(e) { function search(e) {
ajax.getPlateChangeList(e).then((res) => {
ajax.getSpecialResList(e).then((res) => {
let { status, data, total } = res let { status, data, total } = res
if (status == 20000) { if (status == 20000) {
if (data.list) { if (data.list) {
@ -210,7 +209,7 @@ function SpecialReleaseMgm() {
search={search} search={search}
total={total} total={total}
rowKey={"road_name"} rowKey={"road_name"}
exportUrl={'/api/bpm/correct/export_lift'}
exportUrl={'/api/bpm/special/export_lift'}
initFormData={{}} initFormData={{}}
pagename={'plateChangeMgm'} pagename={'plateChangeMgm'}
/> />

30
src/pages/OutRoadMgm/OutRoadOverview/loadable.jsx

@ -6,6 +6,7 @@ import { useSelector } from "react-redux";
import "./index.scss"; import "./index.scss";
import { VideoPlay } from "@/components"; import { VideoPlay } from "@/components";
import { Select, Tooltip } from "antd"; import { Select, Tooltip } from "antd";
var timer = null;
const OutRoadOverview = () => { const OutRoadOverview = () => {
const skin = useSelector((state) => { const skin = useSelector((state) => {
return state.common.skin; return state.common.skin;
@ -303,19 +304,37 @@ const OutRoadOverview = () => {
}); });
} }
// //
function getOutRoadVideoPlay() {
function getOutRoadVideoPlay(e) {
ajax ajax
.getOutRoadVideoPlay()
.getOutRoadVideoPlay(e)
.then((res) => { .then((res) => {
if (res.status === 20000) { if (res.status === 20000) {
setVideoPlay(res.data.url); setVideoPlay(res.data.url);
handleFlvPlay(res.data.url)
handleFlvPlay(res.data.url);
getOutRoadVideoPlaying(e) //
} }
}) })
.catch((err) => { .catch((err) => {
console.error(err); console.error(err);
}); });
} }
//
function getOutRoadVideoPlaying(e) {
timer = setInterval(() => {
ajax
.getOutRoadVideoPlaying(e)
.then((res) => {
if (res.status != 20000) {
clearInterval(timer);
}
})
.catch((err) => {
clearInterval(timer);
console.error(err);
});
}, 5000)
}
// -top5 // -top5
function getIncomeTop5() { function getIncomeTop5() {
ajax ajax
@ -388,9 +407,7 @@ const OutRoadOverview = () => {
const handleFlvPlay = (e) => { const handleFlvPlay = (e) => {
videoRef.current.closeVideo() videoRef.current.closeVideo()
setVideoType("mp4") setVideoType("mp4")
//if(videoPlay){
videoRef.current.changeUrl(e) videoRef.current.changeUrl(e)
//}
} }
useEffect(() => { useEffect(() => {
getBaseNumber(); getBaseNumber();
@ -400,6 +417,9 @@ const OutRoadOverview = () => {
getParkingRecord(); getParkingRecord();
getPageConfig(); getPageConfig();
getOutRoadVideoRoad(); getOutRoadVideoRoad();
return () => {
clearInterval(timer)
}
}, []); }, []);
useEffect(() => { useEffect(() => {
if (roadId) { if (roadId) {

2
src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/TollCollectorManagement.jsx

@ -169,7 +169,7 @@ function TollCollectorManagement({ id: road_id }) {
</Col> </Col>
<Col span="4_8" style={{ width: "30%" }}> <Col span="4_8" style={{ width: "30%" }}>
<Form.Item label="角色" name="user_account">
<Form.Item label="角色" name="role">
<Select options={sysConfig.orpMBUserRole} /> <Select options={sysConfig.orpMBUserRole} />
</Form.Item> </Form.Item>
</Col> </Col>

20
src/services/OutRoadMgm/OutExceptionMgm/index.js

@ -26,8 +26,28 @@ const getPlateChangeExport = (params) => {
data: params, data: params,
}); });
}; };
//异常管理-特殊方行记录-列表
const getSpecialResList = (params) => {
return ajax({
url: "/api/bpm/special/get_special_res",
type: "post",
data: params,
});
};
//异常管理-特殊方行记录-导出
const getSpecialResExp = (params) => {
return ajax({
url: "/api/bpm/special/export_lift",
type: "post",
data: params,
});
};
export default { export default {
getPlateChangeList, getPlateChangeList,
getPlateChangeDetail, getPlateChangeDetail,
getPlateChangeExport, getPlateChangeExport,
getSpecialResList,
getSpecialResExp,
} }

9
src/services/OutRoadMgm/OutRoadOverview.js

@ -65,6 +65,14 @@ const getOutRoadVideoPlay = (params) => {
data: params, data: params,
}); });
}; };
///轮询请求正在播放的视频
const getOutRoadVideoPlaying = (params) => {
return ajax({
url: "/api/orp/nvr/playing_video",
type: "post",
data: params,
});
};
export default { export default {
getOutRoadBaseInfo, getOutRoadBaseInfo,
getOutRoadParkingTopInfo, getOutRoadParkingTopInfo,
@ -74,4 +82,5 @@ export default {
getOutRoadVideoRoad, getOutRoadVideoRoad,
getOutRoadVideoDevice, getOutRoadVideoDevice,
getOutRoadVideoPlay, getOutRoadVideoPlay,
getOutRoadVideoPlaying,
}; };
Loading…
Cancel
Save