diff --git a/src/api/homesteadSurvey/shyqr.js b/src/api/homesteadSurvey/shyqr.js index fcadba84..21530062 100644 --- a/src/api/homesteadSurvey/shyqr.js +++ b/src/api/homesteadSurvey/shyqr.js @@ -67,7 +67,7 @@ export function updateShyqr(data) { // 删除数据调查-使用权人 export function delShyqr(id) { return request({ - url: '/houseSurvey/shyqr/remove/' + id, + url: '/home/homesteadshyqr/remove/' + id, method: 'get' }) } diff --git a/src/components/house/CommonMap.vue b/src/components/house/CommonMap.vue index 10dcabfc..5209e3d0 100644 --- a/src/components/house/CommonMap.vue +++ b/src/components/house/CommonMap.vue @@ -314,6 +314,69 @@ export default { }); return true; }, + + addLayerNew(name, theGeom,tcmc,status) { + if(!this.mapObject) + return false; + let css = null; + if(tcmc === "zjdzdxx"){ + if(status === "1"){ + css = "#F9F900"; + }else if(status === "2"){ + css = "#FF8000"; + }else if(status === "3"){ + css = "#82D900"; + }else if(status === "4"){ + css = "#F75000"; + }else{ + css = "#9F4D95"; + } + }else if(tcmc === "fsss"){ + css = "#FF8C00"; + }else{ + css = "#47c68f"; + } + //地图只加载一次 + //加载地图编辑 + //图层查询定位开始 ---------start + console.info(css); + let hc_land = new ol.layer.Vector({ + title: name, + source: new ol.source.Vector({ + projection: this.getProjection(), + features: new ol.format.GeoJSON().readFeatures("{\n" + + " \"type\": \"Feature\",\n" + + " \"geometry\":" + theGeom + "}"), + }), + style: new ol.style.Style({ + fill: new ol.style.Fill({ + //矢量图层填充颜色,以及透明度 + color: "rgba(204, 255, 204,0.3)", + }), + stroke: new ol.style.Stroke({ + //边界样式 + color: css, + width: 3, + }), + }), + }); + if(!this.pushLayer(name, hc_land)) + return false; + var maxXMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxX; + var maxYMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxY; + var minXMap = hc_land.values_.source.featuresRtree_.rbush_.data.minX; + var minYMap = hc_land.values_.source.featuresRtree_.rbush_.data.minY; + //定位查询位置 + var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置 + this.mapObject.getView().animate({ + // 只设置需要的属性即可 + center: center, // 中心点 + zoom: 17.9, // 缩放级别 + rotation: undefined, // 缩放完成view视图旋转弧度 + duration: 1000, // 缩放持续时间,默认不需要设置 + }); + return true; + }, update() { if(!this.mapObject) return; diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index 08f704a6..931579a2 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -3,7 +3,7 @@
- +

空间信息

- 清空画板 - 保存提交 - +
+ + + @@ -157,6 +161,8 @@ import {getZjdzd,updateZjdzd,zjddcSign} from "@/api/homesteadSurvey/zjdzd"; import MapGisDrawing from "@/components/Map/MapGisDrawing"; import {listFsss,addFsss,updateFsss,delFsss,getFsssZjdDmList,updateFsssStatus} from "@/api/homesteadSurvey/fsss"; import MultiImageUploadComp from "@/components/house/MultiImageUploadComp" +import {Dialog} from "vant"; +import $ from "jquery"; export default { name: "homesteadAdd", components: { MapGisDrawing,MultiImageUploadComp}, @@ -204,13 +210,13 @@ export default { } if(this.zjdzdxx.id !== undefined){ getZjdzd(this.zjdzdxx.id).then((response) => { - if(response.data.surveyStatus !== "1" && businessLevel === "2"){ + if(response.data.surveyStatus === "3" && businessLevel === "2"){ this.showDcsh = true; } }); this.getList(); } - + this.height = window.screen.height * 1.28 - 20; }, mounted(){ @@ -236,6 +242,9 @@ export default { fileUpdate(val){ this.$set(this.zjdzdxx, 'surveyBztp',val.path); }, + canvasTTdown() { + $('#canvasTT').css('display', 'none'); + }, onSurveyStatusChanged(val){ this.$set(this.zjdzdxx, 'surveyStatus', val.dictValue); if(val.dictValue === "5"){ @@ -285,6 +294,7 @@ export default { if(this.$refs.esign){ this.$refs.esign.reset(); } + $('#canvasTT').css('display', 'block') }, // 生成签字图 handleGenerate() { @@ -427,4 +437,15 @@ export default { /deep/ .van-nav-bar__text { color: #fff; } +.signature-footer { + transform: rotate(90deg); + width: auto; + position: absolute; + top: 50%; + left: 0px; + +} +.clearBtn { + margin-left: 15px; +} diff --git a/src/views/homesteadSurvey/fsssAdd.vue b/src/views/homesteadSurvey/fsssAdd.vue index 40134a42..f970787d 100644 --- a/src/views/homesteadSurvey/fsssAdd.vue +++ b/src/views/homesteadSurvey/fsssAdd.vue @@ -3,7 +3,7 @@