-
- {{ opt.label }}
-
+
+
+ {{item.reason}}
+
+
+ {{ 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;