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
e9cd0a814d
  1. 18
      src/views/modules/shequzhili/videoWall/videoDialog.vue

18
src/views/modules/shequzhili/videoWall/videoDialog.vue

@ -16,10 +16,10 @@
token: "", token: "",
videoSrc:"", videoSrc:"",
userData:{ userData:{
"userName": "apizhsq", "userName": "apizhsq",
"password": "12345678@df", "password": "12345678@df",
"type": 1 "type": 1
} }
}; };
}, },
methods: { methods: {
@ -28,26 +28,22 @@
token: this.token, token: this.token,
}; };
const iframe = this.$refs.myIframe; const iframe = this.$refs.myIframe;
console.log(message);
iframe.contentWindow.postMessage(message, "*"); iframe.contentWindow.postMessage(message, "*");
}, },
getAuthCameras(token){ getAuthCameras(token){
var that=this; var that=this;
this.$axios.post("http://172.20.41.195:9001/video/api/getAuthCameras",null,{ this.$axios.post("http://172.20.41.195:9006/video/api/getAuthCameras",null,{
headers: { headers: {
Authorization: token Authorization: token
}}) }})
.then((res) => { .then((res) => {
console.log(res); that.videoSrc="http://172.20.41.195:9015/video-play-plug?token="+that.token+"&playType=realPlay"+"&cameraCode="+res.data.data[0].code
that.videoSrc="http://172.20.41.195:9025/video-play-plug?token="+that.token+"&playType=realPlay"+"&cameraCode="+res.data.data[0].code
}); });
}, },
//
getLogin(){ getLogin(){
this.$axios this.$axios
.post("http://172.20.41.195:9007/video/api/login",this.userData) .post("http://172.20.41.195:9006/video/api/login",this.userData)
.then((res) => { .then((res) => {
console.log(token);
this.token=res.data.data.token; this.token=res.data.data.token;
this.getAuthCameras(res.data.data.token); this.getAuthCameras(res.data.data.token);
}); });

Loading…
Cancel
Save