diff --git a/src/components/Map/MapGisDrawing.vue b/src/components/Map/MapGisDrawing.vue index 7b1dbc33..b72207b5 100644 --- a/src/components/Map/MapGisDrawing.vue +++ b/src/components/Map/MapGisDrawing.vue @@ -272,37 +272,111 @@ export default { isGroup: true, name: "天地图文字标注--卫星影像图", }); + + //加载地图 + map = new ol.Map({ + controls: ol.control.defaults({attribution: false, zoom: false, rotate: false}).extend([]), //隐藏放大缩小按钮 + layers: [aerial, yingxzi], + projection: projection, + logo: 'false', + target: that.uuidMap, + view: new ol.View({ + //center: ol.proj.fromLonLat(Zb), + //center: ol.proj.fromLonLat([115.452752, 31.789033]), + zoom: 16.9, + minZoom: 5, //地图缩小限制 + maxZoom: 18, //地图放大限制 + }), + }); //获取坐标是否存在 - var Zb; - getQueryLand().then((response) => { - if (response.code == 200) { - let InsertCode = response.data; - if (InsertCode != null) { - var lat = InsertCode.lat; - var lng = InsertCode.lng; - if(lat !=null && lng !=null && lat !="" && lng !=""){ - Zb = [lng,lat]; - }else { - Zb =[115.452752, 31.789033]; - } - //加载地图 - map = new ol.Map({ - controls: ol.control.defaults({attribution: false, zoom: false, rotate: false}).extend([]), //隐藏放大缩小按钮 - layers: [aerial, yingxzi], - projection: projection, - logo: 'false', - target: that.uuidMap, - view: new ol.View({ - center: ol.proj.fromLonLat(Zb), - //center: ol.proj.fromLonLat([115.452752, 31.789033]), - zoom: 16.9, - minZoom: 5, //地图缩小限制 - maxZoom: 18, //地图放大限制 - }), - }); - } - } + //var Zb; + //村边界查询开始 ------------------------------start + 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", + params: { + LAYERS: 'zjd_dc:t_house_survey_border_village', + TILED: true, + cql_filter: cql_filter, + SRID: 3857, + }, + }), }); + //定位查询位置 + let param_dw = { + srsName: "EPSG:3857", + service: "WFS", + version: "1.0.0", + request: "GetFeature", + typename: "zjd_dc:t_house_survey_border_village", + //featureNS: 'nsgk_hc',//命名空间 URI + cql_filter: cql_filter, + //featurePrefix: 'nationalwater',//工作区名称 + //featureTypes: ['nationalwater:01fir'],//查询图层,可以是同一个工作区下多个图层,逗号隔开 + outputFormat: "application/json", + //filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值 + }; + let url_dw = "http://116.255.223.226:8080/geoserver/zjd_dc/wfs"; //wfsurl; + url_dw = url_dw + "?"; + for (let key in param_dw) { + url_dw = url_dw + key + "=" + param_dw[key] + "&"; + } + url_dw = url_dw.substr(0, url_dw.length - 1); + fetch(url_dw, { + method: "POST", // *GET, POST, PUT, DELETE, etc. + }) + .then((res) => { + var geojsonmap = res.json(); + return geojsonmap; + }) + .then((data) => { + console.log(data); + let resolution = map.getView().getResolutionForExtent(data.bbox,map.getSize()); + map.getView().fit(data.bbox); + map.getView().setResolution(resolution); + // var datamap = data.bbox; + // var center = ol.extent.getCenter(datamap); + // map.getView().animate({ + // // 只设置需要的属性即可 + // center: center, // 中心点 + // rotation: undefined, // 缩放完成view视图旋转弧度 + // }); + }) + .catch((error) => { + console.log("【异常】", error); + }); + map.addLayer(cunTc); + //村边界查询开始 ------------------------------end + // getQueryLand().then((response) => { + // if (response.code == 200) { + // let InsertCode = response.data; + // if (InsertCode != null) { + // var lat = InsertCode.lat; + // var lng = InsertCode.lng; + // if(lat !=null && lng !=null && lat !="" && lng !=""){ + // Zb = [lng,lat]; + // }else { + // Zb =[115.452752, 31.789033]; + // } + // //加载地图 + // map = new ol.Map({ + // controls: ol.control.defaults({attribution: false, zoom: false, rotate: false}).extend([]), //隐藏放大缩小按钮 + // layers: [aerial, yingxzi], + // projection: projection, + // logo: 'false', + // target: that.uuidMap, + // view: new ol.View({ + // center: ol.proj.fromLonLat(Zb), + // //center: ol.proj.fromLonLat([115.452752, 31.789033]), + // zoom: 16.9, + // minZoom: 5, //地图缩小限制 + // maxZoom: 18, //地图放大限制 + // }), + // }); + // } + // } + // }); //图层查询定位结束 ---------end //开始绘制地图 diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index e429fdf2..9fc25aea 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -150,8 +150,6 @@ name="宗地代码" label="宗地代码" placeholder="宗地代码" - required - :rules="[{ required: true, message: '宗地代码不能为空' }]" /> - + readonly + @click="showsyqrnmfwdm = true" + />--> - + />--> + + + + + + + + + @@ -2482,6 +2514,8 @@ resultImg: "", // 最终画布生成的base64图片 isCrop: false, // 是否裁剪,在画布设定尺寸基础上裁掉四周空白部分 showdj:false, + shownmfwnhdm:false, + showsyqrnmfwdm:false, showhncysjly:false, showhzsjly:false, showesign:false, @@ -3016,6 +3050,11 @@ this.form5.zjdxctp = this.form5.zjdxctp.replaceAll(url,"") this.form5.zjdxctp = this.form5.zjdxctp.replaceAll(url1,"") }, + // 使用权人农民房屋代码弹出框 + onConfirmsyqrnmfwdm(value){ + this.form1.nmfwdm = value.nmfwdm + this.showsyqrnmfwdm = false + }, // 使用权人农户代码弹出框 onConfirmsyqrnhdmlist(value){ this.form1.nhdm = value.nhdm @@ -3029,6 +3068,11 @@ }) this.showsyqrnhdmlist = false }, + // 农名房屋农户代码弹出框 + onConfirmnmfwnhdm(value){ + this.nmfwform.nhdm = value.nhdm + this.shownmfwnhdm = false + }, // 户内成员数据来源弹出框 onConfirmhncysjly(value){ this.form5.sjlyName = value.dictLabel @@ -3345,6 +3389,49 @@ } listZjdzd(params).then(response => { this.form = response.rows[0]; + if(this.form.sffz==null||this.form.sffz==""){ + this.form.sffz = "Y" + } + if(this.form.yt==null||this.form.yt==""){ + this.form.yt = "072" + this.form.ytName="农村宅基地" + } + if(this.form.lyzk==null||this.form.lyzk==""){ + this.form.lyzk = "1" + this.form.lyzkName="正常使用" + } + if(this.form.lzyx==null||this.form.lzyx==""){ + this.form.lzyx = "0" + } + if(this.form.yctcyx==null||this.form.yctcyx==""){ + this.form.yctcyx = "0" + } + if(this.form.bccjl==null||this.form.bccjl==""){ + this.form.bccjl = "0" + } + if(this.form.zjdqdfs==null||this.form.zjdqdfs==""){ + this.form.zjdqdfs = "01" + } + if(this.form.dj==null||this.form.dj==""){ + this.form.dj = "1" + this.form.djName = "一类" + } + if(this.form.qllx==null||this.form.qllx==""){ + this.form.qllx = "1" + this.form.qllxName = "集体土地所有权" + } + if(this.form.qlxz==null||this.form.qlxz==""){ + this.form.qlxz = "200" + this.form.qlxzName = "集体土地" + } + if(this.form.qlsdfs==null||this.form.qlsdfs==""){ + this.form.qlsdfs = "1" + this.form.qlsdfsName = "地上" + } + if(this.form.sjly==null||this.form.sjly==""){ + this.form.sjly = "04" + this.form.sjlyName = "农村宅基地使用权确权登记发证" + } this.fileListzjd = [] if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""&&this.form.zjdxctp.length>0){ let li = this.form.zjdxctp.split(","); @@ -3401,6 +3488,7 @@ yt:"072", ytName:"农村宅基地", lyzk:"1", + lyzkName:"正常使用", lzyx:'0', yctcyx:'0', bccjl:'0', @@ -3678,6 +3766,32 @@ } }else{ this.form1 = item + if(this.form1.gj==null||this.form1.gj==""){ + this.form1.gj = '1' + } + if(this.form1.hklx==null||this.form1.hklx==""){ + this.form1.hklx = '1' + } + if(this.form1.xb==null||this.form1.xb==""){ + this.form1.xb = '1' + } + if(this.form1.sfbncjtjjzzcy==null||this.form1.sfbncjtjjzzcy==""){ + this.form1.sfbncjtjjzzcy = 'Y' + } + if(this.form1.sfsyqrzjgy==null||this.form1.sfsyqrzjgy==""){ + this.form1.sfsyqrzjgy = 'Y' + } + if(this.form1.qlrlx==null||this.form1.qlrlx==""){ + this.form1.qlrlx = 'Y' + this.form1.qlrlxName = '个人' + } + if(this.form1.gyfs==null||this.form1.gyfs==""){ + this.form1.gyfs = '1' + this.form1.gyfsName = '单独所有' + } + if(this.form1.qlbl==null||this.form1.qlbl==""){ + this.form1.qlbl = '1' + } this.sjlyOptions.map(res => { if(res.dictValue == this.form1.sjly){ this.form1.sjlyName = res.dictLabel @@ -3727,6 +3841,53 @@ } }else{ this.form5 = item + if(this.form5.nhdm==null||this.form5.nhdm==""){ + this.form5.nhdm = this.nhform.nhdm + } + if(this.form5.deptId==null||this.form5.deptId==""){ + this.form5.deptId = this.nhform.deptId + } + if(this.form5.zjlx==null||this.form5.zjlx==""){ + this.form5.zjlx = "01" + this.form5.zjlxName = "身份证" + } + if(this.form5.yhzgx==null||this.form5.yhzgx==""){ + this.form5.yhzgx = "14" + this.form5.yhzgxName = "妻" + } + if(this.form5.hyzk==null||this.form5.hyzk==""){ + this.form5.hyzk = "02" + } + if(this.form5.hklx==null||this.form5.hklx==""){ + this.form5.hklx = "1" + } + if(this.form5.occupation==null||this.form5.occupation==""){ + this.form5.occupation = "1" + this.form5.occupationName = "务农" + } + if(this.form5.jzqk==null||this.form5.jzqk==""){ + this.form5.jzqk = "3" + this.form5.jzqkName = "常年居住" + } + if(this.form5.sfbjtjjzzcy==null||this.form5.sfbjtjjzzcy==""){ + this.form5.sfbjtjjzzcy = "Y" + } + if(this.form5.xb==null||this.form5.xb==""){ + this.form5.xb = "0" + } + if(this.form5.sfbccm==null||this.form5.sfbccm==""){ + this.form5.sfbccm = "Y" + } + if(this.form5.sfpkh==null||this.form5.sfpkh==""){ + this.form5.sfpkh = "N" + } + if(this.form5.sfwbh==null||this.form5.sfwbh==""){ + this.form5.sfwbh = "N" + } + if(this.form5.sjly==null||this.form5.sjly==""){ + this.form5.sjly = "07" + this.form5.sjlyName = "农村集体产权制度改革" + } this.jzhcssfyzfOptions.map(res => { if(res.dictValue == item.jzhcssfyzf){ this.form5.jzhcssfyzfName = res.dictLabel @@ -3774,9 +3935,9 @@ this.form3={ zjddm:this.item.zjddm, deptId:this.item.deptId, - zcs:1, - dscs:1, - dxcs:0, + zcs:"1", + dscs:"1", + dxcs:"0", fwjg:'02', fwjgName:'钢和钢筋混凝土结构', sjly:'04', @@ -3785,6 +3946,23 @@ } }else{ this.form3 = item + if(this.form3.zcs==null||this.form3.zcs==""){ + this.form3.zcs = "1" + } + if(this.form3.dscs==null||this.form3.dscs==""){ + this.form3.dscs = "1" + } + if(this.form3.dscs==null||this.form3.dscs==""){ + this.form3.dscs = "0" + } + if(this.form3.fwjg==null||this.form3.fwjg==""){ + this.form3.fwjg = "02" + this.form3.fwjgName = "钢和钢筋混凝土结构" + } + if(this.form3.sjly==null||this.form3.sjly==""){ + this.form3.sjly = "04" + this.form3.sjlyName = "农村宅基地使用权确权登记发证" + } if(this.form3.sjly!=null){ this.sjlyOptions.map(res => { if(res.dictValue == this.form3.sjly){ @@ -3803,7 +3981,6 @@ } this.showzrz = true; this.active = 3; - console.log(item); this.mapClickLoading(); } }, @@ -3814,16 +3991,14 @@ this.showfw = true; if(item==""){ this.nmfwform={ - pzdw : '1', - sfkjgj : 'Y', zrzh: this.item.zrzh, deptId : this.item.deptId, zjddm : this.item.zjddm, nmfwzh : this.item.nmfwzh, - ch:1, - sjc:1, - myc:1, - sjcs:1, + ch:"1", + sjc:"1", + myc:"1", + sjcs:"1", hx:'03', hxName:'三居室', hxjg:'01', @@ -3854,6 +4029,96 @@ } }else{ this.nmfwform = item + if(this.nmfwform.sfkjgj==null||this.nmfwform.sfkjgj==""){ + this.nmfwform.sfkjgj = "N" + } + if(this.nmfwform.qsly==null||this.nmfwform.qsly==""){ + this.nmfwform.qsly = "01" + this.nmfwform.qslyName = "申请" + } + if(this.nmfwform.yctcyx==null||this.nmfwform.yctcyx==""){ + this.nmfwform.yctcyx = "0" + } + if(this.nmfwform.lzyx==null||this.nmfwform.lzyx==""){ + this.nmfwform.lzyx = "0" + } + if(this.nmfwform.lyzk==null||this.nmfwform.lyzk==""){ + this.nmfwform.lyzk = "1" + this.nmfwform.lyzkName = "正常使用" + } + if(this.nmfwform.fwlx==null||this.nmfwform.fwlx==""){ + this.nmfwform.fwlx = "01" + this.nmfwform.fwlxName = "住宅" + } + if(this.nmfwform.sjly==null||this.nmfwform.sjly==""){ + this.nmfwform.sjly = "04" + this.nmfwform.sjlyName = "农村宅基地使用权确权登记发证" + } + if(this.nmfwform.isMortgage==null||this.nmfwform.isMortgage==""){ + this.nmfwform.isMortgage = "Y" + } + if(this.nmfwform.fwzt==null||this.nmfwform.fwzt==""){ + this.nmfwform.fwzt = "01" + this.nmfwform.fwztName = "正常" + } + if(this.nmfwform.pzdw==null||this.nmfwform.pzdw==""){ + this.nmfwform.pzdw = "1" + } + if(this.nmfwform.sfkjgj==null||this.nmfwform.sfkjgj==""){ + this.nmfwform.sfkjgj = "N" + } + if(this.nmfwform.zrzh==null||this.nmfwform.zrzh==""){ + this.nmfwform.zrzh = this.item.zrzh + } + if(this.nmfwform.deptId==null||this.nmfwform.deptId==""){ + this.nmfwform.deptId = this.item.deptId + } + if(this.nmfwform.zjddm==null||this.nmfwform.zjddm==""){ + this.nmfwform.zjddm = this.item.zjddm + } + if(this.nmfwform.nmfwzh==null||this.nmfwform.nmfwzh==""){ + this.nmfwform.nmfwzh = this.item.nmfwzh + } + if(this.nmfwform.ch==null||this.nmfwform.ch==""){ + this.nmfwform.ch = "1" + } + if(this.nmfwform.sjc==null||this.nmfwform.sjc==""){ + this.nmfwform.sjc = "1" + } + if(this.nmfwform.myc==null||this.nmfwform.myc==""){ + this.nmfwform.myc = "1" + } + if(this.nmfwform.sjcs==null||this.nmfwform.sjcs==""){ + this.nmfwform.sjcs = "1" + } + if(this.nmfwform.hx==null||this.nmfwform.hx==""){ + this.nmfwform.hx = "03" + this.nmfwform.hxName = "三居室" + } + if(this.nmfwform.hxjg==null||this.nmfwform.hxjg==""){ + this.nmfwform.hxjg = "01" + this.nmfwform.hxjgName = "平层" + } + if(this.nmfwform.fwjg==null||this.nmfwform.fwjg==""){ + this.nmfwform.fwjg = "02" + this.nmfwform.fwjgName = "钢和钢筋混凝土结构" + } + if(this.nmfwform.fwyt==null||this.nmfwform.fwyt==""){ + this.nmfwform.fwyt = "10" + this.nmfwform.fwytName = "住宅" + } + if(this.nmfwform.sfjf==null||this.nmfwform.sfjf==""){ + this.nmfwform.sfjf = "N" + } + if(this.nmfwform.sfcf==null||this.nmfwform.sfcf==""){ + this.nmfwform.sfcf = "N" + } + if(this.nmfwform.sffz==null||this.nmfwform.sffz==""){ + this.nmfwform.sffz = "Y" + } + if(this.nmfwform.isCommon==null||this.nmfwform.isCommon==""){ + this.nmfwform.isCommon = "N" + } this.sjlyOptions.map(res => { if(res.dictValue == item.sjly){ this.nmfwform.sjlyName = res.dictLabel @@ -3963,6 +4228,45 @@ } }else{ this.form4=item + if(this.form4.fssslx==null||this.form4.fssslx==""){ + this.form4.fssslx = "11" + this.form4.fssslxName = "畜厩" + } + if(this.form4.qsly==null||this.form4.qsly==""){ + this.form4.qsly = "99" + this.form4.qslyName = "其他" + } + if(this.form4.fwzt==null||this.form4.fwzt==""){ + this.form4.fwzt = "01" + this.form4.fwztName = "正常" + } + if(this.form4.sfsp==null||this.form4.sfsp==""){ + this.form4.sfsp = "N" + } + if(this.form4.sffz==null||this.form4.sffz==""){ + this.form4.sffz = "N" + } + if(this.form4.jglx==null||this.form4.jglx==""){ + this.form4.jglx = "2" + this.form4.jglxName = "砖混" + } + if(this.form4.sfzzsy==null||this.form4.sfzzsy==""){ + this.form4.sfzzsy = "Y" + } + if(this.form4.jzwqk==null||this.form4.jzwqk==""){ + this.form4.jzwqk = "01" + this.form4.jzwqkName = "正常" + } + if(this.form4.tdzk==null||this.form4.tdzk==""){ + this.form4.tdzk = "3" + this.form4.tdzkName = "其他" + } + if(this.form4.sfsgcf==null||this.form4.sfsgcf==""){ + this.form4.sfsgcf = "N" + } + if(this.form4.theGeom==null||this.form4.theGeom==""){ + this.form4.theGeom = this.form4.theGeom + } this.fssslxOptions.map(res => { if(res.dictValue == item.fssslx){ this.form4.fssslxName = res.dictLabel diff --git a/src/views/homesteadSurvey/list.vue b/src/views/homesteadSurvey/list.vue index 738c1a52..7be2c96d 100644 --- a/src/views/homesteadSurvey/list.vue +++ b/src/views/homesteadSurvey/list.vue @@ -284,8 +284,8 @@ @@ -433,6 +433,7 @@ -->
+
@@ -448,7 +449,8 @@ - + - +