chunk-5529b09b.c3fe107e.js 36 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5529b09b"],{"0861":function(t,e,s){t.exports=s.p+"static/img/林业病虫害抓拍2.3d257e5f.png"},"21d6":function(t,e,s){t.exports=s.p+"static/img/img-sample-2.c863bb97.jpg"},4578:function(t,e,s){},"4b8b4":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"visual-con"},[a("vheader"),a("div",{staticClass:"visual-body"},[a("div",{ref:"left",staticClass:"leftbar",class:t.indentleft},[a("div",{staticClass:"forthis"},[t._m(0),a("div",{staticClass:"i-list-con h-73"},[a("div",{staticClass:"d-l-con-icon"},[t._l(t.todayEventCountList,(function(e,s){return a("div",{staticClass:"icon-con w-33 flex-d t-a-center",class:{on:t.iconCurrentIndex1==e.eventStatus},on:{click:function(s){return t.todayEventCountSetMarkers(e.eventStatus)}}},[a("div",{staticClass:"icon iconfont icon-mid",class:e.icon}),a("div",{staticClass:"icon-text"},[a("h5",{staticClass:"m-r-none icon-text-col"},[t._v(t._s(e.eventStatusName))]),a("h6",{staticClass:"m-r-none"},[t._v(t._s(e.count))])])])})),t._l(t.todayEventSourcetList,(function(e,s){return a("div",{staticClass:"icon-con w-33 flex-d t-a-center",class:{on:t.iconCurrentIndex2==e.eventSource},on:{click:function(s){return t.todayEventSourcetSetMarkers(e.eventSource)}}},[a("div",{staticClass:"icon iconfont icon-mid",class:e.icon}),a("div",{staticClass:"icon-text"},[a("h5",{staticClass:"m-r-none icon-text-col"},[t._v(t._s(e.eventSourceName))]),a("h6",{staticClass:"m-r-none"},[t._v(t._s(e.count))])])])}))],2),t._m(1),a("div",{staticClass:"h-16 overflow-y"},t._l(t.todayEventCountDeptList,(function(e,s){return a("div",{staticClass:"d-l-con",on:{click:function(s){return t.todayEventByDeptIdList(e.deptId)}}},[a("div",{staticClass:"d-l-l-text"},[a("i",{staticClass:"i-small"}),a("h4",[t._v(t._s(e.deptName))])]),a("div",{staticClass:"d-l-l-count"},[t._v(t._s(e.count))])])})),0),t._m(2),a("div",{staticStyle:{width:"100%",height:"24.2vh"},attrs:{id:"event-chart"}}),t._l(t.todayEventCountTypeList,(function(e,s){return a("div",{staticClass:"d-l-con",on:{click:function(s){return t.todayEventByTypeList(e.eventType)}}},[a("div",{staticClass:"d-l-l-text"},[a("i",{staticClass:"i-small"}),a("h4",[t._v(t._s(e.eventTypeName))])]),a("div",{staticClass:"d-l-l-count"},[t._v(" "+t._s(e.count))])])}))],2)])]),a("supermap",{ref:"supermap",staticStyle:{width:"100%",height:"100vh"},attrs:{mapDiv:"forestMap",mapSite:{doubleClickZoom:!1},codes:["9fa5"],isSideBySide:!1},on:{showEventInfo_notProcessed:t.showEventInfo_notProcessed,showEventInfo_Processed:t.showEventInfo_Processed}}),a("div",{ref:"right",staticClass:"rightbar",class:t.indentright},[a("div",{staticClass:"forthis"},[t._m(3),a("div",{staticClass:"i-list-con h-73"},t._l(t.eventList,(function(e,n){return a("div",{key:n,staticClass:"d-l-con d-evnet-list-con",class:{on:t.listCurrentIndex==n},on:{click:function(s){return t.dropLocation(e.latitude,e.longitude,n)}}},[null!=e.picturePath&&""!=e.picturePath?a("img",{staticClass:"event-list-img",attrs:{src:e.picturePath,onerror:"javascript:this.src='/img-sample.png'"}}):a("img",{staticClass:"event-list-img",attrs:{src:s("c110")}}),a("div",{staticClass:"event-list-text"},[a("h3",[t._v(t._s(e.eventTitle))])])])})),0)])]),a("vBottomMenu",{ref:"bottomMenu"}),a("el-tooltip",{attrs:{content:t.indentText,placement:"top",disabled:t.indentdisabled}},[a("div",{ref:"mascot",staticClass:"mascot",class:t.indentStyle,on:{click:t.indent}},[a("img",{attrs:{src:s("53a9")}})])])],1),a("div",{staticClass:"event-info"},[t.eventInfoVisible_notProcessed?a("el-dialog",{attrs:{title:"事件信息-未处理",visible:t.eventInfoVisible_notProcessed,width:"80%"},on:{"update:visible":function(e){t.eventInfoVisible_notProcessed=e},close:function(e){return t.cancelEventShow()}}},[a("div",{staticStyle:{position:"absolute",right:"0",top:"60px",width:"40%"}},[a("el-steps",{attrs:{space:200,active:1,"finish-status":"success","align-center":""}},[a("el-step",{attrs:{title:"待处理"}}),a("el-step",{attrs:{title:"处理中"}}),a("el-step",{attrs:{title:"已办结"}}),a("el-step",{attrs:{title:"已归档"}})],1)],1),a("el-tabs",{attrs:{"before-leave":t.beforeLeave},on:{"tab-click":t.handleClickNotProcessed},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础信息",name:"info"}},[a("div",{staticClass:"event-info-con"},[a("div",{staticClass:"e-left"},[a("div",{staticClass:"forthis"},[a("div",{staticClass:"i-list-con h-35"},t._l(t.information,(function(e,s){return a("span",{key:s},[a("div",{staticClass:"d-l-con"},[a("div",{staticClass:"d-l-l-text"},[a("i",{staticClass:"i-small"}),a("h4",[t._v(t._s(e.name)+":")]),a("h4",[t._v(t._s(e.content))])])])])})),0)]),a("div",{staticClass:"forthis d-map h-30"},[a("div",{staticClass:"this-title"},[a("span",[t._v("涉事单位")])]),a("div",{staticClass:"i-list-con h-26"},t._l(t.listEventDept,(function(e,s){return a("span",{key:s},[a("div",{staticClass:"d-l-con"},[a("div",{staticClass:"d-l-l-text"},[a("i",{staticClass:"i-small"}),a("h4",[t._v(t._s(e.deptName))])]),a("div",{staticClass:"d-l-l-count",class:["未处理"==e.eventStatus?"state-wcl":"state-wyc"]},[t._v(t._s(e.eventStatus)+" ")])])])})),0)])]),a("div",{staticClass:"e-center"},[a("div",{staticClass:"forthis"},[a("div",{staticClass:"i-list-con h-35"},[""!=t.url?a("el-image",{staticClass:"img-company",staticStyle:{height:"100%"},attrs:{src:t.url,"preview-src-list":t.listEventPic}}):t._e()],1)]),a("div",{staticClass:"forthis h-30"},[a("div",{staticClass:"i-list-con h-26"},t._l(t.listEventPic,(function(e,s){return a("el-image",{staticStyle:{width:"3.9rem",height:"3rem",margin:"2px"},attrs:{src:e},on:{click:function(s){return t.switchImage(e)}}})})),1)])]),a("div",{staticClass:"e-right"},[a("div",{staticClass:"forthis h-67"},[a("div",{staticClass:"this-title"},[a("span",[t._v("处理过程")])]),a("div",{staticClass:"i-list-con"},[a("div",{staticClass:"this-con"},t._l(t.listLog,(function(e,n){return a("span",{key:n},["sys_messageType_1"==e.messageType?a("div",{staticClass:"z-begin"},[t._v(" "+t._s(e.logContent)+" ")]):t._e(),"sys_messageType_2"==e.messageType?a("div",{staticClass:"z-info-list"},[a("el-image",{staticStyle:{width:"3rem",height:"3rem",margin:"2px"},attrs:{src:s("344a")}}),a("div",{staticClass:"z-info-list-con"},[a("div",{staticClass:"user-and-time"},[a("span",[t._v(t._s(e.createBy))]),a("span",[t._v(" "+t._s(e.createTime))])]),a("div",{staticClass:"z-info"},[a("div",{staticClass:"this-con-list-info"},[t._v(" "+t._s(e.logContent)+" ")]),a("div",t._l(4,(function(e,s){return a("el-image",{staticStyle:{width:"6.5rem",height:"5rem",margin:"2px"},attrs:{src:t.url,"preview-src-list":t.srcList}})})),1)])])],1):t._e()])})),0)])])])]),a("div",{staticClass:"e-btm-btn"},[a("el-form",[a("el-form-item",[a("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 a("el-option",{key:t.deptId,attrs:{label:t.deptName,value:{value:t.deptId,label:t.deptName},disabled:"未处理"!=t.eventStatus}})})),1),a("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 a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),t.eventTypeShow?a("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 a("el-option",{key:t.id,attrs:{label:t.eventTypeName,value:t.eventType}})})),1):t._e(),a("el-button",{attrs:{type:"success"},on:{click:t.updateEventStatusNotProcessed}},[t._v("确定")])],1)],1)],1)]),a("el-tab-pane",{attrs:{label:"实时画面",name:"frame"}}),a("el-tab-pane",{attrs:{label:"地理位置",name:"point"}},[a("div",{staticClass:"info-button-group"},[a("button",[t._v("视频联动")]),a("button",{on:{click:function(e){return t.editableLayers("supermapNotProcessed")}}},[t._v("测量工具")])]),"point"===t.activeName?a("supermapNotProcessed",{ref:"supermapNotProcessed",staticStyle:{width:"100%",height:"75vh"},attrs:{mapDiv:"supermapNotProcessedSuperMap",mapSite:{doubleClickZoom:!1},codes:["9fa5"],isSideBySide:!1},on:{preview:t.preview}}):t._e()],1)],1)],1):t._e(),t.eventInfoVisible_Processed?a("el-dialog",{attrs:{title:"事件信息",visible:t.eventInfoVisible_Processed,width:"80%"},on:{"update:visible":function(e){t.eventInfoVisible_Processed=e},close:function(e){return t.cancelEventShow()}}},[a("div",{staticStyle:{position:"absolute",right:"0",top:"60px",width:"40%"}},[a("el-steps",{attrs:{space:200,active:t.zt,"finish-status":"success","align-center":""}},[a("el-step",{attrs:{title:"待处理"}}),a("el-step",{attrs:{title:"处理中"}}),a("el-step",{attrs:{title:"支援"}}),a("el-step",{attrs:{title:"已办结"}}),a("el-step",{attrs:{title:"已归档"}})],1)],1),a("el-tabs",{attrs:{"before-leave":t.beforeLeave},on:{"tab-click":t.handleClickProcessed},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础信息",name:"info"}},[a("div",{staticClass:"event-info-con"},[a("div",{staticClass:"e-left"},[a("div",{staticClass:"forthis"},[a("div",{staticClass:"i-list-con h-35"},t._l(t.information,(function(e,s){return a("span",{key:s},[a("div",{staticClass:"d-l-con"},[a("div",{staticClass:"d-l-l-text"},[a("i",{staticClass:"i-small"}),a("h4",[t._v(t._s(e.name)+":")]),a("h4",[t._v(t._s(e.content))])])])])})),0)]),a("div",{staticClass:"forthis d-map h-30"},[a("div",{staticClass:"this-title"},[a("span",[t._v("涉事单位")])]),a("div",{staticClass:"i-list-con h-26"},t._l(t.listEventDept.allDept,(function(e,s){return a("span",{key:s},[a("div",{staticClass:"d-l-con"},[a("div",{staticClass:"d-l-l-text"},[a("i",{staticClass:"i-small"}),a("h4",[t._v(t._s(e.deptName))])]),a("div",{staticClass:"d-l-l-count",class:["未处理"==e.eventStatus?"state-wcl":"state-wyc"]},[t._v(t._s(e.eventStatus)+" ")])])])})),0)])]),a("div",{staticClass:"e-center"},[a("div",{staticClass:"forthis"},[a("div",{staticClass:"i-list-con h-35"},[""!=t.url?a("el-image",{staticClass:"img-company",staticStyle:{height:"100%"},attrs:{src:t.url,"preview-src-list":t.listEventPic}}):t._e()],1)]),a("div",{staticClass:"forthis h-30"},[a("div",{staticClass:"i-list-con h-26"},t._l(t.listEventPic,(function(e,s){return a("el-image",{staticStyle:{width:"3.9rem",height:"3rem",margin:"2px"},attrs:{src:e},on:{click:function(s){return t.switchImage(e)}}})})),1)])]),a("div",{staticClass:"e-right"},[a("div",{staticClass:"forthis h-67"},[a("div",{staticClass:"this-title"},[a("span",[t._v("处理过程")])]),a("div",{staticClass:"i-list-con"},[a("div",{staticClass:"this-con"},t._l(t.listLog,(function(e,n){return a("span",{key:n},["sys_messageType_1"==e.messageType?a("div",{staticClass:"z-begin"},[t._v(" "+t._s(e.logContent)+" ")]):t._e(),"sys_messageType_2"==e.messageType?a("div",{staticClass:"z-info-list"},[a("el-image",{staticStyle:{width:"3rem",height:"3rem",margin:"2px"},attrs:{src:s("344a")}}),a("div",{staticClass:"z-info-list-con"},[a("div",{staticClass:"user-and-time"},[a("span",[t._v(t._s(e.createBy))]),a("span",[t._v(" "+t._s(e.createTime))])]),a("div",{staticClass:"z-info"},[a("div",{staticClass:"this-con-list-info"},[t._v(" "+t._s(e.logContent)+" ")]),a("div",t._l(e.fileUrls,(function(t,s){return a("el-image",{staticStyle:{width:"6.5rem",height:"5rem",margin:"2px"},attrs:{src:t,"preview-src-list":e.fileUrls}})})),1)])])],1):t._e()])})),0)])])])]),a("div",{staticClass:"e-btm-btn"},[a("el-form",[t.showZt?a("el-form-item",[a("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 a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),a("el-button",{attrs:{type:"success"},on:{click:t.updateEventStatusProcessed}},[t._v("确定")])],1):t._e()],1)],1)]),a("el-tab-pane",{attrs:{label:"实时画面",name:"frame"}}),a("el-tab-pane",{attrs:{label:"地理位置",name:"point"}},[a("div",{staticClass:"info-button-group"},[a("button",[t._v("视频联动")]),a("button",{on:{click:function(e){return t.editableLayers("supermapProcessed")}}},[t._v("测量工具")])]),"point"===t.activeName?a("supermapProcessed",{ref:"supermapProcessed",staticStyle:{width:"100%",height:"75vh"},attrs:{mapDiv:"supermapProcessedSuperMap",mapSite:{doubleClickZoom:!1},codes:["9fa5"],isSideBySide:!1},on:{preview:t.preview}}):t._e()],1)],1)],1):t._e()],1),a("eventLocation",{ref:"eventLocation"}),a("TVWall",{ref:"TVWall"})],1)},n=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"this-title"},[s("span",[t._v("今日事件")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"d-tit"},[s("h4",[t._v("事件分布")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"d-tit"},[s("h4",[t._v("事件分类")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"this-title"},[s("span",[t._v("事件列表")])])}],i=s("c7eb"),o=s("1da1"),l=(s("d3b7"),s("b0c0"),s("ac1f"),s("1276"),s("a434"),s("159b"),s("0905")),r=s("2976"),c=s("695f"),d=s("23d9"),v=s.n(d),u=s("2f6e"),p=s("1dfe"),m=s("04fb7"),h=s("60e2"),f=s("6631"),g=s("313e"),_={dicts:["event_source"],components:{supermap:u["a"],supermapNotProcessed:u["a"],supermapProcessed:u["a"],vheader:p["a"],vBottomMenu:m["a"],eventLocation:h["a"],TVWall:f["a"]},created:function(){var t=v.a.getInstance();this.ws=t,console.log(this.ws),window.showDialog=this.showDialog,window.choseLayerSwitching=this.choseLayerSwitching},mounted:function(){this.getTodayEvent()},data:function(){return{iconCurrentIndex1:"",iconCurrentIndex2:"",listCurrentIndex:"",activePanel:"key1",isLogin:!1,cameraParams:[],ws:null,markersList:[],todayEventCountList:[],todayEventSourcetList:[],todayEventCountDeptList:[],todayEventCountTypeList:[],eventChartData:[],iframeBoo:!0,open:!1,iframeVue:null,eventInfoVisible_notProcessed:!1,eventInfoVisible_Processed:!1,eventInfoVisible2:!1,activeName:"info",radio:"1",eventList:[],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:[],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:"这里发现病虫害,需要立刻支援"}],srcList:[s("71d1"),s("21d6"),s("8c8c")],srcList1:[s("0861"),s("a653"),s("71d1")],indentStyle:"",indentleft:"",indentright:"",indentText:"收起左右栏",indentdisabled:!1}},methods:{showDialog:function(t){"eventLocation"==t?(this.$refs.eventLocation.showEventLocation(),this.$refs.supermap.isEditableLayers=!1,this.$refs.bottomMenu.showChild=!1):"editableLayers"==t?(this.$refs.bottomMenu.showChild=!1,this.$refs.supermap.isEditableLayers?this.$refs.supermap.isEditableLayers=!1:this.$refs.supermap.isEditableLayers=!0):"layerSwitching"==t?(this.$refs.supermap.isEditableLayers=!1,this.$refs.bottomMenu.showChild?this.$refs.bottomMenu.showChild=!1:this.$refs.bottomMenu.showChild=!0):"TVWall"==t&&(this.$refs.TVWall.showTVWall(),this.$refs.supermap.isEditableLayers=!1,this.$refs.bottomMenu.showChild=!1)},choseLayerSwitching:function(t){this.$refs.supermap.layerSwitching(t,!0)},eventChart:function(){var t=g.init(document.getElementById("event-chart"));t.setOption({color:["#2EACFF","#FFA61C","#2EC054","#8C64D7"],tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},toolbox:{show:!0},series:[{name:"事件分类",type:"pie",roseType:!0,radius:[30,70],label:{show:!0,formatter:"{b}\n{c} "},data:this.eventChartData}]})},indent:function(){var t=document.getElementsByClassName("el-tooltip__popper");t[t.length-1].style.display="none",""==this.indentStyle?(this.indentStyle="indent-style",this.indentleft="indent-left",this.indentright="indent-right",this.indentText="展开左右栏"):"展开左右栏"==this.indentText&&(this.indentStyle="",this.indentleft="",this.indentright="",this.indentText="收起左右栏")},editableLayers:function(t){if("supermapNotProcessed"==t){this.$refs.supermapNotProcessed.isEditableLayers;this.$refs.supermapNotProcessed.isEditableLayers?this.$refs.supermapNotProcessed.isEditableLayers=!1:this.$refs.supermapNotProcessed.isEditableLayers=!0}else{this.$refs.supermapProcessed.isEditableLayers;this.$refs.supermapProcessed.isEditableLayers?this.$refs.supermapProcessed.isEditableLayers=!1:this.$refs.supermapProcessed.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 s=this;return Object(o["a"])(Object(i["a"])().mark((function e(){var a;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=s,"frame"!=t){e.next=5;break}return e.next=4,a.formLeaveTable();case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))()},showEventInfo_notProcessed:function(t){var e=this,s=this;s.id=t,s.eventInfoVisible_notProcessed=!0,s.listEventPic=[],s.url="",s.resetQuery(),Object(r["getWarm"])(t).then((function(t){var a=t.data;s.id=a.id,s.cameraId=a.reportById,s.reportTime=a.reportTime,s.reportAddress=a.reportAddress,s.eventCode=a.eventCode,s.eventSource=a.eventSource,s.information[0].content=a.eventTitle,s.information[1].content=a.reportTime,s.information[2].content=s.selectDictLabel(s.dict.type.event_source,a.eventSource),s.information[3].content=a.longitude,s.information[4].content=a.latitude,s.information[5].content=a.reportBy,s.information[6].content=a.eventContent,Object(r["selectByeventCode"])(a.eventCode).then((function(t){var s=e;s.listEventDept=t.data.allDept,s.listoperateDept=t.data.operateDept})),Object(r["selectCentereventTLogListPC"])(a.eventCode).then((function(t){var s=e;s.listLog=t.data})),Object(r["selectCameraEventByCameraId"])(a.reportById).then((function(t){var s=e;s.listeventType=t.data})),null!=a.attachId&&Object(r["listCenterdataTAttachByBusId"])(a.attachId).then((function(t){var s=e;s.listEventPic=t.data,s.listEventPic.length>0?s.url=s.listEventPic[0]:s.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,t.cancelEventShow(),t.getTodayEvent()}))):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,t.cancelEventShow(),t.getTodayEvent()})):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.activeName="info",this.listEventPic=[],this.listEventDept=[],this.listLog=[],this.listoperateDept=[]},handleClickNotProcessed:function(t,e){var s=this,a=this;"frame"==t.name?"event_source_2"==a.eventSource?Object(r["selectchannelCodeByCameraId"])(a.cameraId).then((function(t){var e=[];if(null!=t.data&&t.data.length>0)for(var a=0;a<t.data.length;a++)e.push(t.data[a].channelCode);null!=e&&e.length>0?s.preview(e):s.$modal.msg("没有匹配到相对应摄像头!!!")})):this.$modal.msg("没有匹配到相对应摄像头!!!"):"point"==t.name&&setTimeout((function(){a.markersMapList=[];var t={};t.lng=a.information[3].content,t.lat=a.information[4].content;for(var e="",s=0;s<a.information.length;s++)e+='<span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>'+a.information[s].name+":"+a.information[s].content+"</h4> </div> </div> </span>";t.bindPopupHtml=e,t.click="",t.keepBindPopup=!1,t.isAggregation=!1,t.icon="marker",a.markersMapList.push(t),Object(r["selectFjsxt"])(a.information[3].content,a.information[4].content).then((function(e){if(console.log("vv",e.data),null!=e.data&&e.data.length>0)for(var s=0;s<e.data.length;s++){var n={};n.lng=e.data[s].longitude,n.lat=e.data[s].latitude;var i=e.data[s].channelCode.split(",");n.bindPopupHtml=e.data[s].cameraName,n.click="preview",n.parameter=i,n.keepBindPopup=!1,n.isAggregation=!1,n.icon="camera",a.markersMapList.push(n)}a.$refs.supermapNotProcessed.dropLocation(t.lat,t.lng),a.$refs.supermapNotProcessed.clearM(!1),a.$refs.supermapNotProcessed.setMarkers(a.markersMapList)}))}),1e3)},resetQuery:function(){this.eventTypeShow=!1,this.eventType="",this.deptName="",this.eventStatus=""},handleClickProcessed:function(t,e){var s=this,a=this;"frame"==t.name?"event_source_2"==a.eventSource?Object(r["selectchannelCodeByCameraId"])(a.cameraId).then((function(t){var e=[];if(null!=t.data&&t.data.length>0)for(var a=0;a<t.data.length;a++)e.push(t.data[a].channelCode);null!=e&&e.length>0?s.preview(e):s.$modal.msg("没有匹配到相对应摄像头!!!")})):this.$modal.msg("没有匹配到相对应摄像头!!!"):"point"==t.name&&setTimeout((function(){a.markersMapList=[];var t={};t.lng=a.information[3].content,t.lat=a.information[4].content;for(var e="",s=0;s<a.information.length;s++)e+='<span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>'+a.information[s].name+":"+a.information[s].content+"</h4> </div> </div> </span>";t.bindPopupHtml=e,t.click="",t.keepBindPopup=!1,t.isAggregation=!1,t.icon="marker",a.markersMapList.push(t),Object(r["selectFjsxt"])(a.information[3].content,a.information[4].content).then((function(e){if(console.log("vv",e.data),null!=e.data&&e.data.length>0)for(var s=0;s<e.data.length;s++){var n={};n.lng=e.data[s].longitude,n.lat=e.data[s].latitude;var i=e.data[s].channelCode.split(",");n.bindPopupHtml=e.data[s].cameraName,n.click="preview",n.parameter=i,n.keepBindPopup=!1,n.isAggregation=!1,n.icon="camera",a.markersMapList.push(n)}a.$refs.supermapProcessed.dropLocation(t.lat,t.lng),a.$refs.supermapProcessed.clearM(!1),a.$refs.supermapProcessed.setMarkers(a.markersMapList)}))}),1e3)},showEventInfo_Processed:function(t){var e=this,s=this;s.id=t,s.eventInfoVisible_Processed=!0,s.listEventPic=[],s.url="",Object(l["e"])(t).then((function(t){e.showZt=!0,e.zt=null,e.fireReport=!1,e.optionsProcessed=[{value:"bj",label:"办结"},{value:"zy",label:"支援"},{value:"gd",label:"归档"}];var s=t.data;"event_event_status_1"!=s.eventStatus&&(e.aniu=!1),"event_event_status_6"==s.eventStatus&&(e.optionsProcessed.splice(1,2),e.zt=3),"event_event_status_1"==s.eventStatus&&(e.optionsProcessed.splice(2,1),e.zt=2),"event_event_status_2"==s.eventStatus&&(e.optionsProcessed.splice(0,2),e.zt=4),"event_event_status_3"==s.eventStatus&&(e.showZt=!1,e.fireReport=!0,e.zt=5);var a=e;e.eventSource=s.eventSource,e.id=s.id,e.reportTime=s.reportTime,e.cameraId=s.reportById,e.reportAddress=s.reportAddress,e.eventCode=s.eventCode,e.information[0].content=s.eventTitle,e.information[1].content=s.reportTime,e.information[2].content=a.selectDictLabel(a.dict.type.event_source,s.eventSource),e.information[3].content=s.longitude,e.information[4].content=s.latitude,e.information[5].content=s.reportBy,e.information[6].content=s.eventContent,Object(r["selectByeventCode"])(s.eventCode).then((function(t){a.listEventDept=t.data})),Object(r["selectCentereventTLogListPC"])(s.eventCode).then((function(t){a.listLog=t.data})),null!=s.attachId&&Object(r["listCenterdataTAttachByBusId"])(s.attachId).then((function(t){a.listEventPic=t.data,a.listEventPic.length>0?a.url=a.listEventPic[0]:a.url=""}))}))},getTodayEvent:function(){var t=this,e=this;Object(l["h"])().then((function(s){if(e.todayEventCountList=s.data.eventcountStatus,e.todayEventSourcetList=s.data.eventcountSource,s.data.eventcountStatus.forEach((function(t,s){e.$set(e.todayEventCountList[0],"icon","sj-icon-wcl"),e.$set(e.todayEventCountList[1],"icon","sj-icon-clz"),e.$set(e.todayEventCountList[2],"icon","sj-icon-ywc")})),s.data.eventcountSource.forEach((function(t,s){e.$set(e.todayEventSourcetList[0],"icon","sj-icon-rg"),e.$set(e.todayEventSourcetList[1],"icon","sj-icon-hx"),e.$set(e.todayEventSourcetList[2],"icon","sj-icon-kk")})),e.todayEventCountDeptList=s.data.eventcountDept,e.todayEventCountTypeList=s.data.eventcountType,t.eventChartData=[],null!=s.data.eventcountSource&&s.data.eventcountSource.length>0)for(var a=0;a<s.data.eventcountSource.length;a++){var n={};n.name=s.data.eventcountSource[a].eventSourceName,n.value=s.data.eventcountSource[a].count,t.eventChartData.push(n)}if(t.eventChart(),e.markersList=[],e.eventList=[],null!=s.data.eventListAll&&s.data.eventListAll.length>0){for(var i=0;i<s.data.eventListAll.length;i++){var o={lng:124.59,lat:43.02,icon:"marker",bindPopupHtml:"",click:"",parameter:"",keepBindPopup:!1,isAggregation:!1};s.data.eventListAll.length>50&&(o.isAggregation=!0),"event_event_status_1"==s.data.eventListAll[i].eventStatus||"event_event_status_2"==s.data.eventListAll[i].eventStatus||"event_event_status_6"==s.data.eventListAll[i].eventStatus?(o.click="showEventInfo_Processed",o.icon="sj-icon-map-clz",o.isAggregation=!1):"event_event_status_4"==s.data.eventListAll[i].eventStatus?(o.click="showEventInfo_notProcessed",o.icon="sj-icon-map-wcl"):o.icon="sj-icon-map-ywc",o.parameter=s.data.eventListAll[i].id,o.lng=s.data.eventListAll[i].longitude,o.lat=s.data.eventListAll[i].latitude,o.bindPopupHtml='<div class="map-tip"><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>经纬度:'+s.data.eventListAll[i].longitude+","+s.data.eventListAll[i].latitude+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件名称:'+s.data.eventListAll[i].eventTitle+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件时间:'+s.data.eventListAll[i].reportTime+"</h4> </div> </div> </span></div>",e.markersList.push(o)}e.eventList=s.data.eventListAll,setTimeout((function(){e.$refs.supermap.clearM(!1),e.$refs.supermap.clearM(!0),e.$refs.supermap.setMarkers(e.markersList)}),1e3)}else setTimeout((function(){e.$refs.supermap.clearM(!1),e.$refs.supermap.clearM(!0)}),1e3)}))},todayEventCountSetMarkers:function(t){this.iconCurrentIndex1=t,this.iconCurrentIndex2="";var e=this;Object(l["d"])(t).then((function(s){if(e.eventList=[],e.markersList=[],null!=s.data.eventList&&s.data.eventList.length>0){for(var a=0;a<s.data.eventList.length;a++){var n={lng:124.59,lat:43.02,icon:"marker",bindPopupHtml:"",click:"",parameter:"",keepBindPopup:!1,isAggregation:!1};s.data.eventList.length>50&&(n.isAggregation=!0),"event_event_status_1_2_6"==t?(n.click="showEventInfo_Processed",n.icon="sj-icon-map-clz"):"event_event_status_4"==t?(n.click="showEventInfo_notProcessed",n.icon="sj-icon-map-wcl"):(n.icon="sj-icon-map-ywc",n.click="showEventInfo_Processed"),n.parameter=s.data.eventList[a].id,n.lng=s.data.eventList[a].longitude,n.lat=s.data.eventList[a].latitude,n.bindPopupHtml='<div class="map-tip"><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>经纬度:'+s.data.eventList[a].longitude+","+s.data.eventList[a].latitude+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件名称:'+s.data.eventList[a].eventTitle+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件时间:'+s.data.eventList[a].reportTime+"</h4> </div> </div> </span></div>",e.markersList.push(n)}e.eventList=s.data.eventList}setTimeout((function(){e.$refs.supermap.clearM(!0),e.$refs.supermap.clearM(!1),e.$refs.supermap.setMarkers(e.markersList)}),500)}))},todayEventSourcetSetMarkers:function(t){this.iconCurrentIndex1="",this.iconCurrentIndex2=t;var e=this;Object(l["c"])(t).then((function(s){if(e.$refs.supermap.clearM(!0),e.$refs.supermap.clearM(!1),e.eventList=[],e.markersList=[],null!=s.data.eventList&&s.data.eventList.length>0){for(var a=0;a<s.data.eventList.length;a++){var n={lng:124.59,lat:43.02,icon:"marker",bindPopupHtml:"",click:"",keepBindPopup:!1,isAggregation:!1};s.data.eventList.length>50&&(n.isAggregation=!0),(t="event_source_1_3")?n.icon="sj-icon-map-rg":(t="camera_type_1")?n.icon="sj-icon-map-hx":n.icon="sj-icon-map-kk","event_event_status_1"==s.data.eventList[a].eventStatus||"event_event_status_2"==s.data.eventList[a].eventStatus||"event_event_status_6"==s.data.eventList[a].eventStatus?n.click="showEventInfo_Processed":"event_event_status_4"==s.data.eventList[a].eventStatus&&(n.click="showEventInfo_notProcessed"),n.lng=s.data.eventList[a].longitude,n.lat=s.data.eventList[a].latitude,n.bindPopupHtml='<div class="map-tip"><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>经纬度:'+s.data.eventList[a].longitude+","+s.data.eventList[a].latitude+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件名称:'+s.data.eventList[a].eventTitle+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件时间:'+s.data.eventList[a].reportTime+"</h4> </div> </div> </span></div>",e.markersList.push(n)}e.eventList=s.data.eventList,e.$refs.supermap.setMarkers(e.markersList)}}))},todayEventByDeptIdList:function(t){var e=this;Object(l["a"])(t).then((function(t){if(e.$refs.supermap.clearM(!0),e.$refs.supermap.clearM(!1),e.markersList=[],e.eventList=[],null!=t.data.eventList&&t.data.eventList.length>0){for(var s=0;s<t.data.eventList.length;s++){var a={lng:124.59,lat:43.02,icon:"marker",bindPopupHtml:"",click:"",keepBindPopup:!1,isAggregation:!1};t.data.eventList.length>50&&(a.isAggregation=!0),"event_event_status_1"==t.data.eventList[s].eventStatus||"event_event_status_2"==t.data.eventList[s].eventStatus||"event_event_status_6"==t.data.eventList[s].eventStatus?(a.click="showEventInfo_Processed",a.icon="sj-icon-map-clz"):"event_event_status_4"==t.data.eventList[s].eventStatus?(a.click="showEventInfo_notProcessed",a.icon="sj-icon-map-wcl"):a.icon="sj-icon-map-ywc",a.lng=t.data.eventList[s].longitude,a.lat=t.data.eventList[s].latitude,a.bindPopupHtml='<div class="map-tip"><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>经纬度:'+t.data.eventList[s].longitude+","+t.data.eventList[s].latitude+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件名称:'+t.data.eventList[s].eventTitle+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件时间:'+t.data.eventList[s].reportTime+"</h4> </div> </div> </span></div>",e.markersList.push(a)}e.eventList=t.data.eventList,e.$refs.supermap.setMarkers(e.markersList)}}))},todayEventByTypeList:function(t){var e=this;Object(l["b"])(t).then((function(t){if(e.$refs.supermap.clearM(!0),e.$refs.supermap.clearM(!1),e.markersList=[],e.eventList=[],null!=t.data.eventList&&t.data.eventList.length>0){for(var s=0;s<t.data.eventList.length;s++){var a={lng:124.59,lat:43.02,icon:"marker",bindPopupHtml:"",click:"",keepBindPopup:!1,isAggregation:!1};t.data.eventList.length>50&&(a.isAggregation=!0),"event_event_status_1"==t.data.eventList[s].eventStatus||"event_event_status_2"==t.data.eventList[s].eventStatus||"event_event_status_6"==t.data.eventList[s].eventStatus?(a.click="showEventInfo_Processed",a.icon="sj-icon-map-clz"):"event_event_status_4"==t.data.eventList[s].eventStatus?(a.click="showEventInfo_notProcessed",a.icon="sj-icon-map-wcl"):a.icon="sj-icon-map-ywc",a.lng=t.data.eventList[s].longitude,a.lat=t.data.eventList[s].latitude,a.bindPopupHtml='<div class="map-tip"><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>经纬度:'+t.data.eventList[s].longitude+","+t.data.eventList[s].latitude+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件名称:'+t.data.eventList[s].eventTitle+'</h4> </div> </div> </span><span> <div class="d-l-con"> <div class="d-l-l-text"> <h4>事件时间:'+t.data.eventList[s].reportTime+"</h4> </div> </div> </span></div>",e.markersList.push(a)}e.$refs.supermap.setMarkers(e.markersList)}e.eventList=t.data.eventList}))},dropLocation:function(t,e,s){this.listCurrentIndex=s,this.$refs.supermap.dropLocation(t,e)},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(c["a"])().then((function(s){e.ws.detectConnectQt().then((function(a){a?(e.alertLogin(),e.ws.login({loginIp:s.loginIp,loginPort:s.loginPort,userName:s.userName,userPwd:s.userPwd,token:"",https:1}),e.ws.on("loginState",(function(s){e.isLogin=s,console.log("---res-----",s),s?(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)}}},C=_,L=(s("ef47"),s("2877")),b=Object(L["a"])(C,a,n,!1,null,"00750aa4",null);e["default"]=b.exports},"53a9":function(t,e,s){t.exports=s.p+"static/img/mascot.919f0170.png"},"71d1":function(t,e,s){t.exports=s.p+"static/img/img-sample-3.ab1bf01e.jpg"},"8c8c":function(t,e,s){t.exports=s.p+"static/img/img-sample-1.969b05f1.jpg"},a653:function(t,e,s){t.exports=s.p+"static/img/林业病虫害松墨天牛抓拍.410f286e.png"},ef47:function(t,e,s){"use strict";s("4578")}}]);