dedsudiyu 2 年之前
父节点
当前提交
a272181a8b
共有 2 个文件被更改,包括 17 次插入9 次删除
  1. 2 2
      pages_manage/workbench/laboratory/laboratoryInfo.vue
  2. 15 7
      pages_manage/workbench/laboratory/monitor.vue

+ 2 - 2
pages_manage/workbench/laboratory/laboratoryInfo.vue

@@ -36,10 +36,10 @@
           <view>视频监控</view>
           <view @click="goVideo()">查看</view>
         </view>
-        <view class="button-box">
+<!--        <view class="button-box">
           <view>语音播报</view>
           <view @click="goWord()">播放文字</view>
-        </view>
+        </view> -->
         <view class="for-button-box" v-for="(minItem,minIndex) in itemData.labHardwareVOList" :key="minIndex" v-if="minItem.hardwareTypeEnum.enumName!='VIDEO_MONITOR' && minItem.hardwareTypeEnum.enumName!='RFID_RECOGNIZER'&& minItem.hardwareTypeEnum.enumName!='AI_TERMINAL'&& minItem.hardwareTypeEnum.enumName!='AI_DOORLOCK'&& minItem.hardwareTypeEnum.enumName!='AI_CABINETLOCK'">
           <view>{{minItem.hardwareName}}</view>
           <img v-if="minItem.state.code=='3'" src="@/images/icon_10.png" @click="hardwareButton(minItem,'close')">

+ 15 - 7
pages_manage/workbench/laboratory/monitor.vue

@@ -14,21 +14,21 @@
       </video>
     </view>
     <view class="gb-box">
-      <view class="radio-box">
+      <!-- <view class="radio-box">
         <view class="radio-title">播报方式</view>
         <radio-group @change="radioChange" class="radio-max-button">
           <label class="radio-button" v-for="(item, index) in items" :key="item.value">
             <radio :value="item.value" color="#007AFF" :checked="item.value == current" />{{item.name}}
           </label>
         </radio-group>
-      </view>
-      <view class="input-box" v-if="current == 1">
+      </view> -->
+      <!-- <view class="input-box" v-if="current == 1">
         <view class="textarea-title">广播内容</view>
         <textarea placeholder="请输入广播内容" v-model="text" maxlength="100"></textarea>
         <view class="input-button" @click="voiceButton">确定</view>
-      </view>
-      <view class="device-box" v-if="current == 2">
-        <view class="device-title">设备</view>
+      </view> -->
+      <view class="device-box" v-if="current == 2 && trumpetList[0]">
+        <view class="device-title">广播设备</view>
         <view class="device-for-max-box">
           <view @click="trumpetClick(index)"
                 class="trumpet-for-box" :class="item.type?'trumpet-color-a':'trumpet-color-b'"
@@ -52,6 +52,9 @@
           <view class="broadcast_m_b" v-if="liveType">松开发送,向上滑动取消发送</view>
         </view>
       </view>
+	  <view class="null-device-box" v-if="!trumpetList[0]">
+		  暂无广播设备
+	  </view>
     </view>
   </view>
 </template>
@@ -79,7 +82,7 @@ export default {
         },
       ],
 
-      current:1,
+      current:2,
       trumpetList:[],
       //滑动记录
       startPoint:{},
@@ -566,6 +569,11 @@ export default {
         }
       }
     }
+	.null-device-box{
+		text-align: center;
+		color:#999;
+		line-height:100rpx;
+	}
   }
 }
 </style>