From 12ddd0c56375d9360a917a313b97de2613749bab Mon Sep 17 00:00:00 2001 From: hbao Date: Fri, 18 Feb 2022 18:46:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/homesteadSurvey/town.js | 54 +++ src/api/homesteadSurvey/village.js | 54 +++ src/api/homesteadSurvey/zjdzd.js | 8 + src/assets/images/housesteadSurvey/mark.png | Bin 0 -> 1769 bytes src/components/Map/MapGisDrawing.vue | 380 +++++++++++++++++ src/components/Map/MapGisLine.vue | 381 +++++++++++++++++ src/components/Map/MapGisTag.vue | 437 ++++++++++++++++++++ src/views/homestead/index.vue | 20 +- src/views/homesteadSurvey/add.vue | 39 +- 9 files changed, 1357 insertions(+), 16 deletions(-) create mode 100644 src/api/homesteadSurvey/town.js create mode 100644 src/api/homesteadSurvey/village.js create mode 100644 src/assets/images/housesteadSurvey/mark.png create mode 100644 src/components/Map/MapGisDrawing.vue create mode 100644 src/components/Map/MapGisLine.vue create mode 100644 src/components/Map/MapGisTag.vue diff --git a/src/api/homesteadSurvey/town.js b/src/api/homesteadSurvey/town.js new file mode 100644 index 00000000..691ab268 --- /dev/null +++ b/src/api/homesteadSurvey/town.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 查询镇边界列表 +export function listTown(query) { + return request({ + url: '/houseSurvey/town/list', + method: 'get', + params: query + }) +} + +// 导出镇边界 +export function exportTown(query) { + return request({ + url: '/houseSurvey/town/export', + method: 'get', + params: query + }) +} + +// 查询镇边界详细 +export function getTown(fid) { + return request({ + url: '/houseSurvey/town/get/' + fid, + method: 'get' + }) +} + +// 新增镇边界 +export function addTown(data) { + return request({ + url: '/houseSurvey/town/add', + method: 'post', + data: data + }) +} + +// 修改镇边界 +export function updateTown(data) { + return request({ + url: '/houseSurvey/town/edit', + method: 'post', + data: data + }) +} + +// 删除镇边界 +export function delTown(fid) { + return request({ + url: '/houseSurvey/town/remove/' + fid, + method: 'get' + }) +} + diff --git a/src/api/homesteadSurvey/village.js b/src/api/homesteadSurvey/village.js new file mode 100644 index 00000000..681ad814 --- /dev/null +++ b/src/api/homesteadSurvey/village.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 查询村边界列表 +export function listVillage(query) { + return request({ + url: '/houseSurvey/village/list', + method: 'get', + params: query + }) +} + +// 导出村边界 +export function exportVillage(query) { + return request({ + url: '/houseSurvey/village/export', + method: 'get', + params: query + }) +} + +// 查询村边界详细 +export function getVillage(fid) { + return request({ + url: '/houseSurvey/village/get/' + fid, + method: 'get' + }) +} + +// 新增村边界 +export function addVillage(data) { + return request({ + url: '/houseSurvey/village/add', + method: 'post', + data: data + }) +} + +// 修改村边界 +export function updateVillage(data) { + return request({ + url: '/houseSurvey/village/edit', + method: 'post', + data: data + }) +} + +// 删除村边界 +export function delVillage(fid) { + return request({ + url: '/houseSurvey/village/remove/' + fid, + method: 'get' + }) +} + diff --git a/src/api/homesteadSurvey/zjdzd.js b/src/api/homesteadSurvey/zjdzd.js index 5f4259a9..26ef0607 100644 --- a/src/api/homesteadSurvey/zjdzd.js +++ b/src/api/homesteadSurvey/zjdzd.js @@ -69,3 +69,11 @@ export function uploadFile(data) { data: data }) } + +//查询当前登录账号坐标 +export function getQueryLand() { + return request({ + url: '/system/dept/get/current', + method: 'get' + }) +} diff --git a/src/assets/images/housesteadSurvey/mark.png b/src/assets/images/housesteadSurvey/mark.png new file mode 100644 index 0000000000000000000000000000000000000000..f5f29b0c15f4da567b805c837574805e26fef6d1 GIT binary patch literal 1769 zcmaJ?X;2eq7~TP-a#{sJppY1}P>vix0*QohEMO|(22qQWV}StK4as5x208*QSca=g ztuQExCm=9VWt1ZY+R9;7zhj=~d7th6BmL!5%}{OOs)gE4PQGmdgqt zB;`wlVpNF0c$FfTha{m)0_ODZ6hz_`Sy;MMCahp2Iaf@g5Xq{PmVq43|3gKh6|@u$ zhW_#UpTg46WHCevhNMW6gpVCuw52MPnBgUXxF{kCMUaH$Dh9?PC?btT#CQkH65e{J z5EdXZ>1T@s4u`>pr6?EXLu`;qz$A!5p@2cAyEsxEs6JjkAcaEl_Vl26P`qf)E@Yac z6UEcTVVMge{3H3j&r+FgS6wG;XER_wZb!3I4-*#qE~BkFM`g;%Je0{<{KW;6v zb^TKV;^tI#yR&1*hC(gn^VTdy;kw{5_B~N+0{?x-=!5CnTfwJrhHEy)YvK-HMFSi z$+bu4suiI9f@kZahrYe-Q5PG|pPhENp+BYmtPPmeRDNHai}N@>{y=w5?Qo)NLe~qM znR^8fbv1_z@6(Kk!1&IM^(s}S4prg{!=;>Qb#&v7Pzp8~L% zPOHweXPHfBWgA`Xsu(@1Wtr61cDXx_g+3XvF@P0? z@is#Z??X;oy)lF5E|tzZ;fJdXYg+5_r__|LLesOgX%$uJpNENScU=+6yJ3YWGMQh_ z9<=I!3TKM%sf}BuoWNZ(dAy}g#@w9PmK~J+bY13x)M}VqP>^MI{Lrrme7&b8jc3$$KCQ~a&H82arP4q4w!6)i+^Gn+n!oB{dbOhG z;z_W}df+xmou+d=^?r7EP2cc(QGRa+Z=odMH+#3z1D(v8??(Fkw~YkU^>+%byqa!L ztv%M`GK5mdjlxb`Nc1fat56XFqQ~i9{-u_^ +
+

地块位置绘制

+
+
+
+ + + +    + +
+
+ +
+ + + + + diff --git a/src/components/Map/MapGisLine.vue b/src/components/Map/MapGisLine.vue new file mode 100644 index 00000000..ed8ca783 --- /dev/null +++ b/src/components/Map/MapGisLine.vue @@ -0,0 +1,381 @@ + + + + + diff --git a/src/components/Map/MapGisTag.vue b/src/components/Map/MapGisTag.vue new file mode 100644 index 00000000..e459f178 --- /dev/null +++ b/src/components/Map/MapGisTag.vue @@ -0,0 +1,437 @@ + + + + + diff --git a/src/views/homestead/index.vue b/src/views/homestead/index.vue index 02c76af2..1e03744b 100644 --- a/src/views/homestead/index.vue +++ b/src/views/homestead/index.vue @@ -2173,7 +2173,7 @@ export default { var wmsSource = new ol.source.TileWMS({ //url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms', - url: "http://116.255.135.38:8080/geoserver/nsgk_hc/wms", + url: "http://116.255.223.226:8080/geoserver/nsgk_hc/wms", //url: 'http://localhost:8888/geoserver/mywork_mysql/wms', params: { LAYERS: "nsgk_hc:nsgk_hc_all", @@ -2202,7 +2202,7 @@ export default { title: "add Layer", source: new ol.source.Vector({ projection: projection, - // url: "http://116.255.135.38:8081/nsgk_test/profile/geojson/huancui.json", //GeoJSON的文件路径,用户可以根据需求而改变 + // url: "http://116.255.223.226:8081/nsgk_test/profile/geojson/huancui.json", //GeoJSON的文件路径,用户可以根据需求而改变 // format: new ol.format.GeoJSON(), features: new ol.format.GeoJSON().readFeatures(data), }), @@ -2244,7 +2244,7 @@ export default { // title: "add Layer", // source: new ol.source.Vector({ // projection: projection, - // url: "http://116.255.135.38:8081/nsgk_test/profile/geojson/huancui.json", //GeoJSON的文件路径,用户可以根据需求而改变 + // url: "http://116.255.223.226:8081/nsgk_test/profile/geojson/huancui.json", //GeoJSON的文件路径,用户可以根据需求而改变 // format: new ol.format.GeoJSON(), // }), // style: new ol.style.Style({ @@ -2264,7 +2264,7 @@ export default { // title: "add huancui_zhen", // source: new ol.source.Vector({ // projection: projection, - // url: "http://116.255.135.38:8081/nsgk_test/profile/geojson/huancui_zhen.json", //GeoJSON的文件路径,用户可以根据需求而改变 + // url: "http://116.255.223.226:8081/nsgk_test/profile/geojson/huancui_zhen.json", //GeoJSON的文件路径,用户可以根据需求而改变 // format: new ol.format.GeoJSON(), // }), // style: new ol.style.Style({ @@ -2700,7 +2700,7 @@ export default { nongZt[i] = new ol.layer.Tile({ source: new ol.source.TileWMS({ //url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms', - url: "http://116.255.135.38:8080/geoserver/nsgk_hc/wms", + url: "http://116.255.223.226:8080/geoserver/nsgk_hc/wms", //url: 'http://localhost:8888/geoserver/mywork_mysql/wms', //url: 'http://localhost:8888/geoserver/new_shp/wms', params: { @@ -2727,7 +2727,7 @@ export default { outputFormat: "application/json", //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值 }; - let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl; + let url_dw = "http://116.255.223.226:8080/geoserver/nsgk_hc/wfs"; //wfsurl; url_dw = url_dw + "?"; for (let key in param_dw) { url_dw = url_dw + key + "=" + param_dw[key] + "&"; @@ -2859,7 +2859,7 @@ export default { delete_map[i] = new ol.layer.Tile({ source: new ol.source.TileWMS({ //url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms', - url: "http://116.255.135.38:8080/geoserver/nsgk_hc/wms", + url: "http://116.255.223.226:8080/geoserver/nsgk_hc/wms", //url: 'http://localhost:8888/geoserver/mywork_mysql/wms', //url: 'http://localhost:8888/geoserver/new_shp/wms', params: { @@ -2887,7 +2887,7 @@ export default { outputFormat: "application/json", //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值 }; - let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl; + let url_dw = "http://116.255.223.226:8080/geoserver/nsgk_hc/wfs"; //wfsurl; url_dw = url_dw + "?"; for (let key in param_dw) { url_dw = url_dw + key + "=" + param_dw[key] + "&"; @@ -3121,7 +3121,7 @@ export default { outputFormat: "application/json", //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值 }; - let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl; + let url_dw = "http://116.255.223.226:8080/geoserver/nsgk_hc/wfs"; //wfsurl; url_dw = url_dw + "?"; for (let key in param_dw) { url_dw = url_dw + key + "=" + param_dw[key] + "&"; @@ -3288,7 +3288,7 @@ export default { outputFormat: "application/json", //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值 }; - let url_dw = "http://116.255.135.38:8080/geoserver/nsgk_hc/wfs"; //wfsurl; + let url_dw = "http://116.255.223.226:8080/geoserver/nsgk_hc/wfs"; //wfsurl; url_dw = url_dw + "?"; for (let key in param_dw) { url_dw = url_dw + key + "=" + param_dw[key] + "&"; diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index e5081118..7aa7a986 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -339,6 +339,7 @@ label="备注" placeholder="备注" /> +
保存
@@ -697,6 +698,7 @@ placeholder="备注" :rules="[{ required: true, message: '' }]" /> +
保存
@@ -817,6 +819,7 @@ placeholder="备注" :rules="[{ required: true, message: '' }]" /> +
保存
@@ -930,6 +933,7 @@ placeholder="备注" :rules="[{ required: true, message: '' }]" /> +
保存
@@ -1176,6 +1180,7 @@
查看户主信息
+
保存
@@ -1198,7 +1203,7 @@

个人

- 查看自然幢信息 + 查看自然幢信息