/*! * build: Hopaheal * copyright: Mead * time: 2022-11-22 14:51:20 */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3d6820fb"],{"0d1a":function(t,e,i){"use strict";i.r(e),i.d(e,"statistics",(function(){return s})),i.d(e,"reviewAdmin",(function(){return r})),i.d(e,"getList",(function(){return a})),i.d(e,"getSeting",(function(){return n})),i.d(e,"getProject",(function(){return l})),i.d(e,"getProjectarea",(function(){return p})),i.d(e,"area_detail",(function(){return c})),i.d(e,"project_detail",(function(){return d})),i.d(e,"getAllSec",(function(){return h})),i.d(e,"getApoint",(function(){return g})),i.d(e,"getBpoint",(function(){return m}));var o=i("b775");function s(t){return Object(o["default"])({url:"/home",method:"get",params:t})}function r(t){return Object(o["default"])({url:"/review-admin",method:"get",params:t})}function a(t){return Object(o["default"])({url:"/api/area",method:"get",params:t})}function n(t){return Object(o["default"])({url:"/admin/common/enums",method:"get",params:t})}function l(t){return Object(o["default"])({url:"/api/area/project",method:"get",params:t})}function p(t){return Object(o["default"])({url:"/api/area/project/areas-tree",method:"get",params:t})}function c(t){return Object(o["default"])({url:"/api/area/info/"+t,method:"get"})}function d(t){return Object(o["default"])({url:"/api/area/project/info/"+t,method:"get"})}function h(t){return Object(o["default"])({url:"/api/area/project/areas",method:"get",params:t})}function g(t){return Object(o["default"])({url:"/api/area/project/area/points",method:"get",params:t})}function m(t){return Object(o["default"])({url:"/api/area/project/area/point-children",method:"get",params:t})}},"37f9":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"map_wrap"},[t.title?o("div",{staticClass:"headers"},[o("h1",[t._v(t._s(t.title))])]):t._e(),o("div",{style:{width:"100%",height:"100%"},attrs:{id:"mapChart"}},[o("el-amap",{ref:"GdMap",staticClass:"amap-box",attrs:{"amap-manager":t.amapManager,center:t.center,events:t.events,plugin:t.plugin,vid:"amap-vue",zoom:t.zoom}},[t._l(t.polygons,(function(t,e){return o("el-amap-polygon",{key:e+"zu",attrs:{events:t.events,"fill-color":t.color,"fill-opacity":t.opa,path:t.path,"stroke-color":t.line_color,"stroke-weight":t.weight,vid:e}})})),t._l(t.firpolygons,(function(t,e){return o("el-amap-polygon",{key:e+"cun",attrs:{events:t.events,"fill-color":t.color,"fill-opacity":t.opa,path:t.path,"stroke-color":t.line_color,"stroke-weight":t.weight,vid:e}})})),o("el-amap-polygon",{attrs:{"fill-opacity":t.city_areas.opa,path:t.city_areas.path,"stroke-color":t.city_areas.line_color,"stroke-style":"dashed","stroke-weight":t.city_areas.weight}}),o("el-amap-polygon",{attrs:{"fill-opacity":t.current_areas.opa,path:t.current_areas.path,"stroke-color":t.current_areas.line_color,"stroke-style":"dashed","stroke-weight":t.current_areas.weight}}),t._l(t.markers,(function(t){return o("el-amap-marker",{key:t.id+"xiangmu",attrs:{content:t.content,events:t.events,offset:t.offset,position:t.position}})})),t._l(t.markers1,(function(t,e){return o("el-amap-marker",{key:e+"quyu",attrs:{content:t.content,events:t.events,position:t.position}})}))],2)],1),o("div",{staticClass:"search_wrap"},[o("div",{staticClass:"search"},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.adress,expression:"adress"}],attrs:{id:"search",placeholder:"请输入搜索内容",type:"text"},domProps:{value:t.adress},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)},input:function(e){e.target.composing||(t.adress=e.target.value)}}}),o("div",{staticClass:"btn",on:{click:t.search}},[o("i",{staticClass:"el-icon-search"})])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.isResult,expression:"isResult"},{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"result_wrap"},[o("div",{staticClass:"close",on:{click:t.close}},[o("i",{staticClass:"el-icon-close"}),t._v(" 关闭 ")]),t.pointList.length>0?o("div",{staticClass:"point-list"},[o("div",{staticClass:"point-list-title"},[t._v(t._s(t.detail.name))]),t._l(t.pointList,(function(e,s){return o("div",{key:s,staticClass:"cover-list",class:t.currentPoint.id==e.id?"active-list":"",on:{click:function(i){return t.lookPointDetail(e)}}},[o("div",{staticClass:"big-cover",on:{click:function(i){return i.stopPropagation(),t.lookBigCover(e.cover)}}},[o("i",{staticClass:"el-icon-full-screen",staticStyle:{color:"#fff"}})]),t.currentPoint.id==e.id?o("img",{staticClass:"jiao",attrs:{src:i("9a4b")}}):t._e(),o("img",{staticClass:"cover-url",attrs:{src:e.cover}}),o("el-popover",{attrs:{content:e.name,placement:"bottom-start",trigger:"hover",width:"200"}},[o("div",{staticClass:"cover-title",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(e.name))])])],1)}))],2):t._e(),1==t.isShow?o("div",{staticClass:"result",attrs:{id:"panel"}},[t._l(t.result,(function(e,i){return o("div",{key:i+"search",staticClass:"item",on:{click:function(i){return t.click_item(e)},mouseenter:function(i){return t.mouseenter(e,e.type)}}},[o("div",{staticClass:"left"},[o("div",{staticClass:"item_title"},[t._v(" "+t._s(i+1)+"."+t._s(e.name)+" ")]),o("div",{staticClass:"item_content"},[t._v(t._s(e.address))])])])})),0==t.result.length?o("div",{staticClass:"empty"},[t._v("暂无数据!")]):o("el-pagination",{attrs:{"current-page":t.queryForm.page,layout:t.layout,"page-size":t.queryForm.per_page,"page-sizes":[15,20,30,40,50,100],total:t.queryForm.total},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],2):t._e(),2==t.isShow?o("div",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"detail"},[o("div",{staticClass:"title"},[t._v("网格详情")]),t.detail.body?o("div",{staticClass:"detail_content",domProps:{innerHTML:t._s(t.detail.body)}}):o("div",{staticClass:"detail_content empty"},[t._v("暂无数据!")])]):t._e()])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.pointDialogVisible&&2==t.isShow,expression:"pointDialogVisible && isShow == 2"},{name:"loading",rawName:"v-loading",value:t.childLoading,expression:"childLoading"}],staticClass:"child-point"},[o("div",{staticClass:"child-top"},[o("div",{staticClass:"point-list-title flex-child"},[t._v(" 当前网格:"+t._s(t.currentPoint.name)+" ")]),o("div",{staticClass:"close",on:{click:t.closeChild}},[o("i",{staticClass:"el-icon-close"}),t._v(" 关闭 ")])]),o("div",{staticClass:"point-list child-list"},[o("div",{staticClass:"top-list"},t._l(t.pointChildList,(function(e,s){return o("div",{key:s,staticClass:"cover-list",class:t.pointDetail.id==e.id?"active-list":"",on:{click:function(i){return t.lookChildrenPointDetail(e)}}},[o("div",{staticClass:"big-cover",on:{click:function(i){return i.stopPropagation(),t.lookBigCover(e.cover)}}},[o("i",{staticClass:"el-icon-full-screen",staticStyle:{color:"#fff"}})]),t.pointDetail.id==e.id?o("img",{staticClass:"jiao",attrs:{src:i("9a4b")}}):t._e(),o("img",{staticClass:"cover-url",attrs:{src:e.cover}}),o("el-popover",{attrs:{content:e.name,placement:"bottom-start",trigger:"hover",width:"200"}},[o("div",{staticClass:"cover-title",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(e.name))])])],1)})),0),t.pointChildList.length>0?o("div",{staticClass:"point-detail-title"},[t._v(" 当前位置:"+t._s(t.pointDetail.name)+" ")]):t._e(),!t.isAuth&&t.openAuth?o("div",{staticClass:"input-auth"},[o("el-input",{attrs:{placeholder:"请输入验证码"},model:{value:t.code,callback:function(e){t.code=e},expression:"code"}}),o("el-button",{attrs:{type:"primary"},on:{click:t.checkAuth}},[t._v("确定")]),t.tip?o("div",{staticClass:"input-tip"},[t._v(" 验证码错误,请输入正确验证码!! ")]):t._e()],1):o("div",[t.pointDetail.body?o("div",{staticClass:"detail-body",domProps:{innerHTML:t._s(t.pointDetail.body)}}):o("el-empty",{attrs:{description:"暂无内容"}})],1)])]),o("el-dialog",{attrs:{center:"","close-on-click-modal":!1,title:"提示",visible:t.centerDialogVisible,width:"400px"},on:{"update:visible":function(e){t.centerDialogVisible=e}}},[o("div",[o("span",[t._v("请输入项目标记:")]),o("input",{directives:[{name:"model",rawName:"v-model",value:t.sign,expression:"sign"}],staticClass:"tishi",attrs:{type:"text"},domProps:{value:t.sign},on:{input:function(e){e.target.composing||(t.sign=e.target.value)}}})]),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{type:"primary"},on:{click:t.reStart}},[t._v("确 定")])],1)])],1)},s=[],r=(i("2760"),i("dfac")),a=i("0d1a"),n=i("f121");let l=new r["AMapManager"];var p={data(){let t=this;return{centerDialogVisible:!1,layout:" prev, pager, next",queryForm:{page:1,per_page:10},markers1:[],markers_temp:[],marker_serch:[],serchpolygons:[],adress:"",result:[],isResult:!1,amapManager:l,zoom:9,center:[116.397428,39.90923],currentWindow:{},map:null,isShow:0,detail:{},plugin:["Scale","ToolBar","OverView",{pName:"MapType",defaultType:0}],events:{init(){r["lazyAMapApiLoaderInstance"].load().then(()=>{t.initMap()})},zoomchange:()=>{this.zoom=this.$refs.GdMap.$$getInstance().getZoom(),console.log(this.$refs.GdMap.$$getInstance().getZoom(),this.s_zoom,"zoom"),this.isSearch||this.zoom_temp&&(this.zoom>=this.s_zoom?this.zoom>this.s_zoom+1?(console.log(this.zoom,"this.zoom"),this.markers=[],Object.assign(this.markers1,this.deepCopy(this.markers_temp)),console.log(this.markers1,"markers"),this.getAllSec(),this.firpolygons=this.firpolygons.map(t=>(t.opa=0,t))):(console.log("00"),this.firpolygons=this.firpolygons.map(t=>(5!=t.weight?t.weight=1.2:t.opa=0,t))):this.zoom<=this.zoom_temp&&(Object.assign(this.markers,this.deepCopy(this.marker_temp)),this.markers1=[],Object.assign(this.firpolygons,this.deepCopy(this.firpolygonsTemp)),this.polygons=[]))}},firpolygons:[],firpolygonsTemp:[],polygons:[],polygonsTemp:[],markers:[],marker_temp:[],title:"",id:"",sign:"",one_detail:{},listLoading:!1,zoom_temp:"",s_zoom:"",isSearch:!1,current_areas:{},city_areas:{},pointList:[],pointChildList:[],pointDialogVisible:!1,area_id:"",pointDetail:"",currentPoint:"",childLoading:!0,isAuth:!1,code:"",openAuth:n["openAuth"],tip:!1}},async created(){let t=sessionStorage.getItem("isAuth");this.isAuth=t||!1,this.sign=this.$route.query.sign,this.sign?(await this.getarea({sign:this.sign}),this.queryForm.project_id=this.id,this.zoom_temp=this.zoom):(this.centerDialogVisible=!0,console.log("没有参数"))},mounted(){},methods:{initMap(){this.map=l.getMap();var t=new AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4,position:"RB",offset:[10,20],zoomToAccuracy:!0});t.getCurrentPosition((t,e)=>{"complete"==t?(this.center=[e.position.lng,e.position.lat],console.log(this.center,"初始化center")):console.log(e,"初始化center1")})},checkType(t){return Object.prototype.toString.call(t).slice(8,-1)},deepCopy(t){const e=this.checkType(t);if("Object"===e){const e=Object.create(Object.prototype);for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=this.deepCopy(t[i]));return e}if("Array"===e){const e=[];for(let i=0;i{e.set(i,this.deepCopy(t))}),e}return t},reStart(){this.centerDialogVisible=!1,this.getarea({sign:this.sign}),this.queryForm.project_id=this.id,this.zoom_temp=this.zoom},async search(){this.isSearch=!0,this.zoom=this.s_zoom,this.queryForm.name=this.adress,this.queryForm.page=1,this.queryForm.project_id=this.id,await this.getList(),this.isResult=!0,this.isShow=1},mouseenter(t,e){0==e?(this.markers=this.markers.map(e=>(e.id==t.id?e.content=`
${e.name}
`:e.content=`
${e.name}
`,e)),this.firpolygons=this.firpolygons.map((e,i)=>(e.id==t.id?(e.weight=5,e.opa=0):(e.weight=1.2,e.opa=this.firpolygonsTemp[i].opa),e)),this.markers1=this.markers1.map(t=>(t.content=`
${t.name}
`,t))):1==e&&(this.markers1=this.markers1.map(e=>(e.id==t.id?e.content=`
${e.name}
`:e.content=`
${e.name}
`,e)),this.polygons=this.polygons.map(e=>(e.id==t.id?e.weight=5:e.weight=1.2,e)),this.markers=this.markers.map(t=>(t.content=`
${t.name}
`,t)))},async click_item(t){this.area_detail(t,t.type),this.planarea(t)},async click_marker(t,e){await this.mouseenter(t,e),this.area_detail(t,e),this.planarea(t,e)},planarea(t,e){0==e&&(this.zoom=this.s_zoom),this.center=t.point},async getList(){this.listLoading=!0,this.markers=[],this.markers1=[],this.firpolygons=[],this.polygons=[];const{data:t}=await Object(a["getList"])(this.queryForm);this.listLoading=!1,this.result=t.list;const{meta:e}=t;this.queryForm.total=e.pagination.total,this.result.map(t=>{let e={id:t.id,path:t.area,color:t.area_color,line_color:t.line_color,opa:t.fillOpacity,weight:1.2,events:{click:()=>{this.area_detail(t,t.type)}}};if(0==t.type){let i={position:t.point,offset:[0,0],content:`
${t.name}
`,name:t.name,id:t.id,events:{click:async()=>{this.click_marker(t,0),this.area_detail(t,t.type)},mouseover:()=>this.mouseenter(t,0)}};this.markers.push(i),this.firpolygons.push(e)}else if(1==t.type){let i={position:t.point,offset:[0,0],content:`
${t.name}
`,name:t.name,id:t.id,events:{click:async()=>{this.click_marker(t,1),this.area_detail(t,t.type)},mouseover:()=>this.mouseenter(t,1)}};this.markers1.push(i),this.polygons.push(e)}}),console.log(this.markers,this.markers1)},handleSizeChange(t){this.queryForm.per_page=t,this.getList()},handleCurrentChange(t){this.queryForm.page=t,this.getList()},close(){this.isResult=!1,this.isSearch=!1,this.pointList=[],this.pointDialogVisible=!1},async getarea(t){this.isResult=!1,this.adress="";let e={sign:t.sign,type:[0],status:1};const{data:i}=await Object(a["getProjectarea"])(e);this.zoom=i.project.zoom,this.s_zoom=i.project.s_zoom,this.center=i.project.point,this.title=i.project.show_title,this.id=i.project.id,i.project.areas&&(this.current_areas={id:i.project.id,path:i.project.areas,line_color:"\t#B22222",opa:0,weight:3}),console.log(i,"pppppppppp"),i.project.super_areas&&(this.city_areas={id:i.project.id,path:i.project.super_areas,line_color:"\t#ff0000",opa:0,weight:5}),this.firpolygons=i.areas.map(t=>({id:t.id,path:t.area,color:t.area_color,line_color:t.line_color,opa:t.fillOpacity,name:t.name,weight:1.2,events:{click:async()=>{await this.getSecarea(t),this.click_marker(t,t.type)}}})),Object.assign(this.firpolygonsTemp,this.deepCopy(this.firpolygons)),this.markers=i.areas.map(t=>({content:`
${t.name}
`,position:t.point,id:t.id,name:t.name,offset:[0,0],events:{click:async()=>{await this.getSecarea(t),this.click_marker(t,t.type)},mouseover:()=>this.mouseenter(t,0)}})),Object.assign(this.marker_temp,this.deepCopy(this.markers))},async getSecarea(t){this.isResult=!1,this.adress="",this.zoom=this.s_zoom,this.center=t.point,this.polygons=t.children.map(t=>({id:t.id,path:t.area,color:t.area_color,line_color:t.line_color,opa:t.fillOpacity,weight:1.2,events:{click:()=>{this.area_detail(t,0)}}})),Object.assign(this.polygonsTemp,this.deepCopy(this.polygons)),this.markers1=t.children.map(t=>({position:t.point,offset:[0,0],content:`
${t.name}
`,id:t.id,name:t.name,events:{click:()=>this.click_marker(t,1),mouseover:()=>this.mouseenter(t,1)}})),Object.assign(this.markers_temp,this.deepCopy(this.markers1))},cancleCurrentmarker(t,e){0==e?(this.markers.map((e,i)=>{e.id==t.id&&this.$delete(this.markers,i)}),console.log(this.markers,this.marker_temp)):1==e&&this.markers1.map((e,i)=>{e.id==t.id&&this.$delete(this.markers1,i)})},async getAllSec(){const{data:t}=await Object(a["getAllSec"])({sign:this.sign,type:[1]});this.polygons=this.polygonsTemp=t.areas.map(t=>({id:t.id,path:t.area,color:t.area_color,line_color:t.line_color,opa:t.fillOpacity,weight:1.2,events:{click:()=>{this.area_detail(t,1)}}})),this.markers1=t.areas.map(t=>({content:`
${t.name}
`,position:t.point,id:t.id,name:t.name,offset:[0,0],events:{click:async()=>{this.click_marker(t,1)},mouseover:()=>this.mouseenter(t,1)}})),this.markers_temp=JSON.parse(JSON.stringify(this.markers1))},async area_detail(t){this.listLoading=!0;const{data:e}=await Object(a["area_detail"])(t.id);this.zoom=this.s_zoom,this.center=t.point,this.listLoading=!1,this.detail=e,this.isResult=!0,this.isShow=2,await this.getApoint(t.id)},async getApoint(t){const{data:e}=await Object(a["getApoint"])({area_id:t});this.area_id=t,this.pointList=e},async getBpoint(t){this.childLoading=!0;const{data:e}=await Object(a["getBpoint"])({id:t,area_id:this.area_id});this.pointChildList=e.length>0?e:[],this.pointChildList.length>0&&(this.pointDetail=this.pointChildList[0]),this.childLoading=!1},async lookPointDetail(t){console.log(t,"ppppp"),this.pointChildList=[],this.pointDetail=t,await this.getBpoint(t.id),this.pointDialogVisible=!0,this.currentPoint=t},lookChildrenPointDetail(t){this.pointDetail=t},closeChild(){this.pointDialogVisible=!1,this.currentPoint=""},lookBigCover(t){window.open(t,"_blank")},checkAuth(){let t=n["codeList"].indexOf(this.code);-1==t?(this.isAuth=!1,this.tip=!0,sessionStorage.setItem("isAuth",this.isAuth)):(this.isAuth=!0,sessionStorage.setItem("isAuth",this.isAuth),this.tip=!1)}}},c=p,d=(i("e2020"),i("0b56")),h=Object(d["a"])(c,o,s,!1,null,"24c684cd",null);e["default"]=h.exports},"50d3":function(t,e,i){},"9a4b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA6CAMAAAA3Dq9LAAABd1BMVEVHcEzdDg7fDg7SDw/dDg7eDQ3cCwveDQ3dDQ3eDQ3iDg7eDg7eDg7YDAzeDQ3dDg7eDg7eDg7dDAzdDg7eDQ3eDg7iCwvgDw/eDQ3dCwvdDg7cCwvdDQ3eDg7fDQ3dDg7eDg7eDAzhEBDeDg7dDQ3dDQ3eDQ3dDAzeDg7fDw/dDQ3eDQ3dERHeDg7eEBDdDg7fDQ3eDQ3dDQ3fCgreDQ3dDg7fDAzdDQ3cDQ3aDAzeDg7dDQ3eDQ3eDQ3dDg7eDQ3gDg7cDQ3fDg7eDg7eDw/eDg7eDQ3ZDQ3fDQ3dDQ3dDQ3cDg7dDQ3fDw/cDw/eDw/fDQ3dDg7eDg7iHBzeDAzeDg7////vi4vvior51NTviYn3w8PgGhr2wcHgGRnpXFz3wsLoW1voWFjpXl7pYGD1tLToWlrhKCj509PqaGjgGxvfFxf2vb3lRETpYWHgHx/86urpW1v++/vxmZnramrwkpL87Oz51dXoVlboWVn1trb4z8/eEREzcE6FAAAAVXRSTlMA5nkRopQWX79eEtmdFJZafYxjkXWsLUOsF/csy/xgyLQ+Peu+h+NkrzFi4Q/DL3twp7kYykUo20kq1PWH8LHea2BIR1X6zzdKmIJ/TBAzZZivxQlPljETBQAAAZRJREFUSMel09dawkAQBeCDgoq999577733rhvFAir23vvDC5jAQhYSduYmezHnn9nkC7bjZWpiLg5qbW0yueqzacSGpMAs/aqwLiswuyosSgsFqjAuC1i19zAtK1RqQkWhHJCpAehtiir4+nbhew77ATR3R5HfVZT3O+8hB1yVm87vKJ569p4SeADJ5ud7Sw+gxvx8MYB2E/k9NX8vApAmilwL9lfcTAggr0R/5cdvp27+KQsDYMASkn/xtF86Q+7vYmEBxM4GA76A4yBovptFAIBOPfAvaPOPWWQAVh44UoVf/3wXMwKQIRButflfzBhANi/sK3ydMzMA7HzbIZc/YeYA9Ih3CM5HAlBUJdjhk5kHkDjIdTpCvp8ZAKgOdD58ePJXLEoAHYHWm7OfJxY1gCyDf9sQQAwVQCkVwBQVQO4IEUBKEhEAWqgA8qkAbFQAbVQAjVQAk1QArUNEAHFjRAAoowKopwJIpQJIpwKoowKYpwJomCEC6KolAkAxFcAoFcACFcASFcAaFcAyFcAqFcDKH7UxRPrOXDjYAAAAAElFTkSuQmCC"},e2020:function(t,e,i){"use strict";i("50d3")}}]);