|
@@ -206,7 +206,7 @@
|
|
|
<div class="radio-button-box scrollbar-box">
|
|
|
<p class="horn-for-p" @click="checkTrumpet(index)" :class="item.type?'check-p':''"
|
|
|
v-for="(item,index) in trumpetList" :key="index">{{item.name}}</p>
|
|
|
- <p v-if="!trumpetList[0]" style="line-height:180px;font-size:16px;color:#fff;text-align: center">暂无数据</p>
|
|
|
+ <p v-if="!trumpetList[0]" style="line-height:60px;font-size:16px;color:#fff;text-align: center">暂无数据</p>
|
|
|
</div>
|
|
|
<div class="radio-text-box scrollbar-box">
|
|
|
<div v-for="(item,index) in radioTextList" :key="index">
|
|
@@ -282,7 +282,7 @@
|
|
|
<div class="horn-max-big-box-two-left scrollbar-box">
|
|
|
<p class="horn-for-p" @click="checkTrumpet(index)" :class="item.type?'check-p':''"
|
|
|
v-for="(item,index) in trumpetList" :key="index">{{item.name}}</p>
|
|
|
- <p v-if="!trumpetList[0]" style="line-height:180px;font-size:16px;color:#fff;text-align: center">暂无数据</p>
|
|
|
+ <p v-if="!trumpetList[0]" style="line-height:60px;font-size:16px;color:#fff;text-align: center">暂无数据</p>
|
|
|
</div>
|
|
|
<div class="horn-max-big-box-two-right">
|
|
|
<div class="radio-text-box scrollbar-box">
|
|
@@ -1064,9 +1064,10 @@
|
|
|
//喇叭操作
|
|
|
checkTrumpet(index){
|
|
|
let self = this;
|
|
|
- for(let i=0;i<self.trumpetList.length;i++){
|
|
|
- self.trumpetList[i].type = i == index;
|
|
|
- }
|
|
|
+ self.trumpetList[index].type = !self.trumpetList[index].type
|
|
|
+ // for(let i=0;i<self.trumpetList.length;i++){
|
|
|
+ // self.trumpetList[i].type = i == index;
|
|
|
+ // }
|
|
|
},
|
|
|
//发送消息到喇叭
|
|
|
addHxpChemical(){
|
|
@@ -1074,11 +1075,25 @@
|
|
|
let obj = {
|
|
|
floorId:this.floorId,
|
|
|
messageContext:this.inputText,
|
|
|
+ playVo:[],
|
|
|
};
|
|
|
let num = 0;
|
|
|
for(let i=0;i<self.trumpetList.length;i++){
|
|
|
if(self.trumpetList[i].type){
|
|
|
- obj.playVo=[{
|
|
|
+ // obj.playVo=[{
|
|
|
+ // sn:self.trumpetList[i].deviceSn,
|
|
|
+ // port:self.trumpetList[i].port,
|
|
|
+ // deviceIp:self.trumpetList[i].deviceIp,
|
|
|
+ // type:"",
|
|
|
+ // name:"",
|
|
|
+ // speed:"",
|
|
|
+ // params:{
|
|
|
+ // tid:"",
|
|
|
+ // vol:self.trumpetList[i].deviceVol,
|
|
|
+ // urls:[]
|
|
|
+ // }
|
|
|
+ // }];
|
|
|
+ obj.playVo.push({
|
|
|
sn:self.trumpetList[i].deviceSn,
|
|
|
port:self.trumpetList[i].port,
|
|
|
deviceIp:self.trumpetList[i].deviceIp,
|
|
@@ -1090,7 +1105,7 @@
|
|
|
vol:self.trumpetList[i].deviceVol,
|
|
|
urls:[]
|
|
|
}
|
|
|
- }];
|
|
|
+ })
|
|
|
num++
|
|
|
}
|
|
|
}
|