|
|
@ -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(); |
|
|
|
|
|
|
|
}, |
|
|
|
handelClickImg(item){ |
|
|
|
this.selfVideo = item |
|
|
|
console.log(item,'获取的对象'); |
|
|
|
this.$nextTick(()=>{ |
|
|
|
this.$refs['videoDialog'].dialogVisible = true |
|
|
|
this.$refs['videoDialog'].videoLogin() |
|
|
|
}) |
|
|
|
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 |
|
|
|
} |
|
|
|
}, |
|
|
|
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) |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|