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

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

@ -6,6 +6,7 @@ import { useSelector } from "react-redux";
import "./index.scss";
import { VideoPlay } from "@/components";
import { Select, Tooltip } from "antd";
var timer = null;
const OutRoadOverview = () => {
const skin = useSelector((state) => {
return state.common.skin;
@ -303,19 +304,37 @@ const OutRoadOverview = () => {
});
}
//
function getOutRoadVideoPlay() {
function getOutRoadVideoPlay(e) {
ajax
.getOutRoadVideoPlay()
.getOutRoadVideoPlay(e)
.then((res) => {
if (res.status === 20000) {
setVideoPlay(res.data.url);
handleFlvPlay(res.data.url)
handleFlvPlay(res.data.url);
getOutRoadVideoPlaying(e) //
}
})
.catch((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
function getIncomeTop5() {
ajax
@ -388,9 +407,7 @@ const OutRoadOverview = () => {
const handleFlvPlay = (e) => {
videoRef.current.closeVideo()
setVideoType("mp4")
//if(videoPlay){
videoRef.current.changeUrl(e)
//}
videoRef.current.changeUrl(e)
}
useEffect(() => {
getBaseNumber();
@ -400,9 +417,12 @@ const OutRoadOverview = () => {
getParkingRecord();
getPageConfig();
getOutRoadVideoRoad();
return () => {
clearInterval(timer)
}
}, []);
useEffect(() => {
if(roadId){
if (roadId) {
getOutRoadVideoDevice(roadId)
}
}, [roadId]);
@ -532,7 +552,7 @@ const OutRoadOverview = () => {
placeholder="请选择停车场"
value={roadId}
options={videoRoad}
onChange={(e)=>setRoadId(e)}
onChange={(e) => setRoadId(e)}
/>
<Select
placeholder="请选择监控设备"

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

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

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

@ -26,8 +26,28 @@ const getPlateChangeExport = (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 {
getPlateChangeList,
getPlateChangeDetail,
getPlateChangeExport,
getSpecialResList,
getSpecialResExp,
}

9
src/services/OutRoadMgm/OutRoadOverview.js

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