From d13c47645c962d3cd70bc55e3c604ee80cfbf597 Mon Sep 17 00:00:00 2001 From: xingjx Date: Fri, 26 Jan 2024 09:12:37 +0800 Subject: [PATCH] =?UTF-8?q?fix():bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/VideoPlay/index.jsx | 10 +++++----- src/pages/OperationCenter/CarMgm/CarAuth/loadable.jsx | 4 ++-- .../OperationSales/CreditScoreMgm/loadable.jsx | 8 ++++++++ .../OutDeviceMgm/OutMonitorMgm/loadable.jsx | 16 ++++++++++++---- .../OutRoadMgm/OutDeviceMgm/OutNvrMgm/loadable.jsx | 19 ++++++++++++------- .../OutExceptionMgm/LiftUpPoleRecord/loadable.jsx | 2 +- src/pages/OutRoadMgm/OutRoadOverview/loadable.jsx | 2 +- .../OutSegment/ConfigParking/CarMgm/CarGroupMgm.jsx | 2 +- .../ConfigParking/GateControlManagement.jsx | 2 +- 9 files changed, 43 insertions(+), 22 deletions(-) diff --git a/src/components/VideoPlay/index.jsx b/src/components/VideoPlay/index.jsx index 4b6c268..fdf4084 100644 --- a/src/components/VideoPlay/index.jsx +++ b/src/components/VideoPlay/index.jsx @@ -8,8 +8,8 @@ let reloadTimes = 0 let flvPlayer = null let lastUrl = null -function VideoPlay (props, ref) { - const {videoType = "flv"} = props +function VideoPlay(props, ref) { + const { videoType = "flv", controlslist } = props const videoElement = useRef() const [videoUrl, setVideoUrl] = useState('') // console.log(videoType) @@ -47,7 +47,7 @@ function VideoPlay (props, ref) { console.log(e) } } - }else{ + } else { console.log("不支持flvjs!!!") } } @@ -84,7 +84,7 @@ function VideoPlay (props, ref) { useImperativeHandle(ref, () => ({ changeUrl: (url) => { - if(lastUrl == url) { + if (lastUrl == url) { flvPlayer.play() return } @@ -99,7 +99,7 @@ function VideoPlay (props, ref) { return (
- +
) } diff --git a/src/pages/OperationCenter/CarMgm/CarAuth/loadable.jsx b/src/pages/OperationCenter/CarMgm/CarAuth/loadable.jsx index 85e0600..ec31f3e 100644 --- a/src/pages/OperationCenter/CarMgm/CarAuth/loadable.jsx +++ b/src/pages/OperationCenter/CarMgm/CarAuth/loadable.jsx @@ -286,10 +286,10 @@ function CarAuth() { : null}
- { setBigPic(resultData[indexby].disabled_certificate_img1); setBigpicVisible(true) }} /> + { setBigPic(resultData[indexby].disabled_certificate_img1); setBigpicVisible(true) }} />
- { setBigPic(resultData[indexby].disabled_certificate_img2); setBigpicVisible(true) }} /> + { setBigPic(resultData[indexby].disabled_certificate_img2); setBigpicVisible(true) }} />
diff --git a/src/pages/OperationCenter/OperationSales/CreditScoreMgm/loadable.jsx b/src/pages/OperationCenter/OperationSales/CreditScoreMgm/loadable.jsx index b71c944..94741c4 100644 --- a/src/pages/OperationCenter/OperationSales/CreditScoreMgm/loadable.jsx +++ b/src/pages/OperationCenter/OperationSales/CreditScoreMgm/loadable.jsx @@ -354,6 +354,10 @@ function CreditScoreMgm() { } //积分兑换配置 编辑保存 function getRedeemEdit(e, type) { + if(!addData?.awardId||!addData?.redeem_points||!addData.total_num){ + message.error('请填写完整!') + return + } ajax.getCreditScoreRedeemEdit({ ...e }).then((res) => { let { status, data, total } = res if (status == 20000) { @@ -375,6 +379,10 @@ function CreditScoreMgm() { } //积分兑换配置 添加 function getRedeemAdd(e, type) { + if(!addData?.awardId||!addData?.redeem_points||!addData.total_num){ + message.error('请填写完整!') + return + } ajax.getCreditScoreRedeemAdd({ ...e }).then((res) => { let { status, data, total } = res if (status == 20000) { diff --git a/src/pages/OutRoadMgm/OutDeviceMgm/OutMonitorMgm/loadable.jsx b/src/pages/OutRoadMgm/OutDeviceMgm/OutMonitorMgm/loadable.jsx index 23e1315..7b788d4 100644 --- a/src/pages/OutRoadMgm/OutDeviceMgm/OutMonitorMgm/loadable.jsx +++ b/src/pages/OutRoadMgm/OutDeviceMgm/OutMonitorMgm/loadable.jsx @@ -71,8 +71,9 @@ function OutMonitorMgm(props) { device_name: "", nvr_id: "", device_code: "", - berth_ids: "", - nvr_type: "" + channel_ids: "", + nvr_type: "", + id: '', }; // 行数据 const [rowData, setRowData] = useState(defRowData); @@ -501,9 +502,15 @@ function OutMonitorMgm(props) { // message.error("请选择泊位"); // return; // } + if (form.getFieldValue("nvr_type") == 1) { + if (!rowData?.channel_ids) { + message.error("请选择通道号"); + return; + } + } ajax[values?.id ? "monitorOutEdit" : "monitorOutAdd"]({ ...values, - berth_ids: rowData?.berth_ids, + channel_ids: rowData?.channel_ids, }).then( (res) => { if (res?.status == 20000) { @@ -794,7 +801,8 @@ function OutMonitorMgm(props) { > + diff --git a/src/pages/OutRoadMgm/OutExceptionMgm/LiftUpPoleRecord/loadable.jsx b/src/pages/OutRoadMgm/OutExceptionMgm/LiftUpPoleRecord/loadable.jsx index 35eebf5..94b31cf 100644 --- a/src/pages/OutRoadMgm/OutExceptionMgm/LiftUpPoleRecord/loadable.jsx +++ b/src/pages/OutRoadMgm/OutExceptionMgm/LiftUpPoleRecord/loadable.jsx @@ -113,7 +113,7 @@ function LiftUpPoleRecord(props) { key: 'start_time', }, { - title: '关闸时间', + title: '开闸原因', dataIndex: 'end_reason', key: 'end_reason', }, diff --git a/src/pages/OutRoadMgm/OutRoadOverview/loadable.jsx b/src/pages/OutRoadMgm/OutRoadOverview/loadable.jsx index 7ca143f..64b5ebb 100644 --- a/src/pages/OutRoadMgm/OutRoadOverview/loadable.jsx +++ b/src/pages/OutRoadMgm/OutRoadOverview/loadable.jsx @@ -573,7 +573,7 @@ const OutRoadOverview = () => { onChange={(e) => { getOutRoadVideoPlay({ id: e, type: 1 }); setTodevice(e) }} />
- +
diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarGroupMgm.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarGroupMgm.jsx index 9777963..729cc21 100644 --- a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarGroupMgm.jsx +++ b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/CarMgm/CarGroupMgm.jsx @@ -114,7 +114,7 @@ function CarGroupMgm({ id }) { }); const [pageData, setPageData] = useState({ pn: 1, - page_size: 10, + page_size: 15, total: 0, }); const [currentId, setCurrentId] = useState(""); diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/GateControlManagement.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/GateControlManagement.jsx index 26b97e4..b6f2b4c 100644 --- a/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/GateControlManagement.jsx +++ b/src/pages/OutRoadMgm/OutSegmentMgm/OutSegment/ConfigParking/GateControlManagement.jsx @@ -254,7 +254,6 @@ function GateControlManagement(props) { useEffect(()=>{ - getOptionData() getOpenData(pageData) },[]) @@ -263,6 +262,7 @@ function GateControlManagement(props) {