dedsudiyu преди 23 часа
родител
ревизия
d67d9270e5
променени са 2 файла, в които са добавени 8 реда и са изтрити 2 реда
  1. 7 1
      src/views/miniProgramVideo/index.vue
  2. 1 1
      src/views/miniProgramVideoHls/index.vue

+ 7 - 1
src/views/miniProgramVideo/index.vue

@@ -20,7 +20,7 @@
 <script>
   import H5PlayerVideo from '@/components/H5PlayerVideo.vue';
   import fullH5PlayerVideo from '@/components/fullH5PlayerVideo.vue';
-  import { iotCameraFindByCondition,iotCameraGetPlaybackURLs } from "@/api/index";
+  import { iotCameraFindByCondition,iotAppSpeakerFindHorn } from "@/api/index";
   import voiceBroadcast from '@/components/voiceBroadcast/voiceBroadcast.vue';
   export default {
     name: 'index',
@@ -138,6 +138,12 @@
           obj.source = 5;
         }
         if(urlData.type){
+          iotAppSpeakerFindHorn({subId:urlData.subId,floorId:urlData.floorId?urlData.floorId:''}).then(response => {
+            for (let i = 0; i < response.data.length; i++) {
+              response.data[i].type = false;
+            }
+            this.$set(this, 'trumpetList', response.data)
+          })
           iotCameraFindByCondition(obj).then(response => {
             if (!response.data.records[0]){
               this.$set(this,'nullType','该实验室未配置摄像头');

+ 1 - 1
src/views/miniProgramVideoHls/index.vue

@@ -140,7 +140,7 @@
           obj.source = 5;
         }
         if(urlData.type){
-          iotAppSpeakerFindHorn({subId:urlData.subId,floorId:urlData.floorId}).then(response => {
+          iotAppSpeakerFindHorn({subId:urlData.subId,floorId:urlData.floorId?urlData.floorId:''}).then(response => {
             for (let i = 0; i < response.data.length; i++) {
               response.data[i].type = false;
             }