/*! * build: Hopaheal * copyright: Mead * time: 2022-7-23 18:51:45 */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-272317ee"],{"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})}},"32f6":function(t,e,i){},"37f9":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"map_wrap"},[t.title?e("div",{staticClass:"headers"},[e("h1",[t._v(t._s(t.title))])]):t._e(),e("div",{style:{width:"100%",height:"100%"},attrs:{id:"mapChart"}},[e("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,i){return e("el-amap-polygon",{key:i+"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:i}})})),t._l(t.firpolygons,(function(t,i){return e("el-amap-polygon",{key:i+"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:i}})})),e("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}}),e("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 e("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,i){return e("el-amap-marker",{key:i+"quyu",attrs:{content:t.content,events:t.events,position:t.position}})}))],2)],1),e("div",{staticClass:"search_wrap"},[e("div",{staticClass:"search"},[e("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.apply(null,arguments)},input:function(e){e.target.composing||(t.adress=e.target.value)}}}),e("div",{staticClass:"btn",on:{click:t.search}},[e("i",{staticClass:"el-icon-search"})])]),e("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"},[e("div",{staticClass:"close",on:{click:t.close}},[e("i",{staticClass:"el-icon-close"}),t._v(" 关闭 ")]),t.pointList.length>0?e("div",{staticClass:"point-list"},[e("div",{staticClass:"point-list-title"},[t._v(t._s(t.detail.name))]),t._l(t.pointList,(function(o,s){return e("div",{key:s,staticClass:"cover-list",class:t.currentPoint.id==o.id?"active-list":"",on:{click:function(e){return t.lookPointDetail(o)}}},[e("div",{staticClass:"big-cover",on:{click:function(e){return e.stopPropagation(),t.lookBigCover(o.cover)}}},[e("i",{staticClass:"el-icon-full-screen",staticStyle:{color:"#fff"}})]),t.currentPoint.id==o.id?e("img",{staticClass:"jiao",attrs:{src:i("9a4b")}}):t._e(),e("img",{staticClass:"cover-url",attrs:{src:o.cover}}),e("el-popover",{attrs:{content:o.name,placement:"bottom-start",trigger:"hover",width:"200"}},[e("div",{staticClass:"cover-title",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(o.name))])])],1)}))],2):t._e(),1==t.isShow?e("div",{staticClass:"result",attrs:{id:"panel"}},[t._l(t.result,(function(i,o){return e("div",{key:o+"search",staticClass:"item",on:{click:function(e){return t.click_item(i)},mouseenter:function(e){return t.mouseenter(i,i.type)}}},[e("div",{staticClass:"left"},[e("div",{staticClass:"item_title"},[t._v(" "+t._s(o+1)+"."+t._s(i.name)+" ")]),e("div",{staticClass:"item_content"},[t._v(t._s(i.address))])])])})),0==t.result.length?e("div",{staticClass:"empty"},[t._v("暂无数据!")]):e("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?e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"detail"},[e("div",{staticClass:"title"},[t._v("网格详情")]),t.detail.body?e("div",{staticClass:"detail_content",domProps:{innerHTML:t._s(t.detail.body)}}):e("div",{staticClass:"detail_content empty"},[t._v("暂无数据!")])]):t._e()])]),e("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"},[e("div",{staticClass:"child-top"},[e("div",{staticClass:"point-list-title flex-child"},[t._v(" 当前网格:"+t._s(t.currentPoint.name)+" ")]),e("div",{staticClass:"close",on:{click:t.closeChild}},[e("i",{staticClass:"el-icon-close"}),t._v(" 关闭 ")])]),e("div",{staticClass:"point-list child-list"},[e("div",{staticClass:"top-list"},t._l(t.pointChildList,(function(o,s){return e("div",{key:s,staticClass:"cover-list",class:t.pointDetail.id==o.id?"active-list":"",on:{click:function(e){return t.lookChildrenPointDetail(o)}}},[e("div",{staticClass:"big-cover",on:{click:function(e){return e.stopPropagation(),t.lookBigCover(o.cover)}}},[e("i",{staticClass:"el-icon-full-screen",staticStyle:{color:"#fff"}})]),t.pointDetail.id==o.id?e("img",{staticClass:"jiao",attrs:{src:i("9a4b")}}):t._e(),e("img",{staticClass:"cover-url",attrs:{src:o.cover}}),e("el-popover",{attrs:{content:o.name,placement:"bottom-start",trigger:"hover",width:"200"}},[e("div",{staticClass:"cover-title",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(o.name))])])],1)})),0),t.pointChildList.length>0?e("div",{staticClass:"point-detail-title"},[t._v(" 当前位置:"+t._s(t.pointDetail.name)+" ")]):t._e(),!t.isAuth&&t.openAuth?e("div",{staticClass:"input-auth"},[e("el-input",{attrs:{placeholder:"请输入验证码"},model:{value:t.code,callback:function(e){t.code=e},expression:"code"}}),e("el-button",{attrs:{type:"primary"},on:{click:t.checkAuth}},[t._v("确定")]),t.tip?e("div",{staticClass:"input-tip"},[t._v(" 验证码错误,请输入正确验证码!! ")]):t._e()],1):e("div",[t.pointDetail.body?e("div",{staticClass:"detail-body",domProps:{innerHTML:t._s(t.pointDetail.body)}}):e("el-empty",{attrs:{description:"暂无内容"}})],1)])]),e("el-dialog",{attrs:{center:"","close-on-click-modal":!1,title:"提示",visible:t.centerDialogVisible,width:"400px"},on:{"update:visible":function(e){t.centerDialogVisible=e}}},[e("div",[e("span",[t._v("请输入项目标记:")]),e("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)}}})]),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary"},on:{click:t.reStart}},[t._v("确 定")])],1)])],1)},s=[],r=i("8f9b"),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("e202"),i("2877")),h=Object(d["a"])(c,o,s,!1,null,"24c684cd",null);e["default"]=h.exports},"9a4b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA6CAMAAAA3Dq9LAAABd1BMVEVHcEzeDg7eDg7eDQ3eDg7cDAzeDg7fDQ3eDQ3eDg7fDg7eDg7fDg7eDQ3jCwveDg7cDg7ZDQ3eDg7eDg7fDg7eDw/eDw/eDg7eDg7dDQ3eDw/eDg7eDQ3fDw/eDg7fDQ3gEBDfDw/eDg7eDw/eDAzdDg7iERHfDg7bDAzhDw/dDg7eDg7dDg7aDg7dERHfDg7eDg7eDw/SDw/fDg7eDg7eEBDgDg7gDg7fCwvcDQ3fDg7fDQ3jDg7fDg7dDQ3fDQ3fDg7eDg7eDg7eDQ3eCwvdDQ3eDQ3fDw/cDAzdDQ3eDg7dDg7fDQ3fEBDcDw/eDw/dDQ3dDw/fDQ3jHBzfDg7eDg7////vi4v51NTviorviYnpXl73w8PoWFjgGRnoW1vpXFzgGhr2wcH3wsL1trbpYGD509PgGxvqaGjramr1tLT51dX++/vpW1vgHx/wkpL2vb3fFxf86ureERHhKCjoWlr87OzoVlblRET4z8/oWVnxmZnpYWElFVSXAAAAVXRSTlMAXrSslBaiX7/m1PXPZC3wSRTK95aMrOvZvkXD4525hzF5fVU+yz38KkNa4ds3D0iRexFwsS9Kaxhg3mASR4cop8j6Yxdida8smIJ/mBAzZUyvTwnFD9MRowAAAZRJREFUSMel09dawkAQBeCDgoq999577733rhtRFLH33svDC5jAQgJZduYmezHnn9nkCzbjZWqgxQa1traZXDVbNWJDUmD2dFVYlhWYRRUWpYVpVeiTBeK091AlK9RqQnWWHDClARhriip49fDqe5b5AbRmRpHfVZT3T+8hF1zFCOd3FE/dek8JPIAS8fne0gMYFZ9vDKBLIL+n5n+NADQaRS4M9leczBBAQ53+ys+nLt38MxYGQL09JP/jaT93hdzfzcIC6EwOBnwBx1HQfCeLAACleuBf0OYfssgA4njgRBVe/PPdzAxAjoHwqM3/ZuYAZnlhX+HrjYkAsPBtx1z+gIkBKDTeITgfCcB8nsEOH0wcwHAi1+kI+X4iAFAQ6Ly/8eQvWZQAxgOtT9dfdyxqAO0m/7YpgAoqgCEqgBEqgNQ0IoCMfCIAFFEBxFIBWKkAOqgAZqgA2qgAepKIAGyDRACYoAKYowLIpgKopAJIoQLopQIonyQC6C8mAkANFUA3FcACFcASFcAaFcA6FcAqFcDKH+j2RPrrun82AAAAAElFTkSuQmCC"},e202:function(t,e,i){"use strict";i("32f6")}}]);