类型:开发
描述:
This commit is contained in:
@@ -50,6 +50,9 @@ export function getRegionsListApi(data){
|
|||||||
|
|
||||||
// 获取视频播放地址
|
// 获取视频播放地址
|
||||||
export function getPreviewUrlApi(data) {
|
export function getPreviewUrlApi(data) {
|
||||||
|
if(data.cameraIndexCode==undefined || !data.cameraIndexCode){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return request({
|
return request({
|
||||||
url: '/fjtcc-api/api/largeScreen/video/getPreviewUrl',
|
url: '/fjtcc-api/api/largeScreen/video/getPreviewUrl',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
|||||||
@@ -253,17 +253,17 @@
|
|||||||
const showTrafficEvent = function(){
|
const showTrafficEvent = function(){
|
||||||
trafficEventShow.value = true;
|
trafficEventShow.value = true;
|
||||||
}
|
}
|
||||||
window.addEventListener("message", async(e) => {
|
// window.addEventListener("message", async(e) => {
|
||||||
let {code,data} = await getPreviewUrlApi({
|
// let {code,data} = await getPreviewUrlApi({
|
||||||
type: 'hls',
|
// type: 'hls',
|
||||||
cameraIndexCode:e.data.cameraIndexCode
|
// cameraIndexCode:e.data.cameraIndexCode
|
||||||
})
|
// })
|
||||||
if(code===200){
|
// if(code===200){
|
||||||
src.value = data.url
|
// src.value = data.url
|
||||||
cameraIndexCode.value = e.data.cameraIndexCode
|
// cameraIndexCode.value = e.data.cameraIndexCode
|
||||||
videoShow.value = true
|
// videoShow.value = true
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
// 异常告警
|
// 异常告警
|
||||||
let abnormalAlarm = computed(() => {
|
let abnormalAlarm = computed(() => {
|
||||||
return [{ data: abnormalData.value.abnormalAlarm.map((item) => item.value) }]
|
return [{ data: abnormalData.value.abnormalAlarm.map((item) => item.value) }]
|
||||||
@@ -502,7 +502,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
|
|
||||||
&-item {
|
&-item {
|
||||||
width: vw(339);
|
width: vw(339);
|
||||||
height: vw(102);
|
height: vw(102);
|
||||||
@@ -620,7 +620,7 @@
|
|||||||
margin-bottom: vh(4);
|
margin-bottom: vh(4);
|
||||||
}
|
}
|
||||||
.other-box{
|
.other-box{
|
||||||
|
|
||||||
height: vh(350) !important;
|
height: vh(350) !important;
|
||||||
}
|
}
|
||||||
.box {
|
.box {
|
||||||
|
|||||||
@@ -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 == '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>
|
<iframe v-if="scenicSpotId == '龙桥河'" width="100%" height="100%" src="http://192.168.77.200/map/lqh/lqh.html"></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="box-1" style="padding: 0;margin:0;">
|
<div class="box-1" style="padding: 0;margin:0;">
|
||||||
<Title1 title="停车信息" />
|
<Title1 title="停车信息" />
|
||||||
<div class="new-circle">
|
<div class="new-circle">
|
||||||
@@ -74,8 +74,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="footer" v-if="false">
|
<div class="footer" v-if="false">
|
||||||
<div class="">
|
<div class="">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
@@ -187,7 +187,7 @@ import pubSub from 'pubsub-js'
|
|||||||
const { initMap, addMarker, map, marker } = useMap()
|
const { initMap, addMarker, map, marker } = useMap()
|
||||||
import { useHomeStore } from '@/stores/home'
|
import { useHomeStore } from '@/stores/home'
|
||||||
const carBearData = computed(() => {
|
const carBearData = computed(() => {
|
||||||
|
|
||||||
return [{ data: scenicStore.stopCarData.dataList.map((item) => item.value) }]
|
return [{ data: scenicStore.stopCarData.dataList.map((item) => item.value) }]
|
||||||
})
|
})
|
||||||
const carBearXAxisData = computed(() => {
|
const carBearXAxisData = computed(() => {
|
||||||
@@ -201,7 +201,7 @@ import pubSub from 'pubsub-js'
|
|||||||
const garageList = computed(() => {
|
const garageList = computed(() => {
|
||||||
return scenicStore.stopCarData.headList
|
return scenicStore.stopCarData.headList
|
||||||
})
|
})
|
||||||
|
|
||||||
let dataLists = ref([])
|
let dataLists = ref([])
|
||||||
watch(
|
watch(
|
||||||
() => scenicStore.stopCarData.dataLists,
|
() => scenicStore.stopCarData.dataLists,
|
||||||
@@ -237,17 +237,17 @@ import pubSub from 'pubsub-js'
|
|||||||
let src = ref('')
|
let src = ref('')
|
||||||
let cameraIndexCode = ref('')
|
let cameraIndexCode = ref('')
|
||||||
let videoShow = ref(false)
|
let videoShow = ref(false)
|
||||||
window.addEventListener("message", async(e) => {
|
// window.addEventListener("message", async(e) => {
|
||||||
let {code,data} = await getPreviewUrlApi({
|
// let {code,data} = await getPreviewUrlApi({
|
||||||
type: 'hls',
|
// type: 'hls',
|
||||||
cameraIndexCode:e.data.cameraIndexCode
|
// cameraIndexCode:e.data.cameraIndexCode
|
||||||
})
|
// })
|
||||||
if(code===200){
|
// if(code===200){
|
||||||
src.value = data.url
|
// src.value = data.url
|
||||||
cameraIndexCode.value = e.data.cameraIndexCode
|
// cameraIndexCode.value = e.data.cameraIndexCode
|
||||||
videoShow.value = true
|
// videoShow.value = true
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
let dialogTableVisible = ref(false)
|
let dialogTableVisible = ref(false)
|
||||||
let gridData = ref([])
|
let gridData = ref([])
|
||||||
let gridTitle = ref('')
|
let gridTitle = ref('')
|
||||||
@@ -363,7 +363,7 @@ import pubSub from 'pubsub-js'
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: vh(-10);
|
top: vh(-10);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: font-vw(16);
|
font-size: font-vw(16);
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
left:vw(0)
|
left:vw(0)
|
||||||
}
|
}
|
||||||
@@ -719,4 +719,4 @@ import pubSub from 'pubsub-js'
|
|||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user