(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-27dd7770"],{"0228":function(t,e,i){},"0689":function(t,e,i){"use strict";i("eeb4")},"08e2":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"panel alarmStatic"},[a("div",{staticClass:"panel-tit"},[t._v("报警统计")]),a("div",{staticClass:"staticList"},[a("ul",[a("li",[a("img",{attrs:{src:i("717e"),alt:""}}),a("div",[a("p",{staticClass:"static-num colorTotal"},[t._v(t._s(this.total))]),a("p",{staticClass:"static-tit"},[t._v("总报警数")])])]),a("li",[a("img",{attrs:{src:i("cd07"),alt:""}}),a("div",[a("p",{staticClass:"static-num colorOverTime"},[t._v(t._s(this.untreated))]),a("p",{staticClass:"static-tit"},[t._v("已处置数")])])]),a("li",[a("img",{attrs:{src:i("bc76"),alt:""}}),a("div",[a("p",{staticClass:"static-num colorUnhandle"},[t._v(t._s(this.total-this.untreated))]),a("p",{staticClass:"static-tit"},[t._v("未处置数")])])])])]),a("div",{staticClass:"panel-footer"})])},n=[],s=i("b775"),o={queryAlarm:function(){return Object(s["a"])({url:"/top/queryAlarm",method:"post"})}},l={name:"alarmStatic",data:function(){return{total:0,untreated:0}},mounted:function(){var t=this;o.queryAlarm().then((function(e){t.total=e.data.toatl,t.untreated=e.data.untreated}))},methods:{}},r=l,c=(i("215a"),i("2877")),d=Object(c["a"])(r,a,n,!1,null,"0790ba5a",null);e["default"]=d.exports},"0fec":function(t,e,i){},"17dd":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"main",class:t.className,style:{height:t.height,width:t.width}})},n=[],s=(i("b0c0"),i("313e")),o=i.n(s),l=i("86c9"),r=i("a4ee"),c={mixins:[l["default"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},perData:{type:Array,default:function(){return[{color:"#01ACFF",name:"摄像头",value:[45]}]}}},data:function(){return{chart:null}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}));var e=this;r["a"].queryCameraNum().then((function(i){var a=i.data;t.$emit("Camera",a),e.perData[0].value[0]=parseInt((a.total-a.online)/a.total*100),t.$nextTick((function(){t.initChart()}))}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=o.a.init(this.$refs.main);var t=["#C8E4FF","#0483FF","#0483FF"],e=this.perData[0].value,i="%";this.chart.setOption({title:{text:"{a|"+e+"}{b|"+i+"}",textStyle:{rich:{a:{fontSize:25,color:t[2],fontFamily:"impact"},b:{fontSize:16,fontFamily:"impact",color:t[2]}}},subtext:"异常率",subtextStyle:{color:"#fff",fontSize:"12"},itemGap:3,left:"center",top:"37%"},graphic:[{type:"text",z:100,left:"center",top:"90%",style:{fill:this.perData[0].color,text:this.perData[0].name,font:"1.6rem Microsoft YaHei"}}],tooltip:{formatter:function(t){return'占比:'+t.value+"%"}},angleAxis:{max:100,clockwise:!1,show:!1,startAngle:90},radiusAxis:{type:"category",show:!0,axisLabel:{show:!1},axisLine:{show:!1},axisTick:{show:!1}},polar:[{center:["50%","50%"],radius:"100%"}],series:[{name:"小环",type:"gauge",splitNumber:15,radius:"75%",center:["50%","50%"],startAngle:0,endAngle:359.9999,axisLine:{show:!1},axisTick:{show:!0,lineStyle:{color:t[1],width:1,shadowBlur:1,shadowColor:t[1]},length:8,splitNumber:5},splitLine:{show:!1},axisLabel:{show:!1},detail:{show:!1}},{type:"bar",z:10,data:this.perData[0].value,showBackground:!1,backgroundStyle:{color:t[1],borderWidth:10,width:10},coordinateSystem:"polar",barWidth:7,itemStyle:{normal:{opacity:1,color:new o.a.graphic.LinearGradient(0,0,1,1,[{offset:0,color:t[0]},{offset:1,color:t[1]}]),shadowBlur:5,shadowColor:"#2A95F9"}}},{type:"pie",name:"内层细圆环",radius:["50%","52%"],center:["50%","50%"],startAngle:120,hoverAnimation:!1,clockWise:!0,barWidth:1,itemStyle:{normal:{color:new o.a.graphic.LinearGradient(0,0,1,1,[{offset:0,color:t[0]},{offset:1,color:t[1]}])}},tooltip:{show:!1},label:{show:!1},data:[100]}]})}}},d=c,u=i("2877"),h=Object(u["a"])(d,a,n,!1,null,null,null);e["default"]=h.exports},"199a":function(t,e,i){"use strict";i("8774")},"1aba":function(t,e,i){},"1e66":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"panel sbgk"},[i("div",{staticClass:"panel-tit"},[t._v("设备工况")]),i("div",{staticClass:"pie-box"},[i("div",{staticClass:"pie-item"},[i("pie-sounder",{on:{GetKey:t.GetCon}})],1),i("div",{staticClass:"pie-item"},[i("pie-camera",{on:{Camera:t.CameCon}})],1)]),i("div",{staticClass:"num-analysis"},[i("div",[i("ul",{staticStyle:{display:"flex"}},[i("li",[i("p",{staticClass:"num-tit"},[t._v("布防")]),i("p",{staticClass:"num-no"},[t._v(t._s(t.sf))])]),i("li",{staticStyle:{"border-right":"1px dashed #42a4ff"}},[i("p",{staticClass:"num-tit"},[t._v("撤防")]),i("p",{staticClass:"num-no",staticStyle:{color:"#f84803"}},[t._v(t._s(t.cf))])]),i("li",[i("p",{staticClass:"num-tit"},[t._v("旁路")]),i("p",{staticClass:"num-no"},[t._v(t._s(t.pl))])])])]),i("div",[i("ul",[i("li",[i("p",{staticClass:"num-tit"},[t._v("录像机总数")]),i("p",{staticClass:"num-no",staticStyle:{color:"#00acff"}},[t._v(t._s(t.total))])]),i("li",[i("p",{staticClass:"num-tit"},[t._v("异常数量")]),i("p",{staticClass:"num-no",staticStyle:{color:"#fec400"}},[t._v(t._s(t.error))])])])])]),i("div",{staticClass:"panel-footer"})])},n=[],s=i("46be"),o=i("17dd"),l={components:{pieSounder:s["default"],PieCamera:o["default"]},name:"sbgk",data:function(){return{flag:!1,sf:0,cf:0,pl:0,total:0,error:0}},mounted:function(){},methods:{GetCon:function(t){this.sf=t.sf,this.cf=t.cf,this.pl=t.pl},CameCon:function(t){this.total=t.total,this.error=t.total-t.online},postMsg:function(t,e){var i=document.getElementById("otherPage");i.contentWindow.postMessage({state:t,name:e},"*")}}},r=l,c=(i("283f"),i("2877")),d=Object(c["a"])(r,a,n,!1,null,"5e11cbe3",null);e["default"]=d.exports},"215a":function(t,e,i){"use strict";i("c9f2")},"245d":function(t,e,i){},2483:function(t,e,i){},"283f":function(t,e,i){"use strict";i("a042")},"29d5":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"nav-header"},[t._v(" 安防综合管理平台 "),i("div",{staticClass:"home-nav"},[i("el-menu",{attrs:{"default-active":t.activeMenu,collapse:t.isCollapse,"text-color":t.variables.menuText,"unique-opened":!1,"active-text-color":t.variables.menuActiveText,mode:"horizontal"}},t._l(t.routes,(function(t){return i("sidebar-item",{key:t.path,attrs:{item:t,"base-path":t.path}})})),1)],1),i("div",{staticClass:"time-menu"},[i("time-menu")],1)])},n=[],s=i("5530"),o=i("7309"),l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"right-sec"},[i("div",{staticClass:"right-menu"},[i("el-dropdown",{staticClass:"avatar-container",attrs:{trigger:"click"}},[i("div",{staticClass:"avatar-wrapper"},[i("div",[i("strong",[t._v(t._s(t.nickName))])])]),i("div",{staticClass:"logout",on:{click:t.logout}},[i("span",[t._v("安全退出")])])])],1),i("div",{staticClass:"right-time date"},[t._v(t._s(t.dateFormat(t.date)))])])},r=[],c={name:"TimeMenu",data:function(){return{date:new Date,nickName:""}},methods:{logout:function(){var t=this;localStorage.clear(),this.$store.dispatch("logout").then((function(){t.$router.push("/login")})).catch((function(e){t.$message.error(e)}))},setZero:function(t){return t<10?"0"+t:t},dateFormat:function(t){var e=new Date(t),i=e.getFullYear(),a=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,n=e.getDate()<10?"0"+e.getDate():e.getDate(),s=e.getHours()<10?"0"+e.getHours():e.getHours(),o=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),l=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return i+"年"+a+"月"+n+"日 "+s+":"+o+":"+l}},created:function(){var t=this;setTimeout((function(){t.nickName=t.$store.state.nickName}),500)},mounted:function(){var t=this;this.timer=setInterval((function(){t.date=new Date}),1e3)},destroyed:function(){this.timer&&clearInterval(this.timer)}},d=c,u=(i("3d5b"),i("2877")),h=Object(u["a"])(d,l,r,!1,null,"70113c86",null),f=h.exports,m=i("2f62"),v=i("cf1e"),p=i.n(v),g={name:"navHeader",components:{SidebarItem:o["default"],TimeMenu:f},data:function(){return{}},computed:Object(s["a"])(Object(s["a"])({},Object(m["b"])(["sidebar","addRoutes"])),{},{routes:function(){return this.$store.getters.routes},activeMenu:function(){var t=this.$route,e=t.meta,i=t.path;return e.activeMenu?e.activeMenu:i},variables:function(){return p.a},isCollapse:function(){return!this.sidebar.opened}})},b=g,A=(i("c4b8"),i("5988"),Object(u["a"])(b,a,n,!1,null,null,null));e["default"]=A.exports},"35d3":function(t,e,i){},"37f9":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main-container-box"},[a("nav-header"),a("div",{staticClass:"panel-box"},[a("div",{staticClass:"column1"},[a("transition",{attrs:{name:"fade"}},[t.show?a("sbjk"):t._e()],1),t.monitorStatus?a("monitor",{attrs:{width:t.width},on:{monitorChange:t.monitorChange}}):t._e()],1),a("transition",{attrs:{name:"fade1"}},[t.show?a("div",{staticClass:"column2"},[a("alarm-static"),a("handle-number"),a("alarming")],1):t._e()]),t.showModal_tow?a("div",{staticClass:"panel monitor-setting"},[a("div",{staticClass:"panel-tit"},[t._v(" 画面配置"),a("img",{staticClass:"close",attrs:{src:i("cd5c"),alt:""},on:{click:function(e){t.showModal_tow=!1}}})]),a("div",{staticClass:"monitor-option"}),a("div",{staticClass:"panel-footer"})]):t._e()],1)],1)},n=[],s=i("53ca"),o=(i("b0c0"),i("1e66")),l=i("dfd5"),r=i("b3de"),c=i("b2b1"),d=i("08e2"),u=i("a369"),h=i("29d5"),f=i("5f87"),m={components:{sbjk:o["default"],monitor:l["default"],alarming:r["default"],handleNumber:c["default"],alarmStatic:d["default"],TimeMenu:u["a"],navHeader:h["default"],getToken:f["a"]},data:function(){return{showModal_tow:!1,width:"100rem",show:!0,monitorStatus:!0}},mounted:function(){var t=this;window.addEventListener("message",(function(e){var i="object"===Object(s["a"])(e.data),a=e.data;1==i&&"param"in a==1&&"iframe"===a.param.name&&"iframe"===a.param.id&&t.handleClick()}),!1)},methods:{handleClick:function(){this.show=!this.show,1==this.show?this.width="100rem":this.width="100%"},monitorChange:function(){var t=this;this.monitorStatus=!1,setTimeout((function(){t.monitorStatus=!0}),1)}}},v=m,p=(i("cdfa"),i("199a"),i("cf65"),i("4229"),i("2877")),g=Object(p["a"])(v,a,n,!1,null,"71df2401",null);e["default"]=g.exports},"3ab6":function(t,e,i){"use strict";i("cfa0")},"3d5b":function(t,e,i){"use strict";i("2483")},4229:function(t,e,i){"use strict";i("245d")},"46be":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"main",class:t.className,style:{height:t.height,width:t.width}})},n=[],s=(i("b680"),i("b0c0"),i("313e")),o=i.n(s),l=i("86c9"),r=i("a4ee"),c={mixins:[l["default"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},perData:{type:Array,default:function(){return[{color:"#07F7A8",name:"周界防范",value:[45]}]}}},data:function(){return{chart:null}},mounted:function(){var t=this,e=this;r["a"].queryInvadeDevice().then((function(i){var a=i.data;t.$emit("GetKey",a),isNaN(100*(a.sf/(a.sf+a.cf+a.pl)).toFixed(2))?e.perData[0].value[0]=0:e.perData[0].value[0]=100*(a.sf/(a.sf+a.cf+a.pl)).toFixed(2),t.$nextTick((function(){t.initChart()}))}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=o.a.init(this.$refs.main);var t=["#9AFFDE","#00F9AA","#00F9AA"],e=this.perData[0].value,i="%";this.chart.setOption({title:{text:"{a|"+e+"}{b|"+i+"}",textStyle:{rich:{a:{fontSize:25,color:t[2],fontFamily:"impact"},b:{fontSize:16,fontFamily:"impact",color:t[2]}}},subtext:"布防占比",subtextStyle:{color:"#fff",fontSize:"12"},itemGap:3,left:"center",top:"37%"},graphic:[{type:"text",z:100,left:"center",top:"90%",style:{fill:this.perData[0].color,text:this.perData[0].name,font:"1.6rem Microsoft YaHei"}}],tooltip:{formatter:function(t){return'占比:'+t.value+"%"}},angleAxis:{max:100,clockwise:!1,show:!1,startAngle:90},radiusAxis:{type:"category",show:!0,axisLabel:{show:!1},axisLine:{show:!1},axisTick:{show:!1}},polar:[{center:["50%","50%"],radius:"100%"}],series:[{name:"小环",type:"gauge",splitNumber:15,radius:"75%",center:["50%","50%"],startAngle:0,endAngle:359.9999,axisLine:{show:!1},axisTick:{show:!0,lineStyle:{color:t[1],width:1,shadowBlur:1,shadowColor:t[1]},length:8,splitNumber:5},splitLine:{show:!1},axisLabel:{show:!1},detail:{show:!1}},{type:"bar",z:10,data:this.perData[0].value,showBackground:!1,backgroundStyle:{color:t[1],borderWidth:10,width:10},coordinateSystem:"polar",barWidth:7,itemStyle:{normal:{opacity:1,color:new o.a.graphic.LinearGradient(0,0,1,1,[{offset:0,color:t[0]},{offset:1,color:t[1]}]),shadowBlur:5,shadowColor:"#2A95F9"}}},{type:"pie",name:"内层细圆环",radius:["50%","52%"],center:["50%","50%"],startAngle:120,hoverAnimation:!1,clockWise:!0,barWidth:1,itemStyle:{normal:{color:new o.a.graphic.LinearGradient(0,0,1,1,[{offset:0,color:t[0]},{offset:1,color:t[1]}])}},tooltip:{show:!1},label:{show:!1},data:[100]}]})}}},d=c,u=i("2877"),h=Object(u["a"])(d,a,n,!1,null,null,null);e["default"]=h.exports},"4e58":function(t,e,i){"use strict";i("d2a2")},"4fe1":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA21BMVEXc3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3c3N3///8yaCmWAAAAR3RSTlMAItv6+NcZYVUoeipU2tZOLn0jDdjPCIZz6v2PNZH+YHyYlxiB9laME6irGoeKpVj3nFrf6XYL2Q8lLFHcVyl7K2Qd1PT73Qq4O04AAAABYktHREjwAtTqAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH5QIBCAg3NlZqKwAAAJpJREFUGNNVj+cSgjAQhFdE7AXsimLHrmDB3jXv/0YmMTMm+2f3vpm7nQOYQlpYjxj4K0qoYmKIJ5KpNAOZbM60gHyBSCqWUCaKKqgyq9Vtu9FkSYOjU2sZ7U63R0N/ALjUhyNCxhMaprRlJsBcgMWSr3jeb8XHSj26xkatdbEN5DnYAXvzcOTwdL5cb+Ifn4G79O3j+Xp/LB6/nJwr671T9jEAAAAASUVORK5CYII="},5988:function(t,e,i){"use strict";i("35d3")},"717e":function(t,e,i){t.exports=i.p+"static/img/static1.5ae8a6e8.png"},7309:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.item.hidden||"Building"==t.item.name?t._e():i("div",[!t.hasOneShowingChild(t.item.children,t.item)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||t.item.alwaysShow?i("el-submenu",{ref:"subMenu",attrs:{index:t.resolvePath(t.item.path),"popper-append-to-body":""}},[i("template",{slot:"title"},[t.item.meta?i("item",{attrs:{icon:t.item.meta&&t.item.meta.icon,title:t.item.meta.title}}):t._e()],1),t._l(t.item.children,(function(e){return i("sidebar-item",{key:e.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:e,"base-path":t.resolvePath(e.path)}})}))],2):[t.onlyOneChild.meta?i("app-link",{attrs:{to:t.resolvePath(t.onlyOneChild.path)}},[i("el-menu-item",{class:{"submenu-title-noDropdown":!t.isNest},attrs:{index:t.resolvePath(t.onlyOneChild.path)}},[i("item",{attrs:{title:t.onlyOneChild.meta.title}})],1)],1):t._e()]],2)},n=[],s=i("5530"),o=(i("4de4"),i("d3b7"),i("df7c")),l=i.n(o),r=i("61f7"),c=i("837c"),d=i("a6e1"),u=i("5c70"),h={name:"SidebarItem",components:{Item:c["a"],AppLink:d["a"]},mixins:[u["a"]],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,a=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(s["a"])(Object(s["a"])({},i),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(r["b"])(t)?t:Object(r["b"])(this.basePath)?this.basePath:l.a.resolve(this.basePath,t)}}},f=h,m=(i("c9c8"),i("2877")),v=Object(m["a"])(f,a,n,!1,null,"81494c9a",null);e["default"]=v.exports},"86c9":function(t,e,i){"use strict";i.r(e);var a=i("ed08");e["default"]={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){var t=this;this.$_resizeHandler=Object(a["a"])((function(){t.chart&&t.chart.resize()}),100),this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},beforeDestroy:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},activated:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},deactivated:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},methods:{$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(t){"width"===t.propertyName&&this.$_resizeHandler()},$_initSidebarResizeEvent:function(){this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},$_destroySidebarResizeEvent:function(){this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)}}}},8733:function(t,e,i){},8774:function(t,e,i){},"9ec0":function(t,e,i){},a042:function(t,e,i){},a4ee:function(t,e,i){"use strict";var a=i("b775");e["a"]={queryInvadeDevice:function(){return Object(a["a"])({url:"/top/queryInvadeDevice",method:"post"})},queryCameraNum:function(){return Object(a["a"])({url:"/top/queryCameraNum",method:"post"})}}},ac4a:function(t,e,i){"use strict";i.d(e,"c",(function(){return n})),i.d(e,"b",(function(){return s})),i.d(e,"a",(function(){return o}));var a=i("b775");function n(t){return Object(a["a"])({url:"/dhController/getLocalChannel",method:"post",params:t})}function s(t){return Object(a["a"])({url:"/dhController/getDhDeviceListNew",method:"post",data:t})}function o(t){return Object(a["a"])({url:"/dhController/exportChannel",method:"post",data:t})}},b2b1:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"panel handleNumber"},[i("div",{staticClass:"panel-tit"},[t._v("巡更信息")]),i("div",{staticClass:"section1"},[i("div",{staticStyle:{width:"100%",display:"flex"}},[i("div",{staticClass:"sion1_div"},[i("div",{staticClass:"sion1_title"},[t._v("巡更点")]),i("div",{staticClass:"sion1_cont xgd"},[t._v(t._s(t.pointNum))])]),i("div",{staticClass:"sion1_div"},[i("div",{staticClass:"sion1_title"},[t._v("巡更路线")]),i("div",{staticClass:"sion1_cont xglx"},[t._v(t._s(t.lineNum))])]),i("div",{staticClass:"sion1_div"},[i("div",{staticClass:"sion1_title"},[t._v("巡更计划")]),i("div",{staticClass:"sion1_cont xgjh"},[t._v(t._s(t.planNum))])])])]),i("div",{staticClass:"section2"},[i("div",{staticClass:"tit"},[t._v("巡更异常信息")]),t._m(0),i("div",{staticClass:"scroll",staticStyle:{height:"9.5rem",overflow:"hidden"}},[i("table",{staticClass:"alarm-table"},[i("tbody",{attrs:{id:"scroll-box1"}},t._l(t.arrayList,(function(e){return i("tr",{key:e.id,on:{click:function(e){return t.abnormal("")}}},[i("td",[t._v(t._s(e.id))]),i("td",{staticClass:"online"},[t._v(t._s(e.eCreateTime))]),i("td",[t._v(t._s(e.ePlanState))])])})),0)])])]),i("div",{staticClass:"panel-footer"})])},n=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("table",{staticClass:"alarm-table"},[i("thead",[i("tr",[i("th",[t._v("序号")]),i("th",[t._v("时间")]),i("th",[t._v("事件")])])])])}],s=i("b775"),o={queryPatrolling:function(){return Object(s["a"])({url:"/top/queryPatrolling",method:"post"})},queryPatrollingPlanStatus:function(t){return Object(s["a"])({url:"/pt/queryPatrollingPlanStatus",method:"post",params:t})}},l={name:"handleNumber",data:function(){return{arrayList:[],pointNum:0,lineNum:0,planNum:0}},mounted:function(){var t=this,e=this;e.scroll_ber(),o.queryPatrolling().then((function(t){for(var i=0;i0&&(t.arrayList=e.data.pageList)}))},methods:{scroll_ber:function(){if(this.arrayList.length>3){var t=document.getElementById("scroll-box1"),e=null,i=function(t){var e=document.getElementById("scroll-box1");e.style.cssText="transform:translate(0,0)",e.appendChild(e.children[0])},a=function(t){clearInterval(e)},n=function(){e=setInterval((function(){if(t.children[0]){var e=t.children[0].offsetHeight;e=parseInt(e),t.style.cssText="transform:translate(0px,-".concat(e,"px);transition:all 1s ease;")}}),3e3)},s=function(){n()};t.addEventListener("mouseenter",a),t.addEventListener("mouseleave",s),t.removeEventListener("transitionend",i),t.addEventListener("transitionend",i),n()}}}},r=l,c=(i("0689"),i("2877")),d=Object(c["a"])(r,a,n,!1,null,"bb1100dc",null);e["default"]=d.exports},b3de:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"panel alarming"},[i("div",{staticClass:"panel-tit"},[t._v("告警信息")]),t._m(0),i("div",{staticClass:"scroll gj"},[i("table",{staticClass:"alarm-table"},[i("tbody",{attrs:{id:"scroll-box"}},t._l(t.arrayList,(function(e){return i("tr",{key:e.id,on:{click:function(e){return t.abnormal("")}}},[i("td",[t._v(t._s(e.id))]),i("td",{staticClass:"online"},[t._v(t._s(e.creatTime))]),i("td",[t._v(" "+t._s("1"==e.eventtriger?"恢复事件":"2"==e.eventtriger?"触发事件":"")+" ")])])})),0)])]),i("div",{staticClass:"panel-footer"})])},n=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("table",{staticClass:"alarm-table"},[i("thead",[i("tr",[i("th",[t._v("序号")]),i("th",[t._v("报警时间")]),i("th",[t._v("报警事件")])])])])}],s=i("b775"),o={queryPerimeterAlarm:function(t){return Object(s["a"])({url:"/PerimeterController/queryPerimeterAlarm",method:"post",params:t})}},l={name:"alarming",data:function(){return{username:"",path:"",socket:"",arrayList:[]}},mounted:function(){this.init(),this.scroll()},methods:{scroll:function(){var t=this;o.queryPerimeterAlarm().then((function(e){if("SUCCESS"==e.status&&e.data.pageList.length>0&&(t.arrayList=e.data.pageList,t.arrayList.length>5)){var i=document.getElementById("scroll-box"),a=null,n=function(t){var e=document.getElementById("scroll-box");e.style.cssText="transform:translate(0,0)",e.appendChild(e.children[0])},s=function(t){clearInterval(a)},o=function(){a=setInterval((function(){if(i.children[0]){var t=i.children[0].offsetHeight;t=parseInt(t),i.style.cssText="transform:translate(0px,-".concat(t,"px);transition:all 1s ease;")}}),3e3)},l=function(){o()};i.addEventListener("mouseenter",s),i.addEventListener("mouseleave",l),i.removeEventListener("transitionend",n),i.addEventListener("transitionend",n),o()}}))},init:function(){var t=window.PLATFROM_WEBSOCKET.wsUrl;this.path=t,"undefined"===typeof WebSocket?alert("您的浏览器不支持socket"):(this.socket=new WebSocket(this.path),this.socket.onopen=this.open,this.socket.onerror=this.error,this.socket.onmessage=this.getMessage)},open:function(){console.log("socket连接成功")},error:function(){console.log("连接错误")},getMessage:function(t){this.arrayList=JSON.parse(t.data)},send:function(){this.socket.send(params)},close:function(){console.log("socket已经关闭")}},destroyed:function(){this.socket.onclose=this.close}},r=l,c=(i("4e58"),i("2877")),d=Object(c["a"])(r,a,n,!1,null,"16fc5b2a",null);e["default"]=d.exports},bc76:function(t,e,i){t.exports=i.p+"static/img/static3.4f761fff.png"},c277:function(t,e,i){},c4b8:function(t,e,i){"use strict";i("0fec")},c9c8:function(t,e,i){"use strict";i("0228")},c9f2:function(t,e,i){},cd07:function(t,e,i){t.exports=i.p+"static/img/static2.72714319.png"},cd5c:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAQAAAC1QeVaAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQflAgEICDXYWAsHAAAAZUlEQVQY023QQQ6AIAxE0cHT0fvHaLwFXOC7aJAWgVXnJc2k4sTQ5huPqLQNGx0TotIXNk98yGxjGsFko1E9naucA0V0DoQOzVeEikpIQo1GzdUyLc1XSvynwH6+TB+Le0O+73oBPuHbeVm4YioAAAAASUVORK5CYII="},cdfa:function(t,e,i){"use strict";i("c277")},cf65:function(t,e,i){"use strict";i("1aba")},cfa0:function(t,e,i){},d2a2:function(t,e,i){},d96a:function(t,e,i){"use strict";i("8733")},dfd5:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{position:"relative"}},[a("transition",{attrs:{name:"fade"}},[a("div",{staticClass:"panel monitor"},[a("div",{staticClass:"panel-tit"},[t._v(" 视频监控 "),a("img",{staticClass:"setting",attrs:{src:i("4fe1"),alt:""},on:{click:t.open}})]),a("ul",{staticClass:"monitor-list"},t._l(t.hls_video,(function(e,i){return a("li",{key:i,staticStyle:{height:"14vh"}},[e.boolhls?a("video",{ref:e.ref,refInFor:!0,staticClass:"hlsVideo monitor-height",attrs:{controls:"",preload:"true",muted:""},domProps:{muted:!0},on:{click:function(i){return t.hlsVideo(e.name)}}}):t._e(),a("p",{staticStyle:{width:"90%",margin:"6px 5%","font-size":"1.4rem"}},[t._v(t._s(e.name))])])})),0),a("div",{staticClass:"panel-footer"}),t.showModal?a("div",{staticClass:"panel monitor-setting"},[a("div",{staticClass:"panel-tit"},[t._v(" 画面配置"),a("img",{staticClass:"close",attrs:{src:i("cd5c"),alt:""},on:{click:function(e){t.showModal=!1}}})]),a("div",{staticClass:"monitor-option"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"10rem"}},[a("el-form-item",{attrs:{label:"画面一:"}},[a("el-select",{staticClass:"selectWrap",on:{change:function(e){return t.handleChange(0,t.selectVideoHc[0].url)}},model:{value:t.selectVideoHc[0].url,callback:function(e){t.$set(t.selectVideoHc[0],"url",e)},expression:"selectVideoHc[0].url"}},t._l(t.list,(function(t,e){return a("el-option",{key:e,staticClass:"select1",attrs:{label:t.label,value:t.url}})})),1)],1),a("el-form-item",{attrs:{label:"画面二:"}},[a("el-select",{staticClass:"selectWrap",on:{change:function(e){return t.handleChange(1,t.selectVideoHc[1].url)}},model:{value:t.selectVideoHc[1].url,callback:function(e){t.$set(t.selectVideoHc[1],"url",e)},expression:"selectVideoHc[1].url"}},t._l(t.list,(function(t,e){return a("el-option",{key:e,staticClass:"select1",attrs:{label:t.label,value:t.url}})})),1)],1),a("el-form-item",{attrs:{label:"画面三:"}},[a("el-select",{staticClass:"selectWrap",on:{change:function(e){return t.handleChange(2,t.selectVideoHc[2].url)}},model:{value:t.selectVideoHc[2].url,callback:function(e){t.$set(t.selectVideoHc[2],"url",e)},expression:"selectVideoHc[2].url"}},t._l(t.list,(function(t,e){return a("el-option",{key:e,staticClass:"select1",attrs:{label:t.label,value:t.url}})})),1)],1),a("el-form-item",{attrs:{label:"画面四:"}},[a("el-select",{staticClass:"selectWrap",on:{change:function(e){return t.handleChange(3,t.selectVideoHc[3].url)}},model:{value:t.selectVideoHc[3].url,callback:function(e){t.$set(t.selectVideoHc[3],"url",e)},expression:"selectVideoHc[3].url"}},t._l(t.list,(function(t,e){return a("el-option",{key:e,staticClass:"select1",attrs:{label:t.label,value:t.url}})})),1)],1),a("el-form-item",{attrs:{label:"画面五:"}},[a("el-select",{staticClass:"selectWrap",on:{change:function(e){return t.handleChange(4,t.selectVideoHc[4].url)}},model:{value:t.selectVideoHc[4].url,callback:function(e){t.$set(t.selectVideoHc[4],"url",e)},expression:"selectVideoHc[4].url"}},t._l(t.list,(function(t,e){return a("el-option",{key:e,staticClass:"select1",attrs:{label:t.label,value:t.url}})})),1)],1),a("el-form-item",{attrs:{label:"画面六:"}},[a("el-select",{staticClass:"selectWrap",on:{change:function(e){return t.handleChange(5,t.selectVideoHc[5].url)}},model:{value:t.selectVideoHc[5].url,callback:function(e){t.$set(t.selectVideoHc[5],"url",e)},expression:"selectVideoHc[5].url"}},t._l(t.list,(function(t,e){return a("el-option",{key:e,staticClass:"select1",attrs:{label:t.label,value:t.url}})})),1)],1),a("el-form-item",{staticStyle:{"margin-left":"-2rem"}},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("保存")])],1)],1)],1),a("div",{staticClass:"panel-footer"})]):t._e()])]),a("iframe",{style:"width:"+t.width+";",attrs:{id:"otherPage",align:"middle",src:t.iframe_Url}}),a("el-dialog",{attrs:{visible:t.videoS,width:"600",modal:!1},on:{"update:visible":function(e){t.videoS=e},close:t.closeDialog}},[a("div",{staticClass:"titleZise",staticStyle:{"font-size":"16px",color:"#484848","font-weight":"700",margin:"10px 0 0 20px"}},[t._v(t._s(t.videoMsg.name)+" ")]),a("video",{ref:"hlsVideo222",staticClass:"hlsVideo222 monitor-height",staticStyle:{width:"100%","margin-top":"6px","z-index":"9000"},attrs:{controls:"",preload:"true",muted:""},domProps:{muted:!0}})])],1)},n=[],s=i("53ca"),o=(i("b0c0"),i("ac1f"),i("1276"),i("7db0"),i("d3b7"),i("e9c4"),i("b64b"),i("159b"),i("ba56")),l=i.n(o),r=i("ac4a"),c=i("5530"),d=i("b775"),u={getList:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20;return Object(d["a"])({url:"/electronic_patrol/getElectronicPatrolList",method:"post",data:Object(c["a"])(Object(c["a"])({},t),{},{pageNo:e,pageSize:i})})},add:function(t){return Object(d["a"])({url:"/electronic_patrol/appendElectronicPatrol",method:"post",data:t})},update:function(t){return Object(d["a"])({url:"/electronic_patrol/updateElectronicPatrol",method:"post",data:t})},deleteById:function(t){return Object(d["a"])({url:"/electronic_patrol/deleteElectronicPatrol",method:"post",data:t})},getMonitoring:function(t){return Object(d["a"])({url:"/video/VideoCollectionUrl",method:"post",data:t})},getMonitoring1:function(t){return Object(d["a"])({url:"/video/VideoCollectionUrl",method:"post",data:t})},getLocalDeviceList:function(t){return Object(d["a"])({url:"/dhController/getLocalDeviceList",method:"post",data:t})},getVideoLiveUrl:function(t){return Object(d["a"])({url:"/dhController/getVideoLiveUrl",method:"post",data:t})},getVideoUrl:function(t){return Object(d["a"])({url:"/system/config/configKey/"+t,method:"get"})},addVideoUrl:function(t){return Object(d["a"])({url:"/system/config",method:"post",data:t})},updateVideoUrl:function(t){return Object(d["a"])({url:"/system/config",method:"put",data:t})}},h=i("5c96"),f={name:"monitor",props:{width:String,required:!0},data:function(){return{hls2:"",videoS:!1,configKey:void 0,configName:void 0,configId:void 0,video:!1,selectVideo:[{label:void 0,url:void 0},{label:void 0,url:void 0},{label:void 0,url:void 0},{label:void 0,url:void 0},{label:void 0,url:void 0},{label:void 0,url:void 0}],selectVideoHc:[{label:void 0,url:void 0},{label:void 0,url:void 0},{label:void 0,url:void 0},{label:void 0,url:void 0},{label:void 0,url:void 0},{label:void 0,url:void 0}],expandOnClickNode:!0,options:[],list:[],defaultProps:{children:"children",label:"label"},showModal_tow:!1,showModal:!1,hls:"",form:{name:"",region:"",region2:"",region3:"",region4:"",region5:"",region6:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:""},hls_video:[],hls_video2:[],iframe_Url:"",tableData:[],videoMsg:{}}},created:function(){this.getVideoUrl(),this.getList()},mounted:function(){var t=this;t.iframe_Url=window.PLATFROM_IFRAME.iframeUrl,window.addEventListener("message",(function(e){Object(s["a"])(e.data);var i,a=e.data;console.log(a),null!==a&&void 0!==a&&null!==(i=a.param)&&void 0!==i&&i.name&&Object(r["c"])({pageNo:1,pageSize:1,name:a.param.name}).then((function(e){if(console.log(e),e.data.pageList.length>0){var i=e.data.pageList[0];t.videoMsg=i,t.videoS=!0;var a="http://"+i.nvr_ip+":"+i.hls_port+"/live/cameraid/"+i.deviceId+"%24"+i.id.split("$")[i.id.split("$").length-1]+"/substream/1.m3u8";t.hls_video2=[{name:"hlsVideo222",ref:"hlsVideo222",hls:"hlsVideo222",boolhls:!0,boolimg:!1}],console.log(a,t.hls_video2[0].ref,0),t.loadVideoFn2(a)}else t.$message.error("设备未绑定")}))}),!1)},methods:{closeDialog:function(){this.destroyHls(this.hls_video2)},handleChange:function(t,e){this.selectVideoHc[t].label=this.list.find((function(t){return t.url==e})).label},getList:function(){var t=this;Object(r["c"])({unitType:1,pageNo:1,pageSize:500}).then((function(e){if(e.data.pageList.length>0){for(var i=e.data.pageList,a=[],n=0;n0?a=setTimeout(r,e-c):(a=null,i||(l=t.apply(s,n),a||(s=n=null)))};return function(){for(var n=arguments.length,c=new Array(n),d=0;d