Commit 44394032 authored by xxx's avatar xxx

1

parent c5d3989c
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
</div> </div>
<div v-show="noPtz" class="noPtzVideo1"> <div v-show="noPtz" class="noPtzVideo1">
<div class="noPtzCloseStyle" @click="noPtzCloseFn()"><span class="el-icon-close"></span> 关闭</div>
<video id="noPtzVideo" width="1300" height="720" muted autoplay></video> <video id="noPtzVideo" width="1300" height="720" muted autoplay></video>
</div> </div>
...@@ -468,6 +469,12 @@ export default { ...@@ -468,6 +469,12 @@ export default {
}; };
option && myChart.setOption(option); option && myChart.setOption(option);
}, },
noPtzCloseFn(){
this.elmainShow1 = false;
if(noPtzhls != null){
noPtzhls.destroy();
}
},
}, },
//销毁 //销毁
beforeDestroy() { beforeDestroy() {
...@@ -482,6 +489,20 @@ export default { ...@@ -482,6 +489,20 @@ export default {
}; };
</script> </script>
<style> <style>
.noPtzCloseStyle{
position: absolute;
top:1vh;
right: 1vw;
width: 5vw;
height: 4vh;
background-color: rgb(170,170,170);
color: white;
font-size: 22px;
border-radius: 5px;
text-align: center;
line-height: 4vh;
cursor: pointer;
}
.noPtzVideo1{ .noPtzVideo1{
width: 100%; width: 100%;
height: 100%; height: 100%;
......
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