chunk-commons.efc2f5d6.js 55 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-commons"],{"04fb7":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"btm-box"},[n("img",{staticClass:"light",attrs:{src:a("cd55")}}),n("div",{staticClass:"btm-left",class:t.btmTipIndent},[t._m(0),t._m(1),t._m(2),t._m(3),t._m(4),t._m(5),n("div",{staticClass:"btm-legend",on:{click:t.btmIndent}},[n("span",[t._v("图例")]),"btm-tip-to-right"!==this.btmTipIndent?n("i",{staticClass:"el-icon-caret-right"}):t._e(),"btm-tip-to-right"==this.btmTipIndent?n("i",{staticClass:"el-icon-caret-left"}):t._e()])]),n("div",{staticClass:"bottom-menu-normal"},t._l(t.fastMenu,(function(e,a){return n("div",{key:a,staticClass:"btm-m-con",on:{click:function(a){return a.stopPropagation(),t.showDialog(e.click)}}},[n("a",[n("i",{class:e.icon}),t._v(t._s(e.name)+" "),t.showChild&&"layerSwitching"==e.click?n("div",{staticClass:"nav-child"},[n("el-button",{staticClass:"nav-child-btn",attrs:{type:"primary",plain:""},on:{click:function(e){return e.stopPropagation(),t.choseLayerSwitching("http://121.37.83.100:8090/iserver/services/map-sipingshi/rest/maps/tiedong_lunkuo")}}},[t._v("铁东")]),n("el-button",{staticClass:"nav-child-btn",attrs:{type:"primary",plain:""},on:{click:function(e){return e.stopPropagation(),t.choseLayerSwitching("http://121.37.83.100:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo")}}},[t._v("铁西")])],1):t._e()])])})),0),n("div",{staticClass:"btm-right"},[n("el-badge",{attrs:{value:12}},[n("el-button",{attrs:{size:"small",icon:"el-icon-bank-card"}},[t._v("任务")])],1),n("el-badge",{attrs:{value:3}},[n("el-button",{attrs:{size:"small",icon:"el-icon-chat-line-round"}},[t._v("消息")])],1),n("el-badge",{attrs:{value:1,type:"primary"}},[n("el-button",{attrs:{size:"small",icon:"el-icon-bell"}},[t._v("警报")])],1),n("el-badge",{attrs:{type:"warning"}},[n("el-button",{attrs:{size:"small",icon:"el-icon-refresh-right"}},[t._v("刷新")])],1)],1)])},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"btm-left-tip"},[a("div",{staticClass:"btm-left-block btm-left-state-c1"}),t._v("新上报 ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"btm-left-tip"},[a("div",{staticClass:"btm-left-block btm-left-state-c2"}),t._v("催办 ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"btm-left-tip"},[a("div",{staticClass:"btm-left-block btm-left-state-c3"}),t._v("已签收 ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"btm-left-tip"},[a("div",{staticClass:"btm-left-block btm-left-state-c4"}),t._v("联动 ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"btm-left-tip"},[a("div",{staticClass:"btm-left-block btm-left-state-c5"}),t._v("办结 ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"btm-left-tip"},[a("div",{staticClass:"btm-left-block btm-left-state-c6"}),t._v("填报 ")])}],s={data:function(){return{btmTipIndent:"",eventLocationVisible:!1,showChild:!1,fastMenu:[{name:"事件定位",icon:"iconfont sj-icon-sjdw",click:"eventLocation"},{name:"图层切换",icon:"iconfont sj-icon-tcqh",click:"layerSwitching"},{name:"测量工具",icon:"iconfont sj-icon-clgj",click:"editableLayers"},{name:"林班",icon:"iconfont sj-icon-lbzy",click:""},{name:"林场",icon:"iconfont sj-icon-lczy",click:""},{name:"电视墙",icon:"el-icon-s-grid",click:"TVWall"}]}},methods:{showDialog:function(t){window.showDialog(t)},choseLayerSwitching:function(t){window.choseLayerSwitching(t)},btmIndent:function(){""==this.btmTipIndent?this.btmTipIndent="btm-tip-to-right":"btm-tip-to-right"==this.btmTipIndent&&(this.btmTipIndent="")}}},o=s,l=(a("a6b8"),a("2877")),r=Object(l["a"])(o,n,i,!1,null,"fbba8278",null);e["a"]=r.exports},1625:function(t,e,a){},"1dfe":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header"},[n("Clock"),n("a",{staticClass:"title",attrs:{href:"/integrated/index"}},[n("h3",[n("img",{staticClass:"logo",attrs:{src:a("5fc6")}}),t._v("通榆县乡村振兴监管平台 "+t._s(t.titlename)+" ")])]),n("div",{staticClass:"bignav"},[n("img",{attrs:{src:a("2f41")}}),t._l(t.navbar,(function(e,a){return n("router-link",{key:a+"1",staticClass:"bignav-list",attrs:{to:e.path,exact:""}},[n("a",[t._v(t._s(e.meta.title))])])})),n("img",{attrs:{src:a("21cc")}})],2),n("VfastMenu")],1)},i=[],s=(a("fb6a"),a("a18c")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"header-left"},[a("div",{staticClass:"date"},[a("div",{staticClass:"day m-r-10"},[a("span",[t._v(t._s(t.today))]),a("span",[t._v(t._s(t.time))])]),a("div",{staticClass:"week m-r-10"},[t._v(t._s(t.weekC))])])])},l=[],r=new Date,c=r.getMonth()<9?"0"+(r.getMonth()+1):r.getMonth()+1,d=r.getDate()<=9?"0"+r.getDate():r.getDate(),u=r.getDay(),p=new Array("周日","周一","周二","周三","周四","周五","周六"),v=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"),m={created:function(){},data:function(){return{today:r.getFullYear()+"."+c+"."+d,weekE:v[u].toUpperCase(),weekC:p[u],time:r.toTimeString().substring(0,8),weatherInfo:{weather:"阴",wind:"东北风",fireTit:"火险等级",fireLevel:"一级"}}},mounted:function(){this.init()},methods:{init:function(){var t=this;this.interval=setInterval((function(){var e=new Date,a=e.getMonth()<9?"0"+(e.getMonth()+1):e.getMonth()+1,n=e.getDate()<=9?"0"+e.getDate():e.getDate(),i=e.getDay(),s=new Array("周日","周一","周二","周三","周四","周五","周六"),o=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");t.today=e.getFullYear()+"."+a+"."+n,t.weekC=s[i],t.weekE=o[i].toUpperCase(),t.time=e.toTimeString().substring(0,8)}),1e3)}},beforeDestroy:function(){clearInterval(this.interval)}},h=m,g=(a("d84b"),a("2877")),f=Object(g["a"])(h,o,l,!1,null,"6e5978a6",null),b=f.exports,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fast-menu"},[n("div",{staticClass:"menu-list"},[n("el-popover",{attrs:{placement:"top-start",trigger:"hover",width:"300px"}},[n("div",{staticClass:"user-tip"},[n("div",{staticClass:"u-tip-1"},[n("img",{attrs:{src:a("f4f6")}}),n("div",{staticClass:"user-info"},[n("div",{staticClass:"user-name"},[n("h2",[t._v("张三")]),n("span",[t._v("某某部门")])]),n("div",{staticClass:"phone-number"},[t._v("18686688888")])])]),n("div",{staticStyle:{"margin-bottom":"1rem"}},[n("el-button",{attrs:{type:"primary",size:"small"}},[t._v("修改密码")]),n("el-button",{attrs:{type:"warning",size:"small"}},[t._v("退出登录")])],1),n("a",{staticStyle:{"border-top":"1px solid #334780"},attrs:{href:"#"}},[n("i",{staticClass:"el-icon-s-home"}),t._v("返回首页")]),n("a",{attrs:{href:"#"}},[n("i",{staticClass:"el-icon-monitor"}),t._v("管理系统")])]),n("div",{staticStyle:{"text-align":"center",width:"4rem",height:"3rem"},attrs:{slot:"reference"},slot:"reference"},[n("img",{attrs:{src:a("6121")}})])])],1)])},w=[],L={data:function(){return{visible:!1}},methods:{backToMainPage:function(){var t=window.location.href,e=(t.substr(0,t.indexOf("://")+3),t.lastIndexOf(":")>6?t.lastIndexOf(":"):t.lastIndexOf("/")),a=(t.substr(t.indexOf("://")+3,e),t.substr(0,e)),n=a+":15001/index58";window.location.href=n}},computed:{}},C=L,_=(a("b611"),Object(g["a"])(C,y,w,!1,null,null,null)),k=_.exports,S={components:{VfastMenu:k,Clock:b},created:function(){this.navbar},data:function(){return{}},methods:{},computed:{titlename:function(){return this.$route.meta.title},navbar:function(){return s["a"].slice(1)}}},T=S,P=(a("62cc"),Object(g["a"])(T,n,i,!1,null,"5f5e165c",null));e["a"]=P.exports},"2f6e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"map",staticStyle:{width:"100%",height:"100%",background:"none"},attrs:{id:t.mapDivId}},[t.dynamicPlotting?a("div",{staticClass:"panel panel-primary",staticStyle:{position:"absolute","z-index":"9999","border-radius":"4px",width:"30vh",height:"40vh","overflow-y":"auto"},attrs:{id:"toolbar"}},[t._m(0),a("div",{staticClass:"panel-body content",attrs:{id:"panelbodycontent"}},[a("div",{staticClass:"button-group",attrs:{align:"right"}},[a("el-button",{attrs:{type:"success"},on:{click:t.PlottingDrawCancel}},[t._v("取消标绘")]),t._v(" "),a("el-button",{attrs:{type:"success"},on:{click:t.clearLayers}},[t._v("清空标绘")])],1)]),t._m(1)]):t._e()])},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"panel-heading",attrs:{id:"panelheading"}},[a("h5",{staticClass:"panel-title text-center",staticStyle:{color:"#ffffff","font-size":"16px"}},[t._v("鼠标标绘")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"plottingPanel"}},[a("div",{staticClass:"easyui-panel"},[a("div",{staticClass:"easyui-tabs"},[a("div",{staticStyle:{width:"20vh",height:"30vh","overflow-y":"auto"},attrs:{id:"plotPanel"}},[t._v("标绘面板")])])])])}],s=a("c7eb"),o=a("1da1"),l=(a("d81d"),a("b680"),a("450c")),r=a("860d"),c={name:"sookaSuperMap",data:function(){return{plottingdrawControl:null,plottingLayer:null,mapDivId:"",map:null,layers:[],isAggregationLayers:[],radiusLayers:[],myGroup:[],isAggregationMyGroup:[],polygon:null,connectLayer:[],connectLayerTwo:[],graphicsLayer:[],latLngLayers:[],latLngGroup:[],isEditableLayers:!1,drawControl:null,deckglLayer:null}},watch:{isEditableLayers:{handler:function(t,e){if(t){var a=new window.L.FeatureGroup;this.map.addLayer(a);var n={position:"topleft",draw:{polyline:{},polygon:{},circle:{},rectangle:{},marker:{},remove:{}},edit:{featureGroup:a,remove:!0}};this.drawControl=new window.L.Control.Draw(n),this.map.addControl(this.drawControl),this.map.on(window.L.Draw.Event.CREATED,(function(t){var e=t.layer,n=t.layerType;if(e.on("dblclick",(function(t){if("polygon"===n||"rectangle"===n){var a=e.getLatLngs()[0],i=window.L.GeometryUtil.geodesicArea(a),s=(i/1e6).toFixed(2)+"k㎡";r["a"].msg(s)}else if("polyline"===n){for(var o=e.getLatLngs(),l=0,c=0;c<o.length-1;c++){var d=o[c],u=o[c+1];l+=window.L.latLng([d.lat,d.lng]).distanceTo([u.lat,u.lng])}r["a"].msg((l/1e3).toFixed(2)+"km")}})),"marker"===n){var i=new window.L.Icon({iconUrl:l["b"]["marker"],iconSize:[48,48],iconAnchor:[24,40],popupAnchor:[-3,-40],shadowSize:[41,41]});e.options.icon=i}a.addLayer(e)}))}else this.map.removeControl(this.drawControl)}}},mounted:function(){this.initMap(),window.L.drawLocal.draw.toolbar={actions:{title:"取消绘图",text:"取消"},finish:{title:"完成绘图",text:"完成"},undo:{title:"删除最后绘制的点",text:"删除最后一个点"},buttons:{polyline:"绘制折线",polygon:"绘制多边形",rectangle:"绘制矩形",circle:"绘制圆圈",marker:"绘制标记",circlemarker:"绘制圆圈标记"}},window.L.drawLocal.draw.handlers={circle:{tooltip:{start:"单击并拖动以绘制圆形"},radius:"半径"},circlemarker:{tooltip:{start:"点击地图放置圆圈标记"}},marker:{tooltip:{start:"点击地图放置标记"}},polygon:{tooltip:{start:"点击开始绘制形状",cont:"点击继续绘制形状",end:"单击第一个点以关闭此形状"}},polyline:{error:"<strong>Error:</strong> shape edges cannot cross!",tooltip:{start:"点击开始画线",cont:"点击继续画线",end:"单击最后一点以完成线"}},rectangle:{tooltip:{start:"单击并拖动以绘制矩形"}},simpleshape:{tooltip:{end:"释放鼠标完成绘图"}}},window.L.drawLocal.edit={toolbar:{actions:{save:{title:"保存更改",text:"保存"},cancel:{title:"取消编辑,放弃所有更改",text:"取消"},clearAll:{title:"清除所有图层",text:"清除所有"}},buttons:{edit:"编辑图层",editDisabled:"没有可编辑的图层",remove:"删除图层",removeDisabled:"没有可删除的图层"}},handlers:{edit:{tooltip:{text:"拖动手柄或标记以编辑要素",subtext:"单击取消以撤消更改"}},remove:{tooltip:{text:"单击要删除的功能"}}}}},props:{mapDiv:null,codes:null,mapSite:{},dynamicPlotting:!1,isSideBySide:null,showLatLng:null,showAreaLatLng:null,showLineLatLng:null},methods:{clearM:function(){var t=Object(o["a"])(Object(s["a"])().mark((function t(e){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e?(void 0!=this.isAggregationMyGroup&&0!=this.isAggregationMyGroup&&this.isAggregationMyGroup.clearLayers(),this.map.removeLayer(this.isAggregationLayers),this.isAggregationLayers=[],this.radiusLayers=[],this.isAggregationLayers=window.L.markerClusterGroup({showCoverageOnHover:!0,zoomToBoundsOnClick:!0,animateAddingMarkers:!0,spiderfyOnMaxZoom:!0})):(void 0!=this.myGroup&&0!=this.myGroup&&this.myGroup.clearLayers(),this.layers=[]);case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),clearC:function(){var t=Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:void 0!=this.connectLayer&&0!=this.connectLayer&&this.connectLayer.clearLayers(),this.connectLayer=[];case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),clearCTwo:function(){var t=Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:void 0!=this.connectLayerTwo&&0!=this.connectLayerTwo&&this.connectLayerTwo.clearLayers(),this.connectLayerTwo=[];case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),clearG:function(){var t=Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:void 0!=this.graphicsLayer&&0!=this.graphicsLayer&&this.graphicsLayer.clearLayers(),this.graphicsLayer=[];case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),clearP:function(){var t=Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:void 0!=this.latLngGroup&&0!=this.latLngGroup&&this.latLngGroup.clearLayers(),this.latLngLayers=[];case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),initMap:function(){var t=this,e=this;this.mapDivId=this.mapDiv;var a=this.mapSite,n=this.isSideBySide,i=this.dynamicPlotting;if(e.isAggregationLayers=window.L.markerClusterGroup({showCoverageOnHover:!0,zoomToBoundsOnClick:!0,animateAddingMarkers:!0,spiderfyOnMaxZoom:!0}),n){if(2!=this.codes.length)return void r["a"].msgError("请输入两个地图code!");Object(l["a"])(this.codes).then((function(n){var i=n.data;if(null!=i&&2==i.length){var s=i[0].url,o=i[1].url,r=i[0].centerLat,c=i[0].centerLng,d=i[0].zoom,u=i[0].maxZoom,p=i[0].minZoom,v=null==i[0].zoomControl||i[0].zoomControl,m=null==i[0].attributionControl||i[0].attributionControl,h=null!=i[0].logoControl&&i[0].logoControl,g=null==i[0].dragging||i[0].dragging,f={crs:window.L.CRS.EPSG4326,center:[r,c],maxZoom:u,minZoom:p,zoom:d,editable:!0,zoomControl:v,attributionControl:m,dragging:g,logoControl:h},b=Object.assign(f,a);if(t.map=window.L.map(t.mapDiv,b),void 0!=t.showLatLng){var y=new window.L.Icon({iconUrl:l["b"]["marker"],iconSize:[48,48],iconAnchor:[24,40],popupAnchor:[-3,-40],shadowSize:[41,41]});t.map.on("dblclick",(function(t){e.clearP(),e.showLatLng(t.latlng.lat,t.latlng.lng);var a=window.L.marker([t.latlng.lat,t.latlng.lng],{icon:y}).addTo(this.map);e.latLngLayers.push(a),e.latLngGroup=window.L.layerGroup(e.latLngLayers),this.map.addLayer(e.latLngGroup)}))}if(void 0!=t.showAreaLatLng){var w=new window.L.FeatureGroup;t.map.addLayer(w);var C={position:"topleft",draw:{polyline:null,polygon:{},circle:null,rectangle:null,circlemarker:null,marker:null,remove:{}},edit:{featureGroup:w,remove:!0}},_=new window.L.Control.Draw(C);t.map.addControl(_),t.map.on(window.L.Draw.Event.CREATED,(function(t){var a=t.layer,n=t.layerType;a.on("dblclick",(function(t){if("polygon"===n||"rectangle"===n){var i=a.getLatLngs()[0];e.showAreaLatLng(i)}})),w.addLayer(a)}))}if(void 0!=t.showLineLatLng){w=new window.L.FeatureGroup;t.map.addLayer(w);var k={position:"topleft",draw:{polyline:{},polygon:null,circle:null,rectangle:null,circlemarker:null,marker:null,remove:{}},edit:{featureGroup:w,remove:!0}};_=new window.L.Control.Draw(k);t.map.addControl(_),t.map.on(window.L.Draw.Event.CREATED,(function(t){var a=t.layer,n=t.layerType;a.on("dblclick",(function(t){if("polyline"===n){var i=a.getLatLngs();e.showLineLatLng(i)}})),w.addLayer(a)}))}var S=window.L.supermap.tiledMapLayer(s).addTo(t.map),T=window.L.supermap.tiledMapLayer(o).addTo(t.map);L.control.sideBySide(S,T).addTo(t.map)}}))}else{if(1!=this.codes.length)return void r["a"].msgError("请输入一个地图code!");Object(l["a"])(this.codes).then((function(n){var s=n.data;if(null!=s&&s.length>0){var o=s[0].url,r=s[0].centerLat,c=s[0].centerLng,d=s[0].zoom,u=s[0].maxZoom,p=s[0].minZoom,v=null==s[0].zoomControl||s[0].zoomControl,m=null==s[0].attributionControl||s[0].attributionControl,h=null!=s[0].logoControl&&s[0].logoControl,g=null==s[0].dragging||s[0].dragging,f={crs:window.L.CRS.EPSG4326,center:[r,c],maxZoom:u,minZoom:p,zoom:d,editable:!0,zoomControl:v,attributionControl:m,dragging:g,logoControl:h},b=Object.assign(f,a);if(t.map=window.L.map(t.mapDiv,b),void 0!=t.showLatLng){var y=new window.L.Icon({iconUrl:l["b"]["marker"],iconSize:[48,48],iconAnchor:[24,40],popupAnchor:[-3,-40],shadowSize:[41,41]});t.map.on("dblclick",(function(t){e.clearP(),e.showLatLng(t.latlng.lat,t.latlng.lng);var a=window.L.marker([t.latlng.lat,t.latlng.lng],{icon:y}).addTo(this.map);e.latLngLayers.push(a),e.latLngGroup=window.L.layerGroup(e.latLngLayers),this.map.addLayer(e.latLngGroup)}))}if(void 0!=t.showAreaLatLng){var w=new window.L.FeatureGroup;t.map.addLayer(w);var L={position:"topleft",draw:{polyline:null,polygon:{},circle:null,rectangle:null,circlemarker:null,marker:null,remove:{}},edit:{featureGroup:w,remove:!0}},C=new window.L.Control.Draw(L);t.map.addControl(C),t.map.on(window.L.Draw.Event.CREATED,(function(t){var a=t.layer,n=t.layerType;a.on("dblclick",(function(t){if("polygon"===n||"rectangle"===n){var i=a.getLatLngs()[0];e.showAreaLatLng(i)}})),w.addLayer(a)}))}if(void 0!=t.showLineLatLng){w=new window.L.FeatureGroup;t.map.addLayer(w);var _={position:"topleft",draw:{polyline:{},polygon:null,circle:null,rectangle:null,circlemarker:null,marker:null,remove:{}},edit:{featureGroup:w,remove:!0}};C=new window.L.Control.Draw(_);t.map.addControl(C),t.map.on(window.L.Draw.Event.CREATED,(function(t){var a=t.layer,n=t.layerType;a.on("dblclick",(function(t){if("polyline"===n){var i=a.getLatLngs();e.showLineLatLng(i)}})),w.addLayer(a)}))}if(window.L.supermap.tiledMapLayer(o).addTo(t.map),i){var k="https://iserver.supermap.io",S=k+"/iserver/services/plot-jingyong/rest/plot/";t.plottingLayer=window.L.supermap.plotting.plottingLayer("plot",S),t.plottingLayer.spatialAnalystUrl=k+"/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst",t.plottingLayer.addTo(t.map),t.plottingdrawControl=window.L.supermap.plotting.drawControl(t.plottingLayer),t.plottingdrawControl.addTo(t.map);var T=window.L.supermap.plotting.editControl();T.addTo(t.map),window.L.supermap.plotting.initPlotPanel("plotPanel",S,t.plottingdrawControl)}}}))}},formatArea:function(t){var e=window.L.GeometryUtil.geodesicArea(t),a=(e/1e6).toFixed(2)+"k㎡";return a},formatLength:function(t){for(var e=0,a=0;a<t.length-1;a++){var n=t[a],i=t[a+1];e+=window.L.latLng([n.lat,n.lng]).distanceTo([i.lat,i.lng])}return(e/1e3).toFixed(2)+"km"},setMarkers:function(t){for(var e=this,a=this,n=function(n){var i=null!=t[n].isAggregation&&t[n].isAggregation,s=1!=i&&t[n].keepBindPopup,o=new window.L.Icon({iconUrl:l["b"][t[n].icon],iconSize:[48,48],iconAnchor:[24,40],popupAnchor:[-3,-40],shadowSize:[41,41]}),r=window.L.marker([t[n].lat,t[n].lng],{icon:o}).addTo(e.map);if(null!=t[n].bindPopupHtml&&""!==t[n].bindPopupHtml){var c=t[n].bindPopupHtml;s?r.bindPopup(c,{autoClose:!1,closeOnClick:null,closeButton:!1}).openPopup(r.getLatLng()):r.on("mouseover",(function(){var e=t[n].bindPopupHtml;this.bindPopup(e).openPopup(this.getLatLng())})).on("mouseout",(function(){this.closePopup()}))}null!=t[n].click&&""!==t[n].click&&(null!=t[n].parameter&&""!==t[n].parameter?r.on("click",(function(){var e=t[n].click;a.$emit(e,t[n].parameter)})):r.on("click",(function(){var e=t[n].click;a.$emit(e)}))),i?(a.isAggregationLayers.addLayer(r),a.isAggregationMyGroup=window.L.layerGroup(a.isAggregationLayers),e.map.addLayer(a.isAggregationLayers)):(a.layers.push(r),a.myGroup=window.L.layerGroup(a.layers),e.map.addLayer(a.myGroup))},i=0;i<t.length;i++)n(i)},setMarkersRadius:function(t){for(var e=this,a=this,n=function(n){var i=null!=t[n].isAggregation&&t[n].isAggregation,s=1!=i&&t[n].keepBindPopup;a.polygon=window.L.circle([t[n].lat,t[n].lng],{radius:1e3*t[n].radius});var o=new window.L.Icon({iconUrl:l["b"][t[n].icon],iconSize:[48,48],iconAnchor:[24,40],popupAnchor:[-3,-40],shadowSize:[41,41]}),r=window.L.marker([t[n].lat,t[n].lng],{icon:o});if(null!=t[n].bindPopupHtml&&""!==t[n].bindPopupHtml){var c=t[n].bindPopupHtml;s?r.bindPopup(c,{autoClose:!1,closeOnClick:null,closeButton:!1}).openPopup(r.getLatLng()):r.on("mouseover",(function(){var e=t[n].bindPopupHtml;this.bindPopup(e).openPopup(this.getLatLng())})).on("mouseout",(function(){this.closePopup()}))}null!=t[n].click&&""!=t[n].click&&(null!=t[n].parameter&&""!==t[n].parameter?r.on("click",(function(){var e=t[n].click;a.$emit(e,t[n].parameter)})):r.on("click",(function(){var e=t[n].click;a.$emit(e)}))),r.addTo(e.map),i?(a.isAggregationLayers.addLayer(r),a.radiusLayers.push(a.polygon),e.map.addLayer(a.isAggregationLayers),a.isAggregationMyGroup=window.L.layerGroup(a.radiusLayers),e.map.addLayer(a.isAggregationMyGroup)):(a.layers.push(r),a.layers.push(a.polygon),a.myGroup=window.L.layerGroup(a.layers),e.map.addLayer(a.myGroup))},i=0;i<t.length;i++)n(i)},setConnectList:function(t,e){for(var a=this,n=[],i=0;i<t.length;i++)n.push([t[i].lat,t[i].lng]);var s=window.L.polyline(n,{color:e});void 0!=this.connectLayer&&0!=this.connectLayer||(a.connectLayer=window.L.featureGroup().addTo(this.map)),a.connectLayer.addLayer(s)},setConnectTwoList:function(t,e){for(var a=this,n=[],i=0;i<t.length;i++)n.push([t[i].lat,t[i].lng]);var s=window.L.polyline(n,{color:e});void 0!=this.connectLayerTwo&&0!=this.connectLayerTwo||(a.connectLayerTwo=window.L.featureGroup().addTo(this.map)),a.connectLayerTwo.addLayer(s)},setGraphicsList:function(t,e){for(var a=this,n=[],i=0;i<t.length;i++)n.push([t[i].lat,t[i].lng]);var s=window.L.polygon(n,{color:e});s.addTo(this.map),void 0!=this.graphicsLayer&&0!=this.graphicsLayer||(a.graphicsLayer=window.L.featureGroup().addTo(this.map)),a.graphicsLayer.addLayer(s)},dropLocation:function(t,e){var a=this;this.controlLevel(10),setTimeout((function(){a.map.panTo([t,e])}),500)},controlLevel:function(t){this.map.setZoom(t)},layerSwitching:function(t,e){e&&null!=this.deckglLayer&&this.deckglLayer.remove(),this.deckglLayer=window.L.supermap.tiledMapLayer(t,{}),this.map.addLayer(this.deckglLayer)},clearLayers:function(){this.plottingLayer.removeAllFeatures()},PlottingDrawCancel:function(){this.plottingdrawControl.handler.disable()}}},d=c,u=a("2877"),p=Object(u["a"])(d,n,i,!1,null,"2b4e51aa",null);e["a"]=p.exports},"506d":function(t,e,a){},"5c77":function(t,e,a){"use strict";a("e5e9")},"60e2":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.eventLocationVisible?n("el-dialog",{attrs:{title:"事件定位",visible:t.eventLocationVisible,width:"80%"},on:{"update:visible":function(e){t.eventLocationVisible=e},close:function(e){return t.cancelEventLocationShow()}}},[n("div",{staticClass:"event-info"},[n("div",{staticClass:"event-info-top"},[n("el-form",[n("div",{staticClass:"event-info-top-grp"},[n("el-input",{staticClass:"m-l-none",attrs:{placeholder:"输入经度",type:"number"},model:{value:t.longitude,callback:function(e){t.longitude=e},expression:"longitude"}}),n("el-input",{attrs:{placeholder:"输入纬度",type:"number"},model:{value:t.latitude,callback:function(e){t.latitude=e},expression:"latitude"}}),n("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(e){return t.getNearEvent()}}},[t._v("定位")])],1)])],1),n("div",{staticClass:"event-info-con"},[n("div",{staticClass:"e-location-left"},[n("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"事件",name:"event"}},[n("div",{staticClass:"forthis"},[n("div",{staticClass:"i-list-con overflow-y",staticStyle:{height:"50vh"}},t._l(t.eventList,(function(e,i){return n("div",{staticClass:"d-l-con d-evnet-list-con",on:{click:function(a){return t.dropLocation(e.latitude,e.longitude)}}},[null!=e.picturePath&&""!=e.picturePath?n("img",{staticClass:"event-list-img",attrs:{src:e.picturePath}}):n("img",{staticClass:"event-list-img",attrs:{src:a("c110")}}),n("div",{staticClass:"event-list-text"},[n("h3",[t._v(t._s(e.eventTitle))])])])})),0)])]),n("el-tab-pane",{attrs:{label:"探头",name:"monitor"}},[n("div",{staticClass:"forthis"},[n("div",{staticClass:"i-list-con overflow-y",staticStyle:{height:"50vh"}},t._l(t.cameraList,(function(e,a){return n("span",{on:{click:function(a){return t.dropLocation(e.latitude,e.longitude)}}},[n("div",{staticClass:"d-l-con",on:{click:function(t){}}},[n("div",{staticClass:"d-l-l-text"},[n("i",{staticClass:"iconfont sj-icon-jkzx icon-sxt"}),n("h4",[t._v(t._s(e.cameraName))])])])])})),0)])])],1)],1),n("div",{staticClass:"e-location-right",staticStyle:{height:"57.8vh"}},[n("eventLocationSupermap",{ref:"eventLocationSupermap",staticStyle:{width:"100%",height:"57.8vh"},attrs:{mapDiv:"eventLocationMap",mapSite:{doubleClickZoom:!1,zoom:8},codes:["9fa5"],isSideBySide:!1},on:{preview:t.preview,showEventInfo_notProcessed:t.showEventInfo_notProcessed,showEventInfo_Processed:t.showEventInfo_Processed}})],1)])])]):t._e(),n("div",{staticClass:"event-info"},[t.eventInfoVisible_notProcessed?n("el-dialog",{attrs:{title:"事件信息-未处理",visible:t.eventInfoVisible_notProcessed,width:"80%",hight:"1000px","append-to-body":""},on:{"update:visible":function(e){t.eventInfoVisible_notProcessed=e},close:function(e){return t.cancelEventShow()}}},[n("div",{staticStyle:{position:"absolute",right:"0",top:"60px",width:"40%"}},[n("el-steps",{attrs:{space:200,active:1,"finish-status":"success","align-center":""}},[n("el-step",{attrs:{title:"待处理"}}),n("el-step",{attrs:{title:"处理中"}}),n("el-step",{attrs:{title:"已办结"}}),n("el-step",{attrs:{title:"已归档"}})],1)],1),n("el-tabs",{attrs:{"before-leave":t.beforeLeave},on:{"tab-click":t.handleClickNotProcessed},model:{value:t.eventInfoVisibleActiveName,callback:function(e){t.eventInfoVisibleActiveName=e},expression:"eventInfoVisibleActiveName"}},[n("el-tab-pane",{attrs:{label:"基础信息",name:"info"}},[n("div",{staticClass:"event-info-con"},[n("div",{staticClass:"e-left"},[n("div",{staticClass:"forthis"},[n("div",{staticClass:"i-list-con h-35"},t._l(t.information,(function(e,a){return n("span",{key:a},[n("div",{staticClass:"d-l-con"},[n("div",{staticClass:"d-l-l-text"},[n("i",{staticClass:"i-small"}),n("h4",[t._v(t._s(e.name)+":")]),n("h4",[t._v(t._s(e.content))])])])])})),0)]),n("div",{staticClass:"forthis d-map h-30"},[n("div",{staticClass:"this-title"},[n("span",[t._v("涉事单位")])]),n("div",{staticClass:"i-list-con h-26"},t._l(t.listEventDept,(function(e,a){return n("span",{key:a},[n("div",{staticClass:"d-l-con"},[n("div",{staticClass:"d-l-l-text"},[n("i",{staticClass:"i-small"}),n("h4",[t._v(t._s(e.deptName))])]),n("div",{staticClass:"d-l-l-count",class:["未处理"==e.eventStatus?"state-wcl":"state-wyc"]},[t._v(t._s(e.eventStatus)+" ")])])])})),0)])]),n("div",{staticClass:"e-center"},[n("div",{staticClass:"forthis"},[n("div",{staticClass:"i-list-con h-35"},[""!=t.url?n("el-image",{staticClass:"img-company",staticStyle:{height:"100%"},attrs:{src:t.url,"preview-src-list":t.listEventPic}}):t._e()],1)]),n("div",{staticClass:"forthis h-30"},[n("div",{staticClass:"i-list-con h-26"},t._l(t.listEventPic,(function(e,a){return n("el-image",{staticStyle:{width:"3.9rem",height:"3rem",margin:"2px"},attrs:{src:e},on:{click:function(a){return t.switchImage(e)}}})})),1)])]),n("div",{staticClass:"e-right"},[n("div",{staticClass:"forthis h-67"},[n("div",{staticClass:"this-title"},[n("span",[t._v("处理过程")])]),n("div",{staticClass:"i-list-con"},[n("div",{staticClass:"this-con"},t._l(t.listLog,(function(e,i){return n("span",{key:i},["sys_messageType_1"==e.messageType?n("div",{staticClass:"z-begin"},[t._v(" "+t._s(e.logContent)+" ")]):t._e(),"sys_messageType_2"==e.messageType?n("div",{staticClass:"z-info-list"},[n("el-image",{staticStyle:{width:"3rem",height:"3rem",margin:"2px"},attrs:{src:a("344a")}}),n("div",{staticClass:"z-info-list-con"},[n("div",{staticClass:"user-and-time"},[n("span",[t._v(t._s(e.createBy))]),n("span",[t._v(" "+t._s(e.createTime))])]),n("div",{staticClass:"z-info"},[n("div",{staticClass:"this-con-list-info"},[t._v(" "+t._s(e.logContent)+" ")]),n("div",t._l(4,(function(e,a){return n("el-image",{staticStyle:{width:"6.5rem",height:"5rem",margin:"2px"},attrs:{src:t.url,"preview-src-list":t.srcList}})})),1)])])],1):t._e()])})),0)])])])]),n("div",{staticClass:"e-btm-btn"},[n("el-form",[n("el-form-item",[n("el-select",{staticClass:"m-r-1rem",attrs:{clearable:"",placeholder:"请选择部门"},on:{change:t.setValue},model:{value:t.deptName,callback:function(e){t.deptName=e},expression:"deptName"}},t._l(t.listoperateDept,(function(t){return n("el-option",{key:t.deptId,attrs:{label:t.deptName,value:{value:t.deptId,label:t.deptName},disabled:"未处理"!=t.eventStatus}})})),1),n("el-select",{staticClass:"m-r-1rem",attrs:{clearable:"",placeholder:"请选择状态"},on:{change:t.setXsYc},model:{value:t.eventStatus,callback:function(e){t.eventStatus=e},expression:"eventStatus"}},t._l(t.optionsNotProcessed,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),t.eventTypeShow?n("el-select",{staticClass:"m-r-1rem",attrs:{clearable:"",placeholder:"请选择事件"},model:{value:t.eventType,callback:function(e){t.eventType=e},expression:"eventType"}},t._l(t.listeventType,(function(t){return n("el-option",{key:t.id,attrs:{label:t.eventTypeName,value:t.eventType}})})),1):t._e(),n("el-button",{attrs:{type:"success"},on:{click:t.updateEventStatusNotProcessed}},[t._v("确定")])],1)],1)],1)]),n("el-tab-pane",{attrs:{label:"实时画面",name:"frame"}}),n("el-tab-pane",{attrs:{label:"地理位置",name:"point"}},[n("div",{staticClass:"info-button-group"},[n("button",[t._v("视频联动")]),n("button",{on:{click:function(e){return t.editableLayers("notProcessedSupermap")}}},[t._v("测量工具")])]),"point"===t.eventInfoVisibleActiveName?n("notProcessedSupermap",{ref:"notProcessedSupermap",staticStyle:{width:"100%",height:"75vh"},attrs:{mapDiv:"notProcessedSupermap",mapSite:{doubleClickZoom:!1},codes:["9fa5"],isSideBySide:!1},on:{preview:t.preview}}):t._e()],1)],1)],1):t._e(),t.eventInfoVisible_Processed?n("el-dialog",{attrs:{title:"事件信息-处理中",visible:t.eventInfoVisible_Processed,width:"80%",hight:"1000px","append-to-body":""},on:{"update:visible":function(e){t.eventInfoVisible_Processed=e},close:function(e){return t.cancelEventShow()}}},[n("div",{staticStyle:{position:"absolute",right:"0",top:"60px",width:"40%"}},[n("el-steps",{attrs:{space:200,active:t.zt,"finish-status":"success","align-center":""}},[n("el-step",{attrs:{title:"待处理"}}),n("el-step",{attrs:{title:"处理中"}}),n("el-step",{attrs:{title:"支援"}}),n("el-step",{attrs:{title:"已办结"}}),n("el-step",{attrs:{title:"已归档"}})],1)],1),n("el-tabs",{attrs:{"before-leave":t.beforeLeave},on:{"tab-click":t.handleClickProcessed},model:{value:t.eventInfoVisibleActiveName,callback:function(e){t.eventInfoVisibleActiveName=e},expression:"eventInfoVisibleActiveName"}},[n("el-tab-pane",{attrs:{label:"基础信息",name:"info"}},[n("div",{staticClass:"event-info-con"},[n("div",{staticClass:"e-left"},[n("div",{staticClass:"forthis"},[n("div",{staticClass:"i-list-con h-35"},t._l(t.information,(function(e,a){return n("span",{key:a},[n("div",{staticClass:"d-l-con"},[n("div",{staticClass:"d-l-l-text"},[n("i",{staticClass:"i-small"}),n("h4",[t._v(t._s(e.name)+":")]),n("h4",[t._v(t._s(e.content))])])])])})),0)]),n("div",{staticClass:"forthis d-map h-30"},[n("div",{staticClass:"this-title"},[n("span",[t._v("涉事单位")])]),n("div",{staticClass:"i-list-con h-26"},t._l(t.listEventDept.allDept,(function(e,a){return n("span",{key:a},[n("div",{staticClass:"d-l-con"},[n("div",{staticClass:"d-l-l-text"},[n("i",{staticClass:"i-small"}),n("h4",[t._v(t._s(e.deptName))])]),n("div",{staticClass:"d-l-l-count",class:["未处理"==e.eventStatus?"state-wcl":"state-wyc"]},[t._v(t._s(e.eventStatus)+" ")])])])})),0)])]),n("div",{staticClass:"e-center"},[n("div",{staticClass:"forthis"},[n("div",{staticClass:"i-list-con h-35"},[""!=t.url?n("el-image",{staticClass:"img-company",staticStyle:{height:"100%"},attrs:{src:t.url,"preview-src-list":t.listEventPic}}):t._e()],1)]),n("div",{staticClass:"forthis h-30"},[n("div",{staticClass:"i-list-con h-26"},t._l(t.listEventPic,(function(e,a){return n("el-image",{staticStyle:{width:"3.9rem",height:"3rem",margin:"2px"},attrs:{src:e},on:{click:function(a){return t.switchImage(e)}}})})),1)])]),n("div",{staticClass:"e-right"},[n("div",{staticClass:"forthis h-67"},[n("div",{staticClass:"this-title"},[n("span",[t._v("处理过程")])]),n("div",{staticClass:"i-list-con"},[n("div",{staticClass:"this-con"},t._l(t.listLog,(function(e,i){return n("span",{key:i},["sys_messageType_1"==e.messageType?n("div",{staticClass:"z-begin"},[t._v(" "+t._s(e.logContent)+" ")]):t._e(),"sys_messageType_2"==e.messageType?n("div",{staticClass:"z-info-list"},[n("el-image",{staticStyle:{width:"3rem",height:"3rem",margin:"2px"},attrs:{src:a("344a")}}),n("div",{staticClass:"z-info-list-con"},[n("div",{staticClass:"user-and-time"},[n("span",[t._v(t._s(e.createBy))]),n("span",[t._v(" "+t._s(e.createTime))])]),n("div",{staticClass:"z-info"},[n("div",{staticClass:"this-con-list-info"},[t._v(" "+t._s(e.logContent)+" ")]),n("div",t._l(4,(function(e,a){return n("el-image",{staticStyle:{width:"6.5rem",height:"5rem",margin:"2px"},attrs:{src:t.url,"preview-src-list":t.srcList}})})),1)])])],1):t._e()])})),0)])])])]),n("div",{staticClass:"e-btm-btn"},[n("el-form",[t.showZt?n("el-form-item",[n("el-select",{staticClass:"m-r-1rem",attrs:{clearable:"",placeholder:"请选择状态"},model:{value:t.eventStatus,callback:function(e){t.eventStatus=e},expression:"eventStatus"}},t._l(t.optionsProcessed,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),n("el-button",{attrs:{type:"success"},on:{click:t.updateEventStatusProcessed}},[t._v("确定")])],1):t._e()],1)],1)]),n("el-tab-pane",{attrs:{label:"实时画面",name:"frame"}}),n("el-tab-pane",{attrs:{label:"地理位置",name:"point"}},[n("div",{staticClass:"info-button-group"},[n("button",[t._v("视频联动")]),n("button",{on:{click:function(e){return t.editableLayers("processedSupermap")}}},[t._v("测量工具")])]),"point"===t.eventInfoVisibleActiveName?n("processedSupermap",{ref:"processedSupermap",staticStyle:{width:"100%",height:"75vh"},attrs:{mapDiv:"processedSuperMap",mapSite:{doubleClickZoom:!1},codes:["9fa5"],isSideBySide:!1},on:{preview:t.preview}}):t._e()],1)],1)],1):t._e()],1)],1)},i=[],s=a("c7eb"),o=a("1da1"),l=(a("b0c0"),a("ac1f"),a("1276"),a("d3b7"),a("a434"),a("0905")),r=a("2976"),c=a("2f6e"),d=a("695f"),u=a("23d9"),p=a.n(u),v={dicts:["event_source"],components:{eventLocationSupermap:c["a"],notProcessedSupermap:c["a"],processedSupermap:c["a"]},data:function(){return{activePanel:"key1",isLogin:!1,cameraParams:[],ws:null,eventInfoVisibleActiveName:"info",eventInfoVisible_notProcessed:!1,eventInfoVisible_Processed:!1,listEventPic:[],url:"",id:"",eventType:"",deptName:"",eventStatus:"",cameraId:"",reportTime:"",reportAddress:"",eventCode:null,eventSource:"",eventTypeShow:!1,listEventDept:[],listLog:[],listoperateDept:[],optionsNotProcessed:[{value:"wyc",label:"无异常"},{value:"qr",label:"确认"}],listeventType:[],updateEventStatusForm:{id:"",eventStatus:"",eventCode:"",deptId:"",deptName:"",eventType:"",zt:""},aniu:!0,showZt:!0,zt:null,fireReport:!1,optionsProcessed:[{value:"bj",label:"办结"},{value:"zy",label:"支援"},{value:"gd",label:"归档"}],information:[{name:"标题",id:"",content:"前段发现警情信息"},{name:"时间",id:"",content:"2022-02-14 14:30"},{name:"来源",id:"",content:"摄像头"},{name:"坐标",id:"",content:"125.78945646"},{name:"纬度",id:"",content:"43.987424"},{name:"上报人",id:"",content:"党校监控点位"},{name:"详细信息",id:"",content:"这里发现病虫害,需要立刻支援"}],eventLocationVisible:!1,longitude:"",latitude:"",activeName:"event",eventList:[],markersList:[],cameraList:[],cameraMarkersList:[]}},created:function(){var t=p.a.getInstance();this.ws=t,console.log(this.ws)},methods:{cancelEventLocationShow:function(){this.longitude="",this.latitude="",this.activeName="event",this.eventList=[],this.markersList=[],this.cameraList=[],this.cameraMarkersList=[]},getNearEvent:function(){if(null!=this.longitude&&""!=this.longitude&&null!=this.latitude&&""!=this.latitude){this.activeName="event";var t=[{lng:this.longitude,lat:this.latitude,icon:"marker",bindPopupHtml:"定位",click:"",parameter:"",keepBindPopup:!1,isAggregation:!1}],e=this;Object(l["g"])(this.longitude,this.latitude).then((function(a){if(e.markersList=[],e.eventList=[],null!=a.data&&a.data.length>0){for(var n=0;n<a.data.length;n++){var i={lng:124.59,lat:43.02,icon:"marker",bindPopupHtml:"",click:"",parameter:"",keepBindPopup:!1,isAggregation:!1};a.data.length>50&&(i.isAggregation=!0),"event_event_status_1"==a.data[n].eventStatus||"event_event_status_2"==a.data[n].eventStatus||"event_event_status_6"==a.data[n].eventStatus?(i.click="showEventInfo_Processed",i.icon="sj-icon-map-clz"):"event_event_status_4"==a.data[n].eventStatus?(i.click="showEventInfo_notProcessed",i.icon="sj-icon-map-wcl"):i.icon="sj-icon-map-ywc",i.parameter=a.data[n].id,i.lng=a.data[n].longitude,i.lat=a.data[n].latitude,i.bindPopupHtml='<div class="map-tip"><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>经纬度:'+a.data[n].longitude+","+a.data[n].latitude+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件名称:'+a.data[n].eventTitle+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件时间:'+a.data[n].reportTime+"</h4> </div> </div> </span></div>",e.markersList.push(i)}e.eventList=a.data,setTimeout((function(){e.$refs.eventLocationSupermap.clearM(!0),e.$refs.eventLocationSupermap.clearM(!1),e.$refs.eventLocationSupermap.setMarkers(e.markersList),e.$refs.eventLocationSupermap.setMarkers(t)}),1e3)}}))}else this.$modal.msgError("请输入经纬度!")},handleClick:function(t,e){var a=this,n=this;n.$refs.eventLocationSupermap.controlLevel(8);var i=[{lng:this.longitude,lat:this.latitude,icon:"marker",bindPopupHtml:"定位",click:"",parameter:"",keepBindPopup:!1,isAggregation:!1}];if("monitor"==t.name){if(null==this.longitude||""==this.longitude||null==this.latitude||""==this.latitude)return void this.$modal.msgError("请输入经纬度!");n.cameraMarkersList=[],n.cameraList=[],Object(l["f"])(this.longitude,this.latitude).then((function(t){if(n.cameraList=t.data,null!=t.data&&t.data.length>0){for(var e=0;e<t.data.length;e++){var s={lng:124.59,lat:43.02,icon:"camera",bindPopupHtml:"",click:"preview",parameter:"",keepBindPopup:!1,isAggregation:!1};t.data.length>50&&(s.isAggregation=!0),null!=t.data[e].channelCode?s.parameter=t.data[e].channelCode.split(","):s.parameter=[],s.lng=t.data[e].longitude,s.lat=t.data[e].latitude,s.bindPopupHtml='<div class="map-tip"><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>经纬度:'+t.data[e].longitude+","+t.data[e].latitude+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>摄像头名称:'+t.data[e].cameraName+"</h4> </div> </div> </span></div>",a.cameraMarkersList.push(s)}setTimeout((function(){n.$refs.eventLocationSupermap.clearM(!0),n.$refs.eventLocationSupermap.clearM(!1),n.$refs.eventLocationSupermap.setMarkers(a.cameraMarkersList),n.$refs.eventLocationSupermap.setMarkers(i)}),1e3)}}))}else n.getNearEvent()},dropLocation:function(t,e){this.$refs.eventLocationSupermap.dropLocation(t,e)},showEventLocation:function(){this.eventLocationVisible=!0},alertLogin:function(){this.$modal.msg("登录中....")},alertLoginSuccess:function(){this.$modal.msgSuccess("登录成功!")},alertLoginFailed:function(){this.$modal.msgError("登陆失败!")},alertReinstall:function(){this.$modal.msgWarning("请重新安装客户端")},preview:function(t){var e=this;Object(d["a"])().then((function(a){e.ws.detectConnectQt().then((function(n){n?(e.alertLogin(),e.ws.login({loginIp:a.loginIp,loginPort:a.loginPort,userName:a.userName,userPwd:a.userPwd,token:"",https:1}),e.ws.on("loginState",(function(a){e.isLogin=a,console.log("---res-----",a),a?(e.alertLoginSuccess(),e.activePanel="key2",e.realTimeVideoDialog(t)):e.alertLoginFailed()}))):e.alertReinstall()}))}))},realTimeVideoDialog:function(t){if(!this.isLogin)return this.$Message.info("正在登陆客户端,请稍等......"),!1;this.ws.openVideo(t)},editableLayers:function(t){if("notProcessedSupermap"==t){this.$refs.notProcessedSupermap.isEditableLayers;this.$refs.notProcessedSupermap.isEditableLayers?this.$refs.notProcessedSupermap.isEditableLayers=!1:this.$refs.notProcessedSupermap.isEditableLayers=!0}else{this.$refs.processedSupermap.isEditableLayers;this.$refs.processedSupermap.isEditableLayers?this.$refs.processedSupermap.isEditableLayers=!1:this.$refs.processedSupermap.isEditableLayers=!0}},switchImage:function(t){this.url=t},formLeaveTable:function(){var t=new Promise((function(t,e){return e()}));return t},beforeLeave:function(t,e){var a=this;return Object(o["a"])(Object(s["a"])().mark((function e(){var n;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=a,"frame"!=t){e.next=5;break}return e.next=4,n.formLeaveTable();case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))()},showEventInfo_notProcessed:function(t){var e=this,a=this;a.id=t,a.eventInfoVisible_notProcessed=!0,a.listEventPic=[],a.url="",a.resetQuery(),Object(r["getWarm"])(t).then((function(t){var n=t.data;a.id=n.id,a.cameraId=n.reportById,a.reportTime=n.reportTime,a.reportAddress=n.reportAddress,a.eventCode=n.eventCode,a.eventSource=n.eventSource,a.information[0].content=n.eventTitle,a.information[1].content=n.reportTime,a.information[2].content=a.selectDictLabel(a.dict.type.event_source,n.eventSource),a.information[3].content=n.longitude,a.information[4].content=n.latitude,a.information[5].content=n.reportBy,a.information[6].content=n.eventContent,Object(r["selectByeventCode"])(n.eventCode).then((function(t){var a=e;a.listEventDept=t.data.allDept,a.listoperateDept=t.data.operateDept})),Object(r["listByEventCode"])(n.eventCode).then((function(t){var a=e;a.listLog=t.data})),Object(r["selectCameraEventByCameraId"])(n.reportById).then((function(t){var a=e;a.listeventType=t.data})),null!=n.attachId&&Object(r["listCenterdataTAttachByBusId"])(n.attachId).then((function(t){var a=e;a.listEventPic=t.data,a.listEventPic.length>0?a.url=a.listEventPic[0]:a.url=""}))}))},updateEventStatusNotProcessed:function(){var t=this;""!=this.deptName?""!=this.eventStatus?this.eventTypeShow&&""==this.eventType?this.$modal.msgError("请选择事件类型"):(this.updateEventStatusForm.id=this.id,this.updateEventStatusForm.zt=this.eventStatus,this.updateEventStatusForm.eventCode=this.eventCode,this.updateEventStatusForm.deptId=this.deptId,this.updateEventStatusForm.deptName=this.deptName,this.updateEventStatusForm.eventType=this.eventType,Object(r["updateDeptEventStatus"])(this.updateEventStatusForm).then((function(e){t.$modal.msgSuccess(e.msg),t.eventStatus="",t.deptId="",t.eventType="",t.deptName="",t.eventInfoVisible_notProcessed=!1,cancelEventShow()}))):this.$modal.msgError("请选择状态"):this.$modal.msgError("请选择部门")},updateEventStatusProcessed:function(){var t=this;""!=this.eventStatus?Object(l["i"])(this.id,this.eventStatus).then((function(e){t.$modal.msgSuccess(e.msg),t.eventStatus="",t.eventInfoVisible_Processed=!1,cancelEventShow()})):this.$modal.msgError("请选择状态")},setXsYc:function(){"qr"==this.eventStatus?this.eventTypeShow=!0:this.eventTypeShow=!1},setValue:function(t){this.deptId=t.value,this.deptName=t.label},cancelEventShow:function(){this.eventInfoVisibleActiveName="info",this.listEventPic=[],this.listEventDept=[],this.listLog=[],this.listoperateDept=[]},handleClickNotProcessed:function(t,e){var a=this,n=this;"frame"==t.name?"event_source_2"==n.eventSource?Object(r["selectchannelCodeByCameraId"])(n.cameraId).then((function(t){var e=[];if(null!=t.data&&t.data.length>0)for(var n=0;n<t.data.length;n++)e.push(t.data[n].channelCode);null!=e&&e.length>0?a.preview(e):a.$modal.msg("没有匹配到相对应摄像头!!!")})):this.$modal.msg("没有匹配到相对应摄像头!!!"):"point"==t.name&&setTimeout((function(){n.markersMapList=[];var t={};t.lng=n.information[3].content,t.lat=n.information[4].content;for(var e="",a=0;a<n.information.length;a++)e+='<span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>'+n.information[a].name+":"+n.information[a].content+"</h4> </div> </div> </span>";t.bindPopupHtml=e,t.click="",t.keepBindPopup=!1,t.isAggregation=!1,t.icon="marker",n.markersMapList.push(t),Object(r["selectFjsxt"])(n.information[3].content,n.information[4].content).then((function(e){if(console.log("vv",e.data),null!=e.data&&e.data.length>0)for(var a=0;a<e.data.length;a++){var i={};i.lng=e.data[a].longitude,i.lat=e.data[a].latitude;var s=e.data[a].channelCode.split(",");i.bindPopupHtml=e.data[a].cameraName,i.click="preview",i.parameter=s,i.keepBindPopup=!1,i.isAggregation=!1,i.icon="camera",n.markersMapList.push(i)}n.$refs.notProcessedSupermap.dropLocation(t.lat,t.lng),n.$refs.notProcessedSupermap.clearM(!1),n.$refs.notProcessedSupermap.setMarkers(n.markersMapList)}))}),1e3)},resetQuery:function(){this.eventTypeShow=!1,this.eventType="",this.deptName="",this.eventStatus=""},handleClickProcessed:function(t,e){var a=this,n=this;"frame"==t.name?"event_source_2"==n.eventSource?Object(r["selectchannelCodeByCameraId"])(n.cameraId).then((function(t){var e=[];if(null!=t.data&&t.data.length>0)for(var n=0;n<t.data.length;n++)e.push(t.data[n].channelCode);null!=e&&e.length>0?a.preview(e):a.$modal.msg("没有匹配到相对应摄像头!!!")})):this.$modal.msg("没有匹配到相对应摄像头!!!"):"point"==t.name&&setTimeout((function(){n.markersMapList=[];var t={};t.lng=n.information[3].content,t.lat=n.information[4].content;for(var e="",a=0;a<n.information.length;a++)e+='<span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>'+n.information[a].name+":"+n.information[a].content+"</h4> </div> </div> </span>";t.bindPopupHtml=e,t.click="",t.keepBindPopup=!1,t.isAggregation=!1,t.icon="marker",n.markersMapList.push(t),Object(r["selectFjsxt"])(n.information[3].content,n.information[4].content).then((function(e){if(console.log("vv",e.data),null!=e.data&&e.data.length>0)for(var a=0;a<e.data.length;a++){var i={};i.lng=e.data[a].longitude,i.lat=e.data[a].latitude;var s=e.data[a].channelCode.split(",");i.bindPopupHtml=e.data[a].cameraName,i.click="preview",i.parameter=s,i.keepBindPopup=!1,i.isAggregation=!1,i.icon="camera",n.markersMapList.push(i)}n.$refs.processedSupermap.dropLocation(t.lat,t.lng),n.$refs.processedSupermap.clearM(!1),n.$refs.processedSupermap.setMarkers(n.markersMapList)}))}),1e3)},showEventInfo_Processed:function(t){var e=this,a=this;a.id=t,a.eventInfoVisible_Processed=!0,a.listEventPic=[],a.url="",Object(l["e"])(t).then((function(t){var a=t.data;"event_event_status_1"!=a.eventStatus&&(e.aniu=!1),"event_event_status_6"==a.eventStatus&&(e.optionsProcessed.splice(1,2),e.zt=3),"event_event_status_1"==a.eventStatus&&(e.optionsProcessed.splice(2,1),e.zt=2),"event_event_status_2"==a.eventStatus&&(e.optionsProcessed.splice(0,2),e.zt=4),"event_event_status_3"==a.eventStatus&&(e.showZt=!1,e.fireReport=!0,e.zt=5);var n=e;e.eventSource=a.eventSource,e.id=a.id,e.reportTime=a.reportTime,e.cameraId=a.reportById,e.reportAddress=a.reportAddress,e.eventCode=a.eventCode,e.information[0].content=a.eventTitle,e.information[1].content=a.reportTime,e.information[2].content=n.selectDictLabel(n.dict.type.event_source,a.eventSource),e.information[3].content=a.longitude,e.information[4].content=a.latitude,e.information[5].content=a.reportBy,e.information[6].content=a.eventContent,Object(r["selectByeventCode"])(a.eventCode).then((function(t){n.listEventDept=t.data})),Object(r["listByEventCode"])(a.eventCode).then((function(t){n.listLog=t.data})),null!=a.attachId&&Object(r["listCenterdataTAttachByBusId"])(a.attachId).then((function(t){n.listEventPic=t.data,n.listEventPic.length>0?n.url=n.listEventPic[0]:n.url=""}))}))}}},m=v,h=(a("df40"),a("2877")),g=Object(h["a"])(m,n,i,!1,null,"e0d00fbe",null);e["a"]=g.exports},"62cc":function(t,e,a){"use strict";a("c90a")},6631:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.TVWallVisible?a("el-dialog",{staticStyle:{height:"700px"},attrs:{title:"电视墙",visible:t.TVWallVisible,width:"770px"},on:{"update:visible":function(e){t.TVWallVisible=e},close:function(e){return t.cancelEventLocationShow()}}},[a("div",{staticStyle:{width:"100%",height:"400px",position:"relative"}},[a("div",{staticClass:"dom1",attrs:{id:"dom1"}})])]):t._e()],1)},i=[],s=(a("d81d"),a("695f")),o=a("23d9"),l=a.n(o),r={dicts:["event_source"],components:{},data:function(){return{tvListJson:[{switchTab:"1",treeLabels:[{labelCode:"123456",labelName:"视频场景",parentLabelCode:null},{labelCode:"5a81d1bd499b4940a21fc63ca51f4dfa",labelName:"标签2",parentLabelCode:123456},{labelCode:"d941adbbd3e64dac92cc448dec5293cd",labelName:"标签1",parentLabelCode:123456}],labelChannels:[{channelDates:[{channelCode:"6044981090191552",channelName:"复兴大桥中段-交通事故",channelSn:null,cameraType:0,online:1},{channelCode:"ZgVzqsjwA1DTF561VGHK5E",channelName:"北京7青羊东二路77号2通道1",channelSn:null,cameraType:1,online:1}],labelCode:"d941adbbd3e64dac92cc448dec5293cd"},{channelDates:[{channelCode:"ZgVzqsjwA1DTF561VGHKK7",channelName:"北京7青羊东二路77号2通道2",channelSn:null,cameraType:2,online:0}],labelCode:"5a81d1bd499b4940a21fc63ca51f4dfa"}]},{switchTab:"2",labelChannels:[{channelDates:[{channelCode:"ZgVzqsjwA1DTF561VGHK5E",channelName:"北京7青羊东二路77号2通道1",channelSn:null,cameraType:1,online:1},{channelCode:"ZgVzqsjwA1DTF561VGHKK7",channelName:"北京7青羊东二路77号2通道2",channelSn:null,cameraType:2,online:0}]}]}],TVWallVisible:!1,activeName:"tv",channelId:["ZgVzqsjwA1DTF561VHG69F"],showModal:!0,activePanel:"key1",isLogin:!1,loginType:"1",token:"",ctrlType:"playerWin",https:1,httpsList:[{value:0,label:0},{value:1,label:1}],ctrlTypeList:[{value:"playerWin",label:"播放控件"},{value:"realMonitorUI",label:"带设备树实时预览控件"},{value:"playbackUI",label:"带设备树视频回放控件"},{value:"TVWallUI",label:"视频上墙"}],ctrlList:[{value:"ctrl1",label:"控件1"},{value:"ctrl2",label:"控件2"},{value:"ctrl3",label:"控件3"}],splitList:[{value:1,label:"1 * 1"},{value:4,label:"2 * 2"},{value:9,label:"3 * 3"}],displayModeList:[{value:1,label:"播放器预览模式"},{value:2,label:"播放器回放模式"}],mixedVideoDisplayModeList:[{value:1,label:"播放实时视频"},{value:2,label:"播放回放视频"}],ctrl:"ctrl1",splitNum:1,displayMode:1,displayTimeRange:[],modalDisplayTimeRange:[],mixedVideoTime:null,recordPath:"C:\\DSS LightWeight\\DSS LightWeight Client\\Record\\",downloadName:"",downTimeRange:[],downloadFormat:0,downloadFormatList:[{value:0,label:"dav"},{value:1,label:"avi"},{value:2,label:"mp4"}],downloadSource:3,downloadSourceList:[{value:3,label:"中心录像"},{value:2,label:"设备录像"}],showDownloadStreamType:!1,downloadStreamType:1,downloadStreamTypeList:[{value:1,label:"主码流"},{value:2,label:"辅码流"},{value:3,label:"三码流"}],downloadIsShow:!0,downloadIsShowList:[{value:!0,label:"是"},{value:!1,label:"否"}],crtPosX:0,crtPosY:0,crtWidth:740,crtHeight:400,domId:"dom1",mixedVideoDisplayMode:2,isShowTipe:!0}},created:function(){var t=this,e=l.a.getInstance();this.ws=e,console.log(this.ws),this.ws.addEventListener("connectStateChange",(function(e){e?console.log("连接成功"):(console.log("连接失败,下载客户端"),t.alertReinstall())}))},methods:{cancelEventLocationShow:function(){this.activeName="tv",this.TVWallVisible=!1,this.destroy()},showTVWall:function(){this.preview(),this.TVWallVisible=!0},alertLogin:function(){this.$modal.msg("登录中....")},alertLoginSuccess:function(){this.$modal.msgSuccess("登录成功!")},alertLoginFailed:function(){this.$modal.msgError("登陆失败!")},alertReinstall:function(){this.$modal.msgWarning("请重新安装客户端")},preview:function(){var t=this;Object(s["b"])().then((function(e){Object(s["a"])().then((function(a){t.ws.detectConnectQt().then((function(n){n?(t.alertLogin(),t.ws.login({loginIp:a.loginIp,loginPort:a.loginPort,userName:a.userName,userPwd:a.userPwd,token:"",https:1}),t.ws.on("loginState",(function(a){t.isLogin=a,console.log("---res-----",a),a?(t.alertLoginSuccess(),t.activePanel="key2",t.create(e.data)):t.alertLoginFailed()}))):t.alertReinstall()}))}))}))},create:function(t){var e=this,a=this,n=[{ctrlType:"realMonitorUI",ctrlCode:"ctrl1",ctrlProperty:{displayMode:1,splitNum:1,channelList:[{channelId:"8ORBqXFlA1D77U45SM1ROC"}]},visible:!0,domId:"dom1"}];this.setPos(),a.ws.createCtrl(n).then((function(a){console.log(a),e.customizeTree(t)})).catch((function(t){console.log(t)})),a.ws.on("createCtrlResult",(function(n){console.log(n),e.customizeTree(t),a.ws.on("createCtrlResult",(function(a){console.log(a),e.customizeTree(t)}))}))},setPos:function(){var t=document.getElementById(this.domId);if(console.log(t,"target"),t.style.right="".concat(this.crtPosX,"px"),t.style.top="".concat(this.crtPosY,"px"),t.style.width="".concat(this.crtWidth,"px"),t.style.height="".concat(this.crtHeight,"px"),document.createEvent){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!0),window.dispatchEvent(e)}else document.createEventObject&&window.fireEvent("onresize")},destroy:function(){var t=this;if(!this.isLogin)return this.$modal.msgWarning("正在登陆客户端,请稍等......"),!1;var e=this.ws.ctrls.map((function(e){if(e.ctrlCode===t.ctrl)return e.ctrlCode}));this.ws.destroyCtrl(e)},customizeTree:function(t){var e=this.ws.config,a=e.loginIp,n=e.userCode;this.ws.postMessage("customizeTree",{loginIp:a,userCode:n,params:{array:t}})}}},c=r,d=(a("5c77"),a("2877")),u=Object(d["a"])(c,n,i,!1,null,"1df376e0",null);e["a"]=u.exports},a6b8:function(t,e,a){"use strict";a("c954")},b611:function(t,e,a){"use strict";a("bf7d")},bf7d:function(t,e,a){},c90a:function(t,e,a){},c954:function(t,e,a){},d84b:function(t,e,a){"use strict";a("506d")},df40:function(t,e,a){"use strict";a("1625")},e5e9:function(t,e,a){}}]);