From 9c37e7deec3087902b71f99fa4f0f2168b02f354 Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Sun, 27 Apr 2025 18:01:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=91=E5=BD=A2=E8=8A=82=E7=82=B9=E4=BC=98?= =?UTF-8?q?=E5=8C=96,=E5=AF=B9=E6=8E=A5=E4=B8=8A=E4=BC=A0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/project/project/index.ts | 36 ++++ src/components/openLayersMap/index.vue | 239 +++++++++++++++++++------ src/views/project/project/index.vue | 91 +++++++--- 3 files changed, 287 insertions(+), 79 deletions(-) diff --git a/src/api/project/project/index.ts b/src/api/project/project/index.ts index 0bf193c..64fbc0a 100644 --- a/src/api/project/project/index.ts +++ b/src/api/project/project/index.ts @@ -76,6 +76,42 @@ export const upLoadProjectDXF = (data: any) => { }); }; +/** + * 通过GeoJson新增设施-光伏板 + * @param data + */ +export const addProjectFacilities = (data: any) => { + return request({ + url: '/facility/photovoltaicPanel/geoJson', + method: 'post', + data: data + }); +}; + +/** + * 通过GeoJson新增设施-光伏板桩点、立柱、支架 + * @param data + */ +export const addProjectPilePoint = (data: any) => { + return request({ + url: '/facility/photovoltaicPanelPoint/parts/geoJson', + method: 'post', + data: data + }); +}; + +/** + * 通过GeoJson新增设施-方阵 + * @param data + */ +export const addProjectSquare = (data: any) => { + return request({ + url: '/facility/matrix/geoJson', + method: 'post', + data: data + }); +}; + /** * 删除项目 * @param id diff --git a/src/components/openLayersMap/index.vue b/src/components/openLayersMap/index.vue index ef13083..a73a252 100644 --- a/src/components/openLayersMap/index.vue +++ b/src/components/openLayersMap/index.vue @@ -1,13 +1,15 @@