From f9973fe0b803b317a765b267cee9c776efdddc18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=95=E5=B5=A9?= <17854119262@163.com> Date: Tue, 5 Aug 2025 17:30:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E8=AE=A1=E5=88=92-?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E7=BB=93=E6=9E=9C-=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=AA=92=E4=BD=93=E5=BA=93=E5=86=85=E7=9B=B8?= =?UTF-8?q?=E5=BA=94=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/system/mediaLibrary/index.vue | 177 +++++++++++++----- .../demo/system/mediaLibrary/modal.data.ts | 28 +-- .../mediaLibrary/path/pathImageInfo.vue | 31 ++- .../system/mediaLibrary/path/pathLeftMenu.vue | 18 +- .../demo/system/mediaLibrary/path/svg.ts | 27 --- .../system/mediaLibrary/preview/index.vue | 24 +-- .../mediaLibrary/preview/previewImage.vue | 59 ------ .../preview/previewImageInformation.vue | 37 +++- .../preview/previewVideoInformation.vue | 66 ++++++- 9 files changed, 265 insertions(+), 202 deletions(-) diff --git a/src/views/demo/system/mediaLibrary/index.vue b/src/views/demo/system/mediaLibrary/index.vue index 65b9141..27329fe 100644 --- a/src/views/demo/system/mediaLibrary/index.vue +++ b/src/views/demo/system/mediaLibrary/index.vue @@ -219,7 +219,7 @@ \ No newline at end of file diff --git a/src/views/demo/workmanagement/workplan/components/map.vue b/src/views/demo/workmanagement/workplan/components/map.vue index 99e1d01..da74abe 100644 --- a/src/views/demo/workmanagement/workplan/components/map.vue +++ b/src/views/demo/workmanagement/workplan/components/map.vue @@ -288,14 +288,14 @@ watch( () => props.wayline, (newVal, oldVal) => { - generatePreviewPoint(newVal?.Folder?.Placemark); + // generatePreviewPoint(newVal?.Folder?.Placemark); }, ); watch( () => props.waylineInfo, (newVal,oldVal) => { - console.log("newval999",newVal); + } ) diff --git a/src/views/demo/workmanagement/workplan/components/planList.vue b/src/views/demo/workmanagement/workplan/components/planList.vue index 333dcb8..d9cbc75 100644 --- a/src/views/demo/workmanagement/workplan/components/planList.vue +++ b/src/views/demo/workmanagement/workplan/components/planList.vue @@ -39,9 +39,15 @@
-
- {{ opt.label }} -
+ + +
+ {{ opt.label }} +
+
+
{{item.taskName}} @@ -361,6 +367,7 @@ padding:0px 4px; position:relative; top:2px; + cursor:pointer; } .ari-line .state-no{ diff --git a/src/views/demo/workmanagement/workplan/index.vue b/src/views/demo/workmanagement/workplan/index.vue index b1fa4c1..8d24df3 100644 --- a/src/views/demo/workmanagement/workplan/index.vue +++ b/src/views/demo/workmanagement/workplan/index.vue @@ -238,12 +238,10 @@ const workPlanStatus = ref(""); const planDetail =async (item) => { formData.value = item; let info =await getAirLine({airLineId : formData.value?.airLineId}); - if(info){ waylineInfo.value = info; wayline.value = await airLineDetail(info); } - workPlanFormShow.value = true; workPlanStatus.value = "detail" } diff --git a/src/views/demo/workmanagement/workplan/lib/calculateAirLine.ts b/src/views/demo/workmanagement/workplan/lib/calculateAirLine.ts index 3d7c271..678abd7 100644 --- a/src/views/demo/workmanagement/workplan/lib/calculateAirLine.ts +++ b/src/views/demo/workmanagement/workplan/lib/calculateAirLine.ts @@ -1,21 +1,33 @@ // 相机参数 export const uavModel = { "m4td":{ - "focalLength":6.83, - "sensorLength":9.85, + "focalLength":6.72, + "sensorLength":9.6, "imageWidth":4032, "imageHeight":3024, + "pixelLength":0.23914590747330963 } } // 输入gsd计算高度 export const calculateHeight = (gsd,uavModel) => { + let height = 0; + + // 飞行高度= GSD(cm)×实际焦距(mm)/像元尺寸(um) + + let abc = (gsd * uavModel['focalLength'] / uavModel['pixelLength']); + + console.log("abc",abc); + height = ( (gsd / 100) * (uavModel['focalLength'] / 1000) * uavModel['imageWidth'] ) / ( uavModel['sensorLength'] / 1000 ); - return height.toFixed(2); + return height.toFixed(2); } +// 140.2 = 5 * 6.72 / x + + // 输入高度计算gsd export const calculateGsd = (height,uavModel) => { let gsd = 0;