| @@ -498,10 +498,10 @@ | |||||
| </div> | </div> | ||||
| <div style="padding: 10px 15px;"> | <div style="padding: 10px 15px;"> | ||||
| <van-checkbox name="all" v-model="CheckedAllArr" shape="square" @change="CheckedAllArr=!CheckedAllArr">全选</van-checkbox> | |||||
| <van-checkbox name="all" shape="square" v-model="checkAllFlag" @click="checkAll">全选</van-checkbox> | |||||
| <div style="height: 15px;"></div> | <div style="height: 15px;"></div> | ||||
| <van-checkbox-group v-model="checked"> | |||||
| <van-checkbox name="fsssSx" shape="square" style="margin-bottom: 5px;" id="fsssSx"> | |||||
| <van-checkbox-group v-model="checked" @change="handleChecked"> | |||||
| <van-checkbox name="fsssSx" shape="square" style="margin-bottom: 5px;" id="fsssSx"> | |||||
| <template #default> | <template #default> | ||||
| 附属设施<span style="display: inline-block;background: #00FFFF;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span> | 附属设施<span style="display: inline-block;background: #00FFFF;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span> | ||||
| </template> | </template> | ||||
| @@ -1129,9 +1129,9 @@ | |||||
| <h1 style="font-size: 0.35rem;font-weight: 400;border-bottom: 1px solid #ccc; line-height: 0.8rem;"><i style="display: inline-block;width: 1%;height: 0.4rem;background: #7ac943;vertical-align: middle;margin-right: 1%;"></i>请选择绘制类型<van-icon name="cross" color="#666666" style="position: absolute;right: 2%;top: 0.1rem" @click="showhzlx = false,showhzht = true" /></h1> | <h1 style="font-size: 0.35rem;font-weight: 400;border-bottom: 1px solid #ccc; line-height: 0.8rem;"><i style="display: inline-block;width: 1%;height: 0.4rem;background: #7ac943;vertical-align: middle;margin-right: 1%;"></i>请选择绘制类型<van-icon name="cross" color="#666666" style="position: absolute;right: 2%;top: 0.1rem" @click="showhzlx = false,showhzht = true" /></h1> | ||||
| <div style="text-align: center;margin-top: 30PX"> | <div style="text-align: center;margin-top: 30PX"> | ||||
| <p style="font-size: 0.3rem;display: inline-block;background: #7ac943;padding: 15PX 10%;border-radius: 30PX;color: #FFF;margin-right: 2%;" @click="">宅基地</p> | |||||
| <p style="font-size: 0.3rem;display: inline-block;background: #b026ff;padding: 15PX 10%;border-radius: 30PX;color: #FFF;margin-right: 2%;" @click="">自然幢</p> | |||||
| <p style="font-size: 0.3rem;display: inline-block;background: #3ac2db;padding: 15PX 10%;border-radius: 30PX;color: #FFF;" @click="">附属设施</p> | |||||
| <p style="font-size: 0.3rem;display: inline-block;background: #7ac943;padding: 15PX 10%;border-radius: 30PX;color: #FFF;margin-right: 2%;" @click="zjdTz">宅基地</p> | |||||
| <p style="font-size: 0.3rem;display: inline-block;background: #b026ff;padding: 15PX 10%;border-radius: 30PX;color: #FFF;margin-right: 2%;" @click="zrzTz">自然幢</p> | |||||
| <p style="font-size: 0.3rem;display: inline-block;background: #3ac2db;padding: 15PX 10%;border-radius: 30PX;color: #FFF;" @click="fsssTz">附属设施</p> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </van-popup> | </van-popup> | ||||
| @@ -1275,10 +1275,8 @@ | |||||
| mapVillageList: null, | mapVillageList: null, | ||||
| coordinate:"", | coordinate:"", | ||||
| checked:[], | checked:[], | ||||
| checkAllFlag: false,//全选判断标识 | |||||
| CheckedAllArr: false,//全选数组 | |||||
| checkAllMap: false, | |||||
| sx:"", | sx:"", | ||||
| dataList:[], | |||||
| //搜索---start | //搜索---start | ||||
| seachText: "", | seachText: "", | ||||
| selectionIconShow: false, | selectionIconShow: false, | ||||
| @@ -1294,6 +1292,15 @@ | |||||
| textMjAllNum:"", | textMjAllNum:"", | ||||
| //核查 | //核查 | ||||
| zjdHcDy:"", | zjdHcDy:"", | ||||
| //绘图 | |||||
| htZjdZrzFsss:"", | |||||
| //筛选 | |||||
| checkAllFlag: true, | |||||
| CheckedAllArr: [],//全选数组 | |||||
| dataForm: { | |||||
| imageUrl: [] | |||||
| }, | |||||
| dataList: [["fsssSx"],["zjdSx"],["zrzSx"]] | |||||
| //地图使用 --end | //地图使用 --end | ||||
| }; | }; | ||||
| }, | }, | ||||
| @@ -2614,6 +2621,7 @@ | |||||
| //提示当前坐标是否绘制完成 | //提示当前坐标是否绘制完成 | ||||
| if(that.coordinate != "" && that.coordinate !=null) { | if(that.coordinate != "" && that.coordinate !=null) { | ||||
| that.showhzht = true; | that.showhzht = true; | ||||
| that.htZjdZrzFsss =that.coordinate; | |||||
| // htMapAllFu(); | // htMapAllFu(); | ||||
| }else { | }else { | ||||
| console.log("6"); | console.log("6"); | ||||
| @@ -3000,19 +3008,28 @@ | |||||
| //筛选附属设施-----------------------------------start | //筛选附属设施-----------------------------------start | ||||
| // $("#fsssSx").click(function () { | // $("#fsssSx").click(function () { | ||||
| // map.removeLayer(zrzTc); | |||||
| // map.removeLayer(zjdTc); | |||||
| // map.addLayer(fsssTc); | |||||
| // console.log(that.checked); | |||||
| // // if(!event.target.checked){ | |||||
| // // map.addLayer(fsssTc); | |||||
| // // }else { | |||||
| // // map.removeLayer(fsssTc); | |||||
| // // } | |||||
| // }); | // }); | ||||
| // $("#zrzSx").click(function () { | // $("#zrzSx").click(function () { | ||||
| // map.addLayer(zrzTc); | |||||
| // map.removeLayer(zjdTc); | |||||
| // map.removeLayer(fsssTc); | |||||
| // console.log(that.checked); | |||||
| // // if(!event.target.checked){ | |||||
| // // map.addLayer(zrzTc); | |||||
| // // }else { | |||||
| // // map.removeLayer(zrzTc); | |||||
| // // } | |||||
| // }); | // }); | ||||
| // $("#zjdSx").click(function () { | // $("#zjdSx").click(function () { | ||||
| // map.removeLayer(zrzTc); | |||||
| // map.addLayer(zjdTc); | |||||
| // map.removeLayer(fsssTc); | |||||
| // console.log(that.checked); | |||||
| // // if(!event.target.checked){ | |||||
| // // map.addLayer(zjdTc); | |||||
| // // }else { | |||||
| // // map.removeLayer(zjdTc); | |||||
| // // } | |||||
| // }); | // }); | ||||
| //筛选附属设施-----------------------------------end | //筛选附属设施-----------------------------------end | ||||
| // //获取类型开始 侧面-----------------------------------------------------------------start | // //获取类型开始 侧面-----------------------------------------------------------------start | ||||
| @@ -3467,6 +3484,7 @@ | |||||
| that.mapZjdData =""; | that.mapZjdData =""; | ||||
| that.mapZrzData =""; | that.mapZrzData =""; | ||||
| that.mapFsssData =""; | that.mapFsssData =""; | ||||
| that.mapZjdTeAll.active ="1"; | |||||
| that.mapZjdTeAll.mapZjdAData ={}; | that.mapZjdTeAll.mapZjdAData ={}; | ||||
| that.mapZjdTeAll.mapZrzAData ={}; | that.mapZjdTeAll.mapZrzAData ={}; | ||||
| that.mapZjdTeAll.mapFsssAData ={}; | that.mapZjdTeAll.mapFsssAData ={}; | ||||
| @@ -4256,6 +4274,7 @@ | |||||
| }, | }, | ||||
| homesteadListShrink() { | homesteadListShrink() { | ||||
| this.selectionIconShow = false; | this.selectionIconShow = false; | ||||
| this.checked =[["zjdSx"],["zrzSx"],["fsssSx"]]; | |||||
| $(".homesteadList_wrap").animate( | $(".homesteadList_wrap").animate( | ||||
| { | { | ||||
| right: "-300px", | right: "-300px", | ||||
| @@ -4329,14 +4348,25 @@ | |||||
| //搜索详情跳转 | //搜索详情跳转 | ||||
| zjdSs(item){ | zjdSs(item){ | ||||
| console.log(item); | console.log(item); | ||||
| this.mapZjdTeAll.mapZjdAData ={}; | |||||
| this.mapZjdTeAll.mapZrzAData ={}; | |||||
| this.mapZjdTeAll.mapFsssAData ={}; | |||||
| //this.mapZjdTeAll.active =1; | |||||
| getZjdzd(item.id).then((response) => { | |||||
| this.mapZjdData = response.data; | |||||
| this.mapZjdData.active = 1; | |||||
| this.mapZjdTeAll.mapZjdAData = this.mapZjdData; | |||||
| this.$cookies.set("search",this.mapZjdTeAll); | |||||
| this.$router.push({path:'/homesteadSurvey/add'}); | |||||
| }); | |||||
| }, | |||||
| //地图查询 | |||||
| toggleSearch() { | |||||
| $("#query").trigger("click"); | |||||
| }, | }, | ||||
| //全选 | |||||
| //筛选//全选 | |||||
| checkAll(val) { | checkAll(val) { | ||||
| console.log(val); | |||||
| console.log(this.checked); | |||||
| console.log(this.CheckedAllArr); | |||||
| let checkedCount = this.CheckedAllArr.length; | |||||
| console.log(checkedCount); | |||||
| let checkedCount = this.CheckedAllArr.length | |||||
| if (val) { | if (val) { | ||||
| //全选 | //全选 | ||||
| this.CheckedAllArr = this.dataList.map(item => item.id) | this.CheckedAllArr = this.dataList.map(item => item.id) | ||||
| @@ -4348,43 +4378,11 @@ | |||||
| } | } | ||||
| } | } | ||||
| }, | }, | ||||
| //地图查询 | |||||
| toggleSearch() { | |||||
| $("#query").trigger("click"); | |||||
| }, | |||||
| //显示和隐藏详情 | |||||
| houseLandLookInfo(type, status) { | |||||
| if (type == "show") { | |||||
| this.houseLandLookAnmitFun("show"); | |||||
| } else { | |||||
| this.houseLandLookAnmitFun("hide"); | |||||
| } | |||||
| }, | |||||
| //显示农地\农房详情 动画 | |||||
| houseLandLookAnmitFun(type) { | |||||
| if (type == "show") { | |||||
| this.landHomesteadDetailsVisibile = true; | |||||
| $(".landHomesteadDetails_wrap").css({ bottom: "-100vh" }); | |||||
| $(".landHomesteadDetails_wrap").animate( | |||||
| { | |||||
| bottom: "0", | |||||
| }, | |||||
| 300 | |||||
| ); | |||||
| } else { | |||||
| $(".landHomesteadDetails_wrap").css({ bottom: "0" }); | |||||
| $(".landHomesteadDetails_wrap").animate( | |||||
| { | |||||
| bottom: "-100vh", | |||||
| }, | |||||
| 300 | |||||
| ); | |||||
| setTimeout(() => { | |||||
| this.landHomesteadDetailsVisibile = false; | |||||
| }, 300); | |||||
| } | |||||
| //单选 | |||||
| handleChecked() { | |||||
| this.checkAllFlag = this.CheckedAllArr.length == this.dataList.length; | |||||
| console.log(this.checkAllFlag); | |||||
| }, | }, | ||||
| closeSearchBox(){ | closeSearchBox(){ | ||||
| this.showSearch = false ; | this.showSearch = false ; | ||||
| var height = $(".searchBar_wrap").outerHeight(true) - $(".searchBar_wrap .van-search").outerHeight(true) | var height = $(".searchBar_wrap").outerHeight(true) - $(".searchBar_wrap .van-search").outerHeight(true) | ||||
| @@ -4400,6 +4398,30 @@ | |||||
| deleteHistory(){ | deleteHistory(){ | ||||
| console.log("进入aa"); | console.log("进入aa"); | ||||
| }, | }, | ||||
| zjdTz(){ | |||||
| console.log(this.htZjdZrzFsss); | |||||
| this.mapZjdTeAll.active =1; | |||||
| this.mapZjdTeAll.mapZjdAData.theGeom =JSON.stringify(this.htZjdZrzFsss); | |||||
| this.mapZjdTeAll.mapZjdAData.deptId = this.$cookies.get("item").deptId; | |||||
| this.$cookies.set("search",this.mapZjdTeAll); | |||||
| this.$router.push({path:'/homesteadSurvey/add'}); | |||||
| console.log(this.mapZjdTeAll); | |||||
| }, | |||||
| zrzTz(){ | |||||
| this.mapZjdTeAll.active =3; | |||||
| this.mapZjdTeAll.mapZrzAData.theGeom =JSON.stringify(this.htZjdZrzFsss); | |||||
| this.mapZjdTeAll.mapZrzAData.deptId = this.$cookies.get("item").deptId; | |||||
| this.$cookies.set("search",this.mapZjdTeAll); | |||||
| this.$router.push({path:'/homesteadSurvey/add'}); | |||||
| }, | |||||
| fsssTz(){ | |||||
| this.mapZjdTeAll.active =4; | |||||
| this.mapZjdTeAll.mapFsssAData.theGeom =JSON.stringify(this.htZjdZrzFsss); | |||||
| this.mapZjdTeAll.mapFsssAData.deptId = this.$cookies.get("item").deptId; | |||||
| this.$cookies.set("search",this.mapZjdTeAll); | |||||
| this.$router.push({path:'/homesteadSurvey/add'}); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| </script> | </script> | ||||