diff --git a/src/api/sys/workplan.ts b/src/api/sys/workplan.ts index ff54634..1ce9b6a 100644 --- a/src/api/sys/workplan.ts +++ b/src/api/sys/workplan.ts @@ -36,8 +36,8 @@ enum Api{ } // 项目 -export function getWorkspaceList(){ - return defHttp.get({ url: Api.GetTaskPageList, params }); +export function getWorkspaceList(params){ + return defHttp.get({ url: Api.GetWorkspaceList,params}); } // 任务 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 8027d74..83eb7d7 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;