Commit fd1c8e96 authored by ninglx's avatar ninglx

部分场景离线视频地址加入配置文件

parent a3b86f6d
......@@ -23,24 +23,33 @@ const situation_mobileBaseStation = {
mobileBaseStationLocations: [
{ longitude: 112.9632513079888, latitude: 28.1932473510918 },
],
videos: [
"/cdn/video/kydjz_1.mp4",
"/cdn/video/kydjz_2.mp4",
"/cdn/video/kydjz_3.mp4",
"/cdn/video/kydjz_4.mp4",
],
};
// 事故场景
const situation_accident = {
videos: [
"/cdn/video/sgcj_3.mp4"
],
// 地图中高亮事故车辆及其详情弹窗
accidentVehicles: [
{
id:'441866',
picLicense: '苏A***59',
behavior:"未保持安全车距"
id: "441866",
picLicense: "苏A***59",
behavior: "未保持安全车距",
},
{
id:'441795',
picLicense: '苏A***79',
behavior:"急减速"
id: "441795",
picLicense: "苏A***79",
behavior: "急减速",
},
],
// 事件辅助定责
totalDuration: 155,
totalDuration: 155,
eventDetail: {
事故时间: "2023-12-23 00:16:27",
事故地点: "天马路与文萃路交叉口",
......@@ -60,12 +69,15 @@ const situation_accident = {
};
// 危险驾驶场景
const situation_dangerousDriving = {
videos:[
"/cdn/video/wxjs_3.mp4"
],
// 参与危险驾驶的车辆 (在地图中高亮
dangerVehicles: [
{
id:'224929',
picLicense: '苏A***95',
behavior:"S型驾驶"
id: "224929",
picLicense: "苏A***95",
behavior: "S型驾驶",
},
],
warnings: [
......@@ -119,6 +131,7 @@ const situation_dangerousDriving = {
};
// 相位空放场景
const situation_phaseAirPlay = {
videos:["/cdn/video/xykf_3.mp4"],
detectTime: "2023.4.9 17:21:09 ~ 17:27:09",
ifPhase: true,
scheme: [
......@@ -136,8 +149,23 @@ const situation_phaseAirPlay = {
};
// 慢行交通场景
const situation_slowTraffic = {
videos:["/cdn/video/mxjt_3.mp4"],
// 参与慢行交通的id (在地图上高亮
slowIds:["457802", "457803","457713","457727","457694","457678","457735","457967","458094","458240","4588458", "457926","458079"],
slowIds: [
"457802",
"457803",
"457713",
"457727",
"457694",
"457678",
"457735",
"457967",
"458094",
"458240",
"4588458",
"457926",
"458079",
],
warnings: [
{
type: 2, // type 1:非机动车 2:行人
......@@ -208,6 +236,9 @@ const situation_slowTraffic = {
};
// 直左冲突场景
const situation_straightLeftConflict = {
videos:[
"/cdn/video/zzct_2.mp4",
],
detectTime: "2023.4.9 17:21:09 ~ 17:27:09",
ifConflict: true,
duration: 28,
......@@ -235,3 +266,12 @@ const situation_straightLeftConflict = {
},
],
};
// 全域感知场景
const situation_drones = {
videos:[
"/cdn/video/qygz_1.mp4",
"/cdn/video/qygz_2.mp4",
"/cdn/video/qygz_3.mp4",
"/cdn/video/qygz_4.mp4",
]
}
......@@ -6,9 +6,9 @@
<local-camera
ref="videoItem"
class="videoItem"
v-for="(item, index) of [3]"
v-for="(item, index) of videos"
:key="index"
:video-data="`sgcj_${item}`"
:video-data="item"
/>
<span class="top-left"></span>
<span class="top-right"></span>
......@@ -123,7 +123,11 @@ import LocalCamera from "../../../components/Standard/localCamera.vue";
export default {
name: "homeLeft",
components: { LocalCamera, MsgCard, CameraVideo },
computed: {},
computed: {
videos() {
return situation_accident.videos.slice(0, 1);
},
},
data() {
return {
totalDuration: '',
......
......@@ -3,7 +3,7 @@
<div class="topI">
<msg-card title="危险驾驶监控">
<div class="videos">
<local-camera ref="videoItem" class="videoItem" v-for="(item,index) of [3]" :key="index" :video-data="`wxjs_${item}`"/>
<local-camera ref="videoItem" class="videoItem" v-for="(item,index) of videos" :key="index" :video-data="item"/>
<span class="top-left"></span>
<span class="top-right"></span>
<span class="bottom-left"></span>
......@@ -47,7 +47,11 @@ import LocalCamera from "../../../components/Standard/localCamera.vue";
export default {
name: "homeLeft",
components: {LocalCamera, MsgCard, CameraVideo},
computed: {},
computed: {
videos() {
return situation_dangerousDriving.videos.slice(0, 1);
},
},
data() {
return {
cameras: [],
......
......@@ -2,8 +2,7 @@
<div class="home-left">
<msg-card title="全域感知">
<div style="height: 100%; width: 100%; display: flex;flex-direction: column">
<local-camera ref="videoItem" :border="true" class="videoItem" video-data="qygz_1"></local-camera>
<local-camera ref="videoItem1" :border="true" class="videoItem" video-data="qygz_2"></local-camera>
<local-camera v-for="(item,index) of videos" :video-data="item" :key="index" ref="videoItem" :border="true" class="videoItem"></local-camera>
</div>
</msg-card>
</div>
......@@ -18,7 +17,11 @@ import LocalCamera from "../../../components/Standard/localCamera.vue";
export default {
name: "homeLeft",
components: {LocalCamera, MsgCard, CameraVideo},
computed: {},
computed: {
videos() {
return situation_drones.videos.slice(0, 2);
},
},
data() {
return {};
},
......@@ -26,8 +29,9 @@ export default {
},
methods: {
startVideo(time) {
this.$refs.videoItem.setTime(time)
this.$refs.videoItem1.setTime(time)
for(let item of this.$refs.videoItem){
item?.setTime()
}
},
},
......
......@@ -2,7 +2,7 @@
<div class="home-right">
<msg-card title="无人机">
<div style="height: 100%; width: 100%; display: flex;flex-direction: column;justify-content: space-between">
<local-camera :border="true" :video-data="`qygz_${item}`" ref="videoItem" class="videoItem" :key="index" v-for="(item,index) of [2,3]"/>
<local-camera :border="true" :video-data="item" ref="videoItem" class="videoItem" :key="index" v-for="(item,index) of videos"/>
</div>
</msg-card>
</div>
......@@ -20,7 +20,11 @@ let topViewer, bottomViewer;
export default {
name: "homeRight",
components: {LocalCamera, CrossControl, CameraVideo, MsgCard, CesiumMap},
computed: {},
computed: {
videos() {
return situation_drones.videos.slice(2, 4);
},
},
data() {
return {};
},
......@@ -31,7 +35,6 @@ export default {
for (let item of this.$refs.videoItem) {
item.setTime(time)
}
// this.$refs.videoItem.setTime(time)
},
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment