瀏覽代碼

no message

libushang 3 月之前
父節點
當前提交
5bc540eea9

+ 1 - 1
src/api/emergencyCommandMap/Drone.ts

@@ -2,7 +2,7 @@ import request from '@/utils/request';
 // 无人机-部门树
 export function getDroneTree(params) {
   return request({
-    url: '/api/system/user/avcon/deptTree',
+    url: '/api/videoResource/avcon/get_drone_tree',
     method: 'get',
     params: params
   });

+ 1 - 1
src/views/emergencyCommandMap/LeftSection/Communication.vue

@@ -111,7 +111,7 @@
 
 <script lang="ts" setup>
 import { Search } from '@element-plus/icons-vue';
-import { getAvconDeptList, getAvconDeptTree, getStartMiniParam, getStartMiniWithNoParam, getAvconDeviceTree, getAvconDeviceList } from '@/api/emergencyCommandMap/communication';
+import { getStartMiniParam, getStartMiniWithNoParam, getAvconDeviceTree, getAvconDeviceList } from '@/api/emergencyCommandMap/communication';
 import { deepClone } from '@/utils';
 import Drone from './Drone.vue';
 import IndividualEquipment from './IndividualEquipment.vue';

+ 17 - 4
src/views/emergencyCommandMap/LeftSection/Drone.vue

@@ -16,15 +16,18 @@
         </div>
       </div>
     </div>
+    <!--
     <div class="right-content video-list">
       <HKVideo :dot_data="data" autoplay />
     </div>
+    -->
   </div>
 </template>
 
 <script setup lang="ts">
+import { ref, reactive, toRefs, watch, onMounted } from 'vue';
 import { Search } from '@element-plus/icons-vue';
-import { getAvconDeptTree } from '@/api/emergencyCommandMap/communication';
+// import { getAvconDeptTree } from '@/api/emergencyCommandMap/communication';
 import { getDroneTree } from '@/api/emergencyCommandMap/Drone';
 interface QueryParams {
   equipment: string;
@@ -56,6 +59,7 @@ const getTree = () => {
   });
 };
 const handleNodeClick = (data) => {
+  console.log('handleNodeClick', data)
 };
 const treeData = [
   {
@@ -65,7 +69,9 @@ const treeData = [
         label: '茂名市应急管理局',
         children: [
           {
-            label: '应急无人机'
+            id: "1",
+            label: '应急无人机',
+            url: "http://10.100.100.103:5050/liveplay.html?liveurl=ws://10.100.100.103:9001/live/mmjk0002@mm.zw.yj_00.flv&channelid=mmjk0002@mm.zw.yj_00"
           }
         ]
       },
@@ -73,7 +79,9 @@ const treeData = [
         label: '电白区应急管理局',
         children: [
           {
-            label: '应急无人机'
+            id: "2",
+            label: '应急无人机',
+            url: "http://10.100.100.103:5050/liveplay.html?liveurl=ws://10.100.100.103:9001/live/mmjk0002@mm.zw.yj_00.flv&channelid=mmjk0002@mm.zw.yj_00"
           }
         ]
       },
@@ -81,13 +89,18 @@ const treeData = [
         label: '茂南区应急管理局',
         children: [
           {
-            label: '应急无人机'
+            id: "3",
+            label: '应急无人机',
+            url: "http://10.100.100.103:5050/liveplay.html?liveurl=ws://10.100.100.103:9001/live/mmjk0002@mm.zw.yj_00.flv&channelid=mmjk0002@mm.zw.yj_00"
           }
         ]
       }
     ]
   }
 ];
+onMounted(() => {
+  getTree();
+});
 </script>
 
 <style scoped lang="scss">