Browse Source

情报板提交修改

wangqin
Joe 1 year ago
parent
commit
5fc52c2ee7
  1. 7
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue
  2. 110
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js
  3. 56
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/index.vue

7
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue

@ -28,7 +28,8 @@
<!-- <ControlCamera :data="dialogConfig.data" :visible="dialogConfig.visibleType === 0" /> --> <!-- <ControlCamera :data="dialogConfig.data" :visible="dialogConfig.visibleType === 0" /> -->
<!-- 摄像机 G35 K094+079 下行可控 枪机 可打开--> <!-- 摄像机 G35 K094+079 下行可控 枪机 可打开-->
<!-- <Camera :data="dialogConfig.data" :visible="dialogConfig.visibleType === 1" /> --> <!-- <Camera :data="dialogConfig.data" :visible="dialogConfig.visibleType === 1" /> -->
<component :dialogData="dialogConfig.data" :is="dialogConfig.component" @change="handleCameraChange" /> <component :dialogData="dialogConfig.data" :device="dialogConfig.data" :is="dialogConfig.component"
@change="handleCameraChange" />
</Bg1> </Bg1>
</template> </template>
@ -41,6 +42,7 @@ import Bg1 from "@screen/components/Decorations/bg-1.vue"
import ControlCamera from "./../Dialogs/ControlCamera/index.vue" import ControlCamera from "./../Dialogs/ControlCamera/index.vue"
import DrivingGuidance from "./../Dialogs/DrivingGuidance/index.vue" import DrivingGuidance from "./../Dialogs/DrivingGuidance/index.vue"
import Camera from "./../Dialogs/Camera/index.vue"; import Camera from "./../Dialogs/Camera/index.vue";
import InfoBoard from "./../InfoBoard"
export default { export default {
name: 'RoadAndEvents', name: 'RoadAndEvents',
@ -48,6 +50,7 @@ export default {
ControlCamera, ControlCamera,
Camera, Camera,
DrivingGuidance, DrivingGuidance,
InfoBoard,
Bg1 Bg1
}, },
data() { data() {
@ -61,7 +64,7 @@ export default {
// 0 ControlCamera | 1 Camera // 0 ControlCamera | 1 Camera
component: void 0, component: void 0,
data: void 0, data: void 0,
// component: DrivingGuidance, // component: ControlCamera,
// data: { // data: {
// camId: "57937", // camId: "57937",
// } // }

110
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js

@ -33,11 +33,64 @@ export const eventMap = {
// status: "0", // status: "0",
// }; // };
const data = await getDeviceList(1); // const data = await getDeviceList(1);
const data = [
{
longitude: 116.268564,
latitude: 35.73115,
otherConfig: '{"ptzCtrl":0}',
},
{
longitude: 116.258178,
latitude: 35.720996,
},
{
longitude: 116.255542,
latitude: 35.717335,
},
{
longitude: 116.252883,
latitude: 35.713114,
},
{
longitude: 116.249416,
latitude: 35.707627,
},
];
if (!data) return;
cacheRemoveFunc.DriveTestEquipment_Camera_Remove?.();
cacheRemoveFunc.DriveTestEquipment_Camera_Remove = await setMarkToMap.call(
this,
item,
data,
(extData) => {
try {
this.dialogConfig = {
// 0 有(球机) 1 ⽆(枪机)
component: cameraCtrlMap[JSON.parse(extData.otherConfig)?.ptzCtrl],
data: extData,
};
} catch (error) {}
}
);
},
async "路测设备/摄像机_close"() {
cacheRemoveFunc.DriveTestEquipment_Camera_Remove?.();
},
async "路测设备/行车诱导_close"() {
cacheRemoveFunc.Driving_Guidance_Remove?.();
},
async "路测设备/行车诱导"(item) {
const data = await getDeviceList(12);
// const data = [ // const data = [
// { // {
// longitude: 116.268564, // longitude: 116.268564,
// latitude: 35.73115, // latitude: 35.73115,
// otherConfig: '{"ptzCtrl":0}',
// }, // },
// { // {
// longitude: 116.258178, // longitude: 116.258178,
@ -54,43 +107,60 @@ export const eventMap = {
// { // {
// longitude: 116.249416, // longitude: 116.249416,
// latitude: 35.707627, // latitude: 35.707627,
// ptzCtrl: 0,
// }, // },
// ]; // ];
if (!data) return; if (!data) return;
cacheRemoveFunc.DriveTestEquipment_Camera_Remove?.(); cacheRemoveFunc.Driving_Guidance_Remove?.();
cacheRemoveFunc.DriveTestEquipment_Camera_Remove = await setMarkToMap.call( cacheRemoveFunc.Driving_Guidance_Remove = await setMarkToMap.call(
this, this,
item, item,
data, data,
(extData) => { (extData) => {
try { this.dialogConfig = {
this.dialogConfig = { component: "DrivingGuidance",
// 0 有(球机) 1 ⽆(枪机) data: extData,
component: cameraCtrlMap[JSON.parse(extData.otherConfig)?.ptzCtrl], };
data: extData,
};
} catch (error) {}
} }
); );
}, },
async "路测设备/摄像机_close"() { async "路测设备/情报板_close"() {
cacheRemoveFunc.DriveTestEquipment_Camera_Remove?.(); cacheRemoveFunc.Info_Board_Remove?.();
}, },
async "路测设备/行车诱导_close"() { async "路测设备/情报板"(item) {
cacheRemoveFunc.Driving_Guidance_Remove?.(); const data = await getDeviceList(2);
},
async "路测设备/行车诱导"(item) { // const data = [
const data = await getDeviceList(12); // {
// longitude: 116.268564,
// latitude: 35.73115,
// otherConfig: '{"ptzCtrl":0}',
// },
// {
// longitude: 116.258178,
// latitude: 35.720996,
// },
// {
// longitude: 116.255542,
// latitude: 35.717335,
// },
// {
// longitude: 116.252883,
// latitude: 35.713114,
// },
// {
// longitude: 116.249416,
// latitude: 35.707627,
// },
// ];
if (!data) return; if (!data) return;
cacheRemoveFunc.Driving_Guidance_Remove?.(); cacheRemoveFunc.Info_Board_Remove?.();
cacheRemoveFunc.Driving_Guidance_Remove = await setMarkToMap.call( cacheRemoveFunc.Info_Board_Remove = await setMarkToMap.call(
this, this,
item, item,
data, data,

56
ruoyi-ui/src/views/JiHeExpressway/pages/Home/index.vue

@ -15,7 +15,7 @@
<ConditionStatistics class="content-r card-menu" /> <ConditionStatistics class="content-r card-menu" />
</section> </section>
<InfoBoard :visible.sync="isShowInfoBoard" :device="selectedDevice"></InfoBoard> <!-- <InfoBoard :visible.sync="isShowInfoBoard" :device="selectedDevice"></InfoBoard> -->
<footer class="footer card-menu"> <footer class="footer card-menu">
<div class="footer-title"> <div class="footer-title">
@ -37,7 +37,7 @@ import ConditionStatistics from "./components/ConditionStatistics/index.vue";
import RoadAndEvents from "./components/RoadAndEvents/index.vue"; import RoadAndEvents from "./components/RoadAndEvents/index.vue";
import AMapContainer from "./components/AMapContainer/index.vue"; import AMapContainer from "./components/AMapContainer/index.vue";
import InfoBoard from "./components/InfoBoard" // import InfoBoard from "./components/InfoBoard"
export default { export default {
name: 'Home', name: 'Home',
@ -47,12 +47,12 @@ export default {
Thumbnail, Thumbnail,
RoadAndEvents, RoadAndEvents,
AMapContainer, AMapContainer,
InfoBoard // InfoBoard
}, },
data() { data() {
return { return {
isShowInfoBoard: false, isShowInfoBoard: false,
selectedDevice:null selectedDevice: null
} }
}, },
provide() { provide() {
@ -77,30 +77,30 @@ export default {
} }
}, },
onClickItem(item) { onClickItem(item) {
if (item.title.includes("情报板")) { // if (item.title.includes("")) {
this.isShowInfoBoard = true; // this.isShowInfoBoard = true;
this.selectedDevice = { // this.selectedDevice = {
"id": 904, // "id": 904,
"iotDeviceId": "81221-65535", // "iotDeviceId": "81221-65535",
"groupId": null, // "groupId": null,
"productId": 0, // "productId": 0,
"stakeMarkId": "k71+600", // "stakeMarkId": "k71+600",
"direction": "1", // "direction": "1",
"deviceName": "大学城入口站前板", // "deviceName": "",
"deviceType": 2, // "deviceType": 2,
"installationDate": null, // "installationDate": null,
"productionDate": null, // "productionDate": null,
"durableYears": null, // "durableYears": null,
"installationSite": null, // "installationSite": null,
"useState": null, // "useState": null,
"otherConfig": "{\"screenSize\":\"160*80\"}", // "otherConfig": "{\"screenSize\":\"160*80\"}",
"remark": null, // "remark": null,
"createTime": "2024-01-17T22:50:56.000+08:00", // "createTime": "2024-01-17T22:50:56.000+08:00",
"updateTime": null, // "updateTime": null,
"longitude": null, // "longitude": null,
"latitude": null // "latitude": null
} // }
} // }
} }
} }
} }

Loading…
Cancel
Save