(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ea9f5d5"],{2015:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"show-close":!1,"close-on-click-modal":!1,visible:t.isShow,title:"polygonAdd"===t.mteStr||"polylineAdd"===t.mteStr?"多边形或折线操作":"文字操作",fullscreen:!1,width:"400px","custom-class":"xl-dialog",center:""},on:{"update:visible":function(e){t.isShow=e}}},[o("base-form",{ref:"ruleForm",attrs:{data:t.formData,"is-inline":!1,"label-width":"70px"}}),"polygonAdd"===t.mteStr||"polylineAdd"===t.mteStr?o("div",{staticClass:"scoped-color-quick"},[o("div",{staticClass:"t"},[t._v("快速选择颜色")]),t._l(t.colorArr,(function(e,a){return o("div",{key:a,class:t.fillColor===e.color?"op cur":"op",style:"background: "+e.color,on:{click:function(o){return t.colorHandle(e)}}},[t._v(t._s(t.fillColor===e.color?"已选":" "))])})),o("div",{staticStyle:{"padding-top":"10px"}},t._l(t.colorArr2,(function(e,a){return o("div",{key:a,class:t.fillColor===e.color?"op cur":"op",style:"background: "+e.color,on:{click:function(o){return t.colorHandle(e)}}},[t._v(t._s(t.fillColor===e.color?"已选":" "))])})),0)],2):t._e(),o("div",{staticClass:"xl-form"},[o("div",{staticClass:"xl-form-footer"},[o("el-button",{staticClass:"xl-form-btn t2",on:{click:t.close}},[t._v("关 闭")]),t.curObj.obj?o("el-button",{staticClass:"xl-form-btn t1",on:{click:function(e){return t.close("confirm")}}},[t._v("保存")]):o("el-button",{staticClass:"xl-form-btn t3",on:{click:function(e){return t.close("confirm")}}},[t._v("去画图")])],1)])],1)],1)},i=[],s=o("5530"),l=(o("e9c4"),o("ed08"),{components:{},mixins:mixins,props:{isShow:Boolean,curObj:Object,mteStr:String},data:function(){return{loading:!1,formData:[],fillColor:"#ff003f",strokeColor:"#ff003f",colorArr:[{color:"#fb6557"},{color:"#ff9149"},{color:"#9f7df4"},{color:"#60c68b"},{color:"#4da4ee"},{color:"#e77ad4"}],colorArr2:[{color:"#ff0"},{color:"#ff7fbf"},{color:"#ff003f"},{color:"#007299"},{color:"#00ff3f"}],cObj:{}}},watch:{isShow:function(t){t&&(this.cObj=JSON.parse(JSON.stringify(this.curObj)),this.getDef())}},methods:{getDef:function(t){var e=Object(s["a"])({},this.curObj.obj);if("color"===t){var o=this.$refs.ruleForm.baseForm;e=Object(s["a"])({},o),e.fillColor=this.fillColor,e.strokeColor=this.strokeColor}e.text||(e.text="标题示例"),e.strokeStyle||(e.strokeStyle="solid"),"polygonAdd"===this.mteStr||"polylineAdd"===this.mteStr?(e.fillColor||(e.fillColor=this.fillColor,e.fillOpacity="0.4",e.strokeColor=this.strokeColor),this.formData=[{label:"标题",key:"text",rules:1},{label:"填充色",key:"fillColor",type:"colorPicker",rules:1},{label:"透明度",key:"fillOpacity",rules:1},{label:"轮廓色",key:"strokeColor",type:"colorPicker",rules:1},{label:"实虚线",key:"strokeStyle",type:"select",options:[{key:"实线",val:"solid"},{key:"虚线",val:"dashed"}]}]):(e.color||(e.color="#fff"),this.formData=[{label:"内容",key:"text",rules:1},{label:"颜色",key:"color",type:"colorPicker",rules:1}]),this.setDefaultValue(e)},colorHandle:function(t){this.fillColor=t.color,this.strokeColor=t.color,this.getDef("color")},close:function(t){var e=this;"confirm"===t?this.$refs["ruleForm"].$refs["baseForm"].validate((function(t){if(t){var o=e.$refs.ruleForm.baseForm,a=Object(s["a"])({},o);e.curObj.obj?e.$emit("close",a,"edit"):e.$emit("close",a),e.setDefaultValue()}})):(this.$emit("close"),this.setDefaultValue())}}}),n=l,r=(o("fb2c"),o("2877")),c=Object(r["a"])(n,a,i,!1,null,"09df5bf3",null);e["default"]=c.exports},"246c":function(t,e,o){"use strict";o("4ac9")},"2efb":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"show-close":!1,"close-on-click-modal":!1,visible:t.isShow,title:"添加图案操作",fullscreen:!1,width:"400px","custom-class":"xl-dialog",center:""},on:{"update:visible":function(e){t.isShow=e}}},[o("base-form",{ref:"ruleForm",attrs:{data:t.formData,"is-inline":!1,"label-width":"70px"}}),o("div",{staticClass:"scoped-img-quick"},[o("div",{staticClass:"t"},[t._v("快速选择图标")]),t._l(t.imgArr,(function(e,a){return o("div",{key:a,class:t.curImgUrl===e.url?"op cur":"op",on:{click:function(o){return t.imgHandle(e)}}},[o("img",{staticClass:"img",attrs:{src:e.url,alt:"img"}})])}))],2),o("div",{staticClass:"xl-form"},[o("div",{staticClass:"xl-form-footer"},[o("el-button",{staticClass:"xl-form-btn t2",on:{click:t.close}},[t._v("关 闭")]),t.curObj.obj?o("el-button",{staticClass:"xl-form-btn t1",on:{click:function(e){return t.close("confirm")}}},[t._v("保存")]):o("el-button",{staticClass:"xl-form-btn t3",on:{click:function(e){return t.close("confirm")}}},[t._v("去画图")])],1)])],1)],1)},i=[],s=o("5530"),l=(o("e9c4"),o("ed08"),{components:{},mixins:mixins,props:{isShow:Boolean,curObj:Object},data:function(){return{loading:!1,formData:[],curImgUrl:"",imgArr:[{url:"https://img2.honglounews.com/20221216021336-9631.png"},{url:"https://img2.honglounews.com/20221216021406-2208.png"},{url:"https://img2.honglounews.com/20221213101325-1438.png"},{url:"https://img2.honglounews.com/20221213101403-5390.png"}],cObj:{}}},watch:{isShow:function(t){t&&(this.cObj=JSON.parse(JSON.stringify(this.curObj)),this.getDef())}},methods:{getDef:function(t){var e=Object(s["a"])({},this.curObj.obj);if("color"===t){var o=this.$refs.ruleForm.baseForm;e=Object(s["a"])({},o),e.icon=this.curImgUrl}e.text||(e.text="标题示例"),e.icon||(e.icon="https://img2.honglounews.com/20221205054341-4368.png"),this.formData=[{label:"站点",key:"text",rules:1},{label:"图标",key:"icon",type:"uploads",rules:1}],this.setDefaultValue(e)},imgHandle:function(t){this.curImgUrl=t.url,this.getDef("color")},close:function(t){var e=this;"confirm"===t?this.$refs["ruleForm"].$refs["baseForm"].validate((function(t){if(t){var o=e.$refs.ruleForm.baseForm,a=Object(s["a"])({},o);e.curObj.obj?e.$emit("close",a,"edit"):e.$emit("close",a),e.setDefaultValue()}})):(this.$emit("close"),this.setDefaultValue())}}}),n=l,r=(o("edd0"),o("2877")),c=Object(r["a"])(n,a,i,!1,null,"3c864b2f",null);e["default"]=c.exports},"4ac9":function(t,e,o){},9552:function(t,e,o){},d6c6:function(t,e,o){},edd0:function(t,e,o){"use strict";o("9552")},f3ae:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container"},[o("div",{directives:[{name:"show",rawName:"v-show",value:!t.isDeal,expression:"!isDeal"}],staticClass:"scoped-top-tips"},[t._v("洪楼plus小程序提示:点击图中区域、楼盘、学校可查看更多")]),o("div",{staticClass:"scoped-bg"}),"95542fdc-b542-4582-9be2-9ab8005728d3"===t.$route.query.id||"95542ff1-8176-4267-8344-2aa7f1034ac5"===t.$route.query.id?o("div",{staticClass:"scoped-tab"},[o("div",{class:"95542fdc-b542-4582-9be2-9ab8005728d3"===t.$route.query.id?"op cur":"op",on:{click:function(e){return t.linkChange("95542fdc-b542-4582-9be2-9ab8005728d3")}}},[t._v("小学")]),o("div",{class:"95542ff1-8176-4267-8344-2aa7f1034ac5"===t.$route.query.id?"op cur":"op",on:{click:function(e){return t.linkChange("95542ff1-8176-4267-8344-2aa7f1034ac5")}}},[t._v("初中")])]):t._e(),o("div",{directives:[{name:"show",rawName:"v-show",value:t.isDeal,expression:"isDeal"}],class:t.isDbShow?"scoped-deal-box":"scoped-deal-box t2"},[o("div",{staticClass:"sdb-info"},[o("div",{staticClass:"p1"},[t._v("当前缩放级别:"+t._s(t.mapDiyObj.zoom)),o("span",{staticClass:"more",on:{click:t.setShowChange}},[t._v(t._s(t.isMapSetShow?"收起设置":"展开设置")+">")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:t.isMapSetShow,expression:"isMapSetShow"}],staticClass:"p2"},[o("base-form",{ref:"ruleForm",attrs:{data:t.formData,"is-inline":!1,"label-width":"80px"}},[o("div",{attrs:{slot:"footer"},slot:"footer"},[o("el-button",{staticClass:"xl-form-btn bgc2",on:{click:t.setHandle}},[t._v("设置")]),o("div",{staticClass:"scoped-select-center",on:{click:t.setCenterHandle}},[t._v("中心坐标"),o("div",{staticClass:"s"},[t._v(t._s(t.centerStr))])])],1)])],1)]),o("div",{staticClass:"sdb-add"},[o("div",{staticClass:"b t2",on:{click:function(e){return t.openMte("polygonAdd")}}},[t._v("添加多边形")]),o("div",{staticClass:"b t2",on:{click:function(e){return t.openMte("polylineAdd")}}},[t._v("添加折线")]),o("div",{staticClass:"b t2",on:{click:function(e){return t.openMte("textAdd")}}},[t._v("添加文字")]),o("div",{staticClass:"b t2",on:{click:function(e){return t.openImg()}}},[t._v("添加图标")])]),o("div",{staticClass:"sdb-add"},[o("div",{staticClass:"b t3",on:{click:function(e){return t.saveHandle()}}},[t._v("保 存")])]),t.polygons.length>0?o("div",{staticClass:"sdb-list"},[o("div",{staticClass:"label t2"},[t._v("多边形列表(选中:"+t._s(t.polygonIndex+1)+")")]),o("div",{staticClass:"ul"},t._l(t.polygons,(function(e,a){return o("div",{key:a,staticClass:"op"},[o("p",{staticClass:"p1",on:{click:function(o){return t.openMte("polygonAdd",{obj:e,index:a})}}},[t._v("("+t._s(a+1)+")"+t._s(e.text))]),o("p",{staticClass:"more"},[e.editable?o("span",{staticClass:"d d2",on:{click:function(o){return t.textAdd(e)}}},[t._v("标点")]):t._e(),e.editable?o("span",{staticClass:"d d1",on:{click:function(e){return t.mapIsEdit(a,"polygons")}}},[t._v("编辑")]):o("span",{staticClass:"d d3",on:{click:function(e){return t.mapIsEdit(a,"polygons")}}},[t._v("只读")]),o("span",{staticClass:"d d4",on:{click:function(e){return t.mapDel(a,"polygons")}}},[t._v("删除")])])])})),0)]):t._e(),t.polylines.length>0?o("div",{staticClass:"sdb-list"},[o("div",{staticClass:"label t2"},[t._v("折线列表(选中:"+t._s(t.polylineIndex+1)+")")]),o("div",{staticClass:"ul"},t._l(t.polylines,(function(e,a){return o("div",{key:a,staticClass:"op"},[o("p",{staticClass:"p1",on:{click:function(o){return t.openMte("polylineAdd",{obj:e,index:a})}}},[t._v("("+t._s(a+1)+")"+t._s(e.text))]),o("p",{staticClass:"more"},[e.editable?o("span",{staticClass:"d d1",on:{click:function(e){return t.mapIsEdit(a,"polylines")}}},[t._v("编辑")]):o("span",{staticClass:"d d3",on:{click:function(e){return t.mapIsEdit(a,"polylines")}}},[t._v("只读")]),o("span",{staticClass:"d d4",on:{click:function(e){return t.mapDel(a,"polylines")}}},[t._v("删除")])])])})),0)]):t._e(),t.markerData.length>0?o("div",{staticClass:"sdb-list"},[t.markerData[0].icon?o("div",{staticClass:"label t2"},[t._v("图标列表(选中:"+t._s(t.curMarkersIndex+1)+")")]):o("div",{staticClass:"label t2"},[t._v("文字列表(选中:"+t._s(t.curMarkersIndex+1)+")")]),o("div",{staticClass:"ul"},t._l(t.markerData,(function(e,a){return o("div",{key:a,staticClass:"op"},[e.icon?o("p",{staticClass:"p1",on:{click:function(o){return t.openImg({obj:e,index:a})}}},[t._v("("+t._s(a+1)+")"+t._s(e.text))]):o("p",{staticClass:"p1",on:{click:function(o){return t.openMte("textAdd",{obj:e,index:a})}}},[t._v("("+t._s(a+1)+")"+t._s(e.content||e.text))]),o("p",{staticClass:"more"},[e.draggable?o("span",{staticClass:"d d1",on:{click:function(e){return t.mapIsEdit(a,"markerData")}}},[t._v("编辑")]):o("span",{staticClass:"d d3",on:{click:function(e){return t.mapIsEdit(a,"markerData")}}},[t._v("只读")]),o("span",{staticClass:"d d4",on:{click:function(e){return t.mapDel(a,"markerData")}}},[t._v("删除")])])])})),0)]):t._e()]),o("el-amap",{staticClass:"amap-box",attrs:{vid:"amap-vue","amap-manager":t.amapManager,zoom:t.mapDiyObj.zoom,zooms:t.mapDiyObj.zooms,mapStyle:t.mapDiyObj.mapStyle,center:t.mapDiyObj.center,events:t.mapEvents,plugin:t.plugin}},[t.mapDiyObj.zoom>12?["1"===t.mapDiyObj.isSchoolShow?t._l(t.schoolList,(function(e,a){return o("el-amap-marker",{key:3e3+a,staticClass:"scoped-m-box",attrs:{icon:"https://img2.honglounews.com/20220110041435-6276.png",width:"20",height:"20",position:e.position,events:t.schoolEvents,title:e.school_name,label:{content:e.school_name,offset:[-10*e.school_name.length/2,-20]},extData:{id:e.id}}})})):t._e(),"1"===t.mapDiyObj.isEstateShow?t._l(t.estateList,(function(e,a){return o("el-amap-marker",{key:2e3+a,staticClass:"scoped-m-box",attrs:{icon:"https://img2.honglounews.com/20220110041411-6675.png",position:e.position,events:t.estateEvents,title:e.estate_name,label:{content:e.estate_name,offset:[-10*e.estate_name.length/2,-20]},extData:{id:e.id}}})})):t._e(),t._l(t.markerData,(function(e,a){return o("el-amap-marker",{key:9e3+a,attrs:{position:e.position,draggable:e.draggable,animation:e.animation,offset:e.offset,extData:{index:a},icon:e.icon,events:t.markersEvents}},[e.icon?t._e():o("div",{staticClass:"scoped-marker-text",style:"color: "+e.color},[t._v(t._s(e.content))])])}))]:["1"===t.mapDiyObj.isAreaShow?t._l(t.areaList,(function(e,a){return o("el-amap-marker",{key:4e3+a,staticClass:"scoped-m-box",attrs:{icon:"https://img2.honglounews.com/20220110041435-6276.png",position:e.position,events:t.areaEvents,offset:[-40,-40],extData:{areaName:e.areaName,areaType:e.area_type}}},[o("div",{staticClass:"scoped-marker-area"},[o("div",{staticClass:"p1"},[t._v(t._s(e.areaName))]),o("div",{staticClass:"p2"},[t._v("楼盘:"+t._s(e.estate_total))]),o("div",{staticClass:"p2"},[t._v("学校:"+t._s(e.school_total))])])])})):t._e()],t._l(t.polygons,(function(e,a){return o("el-amap-polygon",{key:a,attrs:{path:e.path,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,strokeColor:e.strokeColor,strokeWeight:e.strokeWeight,strokeOpacity:e.strokeOpacity,strokeStyle:e.strokeStyle,extData:{index:a},events:t.polygonEvents}})})),t._l(t.polylines,(function(e,a){return o("el-amap-polyline",{key:a,attrs:{editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,strokeColor:e.strokeColor,strokeWeight:e.strokeWeight,strokeOpacity:e.strokeOpacity,strokeStyle:e.strokeStyle,extData:{index:a},events:t.polylineEvents,path:e.path}})})),o("el-amap-info-window",{attrs:{position:t.winObj.position,content:t.winObj.content}})],2),o("MapTextEdit",{attrs:{isShow:t.isMteShow,mteStr:t.mteStr,curObj:t.mteObj},on:{close:t.closeMte}}),o("MapImgEdit",{attrs:{isShow:t.isImgShow,curObj:t.mteObj},on:{close:t.closeImg}})],1)},i=[],s=o("5530"),l=o("2909"),n=(o("e9c4"),o("99af"),o("d81d"),o("d3b7"),o("159b"),o("a9e3"),o("a434"),o("8f9b")),r=o("2efb"),c=o("2015"),p=o("ed08"),d=new n["AMapManager"],u={name:"map",components:{MapTextEdit:c["default"],MapImgEdit:r["default"]},mixins:mixins,data:function(){var t=this;return{isImgShow:!1,polylines:[],estateList:[],schoolList:[],medium_school_list:[],small_school_list:[],areaList:[],isDbShow:!0,isMapSetShow:!1,formData:[],isMteShow:!1,mapDiyObj:{center:[115.852386,28.684076],zoom:17,zooms:[15,19]},amapManager:d,winObj:{},polygons:[],markerData:[],mapEvents:{init:function(t){t.setFeatures(["road","bg","building"]),AMapUI.loadUI(["control/BasicControl"],(function(e){var o=new e.LayerSwitcher({baseLayers:[{id:"Satellite",enable:!0,name:"卫星图",layer:new AMap.TileLayer.Satellite},{id:"basic",enable:!1,name:"基础地图",layer:new AMap.TileLayer}],overlayLayers:[],position:{left:"230px",top:"2px"}});t.addControl(o)}))},zoomchange:function(e){var o=d.getMap();t.mapDiyObj.zoom=o.getZoom()||17},complete:function(){t.setCurFeatures(t.mapDiyObj.features)}},markersEvents:{dragend:function(e){var o=e.target.getExtData();t.curMarkersIndex=o.index;var a=e.lnglat,i=a.lng,s=a.lat,n=JSON.parse(JSON.stringify(t.markerData));n[t.curMarkersIndex].position=[i,s],t.markerData=Object(l["a"])(n)},click:function(e){var o=e.target.getExtData();t.curMarkersIndex=o.index}},polygonEvents:{click:function(e){var o=e.target.getExtData();t.polygonIndex=o.index;var a=e.lnglat;t.winObj.position=[a.lng,a.lat],t.winObj.content='\n