| | |
| | | distance?:number |
| | | } |
| | | |
| | | export const flyByArea = async function (sn:string,dockPoint:Point,areaList:any[],radius:number): Promise<IWorkspaceResponse<any>> { |
| | | const url = `${HTTP_PREFIX}/workspaces/${sn}/jobs/flyByArea` |
| | | export const flyByArea = async function (sn:string,dockPoint:Point,areaList:any[],radius:number,deviceSn:string): Promise<IWorkspaceResponse<any>> { |
| | | const url = `${HTTP_PREFIX}/workspaces/${sn}/jobs/${deviceSn}/flyByArea` |
| | | const result = await request.post(url,{dockPoint:dockPoint,areaList:areaList,radius:radius}) |
| | | return result.data |
| | | } |
| | |
| | | lon: props.deviceInfo.dock.basic_osd.longitude, |
| | | lat: props.deviceInfo.dock.basic_osd.latitude |
| | | }) |
| | | const deviceSn = props.deviceInfo.dock.basic_osd.sub_device?.device_sn |
| | | const jsonData = await parseJsonFile('../src/assets/jsonData/图斑_FeaturesToJSON(1).json') |
| | | const sn = props.sn |
| | | const features = jsonData.features |
| | |
| | | list.push(areaList) |
| | | }) |
| | | |
| | | flyByArea(sn, dockPoint, list, radius).then(res => { |
| | | flyByArea(sn, dockPoint, list, radius, deviceSn).then(res => { |
| | | console.log(res, '----------------') |
| | | }) |
| | | } |