类型:开发

描述:
This commit is contained in:
2026-01-23 00:23:43 +08:00
parent fab9537aad
commit e4f42a7136
3 changed files with 34 additions and 31 deletions

View File

@@ -253,17 +253,17 @@
const showTrafficEvent = function(){
trafficEventShow.value = true;
}
window.addEventListener("message", async(e) => {
let {code,data} = await getPreviewUrlApi({
type: 'hls',
cameraIndexCode:e.data.cameraIndexCode
})
if(code===200){
src.value = data.url
cameraIndexCode.value = e.data.cameraIndexCode
videoShow.value = true
}
});
// window.addEventListener("message", async(e) => {
// let {code,data} = await getPreviewUrlApi({
// type: 'hls',
// cameraIndexCode:e.data.cameraIndexCode
// })
// if(code===200){
// src.value = data.url
// cameraIndexCode.value = e.data.cameraIndexCode
// videoShow.value = true
// }
// });
// 异常告警
let abnormalAlarm = computed(() => {
return [{ data: abnormalData.value.abnormalAlarm.map((item) => item.value) }]
@@ -502,7 +502,7 @@
display: flex;
align-items: center;
justify-content: space-evenly;
&-item {
width: vw(339);
height: vw(102);
@@ -620,7 +620,7 @@
margin-bottom: vh(4);
}
.other-box{
height: vh(350) !important;
}
.box {

View File

@@ -29,7 +29,7 @@
<iframe v-if="scenicSpotId == 'root00000000'" width="100%" height="100%" src="http://192.168.77.200/map/sxzd/sxzd.html"></iframe>
<iframe v-if="scenicSpotId == '龙桥河'" width="100%" height="100%" src="http://192.168.77.200/map/lqh/lqh.html"></iframe>
</div>
<div class="box-1" style="padding: 0;margin:0;">
<Title1 title="停车信息" />
<div class="new-circle">
@@ -74,8 +74,8 @@
</div>
</div>
</div>
<div class="footer" v-if="false">
<div class="">
<div class="item">
@@ -187,7 +187,7 @@ import pubSub from 'pubsub-js'
const { initMap, addMarker, map, marker } = useMap()
import { useHomeStore } from '@/stores/home'
const carBearData = computed(() => {
return [{ data: scenicStore.stopCarData.dataList.map((item) => item.value) }]
})
const carBearXAxisData = computed(() => {
@@ -201,7 +201,7 @@ import pubSub from 'pubsub-js'
const garageList = computed(() => {
return scenicStore.stopCarData.headList
})
let dataLists = ref([])
watch(
() => scenicStore.stopCarData.dataLists,
@@ -237,17 +237,17 @@ import pubSub from 'pubsub-js'
let src = ref('')
let cameraIndexCode = ref('')
let videoShow = ref(false)
window.addEventListener("message", async(e) => {
let {code,data} = await getPreviewUrlApi({
type: 'hls',
cameraIndexCode:e.data.cameraIndexCode
})
if(code===200){
src.value = data.url
cameraIndexCode.value = e.data.cameraIndexCode
videoShow.value = true
}
});
// window.addEventListener("message", async(e) => {
// let {code,data} = await getPreviewUrlApi({
// type: 'hls',
// cameraIndexCode:e.data.cameraIndexCode
// })
// if(code===200){
// src.value = data.url
// cameraIndexCode.value = e.data.cameraIndexCode
// videoShow.value = true
// }
// });
let dialogTableVisible = ref(false)
let gridData = ref([])
let gridTitle = ref('')
@@ -363,7 +363,7 @@ import pubSub from 'pubsub-js'
position: absolute;
top: vh(-10);
font-weight: 400;
font-size: font-vw(16);
font-size: font-vw(16);
color: #ffffff;
left:vw(0)
}
@@ -719,4 +719,4 @@ import pubSub from 'pubsub-js'
background-size: 100% 100%;
}
}
</style>
</style>