修正医护随身报警视频联动参数和分屏计算逻辑

main
zhangqun 2 years ago
parent 6acffc189d
commit ddf5b860fc
  1. 4
      src/page/login/userlogin.vue
  2. 13
      src/views/alarmcenter/sosAlarm/list.vue
  3. 12
      src/views/h5Player/player.vue

@ -88,9 +88,9 @@
//ID
roleId: "",
//
username: "admin",
username: "",
//
password: "admin",
password: "",
//
type: "account",
//

@ -256,6 +256,15 @@ export default {
//
linkVideo(row) {
// const routeData = this.$router.resolve({
// path: '/videoPlayer', //
// query: {
// list: JSON.stringify([{name:'',code:'dbf18d6e8b524c3d8864ee10cda0d97b'},{name:'',code:'20d08356435647ac8b557876d80d991f'}]), //
// showLeft:false
// }
// })
// window.open(routeData.href, '_blank')
// return
let token = window.sessionStorage.getItem('bizToken');
if (token == 'undefined' || !token) {
bizLogin({ appKey: 'Arf7bd4f26', appSecret: 'kb207044c8' }).then(res => {
@ -287,7 +296,7 @@ export default {
path: '/videoPlayer', //
query: {
list: JSON.stringify(this.carmeraCode), //
showLeft:true
showLeft:false
}
})
console.log('href ===>',routeData.href)
@ -431,7 +440,7 @@ export default {
path: '/videoPlayer', //
query: {
list: JSON.stringify(this.carmeraCode), //
showLeft:true
showLeft:false
}
})
console.log('href ===>',routeData.href)

@ -174,7 +174,8 @@ export default {
// // console.log('list ===============>',JSON.parse(this.$route.query.list), this.$route.query.showLeft)
// // console.log('list ===>',this.list)
this.showLeft = this.$route.query.showLeft
if(this.showLeft){
console.log(this.showLeft)
if(this.showLeft == 'true'){
this.code = JSON.parse(this.$route.query.list);
this.cameraList = []
if(this.code != ''){
@ -379,14 +380,7 @@ export default {
});
// _this.realplay();
console.log('length ===>',this.cameraList.length)
this.splitNum =
this.cameraList.length > 1
? 2
: this.cameraList.length > 4
? 3
: this.cameraList.length > 9
? 4
: 2;
this.splitNum = this.cameraList.length > 9 ? 4 : this.cameraList.length > 4 ? 3 : this.cameraList.length > 1 ? 2 : 1;
this.arrangeWindow()
this.queryLive();
},

Loading…
Cancel
Save