diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js index 30bd10fd..9a131d53 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js @@ -69,7 +69,7 @@ export const eventMap = { (extData) => { this.dialogConfig = { // 0 有(球机) 1 ⽆(枪机) - component: cameraCtrlMap[extData.ptzCtrl], + component: cameraCtrlMap[extData.other_config?.ptzCtrl], data: extData, }; } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js index 92e0704f..d5e8c0b7 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js @@ -146,7 +146,7 @@ export async function setMarkToMap(item, data, _markerClick, content) { height: 18px; margin-left: 3px; margin-bottom: 6px; - " src='${item.status !== "0" ? fault : normal}'> + " src='${item.device_state !== "0" ? fault : normal}'> `, }; }),