From 01d96dd68b2d78b76f3b48923cef87b1eb8cf0c7 Mon Sep 17 00:00:00 2001 From: hbao Date: Sun, 20 Feb 2022 17:11:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E6=A0=B8=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homesteadSurvey/list.vue | 704 +++++++++++++++-------------- 1 file changed, 354 insertions(+), 350 deletions(-) diff --git a/src/views/homesteadSurvey/list.vue b/src/views/homesteadSurvey/list.vue index 28abaf1c..dd5f7c5e 100644 --- a/src/views/homesteadSurvey/list.vue +++ b/src/views/homesteadSurvey/list.vue @@ -383,7 +383,7 @@

测量

-
+

核查

@@ -968,6 +968,7 @@ mapTownList: null, mapVillageList: null, coordinate: "", + zjdHcDy:"", //地图使用 --end }; }, @@ -1985,362 +1986,350 @@ }); //侧面结束-----------------------------------------------------------------end - // //点击查询详细信息 + //点击查询详细信息 map.on("singleclick", function (evt) { let feature = map.forEachFeatureAtPixel( evt.pixel, (feature) => feature ); - if (feature) { - //移除之前的绘制对象 - // map.removeInteraction(draw); - // //将帮助提示的覆盖标注从地图中删除 - // map.removeOverlay(helpTooltip); - // //将测量提示的覆盖标注从地图中删除 - // map.removeOverlay(measureTooltip); + if(feature) { + //document.getElementById("info").innerHTML = ""; + that.mapHaDataValue = true; + var ifConsole = feature.values_.createBy; + if (ifConsole =="mapTheGeomFsssId") { + let obj = {}; + that.mapHasDateStatus = 0; + obj.deptName = feature.values_.deptName;//行政区划名称 + obj.zjddm = feature.values_.zjddm;//宅基地代码 + obj.houseDataConfirmStatus = feature.values_.houseDataConfirmStatus; //状态 + obj.fssslx = feature.values_.fssslx; //附属设施类型 + obj.jzmj = feature.values_.jzmj; //建筑面积 + obj.qsly = feature.values_.qsly;//权属来源 + obj.fwzt = feature.values_.fwzt; //房屋状态 + obj.sfsp = feature.values_.sfsp; //是否审批 + obj.sffz = feature.values_.sffz; //是否发证 + obj.jglx = feature.values_.jglx; //结构类型 + obj.sfzzsy = feature.values_.sfzzsy; //是否正在使用 + obj.jzwqk = feature.values_.jzwqk; //建筑物情况 + obj.tdzk = feature.values_.tdzk; //审批或建设前土地状况 + obj.sfsgcf = feature.values_.sfsgcf; //是否受过处罚 + obj.sysNormalDisable = feature.values_.sysNormalDisable; //是否停用 + //附属设施类型字典项 + that.getDicts("fsss_type").then((response) => { + var assetTypeOptions = response.data; + if(obj.fssslx !=null && obj.fssslx !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.fssslx == assetTypeOptions[i].dictValue) { + obj.fssslx = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //权属类型字典项 + that.getDicts("acquisition_method").then((response) => { + var assetTypeOptions = response.data; + if(obj.qsly !=null && obj.qsly !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.qsly == assetTypeOptions[i].dictValue) { + obj.qsly = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //房屋状态字典项 + that.getDicts("fwzt").then((response) => { + var assetTypeOptions = response.data; + if(obj.fwzt !=null && obj.fwzt !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.fwzt == assetTypeOptions[i].dictValue) { + obj.fwzt = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //是否审批字典项 + that.getDicts("sys_yes_no").then((response) => { + var assetTypeOptions = response.data; + if(obj.sfsp !=null && obj.sfsp !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.sfsp == assetTypeOptions[i].dictValue) { + obj.sfsp = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //是否发证字典项 + that.getDicts("sys_yes_no").then((response) => { + var assetTypeOptions = response.data; + if(obj.sffz !=null && obj.sffz !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.sffz == assetTypeOptions[i].dictValue) { + obj.sffz = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //结构类型字典项 + that.getDicts("house_jglx").then((response) => { + var assetTypeOptions = response.data; + if(obj.jglx !=null && obj.jglx !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.jglx == assetTypeOptions[i].dictValue) { + obj.jglx = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //是否正在使用字典项 + that.getDicts("sys_yes_no").then((response) => { + var assetTypeOptions = response.data; + if(obj.sfzzsy !=null && obj.sfzzsy !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.sfzzsy == assetTypeOptions[i].dictValue) { + obj.sfzzsy = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //房屋状态字典项 + that.getDicts("fwzt").then((response) => { + var assetTypeOptions = response.data; + if(obj.fwzt !=null && obj.fwzt !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.fwzt == assetTypeOptions[i].dictValue) { + obj.fwzt = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //土地状况字典项 + that.getDicts("land_state").then((response) => { + var assetTypeOptions = response.data; + if(obj.tdzk !=null && obj.tdzk !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.tdzk == assetTypeOptions[i].dictValue) { + obj.tdzk = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //是否受过处罚字典项 + that.getDicts("land_state").then((response) => { + var assetTypeOptions = response.data; + if(obj.sfsgcf !=null && obj.sfsgcf !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.sfsgcf == assetTypeOptions[i].dictValue) { + obj.sfsgcf = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + that.mapFsssData = obj; + } else if(ifConsole =="mapTheGeomZrzId"){ + let obj = {}; + that.mapHasDateStatus = 1; + obj.deptName = feature.values_.deptName;//部门名称 + obj.zjddm = feature.values_.zjddm;//宅基地代码 + obj.nmfwzh = feature.values_.nmfwzh;//农民房屋幢号 + obj.zrzh = feature.values_.zrzh;//自然幢号 + obj.jgrq = feature.values_.jgrq;//竣工日期 + obj.jzwgd = feature.values_.jzwgd;//建筑物高度 + obj.zzdmj = feature.values_.zzdmj;//幢占地面积 + obj.zydmj = feature.values_.zydmj;//幢用地面积 + obj.scjzmj = feature.values_.scjzmj;//实测建筑面积 + obj.zcs = feature.values_.zcs;//总层数 + obj.dscs = feature.values_.dscs;//地上层数 + obj.dxcs = feature.values_.dxcs;//地下层数 + obj.fwjg = feature.values_.fwjg;//房屋结构 + obj.sjly = feature.values_.sjly;//数据来源 + obj.status = feature.values_.status;//状态 + obj.houseDataConfirmStatus = feature.values_.houseDataConfirmStatus;//数据调查确认状态 + //字典项转化 + //房屋结构字典项 + that.getDicts("housing_structure").then((response) => { + var assetTypeOptions = response.data; + if(obj.fwjg !=null && obj.fwjg !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.fwjg == assetTypeOptions[i].dictValue) { + obj.fwjg = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //房屋结构字典项 + that.getDicts("sjly").then((response) => { + var assetTypeOptions = response.data; + if(obj.sjly !=null && obj.sjly !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.sjly == assetTypeOptions[i].dictValue) { + obj.sjly = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + that.mapZrzData = obj; + } else if(ifConsole =="mapTheGeomZjdId"){ + console.log("点击宅基地") + let obj = {}; + that.mapHasDateStatus = 2; + obj.deptName = feature.values_.deptName;//行政区划名称 + obj.suyqrdm = feature.values_.suyqrdm;//所有权人代码 + obj.nhdm = feature.values_.nhdm;//农户代码 + obj.zjddm = feature.values_.zjddm;//宅基地代码 + obj.zdbh = feature.values_.zdbh;//宗地编号 + obj.zddm = feature.values_.zddm;//宗地代码 + obj.zl = feature.values_.zl;//坐落 + obj.zldwdm = feature.values_.zldwdm;//坐落单位代码 + obj.zdmj = feature.values_.zdmj;//宗地面积 + obj.yt = feature.values_.yt;//用途 + obj.ytmc = feature.values_.ytmc;//用途名称 + obj.dj = feature.values_.dj;//宗地编号 + obj.jg = feature.values_.jg;//价格万元 + obj.qllx = feature.values_.qllx;//权利类型 + obj.qlxz = feature.values_.qlxz;//权利性质 + obj.qlsdfs = feature.values_.qlsdfs;//权利设定方式 + obj.rjl = feature.values_.rjl;//容积率 + obj.jzmd = feature.values_.jzmd;//建筑密度 + obj.jzxg = feature.values_.jzxg;//建筑限高 + obj.zdszd = feature.values_.zdszd;//宗地四至-东 + obj.zdszn = feature.values_.zdszn;//宗地四至-南 + obj.zdszx = feature.values_.zdszx;//宗地四至-西 + obj.zdszb = feature.values_.zdszb;//宗地四至-北 + obj.zdt = feature.values_.zdt;//宗地图 + obj.tfh = feature.values_.tfh;//图幅号 + obj.djh = feature.values_.djh;//地籍号 + obj.sjly = feature.values_.sjly;//数据来源 + obj.lyzk = feature.values_.lyzk;//当前利用状况 + obj.xzkssj = feature.values_.xzkssj;//闲置开始时间 + obj.sffz = feature.values_.sffz;//是否发证 + obj.zjdzsh = feature.values_.zjdzsh;//宅基地证书号 + obj.zjdxctp = feature.values_.zjdxctp;//宅基地现场图片 + obj.zjdqdfs = feature.values_.zjdqdfs;//宅基地取得方式 + obj.bccjl = feature.values_.bccjl;//被惩处经历 + obj.bccbz = feature.values_.bccbz;//被惩处备注 + obj.yctcyx = feature.values_.yctcyx;//有偿退出意向 + obj.zjdpzmj = feature.values_.zjdpzmj;//宅基地批准面积 + obj.zjdxzyy = feature.values_.zjdxzyy;//宅基地闲置原因 + obj.lzyx = feature.values_.lzyx;//流转意向 + obj.sysNormalDisable = feature.values_.sysNormalDisable;//是否停用 + //字典项转化 + //是否发证字典项 + that.getDicts("sys_yes_no").then((response) => { + var assetTypeOptions = response.data; + if(obj.sffz !=null && obj.sffz !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.sffz == assetTypeOptions[i].dictValue) { + obj.sffz = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //利用状态字典项 + that.getDicts("zjdlyzk").then((response) => { + var assetTypeOptions = response.data; + if(obj.lyzk !=null && obj.lyzk !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.lyzk == assetTypeOptions[i].dictValue) { + obj.lyzk = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //流转意向字典项 + that.getDicts("is_have").then((response) => { + var assetTypeOptions = response.data; + if(obj.lzyx !=null && obj.lzyx !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.lzyx == assetTypeOptions[i].dictValue) { + obj.lzyx = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //有偿退出意向字典项 + that.getDicts("is_have").then((response) => { + var assetTypeOptions = response.data; + if(obj.yctcyx !=null && obj.yctcyx !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.yctcyx == assetTypeOptions[i].dictValue) { + obj.yctcyx = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //被惩处经历字典项 + that.getDicts("is_have").then((response) => { + var assetTypeOptions = response.data; + if(obj.bccjl !=null && obj.bccjl !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.bccjl == assetTypeOptions[i].dictValue) { + obj.bccjl = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //宅基地取得方式字典项 + that.getDicts("acquisition_method").then((response) => { + var assetTypeOptions = response.data; + if(obj.zjdqdfs !=null && obj.zjdqdfs !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.zjdqdfs == assetTypeOptions[i].dictValue) { + obj.zjdqdfs = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //权利设定方式字典项 + that.getDicts("right_setting_mode").then((response) => { + var assetTypeOptions = response.data; + if(obj.qlsdfs !=null && obj.qlsdfs !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.qlsdfs == assetTypeOptions[i].dictValue) { + obj.qlsdfs = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + //数据来源字典项 + that.getDicts("sjly").then((response) => { + var assetTypeOptions = response.data; + if(obj.sjly !=null && obj.sjly !=""){ + for(var i=0;assetTypeOptions.length >i; i++){ + if(obj.sjly == assetTypeOptions[i].dictValue) { + obj.sjly = assetTypeOptions[i].dictLabel; + break; + } + } + } + }); + that.mapZjdData = obj; + that.zjdHcDy = obj.zjddm; + } else { + that.mapHaDataValue = false; + } + }else { + that.mapHaDataValue = false; } }); - // map.on("singleclick", function (evt) { - // let feature = map.forEachFeatureAtPixel( - // evt.pixel, - // (feature) => feature - // ); - // if(feature) { - // document.getElementById("info").innerHTML = ""; - // that.mapHaDataValue = true; - // var ifConsole = feature.values_.createBy; - // if (ifConsole =="mapTheGeomFsssId") { - // let obj = {}; - // that.mapHasDateStatus = 0; - // obj.deptName = feature.values_.deptName;//行政区划名称 - // obj.zjddm = feature.values_.zjddm;//宅基地代码 - // obj.houseDataConfirmStatus = feature.values_.houseDataConfirmStatus; //状态 - // obj.fssslx = feature.values_.fssslx; //附属设施类型 - // obj.jzmj = feature.values_.jzmj; //建筑面积 - // obj.qsly = feature.values_.qsly;//权属来源 - // obj.fwzt = feature.values_.fwzt; //房屋状态 - // obj.sfsp = feature.values_.sfsp; //是否审批 - // obj.sffz = feature.values_.sffz; //是否发证 - // obj.jglx = feature.values_.jglx; //结构类型 - // obj.sfzzsy = feature.values_.sfzzsy; //是否正在使用 - // obj.jzwqk = feature.values_.jzwqk; //建筑物情况 - // obj.tdzk = feature.values_.tdzk; //审批或建设前土地状况 - // obj.sfsgcf = feature.values_.sfsgcf; //是否受过处罚 - // obj.sysNormalDisable = feature.values_.sysNormalDisable; //是否停用 - // //附属设施类型字典项 - // that.getDicts("fsss_type").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.fssslx !=null && obj.fssslx !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.fssslx == assetTypeOptions[i].dictValue) { - // obj.fssslx = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //权属类型字典项 - // that.getDicts("acquisition_method").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.qsly !=null && obj.qsly !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.qsly == assetTypeOptions[i].dictValue) { - // obj.qsly = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //房屋状态字典项 - // that.getDicts("fwzt").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.fwzt !=null && obj.fwzt !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.fwzt == assetTypeOptions[i].dictValue) { - // obj.fwzt = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //是否审批字典项 - // that.getDicts("sys_yes_no").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.sfsp !=null && obj.sfsp !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.sfsp == assetTypeOptions[i].dictValue) { - // obj.sfsp = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //是否发证字典项 - // that.getDicts("sys_yes_no").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.sffz !=null && obj.sffz !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.sffz == assetTypeOptions[i].dictValue) { - // obj.sffz = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //结构类型字典项 - // that.getDicts("house_jglx").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.jglx !=null && obj.jglx !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.jglx == assetTypeOptions[i].dictValue) { - // obj.jglx = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //是否正在使用字典项 - // that.getDicts("sys_yes_no").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.sfzzsy !=null && obj.sfzzsy !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.sfzzsy == assetTypeOptions[i].dictValue) { - // obj.sfzzsy = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //房屋状态字典项 - // that.getDicts("fwzt").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.fwzt !=null && obj.fwzt !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.fwzt == assetTypeOptions[i].dictValue) { - // obj.fwzt = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //土地状况字典项 - // that.getDicts("land_state").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.tdzk !=null && obj.tdzk !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.tdzk == assetTypeOptions[i].dictValue) { - // obj.tdzk = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //是否受过处罚字典项 - // that.getDicts("land_state").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.sfsgcf !=null && obj.sfsgcf !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.sfsgcf == assetTypeOptions[i].dictValue) { - // obj.sfsgcf = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // that.mapFsssData = obj; - // } else if(ifConsole =="mapTheGeomZrzId"){ - // let obj = {}; - // that.mapHasDateStatus = 1; - // obj.deptName = feature.values_.deptName;//部门名称 - // obj.zjddm = feature.values_.zjddm;//宅基地代码 - // obj.nmfwzh = feature.values_.nmfwzh;//农民房屋幢号 - // obj.zrzh = feature.values_.zrzh;//自然幢号 - // obj.jgrq = feature.values_.jgrq;//竣工日期 - // obj.jzwgd = feature.values_.jzwgd;//建筑物高度 - // obj.zzdmj = feature.values_.zzdmj;//幢占地面积 - // obj.zydmj = feature.values_.zydmj;//幢用地面积 - // obj.scjzmj = feature.values_.scjzmj;//实测建筑面积 - // obj.zcs = feature.values_.zcs;//总层数 - // obj.dscs = feature.values_.dscs;//地上层数 - // obj.dxcs = feature.values_.dxcs;//地下层数 - // obj.fwjg = feature.values_.fwjg;//房屋结构 - // obj.sjly = feature.values_.sjly;//数据来源 - // obj.status = feature.values_.status;//状态 - // obj.houseDataConfirmStatus = feature.values_.houseDataConfirmStatus;//数据调查确认状态 - // //字典项转化 - // //房屋结构字典项 - // that.getDicts("housing_structure").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.fwjg !=null && obj.fwjg !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.fwjg == assetTypeOptions[i].dictValue) { - // obj.fwjg = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //房屋结构字典项 - // that.getDicts("sjly").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.sjly !=null && obj.sjly !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.sjly == assetTypeOptions[i].dictValue) { - // obj.sjly = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // that.mapZrzData = obj; - // } else if(ifConsole =="mapTheGeomZjdId"){ - // let obj = {}; - // that.mapHasDateStatus = 2; - // obj.deptName = feature.values_.deptName;//行政区划名称 - // obj.suyqrdm = feature.values_.suyqrdm;//所有权人代码 - // obj.nhdm = feature.values_.nhdm;//农户代码 - // obj.zjddm = feature.values_.zjddm;//宅基地代码 - // obj.zdbh = feature.values_.zdbh;//宗地编号 - // obj.zddm = feature.values_.zddm;//宗地代码 - // obj.zl = feature.values_.zl;//坐落 - // obj.zldwdm = feature.values_.zldwdm;//坐落单位代码 - // obj.zdmj = feature.values_.zdmj;//宗地面积 - // obj.yt = feature.values_.yt;//用途 - // obj.ytmc = feature.values_.ytmc;//用途名称 - // obj.dj = feature.values_.dj;//宗地编号 - // obj.jg = feature.values_.jg;//价格万元 - // obj.qllx = feature.values_.qllx;//权利类型 - // obj.qlxz = feature.values_.qlxz;//权利性质 - // obj.qlsdfs = feature.values_.qlsdfs;//权利设定方式 - // obj.rjl = feature.values_.rjl;//容积率 - // obj.jzmd = feature.values_.jzmd;//建筑密度 - // obj.jzxg = feature.values_.jzxg;//建筑限高 - // obj.zdszd = feature.values_.zdszd;//宗地四至-东 - // obj.zdszn = feature.values_.zdszn;//宗地四至-南 - // obj.zdszx = feature.values_.zdszx;//宗地四至-西 - // obj.zdszb = feature.values_.zdszb;//宗地四至-北 - // obj.zdt = feature.values_.zdt;//宗地图 - // obj.tfh = feature.values_.tfh;//图幅号 - // obj.djh = feature.values_.djh;//地籍号 - // obj.sjly = feature.values_.sjly;//数据来源 - // obj.lyzk = feature.values_.lyzk;//当前利用状况 - // obj.xzkssj = feature.values_.xzkssj;//闲置开始时间 - // obj.sffz = feature.values_.sffz;//是否发证 - // obj.zjdzsh = feature.values_.zjdzsh;//宅基地证书号 - // obj.zjdxctp = feature.values_.zjdxctp;//宅基地现场图片 - // obj.zjdqdfs = feature.values_.zjdqdfs;//宅基地取得方式 - // obj.bccjl = feature.values_.bccjl;//被惩处经历 - // obj.bccbz = feature.values_.bccbz;//被惩处备注 - // obj.yctcyx = feature.values_.yctcyx;//有偿退出意向 - // obj.zjdpzmj = feature.values_.zjdpzmj;//宅基地批准面积 - // obj.zjdxzyy = feature.values_.zjdxzyy;//宅基地闲置原因 - // obj.lzyx = feature.values_.lzyx;//流转意向 - // obj.sysNormalDisable = feature.values_.sysNormalDisable;//是否停用 - // //字典项转化 - // //是否发证字典项 - // that.getDicts("sys_yes_no").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.sffz !=null && obj.sffz !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.sffz == assetTypeOptions[i].dictValue) { - // obj.sffz = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //利用状态字典项 - // that.getDicts("zjdlyzk").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.lyzk !=null && obj.lyzk !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.lyzk == assetTypeOptions[i].dictValue) { - // obj.lyzk = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //流转意向字典项 - // that.getDicts("is_have").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.lzyx !=null && obj.lzyx !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.lzyx == assetTypeOptions[i].dictValue) { - // obj.lzyx = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //有偿退出意向字典项 - // that.getDicts("is_have").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.yctcyx !=null && obj.yctcyx !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.yctcyx == assetTypeOptions[i].dictValue) { - // obj.yctcyx = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //被惩处经历字典项 - // that.getDicts("is_have").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.bccjl !=null && obj.bccjl !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.bccjl == assetTypeOptions[i].dictValue) { - // obj.bccjl = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //宅基地取得方式字典项 - // that.getDicts("acquisition_method").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.zjdqdfs !=null && obj.zjdqdfs !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.zjdqdfs == assetTypeOptions[i].dictValue) { - // obj.zjdqdfs = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //权利设定方式字典项 - // that.getDicts("right_setting_mode").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.qlsdfs !=null && obj.qlsdfs !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.qlsdfs == assetTypeOptions[i].dictValue) { - // obj.qlsdfs = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // //数据来源字典项 - // that.getDicts("sjly").then((response) => { - // var assetTypeOptions = response.data; - // if(obj.sjly !=null && obj.sjly !=""){ - // for(var i=0;assetTypeOptions.length >i; i++){ - // if(obj.sjly == assetTypeOptions[i].dictValue) { - // obj.sjly = assetTypeOptions[i].dictLabel; - // break; - // } - // } - // } - // }); - // that.mapZjdData = obj; - // } else { - // that.mapHaDataValue = false; - // } - // }else { - // that.mapHaDataValue = false; - // } - // }); //当前账套没有任何空间数据 if(mapTalkAbout){ let deptName = this.$store.state.user.loginDeptId + ""; @@ -2423,6 +2412,21 @@ return v.toString(16); }); }, + //宅基地点击地图核查 + zjdHc(){ + //console.log(this.zjdHcDy); + if(this.zjdHcDy != ""){ + this.$router.push('/homesteadSurvey/add'); + } else { + this.$dialog.alert({ + title: '宅基地核查', + message: "请从地图选择宅基地并点击核查", + theme: 'round-button', + }).then(() => { + // on close + }); + } + }, } }