Commit b6ab1342 authored by xxx's avatar xxx

1

parent 6181b0c3
......@@ -117,6 +117,7 @@ export default {
},
data() {
return {
videoAlarmAllTimer:null,
imgSrcStart:process.env.VUE_APP_LOCAL_API2,
iframeSrc:'',
defaultIframeSrc:'http://oa.gemho.cn:8088/808gps/open/player/video.html?lang=zh&channel=9&account=admin&password=admin&vehiIdno=',
......@@ -154,6 +155,9 @@ export default {
mounted() {
this.getCode();
this.aiTabPositionFn();
this.videoAlarmAllTimer = setInterval(()=>{
this.aiTabPositionFn(this.aiTabPosition);
},10000)
},
methods: {
getCode() {
......@@ -698,6 +702,10 @@ export default {
},
//销毁
beforeDestroy() {
if(this.videoAlarmAllTimer){
clearInterval(this.videoAlarmAllTimer);
this.videoAlarmAllTimer = null;
}
this.iframeSrc = '';
this.noPtz = false;
this.videoSrcShow = false;
......
......@@ -125,6 +125,7 @@ export default {
},
data() {
return {
videoAlarmAllTimer:null,
imgSrcStart:process.env.VUE_APP_LOCAL_API2,
iframeSrc:'',
defaultIframeSrc:'http://oa.gemho.cn:8088/808gps/open/player/video.html?lang=zh&channel=9&account=admin&password=admin&vehiIdno=',
......@@ -164,6 +165,9 @@ export default {
mounted() {
this.getCode();
this.aiTabPositionFn();
this.videoAlarmAllTimer = setInterval(()=>{
this.aiTabPositionFn(this.aiTabPosition);
},10000)
},
methods: {
getCode() {
......@@ -728,6 +732,10 @@ export default {
},
//销毁
beforeDestroy() {
if(this.videoAlarmAllTimer){
clearInterval(this.videoAlarmAllTimer);
this.videoAlarmAllTimer = null;
}
this.iframeSrc = '';
this.noPtz = false;
this.videoSrcShow = false;
......
......@@ -10,7 +10,7 @@
<div class="content">
<el-table :data="tableData" v-loading="loading" border :row-class-name="tableRowClassName" height="75vh" row-key="id" :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
<el-table-column prop="title" label="标题" align="center"></el-table-column>
<el-table-column prop="componentName" label="组件名称" align="center"></el-table-column>
<!-- <el-table-column prop="componentName" label="组件名称" align="center"></el-table-column> -->
<el-table-column prop="pos" label="位置" align="center" :formatter="posChange"></el-table-column>
<el-table-column prop="dsort" label="排序" align="center"></el-table-column>
<el-table-column prop="status" label="状态" align="center" :formatter="statusChange"></el-table-column>
......
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