Browse Source

摄像头弹窗组件

develop
wangsixiang 4 months ago
parent
commit
bcf54fefe4
  1. 1
      ruoyi-ui/src/views/JiHeExpressway/components/Video/index.vue
  2. 15
      ruoyi-ui/src/views/JiHeExpressway/components/VideoMulti/index.vue
  3. 14
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue

1
ruoyi-ui/src/views/JiHeExpressway/components/Video/index.vue

@ -159,6 +159,7 @@ export default {
height: 100%; height: 100%;
max-height: 100%; max-height: 100%;
max-width: 100%; max-width: 100%;
object-fit: fill;
} }
.video-stream { .video-stream {

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

@ -10,7 +10,7 @@
dialogData.parseOtherConfig.ptzCtrl dialogData.parseOtherConfig.ptzCtrl
) )
" src="@screen/images/camera-control-icon.svg" width="18px" height="18px" " src="@screen/images/camera-control-icon.svg" width="18px" height="18px"
style="cursor: pointer;background-color: #0d5f79;" /> style="cursor: pointer;background-color: #0d5f79;margin-top: 3px" />
</div> </div>
<Transition name="fade" mode="out-in"> <Transition name="fade" mode="out-in">
@ -136,16 +136,20 @@ export default {
</script> </script>
<style lang='scss' scoped> <style lang='scss' scoped>
.video-pic .video-container:nth-child(2){
margin-right: 0px;
}
.video-container { .video-container {
position: relative; position: relative;
background-color: #000; background-color: #000;
width: 100%;
height: 100%; height: 100%;
margin-right: 15px;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
flex-direction: column;
justify-content: center; justify-content: center;
flex-direction:column;
.fade-enter-active, .fade-enter-active,
.fade-leave-active { .fade-leave-active {
transition: opacity 0.24s ease; transition: opacity 0.24s ease;
@ -161,6 +165,7 @@ export default {
z-index: 999; z-index: 999;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
background-color: #145775;
.radio { .radio {
background: #265A70; background: #265A70;
border-radius: 41px 41px 41px 41px; border-radius: 41px 41px 41px 41px;
@ -213,8 +218,10 @@ export default {
.video-stream, .video-stream,
img { img {
height: 100%; height: 100%;
max-height: 100%; max-height: 93%;
max-width: 100%; max-width: 100%;
object-fit: fill;
box-sizing: border-box;
} }
.video-stream { .video-stream {

14
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue

@ -15,7 +15,7 @@
<Form ref="FormConfigRef" :formList="formList" v-model="data" label-width="110px" /> <Form ref="FormConfigRef" :formList="formList" v-model="data" label-width="110px" />
<!-- 视频组件 --> <!-- 视频组件 -->
<div class="video-pic" v-if="['-1','-2'].indexOf(activeName) !== -1 && [1,2,5].indexOf(data.warningSource) !== -1"> <div class="video-pic" v-if="['-1','-2'].indexOf(activeName) !== -1 && [1,2,5].indexOf(data.warningSource) !== -1">
<div style="display:flex;justify-content: space-between;align-items: center;position:relative;"> <div style="display:flex;justify-content: space-between;align-items: center;position:relative;width:100%;">
<!-- 选择按钮--> <!-- 选择按钮-->
<!-- <div class="radio">--> <!-- <div class="radio">-->
<!-- <span @click="videoClick('upCamera')" :class="{ active: realVideo === 'upCamera' }">菏泽</span>--> <!-- <span @click="videoClick('upCamera')" :class="{ active: realVideo === 'upCamera' }">菏泽</span>-->
@ -43,7 +43,6 @@
:pileNum="data.stakeMark" :pileNum="data.stakeMark"
rangeIndex="upCamera" rangeIndex="upCamera"
:showHeader="false" :showHeader="false"
style="width: 49%;margin-right: 2%"
/> />
<span>济南方向</span></div> <span>济南方向</span></div>
<div class="item"> <div class="item">
@ -52,7 +51,6 @@
:pileNum="data.stakeMark" :pileNum="data.stakeMark"
rangeIndex="downCamera" rangeIndex="downCamera"
:showHeader="false" :showHeader="false"
style="width: 49%;"
/> />
<span>菏泽方向</span></div> <span>菏泽方向</span></div>
</div> </div>
@ -663,7 +661,7 @@ export default {
align-items: center; align-items: center;
.video-pic { .video-pic {
display: flex; display: flex;
height: 270px; height: 260px;
gap: 15px; gap: 15px;
flex-direction: row; flex-direction: row;
width: 98%; width: 98%;
@ -697,10 +695,10 @@ export default {
} }
} }
} }
::v-deep .item-video { //::v-deep .item-video {
width: 49%; // width: 49%;
height: 100%; // height: 100%;
} //}
.radio { .radio {
position: absolute; position: absolute;
right: 10px; right: 10px;

Loading…
Cancel
Save