From efc3261f5b8fe24191c8b7b3c10aa03f54af46f3 Mon Sep 17 00:00:00 2001 From: hbao Date: Fri, 25 Feb 2022 18:20:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E5=B1=82=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homesteadSurvey/list.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/views/homesteadSurvey/list.vue b/src/views/homesteadSurvey/list.vue index c40f391a..bc40d538 100644 --- a/src/views/homesteadSurvey/list.vue +++ b/src/views/homesteadSurvey/list.vue @@ -1896,8 +1896,7 @@ // map.addLayer(zhenTc); //镇边界查询开始 ------------------------------end //村边界查询开始 ------------------------------start - console.log(that.$cookies.get("item").deptName); - var cql_filter = "ZLDWMC='" + that.$cookies.get("item").deptName + "'"; + var cql_filter = "dept_id='" + that.$cookies.get("item").deptId + "'"; var cunTc= new ol.layer.Tile({ source: new ol.source.TileWMS({ url: "http://116.255.223.226:8080/geoserver/zjd_dc/wms", @@ -1933,7 +1932,6 @@ method: "POST", // *GET, POST, PUT, DELETE, etc. }) .then((res) => { - console.log(res); var geojsonmap = res.json(); return geojsonmap; }) @@ -1955,7 +1953,7 @@ map.addLayer(cunTc); //村边界查询开始 ------------------------------end //宅基地图层查询开始 ------------------start - var cql_filter_all = "dept_name='" + that.$cookies.get("item").deptName + "'"; + var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'"; var zjdTc= new ol.layer.Tile({ source: new ol.source.TileWMS({ url: "http://116.255.223.226:8080/geoserver/zjd_dc/wms",