Selaa lähdekoodia

宅基地调查国有用地添加

wulanhaote
hbao 3 vuotta sitten
vanhempi
commit
d6bec5fe5d
2 muutettua tiedostoa jossa 56 lisäystä ja 3 poistoa
  1. +37
    -3
      src/components/Map/MapGisDrawing.vue
  2. +19
    -0
      src/views/homesteadSurvey/list.vue

+ 37
- 3
src/components/Map/MapGisDrawing.vue Näytä tiedosto

@@ -19,6 +19,7 @@
<script>
import {getQueryLand} from "@/api/homesteadSurvey/zjdzd";
import {getGeoServerConfigKey} from "@/api/system/config";
import {deptGetId,} from "@/api/homestead/index";
import $ from "jquery";

export default {
@@ -138,11 +139,26 @@ export default {
that.map.removeLayer(zrzTc);
that.map.removeLayer(zjdTc);
that.map.removeLayer(fsssTc);
//国有数据加载-----------------------------------start
deptGetId(that.$cookies.get("item").deptId).then((res) => {
var cql_filter_guoyou = "ZLDWDM='" + res.data.orgCode + "0000000'";
var guoyouTc = new ol.layer.Image({
source: new ol.source.ImageWMS({
url: that.mapGeoServerUrl + "/geoserver/zjd_gydl/wms",
params: {
LAYERS: 'zjd_gydl:DLTB',
TILED: true,
cql_filter: cql_filter_guoyou,
SRID: 3857,
TIMESTAMP: new Date().getTime(),
},
}),
});
that.map.addLayer(guoyouTc);
});
//国有数据加载----------------------------------end
//宅基地图层查询开始 ------------------start

//村边界查询开始 ------------------------------end
var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'" + "and zjddm='" + that.$cookies.get("search").zjddm + "'";
console.log(cql_filter_all);
zjdTc= new ol.layer.Image({
source: new ol.source.ImageWMS({
url: that.mapGeoServerUrl +"/geoserver/zjd_dc/wms",
@@ -627,6 +643,24 @@ export default {
});
that.map.addLayer(cunTc);
//村边界查询开始 ------------------------------end
//国有数据加载-----------------------------------start
deptGetId(that.$cookies.get("item").deptId).then((res) => {
var cql_filter_guoyou = "ZLDWDM='" + res.data.orgCode + "0000000'";
var guoyouTc = new ol.layer.Image({
source: new ol.source.ImageWMS({
url: that.mapGeoServerUrl + "/geoserver/zjd_gydl/wms",
params: {
LAYERS: 'zjd_gydl:DLTB',
TILED: true,
cql_filter: cql_filter_guoyou,
SRID: 3857,
TIMESTAMP: new Date().getTime(),
},
}),
});
that.map.addLayer(guoyouTc);
});
//国有数据加载----------------------------------end
//宅基地图层查询开始 ------------------start
//var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'";
var zjdTc= new ol.layer.Image({


+ 19
- 0
src/views/homesteadSurvey/list.vue Näytä tiedosto

@@ -1220,6 +1220,7 @@
import {getGeoServerConfigKey} from "@/api/system/config";
import { listTown, getTown } from "@/api/homesteadSurvey/town";
import { listVillage} from "@/api/homesteadSurvey/village";
import {deptGetId,} from "@/api/homestead/index";
import $ from "jquery";
import {Dialog} from "vant";
import {ref} from "vue";
@@ -3283,6 +3284,24 @@
// });
map.addLayer(cunTc);
//村边界查询开始 ------------------------------end
//国有数据加载-----------------------------------start
deptGetId(that.$cookies.get("item").deptId).then((res) => {
var cql_filter_guoyou = "ZLDWDM='" + res.data.orgCode + "0000000'";
var guoyouTc = new ol.layer.Image({
source: new ol.source.ImageWMS({
url: that.mapGeoServerUrl + "/geoserver/zjd_gydl/wms",
params: {
LAYERS: 'zjd_gydl:DLTB',
TILED: true,
cql_filter: cql_filter_guoyou,
SRID: 3857,
TIMESTAMP: new Date().getTime(),
},
}),
});
map.addLayer(guoyouTc);
});
//国有数据加载----------------------------------end
//宅基地图层查询开始 ------------------start
//var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'";
var zjdTc = new ol.layer.Image({


Ladataan…
Peruuta
Tallenna