1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2be8cb0c"],{"0fd5":function(t,e,n){t.exports=n.p+"static/img/qx.1055abe1.svg"},"159b":function(t,e,n){var i=n("da84"),r=n("fdbc"),a=n("17c2"),o=n("9112");for(var c in r){var s=i[c],d=s&&s.prototype;if(d&&d.forEach!==a)try{o(d,"forEach",a)}catch(u){d.forEach=a}}},"17c2":function(t,e,n){"use strict";var i=n("b727").forEach,r=n("a640"),a=r("forEach");t.exports=a?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},"311d":function(t,e,n){"use strict";var i=n("5530"),r=n("1da1"),a=(n("96cf"),n("159b"),n("a9e3"),n("99af"),n("b0c0"),n("d3b7"),n("25f0"),n("d81d"),n("a15b"),n("fb6a"),n("bc3a"),n("95bb")),o=n.n(a),c=n("f710"),s=n.n(c);e["a"]={data:function(){return{icon1:n("0fd5"),icon2:n("b780"),icon3:n("9454"),img:n("c6c2"),map:null,time:!1,mapPolList:[],colorList:[["#99e","#F33"],["#ee6","#c38"],["#c38","#F33"],["#6E7","#F33"],["#6A7","#F33"],["#EF7","#F33"],["#AF7","#F33"],["#BAC","#F33"],["#BEF","#F33"],["#BBB","#F33"],["#EFA","#F33"],["#FE6","#F33"],["#7F6","#F33"],["#7dc","#F33"]],colorIndList:[-1,7,21,26,31,37,46,52,57,66,68,71,74,100],oldPopup:null,oldPopupId:null}},computed:{mapWidth:function(){return this.$refs.mapF.$el.offsetWidth/2+"px"},mapHeight:function(){return this.$refs.mapF.$el.offsetHeight/2-40+"px"}},mounted:function(){window.vue=this,window.jMap=null,window.jmapQuery=null},methods:{initMap:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var n,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return window.vue=t,window.jMap=null,window.jmapQuery=null,window.jMap=new o.a,n={camera:{x:121.4175597,y:31.119248,radius:18e3,offset:{heading:-4,pitch:-70,range:0}},map_complete_callback:function(){window.jmapQuery=new s.a(window.jMap)},map_left_click_callback:function(t,e,n){},map_right_click_callback:function(t){}},e.next=7,t.$axios.get("/atlas/encrypt");case 7:i=e.sent,window.jMap.createMap("mapF",i.data,window.location.origin,n,{}),window.jMap.switchBaseLayer("dark"),a={click:function(t){},isZoom:!1,style:{outline:!0,outlineColor:"red",height:5,width:5,label:{show:!0,text:"",font:"16px Helvetica",fillColor:"blue",pixelOffset:[0,-20],backgroundColor:"rgb(0,0,0)",showBackground:!1}}},window.jMap.addLayer("mh_dyn_district",[1],a),document.body.clientWidth>1940?new JMapQueryParam({queryMapService:"mh_dyn_district",queryMapLayers:[1],outFields:["code","name","center_x","center_y"],callBack:function(t){t.features.forEach(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,window.jMap.FlagInfo.show({id:e.attributes.code,position:{x:Number(e.attributes.center_x),y:Number(e.attributes.center_y),z:0},element:"<div class='ysc-dynamic-layer ys-css3-box' onclick=\"vue.clickFlag(".concat(e.attributes.code,')">\n <div class=\'biaozhu\' style="font-size:32px !important">').concat(e.attributes.name," ").concat(e.attributes.code,"</div>\n </div>")},{isZoom:!1});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}}):new JMapQueryParam({queryMapService:"mh_dyn_district",queryMapLayers:[1],outFields:["code","name","center_x","center_y"],callBack:function(t){t.features.forEach(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,window.jMap.FlagInfo.show({id:e.attributes.code,position:{x:Number(e.attributes.center_x),y:Number(e.attributes.center_y),z:0},element:"<div class='ysc-dynamic-layer ys-css3-box' onclick=\"vue.clickFlag(".concat(e.attributes.code,')">\n <div class=\'biaozhu\' style="font-size:18px !important">').concat(e.attributes.name," ").concat(e.attributes.code,"</div>\n </div>")},{isZoom:!1});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}});case 13:case"end":return e.stop()}}),e)})))()},clickFlag:function(t){},randomColor:function(){for(var t="#",e=0;e<6;e++)t+=parseInt(16*Math.random()).toString(16);return t},deleteMarker:function(t){this.map.remove(t)},addMarker:function(t,e){var n=this,i="";if("selfManagement"==e)t=t[0];var r=t.map((function(t,r){if(i="selfManagement"==e?"火灾"==t.ajlx?n.icon3:"抢险救援"==t.ajlx?n.icon1:(t.ajlx,n.icon2):"单位"===t.waterAdministrative?n.icon1:"市政"===t.waterAdministrative?n.icon2:"社区"===t.waterAdministrative||"居民"===t.waterAdministrative?n.icon3:n.icon1,"selfManagement"==e||"water"==e){var a={id:r+1,attrbutes:t,position:{x:t.gisX,y:t.gisY,z:0},image:{url:i,width:240,height:240}};return a}var o={id:r+1,attrbutes:t,position:{x:t.gisBaiDuX,y:t.gisBaiDuY,z:0},image:{url:i,width:240,height:240}};return o}));window.jMap.Locate.pointLocate(r,{isZoom:!1,scaleByDistance:{minScaling:0,maxScaling:1,minDistance:1e3,maxDistance:3e4},click:function(t){"selfManagement"==e?n.$axios.get(n.$api.jqzhcz.one+"?"+n.$qs.stringify({id:t.attrbutes.id})).then((function(t){n.$store.commit("ajxq2nr",{ajxq2nr:t.data})})):n.elementInfo(value,e)}})},addMarkerAddress:function(t){var e=this,n=t.map((function(t,e){if(!t.addressId){var n=window.jMap.queryMphInfo(t.address)[t.address][0];return Object(i["a"])(Object(i["a"])({},t),{},{addressId:n.address_id,province:n.province,district:n.district,sub_district:n.sub_district,streetname:n.streetname,address:n.address,committee:n.committee})}}));n=n.reduce((function(t,e){return!t.some((function(t){return t.addressId===e.addressId}))&&t.push(e),t}),[]);for(var r=function(t){setTimeout((function(){window.jMap.locateMph(n.slice(100*t,100*(t+1)).map((function(t){return t.addressId})).join(),{isZoom:!1,scaleByDistance:{minScaling:0,maxScaling:1,minDistance:1e3,maxDistance:3e4},click:function(t){e.elementInfo(t,"fire")}})}),0)},a=0;a<Math.floor(n.length/100);a++)r(a)},leftBtnClick:function(){this.leftBtn=!this.leftBtn},rightBtnClick:function(){this.rightBtn=!this.rightBtn},elementInfo:function(t,e){this.img;t.ajbh||(t.ajbh="--"),t.tzsj||(t.tzsj="--"),t.bcxx||(t.bcxx="--"),t.ajlx||(t.ajlx="--"),t.afdz||(t.afdz="--"),t.zhongdui||(t.zhongdui="--"),t.ajzt||(t.ajzt="--"),t.dcsj||(t.dcsj="--"),t.cssj||(t.cssj="--"),t.kzsj||(t.kzsj="--"),t.xmsj||(t.xmsj="--"),t.fdsj||(t.fdsj="--"),t.streettown||(t.streettown="--");var n="";n="water"===e?'<div class="ysc-dynamic-layer ys-css3-box" onclick="vue.removePopup">\n <div class="tableTooltip mapTab">\n <div class="tableTitle">\n <div>'.concat(t.attrbutes.type,'</div>\n </div>\n <el-row class="tableContent">\n <div class="max">水源位置:').concat(t.attrbutes.address,"</div>\n <div>电话:").concat(t.attrbutes.phone,'</div>\n <div class="max">支队名称:').concat(t.attrbutes.detachmentName,"</div>\n <div>管辖机构:").concat(t.attrbutes.jurisdictionalAgency,"</div>\n <div>水源类型:").concat(t.attrbutes.type,"</div>\n <div>取水形式:").concat(t.attrbutes.getWaterType,"</div>\n <div>水源性质:").concat(t.attrbutes.waterAdministrative,"</div>\n <div>状态:").concat(1==t.attrbutes.status?"可用":"不可用","</div>\n <div>供水单位:").concat(t.attrbutes.waterUnit,"</div>\n </el-row>\n </div>\n </div>"):"fire"===e?'<div class="ysc-dynamic-layer ys-css3-box" >\n <div class="tableTooltip mapTab">\n <div class="tableTitle">\n <div>'.concat("单位及执法情况",'</div>\n </div>\n <el-row class="tableContent">\n <div>单位地址:',"XX路135弄","</div>\n <div>法人:","张三","</div>\n <div>管理人:","李四","</div>\n <div>历史检查次数:<a>","6次",'</a></div>\n <div class="divTitle">行政许可记录</div>\n <div>审核时间:',"2021-06-26","</div>\n <div>验收时间:","2021-06-26","</div>\n <div>安检时间:","2021-06-26","</div>\n <div>历史隐患数:","2处",'</div>\n <div class="divTitle">历史处罚情况</div>\n <div>历史火灾数:',"2","</div>\n <div>单位自主管理情况:<a>点击查看</a></div>\n </el-row>\n </div>\n </div>"):"",this.addMarkerInfo(n,t,e)},addMarkerInfo:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.oldPopup&&e.id===this.oldPopup.id)return window.jMap.Popup.hide(),this.oldPopup=null;window.jMap.Popup.show({id:e.id,position:{x:e.gisX,y:e.gisY},element:t},{isZoom:!1,offset:[0,-40]}),i||(window.jMap.goTo({x:Number(e.wgs84position.x),y:Number(e.wgs84position.y),radius:1e3},{duration:3,offset:{heading:-4,pitch:-70,range:0}}),window.jMap.Buffer.generate({geometry:[{position:[{x:Number(e.wgs84position.x),y:Number(e.wgs84position.y)}],type:"point"}],distance:1e3},{callBack:function(t){for(var e in t)var n={id:e,position:CoordUtil.arrayToJson(t[e].rings[0])};window.jMap.Locate.regionLocate(n,{style:{color:"rgba(235, 98, 98, .1)",transparency:.3}})}})),this.oldPopup=e},removePopup:function(t){document.getElementsByClassName("ys-css3-container")[0].remove()}}}},"4de4":function(t,e,n){"use strict";var i=n("23e7"),r=n("b727").filter,a=n("1dde"),o=a("filter");i({target:"Array",proto:!0,forced:!o},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n("b64b"),n("a4d3"),n("4de4"),n("e439"),n("159b"),n("dbb4");var i=n("ade3");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var i=n("1d80"),r=n("5899"),a="["+r+"]",o=RegExp("^"+a+a+"*"),c=RegExp(a+a+"*$"),s=function(t){return function(e){var n=String(i(e));return 1&t&&(n=n.replace(o,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},9454:function(t,e,n){t.exports=n.p+"static/img/hz.6942192a.svg"},"99af":function(t,e,n){"use strict";var i=n("23e7"),r=n("d039"),a=n("e8b5"),o=n("861d"),c=n("7b0b"),s=n("50c4"),d=n("8418"),u=n("65f0"),f=n("1dde"),l=n("b622"),p=n("2d00"),v=l("isConcatSpreadable"),b=9007199254740991,m="Maximum allowed index exceeded",h=p>=51||!r((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),g=f("concat"),w=function(t){if(!o(t))return!1;var e=t[v];return void 0!==e?!!e:a(t)},y=!h||!g;i({target:"Array",proto:!0,forced:y},{concat:function(t){var e,n,i,r,a,o=c(this),f=u(o,0),l=0;for(e=-1,i=arguments.length;e<i;e++)if(a=-1===e?o:arguments[e],w(a)){if(r=s(a.length),l+r>b)throw TypeError(m);for(n=0;n<r;n++,l++)n in a&&d(f,l,a[n])}else{if(l>=b)throw TypeError(m);d(f,l++,a)}return f.length=l,f}})},a15b:function(t,e,n){"use strict";var i=n("23e7"),r=n("44ad"),a=n("fc6a"),o=n("a640"),c=[].join,s=r!=Object,d=o("join",",");i({target:"Array",proto:!0,forced:s||!d},{join:function(t){return c.call(a(this),void 0===t?",":t)}})},a640:function(t,e,n){"use strict";var i=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){throw 1},1)}))}},a9e3:function(t,e,n){"use strict";var i=n("83ab"),r=n("da84"),a=n("94ca"),o=n("6eeb"),c=n("5135"),s=n("c6b6"),d=n("7156"),u=n("c04e"),f=n("d039"),l=n("7c73"),p=n("241c").f,v=n("06cf").f,b=n("9bf2").f,m=n("58a8").trim,h="Number",g=r[h],w=g.prototype,y=s(l(w))==h,j=function(t){var e,n,i,r,a,o,c,s,d=u(t,!1);if("string"==typeof d&&d.length>2)if(d=m(d),e=d.charCodeAt(0),43===e||45===e){if(n=d.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(d.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+d}for(a=d.slice(2),o=a.length,c=0;c<o;c++)if(s=a.charCodeAt(c),s<48||s>r)return NaN;return parseInt(a,i)}return+d};if(a(h,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var x,M=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof M&&(y?f((function(){w.valueOf.call(n)})):s(n)!=h)?d(new g(j(e)),n,M):j(e)},k=i?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),F=0;k.length>F;F++)c(g,x=k[F])&&!c(M,x)&&b(M,x,v(g,x));M.prototype=w,w.constructor=M,o(r,h,M)}},ade3:function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return i}))},b64b:function(t,e,n){var i=n("23e7"),r=n("7b0b"),a=n("df75"),o=n("d039"),c=o((function(){a(1)}));i({target:"Object",stat:!0,forced:c},{keys:function(t){return a(r(t))}})},b780:function(t,e,n){t.exports=n.p+"static/img/jy.09c53660.svg"},dbb4:function(t,e,n){var i=n("23e7"),r=n("83ab"),a=n("56ef"),o=n("fc6a"),c=n("06cf"),s=n("8418");i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){var e,n,i=o(t),r=c.f,d=a(i),u={},f=0;while(d.length>f)n=r(i,e=d[f++]),void 0!==n&&s(u,e,n);return u}})},e439:function(t,e,n){var i=n("23e7"),r=n("d039"),a=n("fc6a"),o=n("06cf").f,c=n("83ab"),s=r((function(){o(1)})),d=!c||s;i({target:"Object",stat:!0,forced:d,sham:!c},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})}}]);
|