|
|
|
@ -49,14 +49,14 @@ |
|
|
|
></el-input> |
|
|
|
></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="list_box" v-show="activeTit == 1" v-infinite-scroll="load" :infinite-scroll-disabled="isSroll"> |
|
|
|
<div class="list_box" v-show="activeTit == 1" v-infinite-scroll="load" :infinite-scroll-disabled="isSroll"> |
|
|
|
<div class="list_item" :class="activeDevice == item.id ? 'dev_act' : item.isSelect == 1 ? 'sele_devi' : !item.online ? 'sele_devi' : ''" |
|
|
|
<div class="list_item" :class="activeDevice == item.id ? 'dev_act' : item.isSelect == 1 ? 'sele_devi' : !item.online ? 'outline_devi' : ''" |
|
|
|
v-for="item in deviceData" :key="item.id" @mouseenter="enterDevice(item)" @mouseleave="leaveDevice"> |
|
|
|
v-for="item in deviceData" :key="item.id" @mouseenter="enterDevice(item)" @mouseleave="leaveDevice"> |
|
|
|
<div class="left_bor" v-show="activeDevice == item.id"></div> |
|
|
|
<div class="left_bor" v-show="activeDevice == item.id"></div> |
|
|
|
<div class="dev_img"> |
|
|
|
<div class="dev_img"> |
|
|
|
<img v-show="activeDevice !== item.id" src="~@/assets/image/device.png" alt=""> |
|
|
|
<img v-show="activeDevice !== item.id" src="~@/assets/image/device.png" alt=""> |
|
|
|
<img v-show="activeDevice == item.id" src="~@/assets/image/device_act.png" alt=""> |
|
|
|
<img v-show="activeDevice == item.id" src="~@/assets/image/device_act.png" alt=""> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="device_name" :class="activeDevice == item.id ? 'act_dev_name' : ''">{{item.name}}</div> |
|
|
|
<div class="device_name" :class="activeDevice == item.id ? 'act_dev_name' : ''">{{item.name}}{{item.isSelect}}</div> |
|
|
|
<div class="dev_btn_box"> |
|
|
|
<div class="dev_btn_box"> |
|
|
|
<div class="dev_btn" @click="inviteUser(item)" v-show="activeDevice == item.id && !isIntercom && item.online">邀请</div> |
|
|
|
<div class="dev_btn" @click="inviteUser(item)" v-show="activeDevice == item.id && !isIntercom && item.online">邀请</div> |
|
|
|
<div class="dev_btn del_btn" v-show="activeDevice == item.id" @click="deleteUser(item)">删除</div> |
|
|
|
<div class="dev_btn del_btn" v-show="activeDevice == item.id" @click="deleteUser(item)">删除</div> |
|
|
|
@ -736,7 +736,7 @@ export default { |
|
|
|
// }); |
|
|
|
// }); |
|
|
|
// }) |
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
|
|
console.log('isRegisted ====>',isRegisted()) |
|
|
|
// console.log('isRegisted ====>',isRegisted()) |
|
|
|
// let mediaControl = null; |
|
|
|
// let mediaControl = null; |
|
|
|
var mediaControl; |
|
|
|
var mediaControl; |
|
|
|
if (position == 1) { |
|
|
|
if (position == 1) { |
|
|
|
@ -745,8 +745,9 @@ export default { |
|
|
|
mediaControl = document.getElementById('video1'); |
|
|
|
mediaControl = document.getElementById('video1'); |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(this.callItem) |
|
|
|
console.log(this.callItem) |
|
|
|
|
|
|
|
console.log('inviteList ===>',this.inviteList) |
|
|
|
// this.$nextTick(() =>{ |
|
|
|
// this.$nextTick(() =>{ |
|
|
|
if(this.inviteList.length == 1){ //如果只邀请一人时,进行呼叫 |
|
|
|
if(this.inviteList.length == 0){ //如果只邀请一人时,进行呼叫 |
|
|
|
console.log('进入循环') |
|
|
|
console.log('进入循环') |
|
|
|
this.isMetting = false; |
|
|
|
this.isMetting = false; |
|
|
|
mediaControl = video1; //获取媒体控件 |
|
|
|
mediaControl = video1; //获取媒体控件 |
|
|
|
@ -757,7 +758,7 @@ export default { |
|
|
|
this.inviteList.push(this.callItem); |
|
|
|
this.inviteList.push(this.callItem); |
|
|
|
|
|
|
|
|
|
|
|
}).catch((reason) => { |
|
|
|
}).catch((reason) => { |
|
|
|
console.log("call fail"); |
|
|
|
console.log("call fail ===>",this.deviceData); |
|
|
|
console.log(JSON.stringify(reason)); |
|
|
|
console.log(JSON.stringify(reason)); |
|
|
|
this.$message.error('呼叫失败') |
|
|
|
this.$message.error('呼叫失败') |
|
|
|
}); |
|
|
|
}); |
|
|
|
@ -852,7 +853,7 @@ export default { |
|
|
|
// 音频呼叫 |
|
|
|
// 音频呼叫 |
|
|
|
audioCall(){ |
|
|
|
audioCall(){ |
|
|
|
this.isIntercom = false; |
|
|
|
this.isIntercom = false; |
|
|
|
this.callItem.isSelect = 1; |
|
|
|
// this.callItem.isSelect = 1; |
|
|
|
this.dialogCall = false; |
|
|
|
this.dialogCall = false; |
|
|
|
console.log('callItem ===>',this.callItem) |
|
|
|
console.log('callItem ===>',this.callItem) |
|
|
|
this.makecall(false,1) |
|
|
|
this.makecall(false,1) |
|
|
|
@ -1337,6 +1338,10 @@ export default { |
|
|
|
opacity: 0.4; |
|
|
|
opacity: 0.4; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&.outline_devi{ |
|
|
|
|
|
|
|
opacity: 0.4; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.left_bor{ |
|
|
|
.left_bor{ |
|
|
|
width: 0.03rem; |
|
|
|
width: 0.03rem; |
|
|
|
height: 0.35rem; |
|
|
|
height: 0.35rem; |
|
|
|
|