Browse Source

Merge branch 'yantai_master' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov

yantai_master
mk 2 years ago
parent
commit
0c8e42b29d
  1. 30
      src/views/modules/shequzhili/videoWall/videoWall.vue

30
src/views/modules/shequzhili/videoWall/videoWall.vue

@ -42,6 +42,7 @@ export default {
total: 0,
tableData: [],
selfVideo:{},
token:""
};
},
computed: {
@ -83,14 +84,29 @@ export default {
console.log(`当前页: ${val}`);
this.pageNo = val;
this.getTableData();
},
async videoLogin(){
console.log(this.dataV);
let url = "/auth/thirdlogin/video/login"
let {data,code,msg} = await requestPost(url)
if(code == 0 ){
// this.playerOptions.sources[0].src = "http://172.20.41.195:9015/video-play-plug?token="+data.token+"&playType=realPlay"+"&cameraCode="+this.dataV.deviceCode
// this.sendMessageToIframe(data.token)
// console.log(this.playerOptions.sources[0].src,"");
this.token = data.token
}
},
handelClickImg(item){
this.selfVideo = item
console.log(item,'获取的对象');
this.$nextTick(()=>{
this.$refs['videoDialog'].dialogVisible = true
this.$refs['videoDialog'].videoLogin()
})
async handelClickImg(item){
// this.selfVideo = item
await this.videoLogin()
// this.$nextTick(()=>{
// this.$refs['videoDialog'].dialogVisible = true
// this.$refs['videoDialog'].videoLogin()
// })
let src = `http://172.20.41.195:9015/video-play-plug?token="+${this.token}+"&playType=realPlay"+"&cameraCode="+${item.deviceCode}`
console.log(src);
window.open(src)
}
}
};

Loading…
Cancel
Save