Browse Source

shoufeizhan video change

develop
mbp 1 month ago
parent
commit
e2dfb22777
  1. 3
      ruoyi-ui/src/views/JiHeExpressway/components/VideoMulti/index.vue
  2. 4
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue

3
ruoyi-ui/src/views/JiHeExpressway/components/VideoMulti/index.vue

@ -90,7 +90,8 @@ export default {
async playVideo() { async playVideo() {
this.player?.destroy(); this.player?.destroy();
let reqCamrea = null; let reqCamrea = null;
if(facilityType && facilityType === 1){ // console.log(this.facilityType)
if(this.facilityType && this.facilityType === 1){ //
reqCamrea = await getNearCameraNewStation(this.pileNum).catch(() => ({})); reqCamrea = await getNearCameraNewStation(this.pileNum).catch(() => ({}));
} else { } else {
reqCamrea = await getNearCameraNew(this.pileNum).catch(() => ({})); reqCamrea = await getNearCameraNew(this.pileNum).catch(() => ({}));

4
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue

@ -7,7 +7,7 @@
<div class="panelParent" style="display:flex;"> <div class="panelParent" style="display:flex;">
<div class="RoadNetworkFacilities"> <div class="RoadNetworkFacilities">
<div class="header"> <div class="header">
<Video @facilityType="facilityType" ref="refVideo" class="video-stream" @nearload="bindNearLoad" :pileNum="dialogData.stakeMark" :rangeIndex="dialogData.facilityType === 1?'all':'upCamera'" :showHeader="false" /> <Video :facilityType="dialogData.facilityType" ref="refVideo" class="video-stream" @nearload="bindNearLoad" :pileNum="dialogData.stakeMark" :rangeIndex="dialogData.facilityType === 1?'all':'upCamera'" :showHeader="false" />
</div> </div>
<div class="SolarEnergy"> <div class="SolarEnergy">
<ElTabs v-model="activeName" class="tabs"> <ElTabs v-model="activeName" class="tabs">
@ -118,7 +118,6 @@ export default {
isCameraMap:false, isCameraMap:false,
imgSrc:'', imgSrc:'',
cameraMaps:[], cameraMaps:[],
facilityType: ''
}; };
}, },
watch: { watch: {
@ -189,7 +188,6 @@ export default {
this.isCameraMap = false; this.isCameraMap = false;
this.cameraMaps = []; this.cameraMaps = [];
if(dData.facilityType === 1){ if(dData.facilityType === 1){
this.facilityType = 1;
// console.log('') // console.log('')
if(dData.facilityName === '大学城收费站'){ if(dData.facilityName === '大学城收费站'){
this.imgSrc = require('@screen/images/shoufeiz/大学城收费站.jpg') this.imgSrc = require('@screen/images/shoufeiz/大学城收费站.jpg')

Loading…
Cancel
Save