From 724f95728568ce135523643b4c1c85f9e61e544f Mon Sep 17 00:00:00 2001 From: yangfuda <945208611@qq.com> Date: Tue, 9 Sep 2025 16:53:25 +0800 Subject: [PATCH] =?UTF-8?q?TASK=2045751=20=E5=9C=B0=E5=9D=97=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=92=8C=E5=9C=B0=E5=9D=97=E7=BB=8F=E8=90=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/gis/map.js | 49 +++++++++++++++++++++++++++ src/api/resource/land.js | 16 ++++----- src/api/system/dept.js | 4 +-- src/views/resource/land/index.vue | 55 +++++++++++++++++++------------ 4 files changed, 93 insertions(+), 31 deletions(-) create mode 100644 src/api/gis/map.js diff --git a/src/api/gis/map.js b/src/api/gis/map.js new file mode 100644 index 0000000..332144c --- /dev/null +++ b/src/api/gis/map.js @@ -0,0 +1,49 @@ +import request from '@/utils/request' +// 坐标点 更新 通用 +export function pointSave(data) { + return request({ + url: '/gis/map/point/do', + method: 'post', + data: data + }) +} +// 坐标点 更新 通用 自己指定主键ID +export function pointSavePri(data) { + return request({ + url: '/gis/map/point/private/do', + method: 'post', + data: data + }) +} +// 多边形面 更新 通用 +export function areaSave(data) { + return request({ + url: '/gis/map/polygon/do', + method: 'post', + data: data + }) +} +// 多边形面 更新 通用 - 自己指定主键ID +export function areaSavePri(data) { + return request({ + url: '/gis/map/polygon/private/do', + method: 'post', + data: data + }) +} +// 清空 geo 通用 +export function cleanSave(data) { + return request({ + url: '/gis/map/clean/do', + method: 'post', + data: data + }) +} +// 清空 geo 通用 自己指定主键ID +export function cleanSavePri(data) { + return request({ + url: '/gis/map/clean/private/do', + method: 'post', + data: data + }) +} \ No newline at end of file diff --git a/src/api/resource/land.js b/src/api/resource/land.js index 05f166e..8cd5a69 100644 --- a/src/api/resource/land.js +++ b/src/api/resource/land.js @@ -8,6 +8,14 @@ export function listLand(query) { params: query }) } +// 查询地块属性列表 ,用于空间字段专属查询,避免敏感泄露 +export function listLandQuery(query) { + return request({ + url: '/resource/land/query', + method: 'get', + params: query + }) +} // 查询地块属性详细 export function getLand(fid) { @@ -68,11 +76,3 @@ export function printLand(query) { params: query }) } - -// 清空空间字段 -export function clearTheGeom(fid) { - return request({ - url: '/resource/land/clear/' + fid, - method: 'get', - }) -} diff --git a/src/api/system/dept.js b/src/api/system/dept.js index 5fc7c26..669811e 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -25,9 +25,9 @@ export function getDept(deptId) { }) } // 查询部门详细 -export function getDeptByOrgCode(orgCode) { +export function getInfoByImportCode(importCode) { return request({ - url: '/system/dept/getInfoByCode/' + orgCode, + url: '/system/dept/getInfoByImportCode/' + importCode, method: 'get' }) } diff --git a/src/views/resource/land/index.vue b/src/views/resource/land/index.vue index ed70b7f..a818e69 100644 --- a/src/views/resource/land/index.vue +++ b/src/views/resource/land/index.vue @@ -326,7 +326,7 @@ -

地图信息:绿色地块表示该地块,蓝色表示本账套已标记的其他地块

+

地图信息:绿色地块表示该地块,青色表示本组织已标记的其他地块

@@ -348,7 +348,8 @@