瀏覽代碼

无人机详情2

Hwf 5 月之前
父節點
當前提交
32a237217e
共有 2 個文件被更改,包括 6 次插入19 次删除
  1. 2 2
      src/components/HKVideo/index.vue
  2. 4 17
      src/views/emergencyCommandMap/LeftSection/VideoMonitorEdit.vue

+ 2 - 2
src/components/HKVideo/index.vue

@@ -117,8 +117,8 @@ watch(
   }
 );
 const play_now = async (check?: boolean) => {
-  if (props.isNoLive) {
-    flvVideoRef.value.handleVideoPlay(props.dot_data.video_code);
+  if (!props.dot_data || (props.dot_data && props.dot_data.video_code)) {
+    onHKPlayError();
   } else {
     posterVisible.value = false;
     errBKVisible.value = false;

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

@@ -191,22 +191,9 @@ const getList = (flag?: boolean) => {
   });
 };
 const getVideoInfoList = () => {
-  if (mapStore.AMapType.includes()) {
-    // 获取当前可视区域的Bounds对象
-    var bounds = map.getBounds();
-
-    // Bounds对象包含西南角(southWest)和东北角(northEast)
-    var southWest = bounds.southWest; // 右下角(实际是西南角)
-    var northEast = bounds.northEast; // 左上角(实际是东北角)
-
-    // 注意:高德地图的坐标系中:
-    // - 左上角(西北角)的纬度是 northEast.lat,经度是 southWest.lng
-    // - 右下角(东南角)的纬度是 southWest.lat,经度是 northEast.lng
-    var topLeft = [southWest.lng, northEast.lat]; // 左上角经纬度
-    var bottomRight = [northEast.lng, southWest.lat]; // 右下角经纬度
-  }
-  getVideoList(queryParams).then((res) => {
-    mapStore.setTrackState(res.data);
+  mapStore.setVideoPointParams({
+    flag: true,
+    dict_value: queryParams.dict_value
   });
 };
 const selectItem = (item) => {
@@ -233,7 +220,7 @@ const reset = () => {
 const handleQuery = () => {
   queryParams.current = 1;
   getList();
-  // getVideoInfoList();
+  getVideoInfoList();
 };
 
 /** 重置按钮操作 */