Commit 44394032 authored by xxx's avatar xxx

1

parent c5d3989c
......@@ -44,6 +44,7 @@
</div>
<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>
</div>
......@@ -468,6 +469,12 @@ export default {
};
option && myChart.setOption(option);
},
noPtzCloseFn(){
this.elmainShow1 = false;
if(noPtzhls != null){
noPtzhls.destroy();
}
},
},
//销毁
beforeDestroy() {
......@@ -482,6 +489,20 @@ export default {
};
</script>
<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{
width: 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