1 line
36 KiB
JavaScript
1 line
36 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e90a40b0"],{"01b6":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAqCAYAAADWFImvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxMEI3NjIyNkEzREExMUVCQkJFQkQ2QjdCN0VBOUM0NyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoxMEI3NjIyN0EzREExMUVCQkJFQkQ2QjdCN0VBOUM0NyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAu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aYovmTRNwBU8CZKMq+8vMR8XPCEEW/XMaPZG6NvxF52aRc2Sv/6DCEluTTuCIhdlsb/cXVl20lxue3JxVRD7zFeaWnVAhyvgZMLvaRbaJNd0Q7KAhN7VxZ13kW8YyGSaAaIbafFKF8RELPk2QKqcoRn4zlwejGEm6kTvjRI2wzyRSjcGDHCRfm+zc5ZLNESNNe+F6698n9Q4sLLye3QV/L/nny72wzB/wQYAPFq9ouVqH67AAAAAElFTkSuQmCC"},"028a":function(t,e,a){"use strict";a("113e")},"0e53":function(t,e,a){"use strict";a("d005")},"113e":function(t,e,a){},"17ea":function(t,e,a){},"18b7":function(t,e,a){},"1c76":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bigscreen-echarts-gauge"},[a("div",{style:t.styles,attrs:{id:t.eId}})])},s=[],n=(a("a9e3"),a("22b4")),r=a("1be7"),l=a("9be8"),o=a("f95e"),c={name:"echartsRadarWrap",props:{eId:{type:String},styles:{type:String},colorList:{type:[Array,String],default:["#27d0ec"]},option:{stype:Number,default:0}},data:function(){return{chart:null}},created:function(){this.chart=null,n["a"]([l["a"],o["a"]])},mounted:function(){this.drawLine()},methods:{drawLine:function(){this.chart||(this.chart=r["l"](document.getElementById(this.eId)));var t={series:[{type:"gauge",color:this.colorList,progress:{show:!0,width:15},axisLine:{lineStyle:{width:15}},axisTick:{show:!1},splitLine:{length:15,show:!1,lineStyle:{width:2,color:"#004299a3"}},axisLabel:{distance:25,show:!1,color:"#999",fontSize:10},anchor:{show:!1,showAbove:!0,size:5,itemStyle:{borderWidth:2}},title:{text:"今日报警"},detail:{valueAnimation:!0,fontSize:15,color:this.colorList[0]||"#27d0ec",offsetCenter:[0,"80%"]},data:[{value:this.option}]}]};this.chart.setOption(t)}},watch:{option:function(t,e){this.chart=null,this.drawLine()}}},u=c,d=(a("f222"),a("2877")),p=Object(d["a"])(u,i,s,!1,null,null,null);e["default"]=p.exports},"23d8":function(t,e,a){},"28ea":function(t,e,a){"use strict";a("5120")},"3b1f":function(t,e,a){"use strict";a("17ea")},"494f":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bigscreen-echarts-pie"},[a("div",{style:t.styles,attrs:{id:t.eId}})])},s=[],n=a("313e"),r={name:"echartsRadarWrap",props:{eId:{type:String},styles:{type:String},colorList:{type:[Array,String],default:""},option:{stype:Object,default:[]}},data:function(){return{chart:null}},created:function(){this.chart=null},mounted:function(){this.drawLine()},methods:{updateEchart:function(){this.chart&&(this.chart=null),this.drawLine()},drawLine:function(){this.chart||(this.chart=n["init"](document.getElementById(this.eId)));var t={legend:{top:"5",right:"60",type:"scroll",orient:"vertical",pageIconColor:"#6495ed",pageIconInactiveColor:"#aaa",pageIconSize:10,pageButtonItemGap:1,textStyle:{color:"#fff",fontSize:16}},toolbox:{show:!1,feature:{mark:{show:!0},dataView:{show:!0,readOnly:!1},restore:{show:!0},saveAsImage:{show:!0}}},series:[{name:"",type:"pie",radius:[30,70],center:["25%","50%"],roseType:"area",emphasis:{label:{show:!1}},label:{show:!1},itemStyle:{borderRadius:1},data:this.option}]};this.chart.setOption(t)}},watch:{option:function(t,e){this.chart=null,this.drawLine()}}},l=r,o=(a("615e"),a("2877")),c=Object(o["a"])(l,i,s,!1,null,null,null);e["default"]=c.exports},"49c0":function(t,e,a){"use strict";a("ee0e")},"4b19":function(t,e,a){t.exports=a.p+"static/img/maptp_v1.76e6e3c6.png"},5120:function(t,e,a){},"615e":function(t,e,a){"use strict";a("e970")},"65d6":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"big-device-proportion-wrap"},[a("div",{staticClass:"title-t"},[t._v(t._s(t.title))]),a("echarts-radar-wrap",{attrs:{styles:"width: 100%; height: 230px;",eId:"echartsGaugeDP",option:t.radarOption}})],1)},s=[],n=a("d618"),r=a.n(n),l=a("ec0a"),o=a("b562"),c={name:"DeviceProportionWrap",components:{EchartsRadarWrap:l["default"]},props:["projectId"],data:function(){return{list:[],titleImg:r.a,title:"所有设备占比分析",radarOption:{indicator:[{name:"物联网断路器",max:100},{name:"智能摄像机",max:100},{name:"智能电表",max:100},{name:"烟雾传感器",max:100},{name:"智能气表",max:100},{name:"智能电表",max:100},{name:"智能电表",max:100},{name:"智能水表",max:100}],seriesList:[{value:[],name:"预算分配(Allocated Budget)"}]}}},watch:{projectId:function(t){this.getDeviceProportionList()}},created:function(){this.getDeviceProportionList()},methods:{getDeviceProportionList:function(){var t=this;Object(o["b"])({projectId:this.projectId}).then((function(e){var a=e.data;t.radarOption.indicator=[],t.radarOption.seriesList=[];for(var i=t,s=0;s<a.length;s++)i.radarOption.indicator.push({name:a[s].deviceTypeName,max:a[s].total<=0?1:a[s].total}),i.radarOption.seriesList.push(a[s].thisTotal)}))}}},u=c,d=(a("8302"),a("2877")),p=Object(d["a"])(u,i,s,!1,null,null,null);e["default"]=p.exports},"6b12":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bigscreen-echarts-bar"},[a("div",{style:t.styles,attrs:{id:"chartBar"}})])},s=[],n=a("313e"),r={name:"echartsBar",props:{styles:{type:String},colorList:{type:[Array,String],default:""},option:{stype:Array,default:[]}},data:function(){return{chart:null}},created:function(){this.chart=null},mounted:function(){this.drawLine()},methods:{drawLine:function(){this.chart||(this.chart=n["init"](document.getElementById("chartBar")));var t={color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"20",right:"20",bottom:"25",top:15,containLabel:!0},toolbox:{show:!1,feature:{mark:{show:!0},dataView:{show:!0,readOnly:!1},magicType:{show:!0,type:["line","bar"]},restore:{show:!0},saveAsImage:{show:!0}}},xAxis:[{type:"category",data:["报警总数","未处理","已处理"],axisTick:{alignWithLabel:!1},axisLine:{show:!1,lineStyle:{color:"#fff"}},axisLabel:{interval:0,margin:10,textStyle:{color:"#fff"}}}],yAxis:[{type:"value",axisLine:{lineStyle:{color:"#fff"}},axisLabel:{interval:0,margin:10,textStyle:{color:"#fff"}}}],series:[{name:"数量:",type:"bar",barWidth:"40%",data:this.option,itemStyle:{normal:{color:function(t){var e=["#00FCFF","#FF2F60","#25F094"];return e[t.dataIndex]}},emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};this.chart.setOption(t)}},watch:{option:function(t,e){this.chart=null,this.drawLine()}}},l=r,o=(a("28ea"),a("2877")),c=Object(o["a"])(l,i,s,!1,null,null,null);e["default"]=c.exports},"6d87":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"big-head-wrap"},[a("div",{staticClass:"left-wrap"},[a("treeselect",{directives:[{name:"show",rawName:"v-show",value:"PERSONAL"!==t.tempUserType,expression:"tempUserType !== 'PERSONAL'"}],staticClass:"tree-select-wrap",attrs:{options:t.treeList,placeholder:"全国"},model:{value:t.treeValue,callback:function(e){t.treeValue=e},expression:"treeValue"}}),a("el-select",{directives:[{name:"show",rawName:"v-show",value:"PERSONAL"!==t.tempUserType,expression:"tempUserType !== 'PERSONAL'"}],attrs:{size:"small",filterable:"",placeholder:"项目名称",clearable:""},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}},t._l(t.projectList,(function(t){return a("el-option",{key:t.projectId,attrs:{label:t.projectName,value:t.projectId}})})),1)],1),a("div",{staticClass:"title-wrap"},[t._v(t._s(t.handelTile))]),a("div",{staticClass:"right-wrap"},[a("span",[t._v(t._s(t.days))]),a("span",[t._v(t._s(t.weeks))]),a("span",[t._v(t._s(t.time))]),a("el-button",{attrs:{type:"text",title:"全屏",plain:"",icon:"iconfont iconquanping1"},on:{click:t.fullScreen}})],1)])},s=[],n=a("e6db"),r=a("ca17"),l=a.n(r),o=(a("542c"),{name:"bigHeadWrap",props:["handelTile","projectList"],components:{Treeselect:l.a},data:function(){return{inputValue:"",days:"",weeks:"",time:"",treeList:[],treeValue:null,tempUserType:null,fullscreen:!1}},mounted:function(){setInterval(this.getDate,1e3)},created:function(){this.tempUserType=this.$store.getters.userType,this.treeListRegionalism(),this.getDate()},watch:{inputValue:function(t){this.$emit("eventProjectId",t)},treeValue:function(t){this.$emit("eventRegionalismId",t)}},methods:{signOut:function(){this.$router.push("/")},fullScreen:function(){var t=document.getElementById("con_lf_top_div");this.fullscreen?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen(),this.fullscreen=!this.fullscreen,this.$emit("eventFullscreen",{value:this.fullscreen})},treeListRegionalism:function(){var t=this;Object(n["e"])({}).then((function(e){t.treeList=e.data}))},getDate:function(){this.weeks=this.parseTime(new Date,"星期{a}"),this.days=this.parseTime(new Date,"{y}-{m}-{d}"),this.time=this.parseTime(new Date,"{h}:{i}:{s}")}}}),c=o,u=(a("c63a"),a("2877")),d=Object(u["a"])(c,i,s,!1,null,null,null);e["default"]=d.exports},"71a5":function(t,e,a){},8302:function(t,e,a){"use strict";a("9fe8")},"8edc":function(t,e,a){},"8ee8":function(t,e,a){"use strict";a("987c")},"90d2":function(t,e,a){"use strict";a("9d04")},"92c4":function(t,e,a){"use strict";a("bbf7")},"987c":function(t,e,a){},"9d04":function(t,e,a){},"9fe8":function(t,e,a){},a028:function(t,e,a){},a46a:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"big-trend-wrap"},[a("div",{staticClass:"title-t"},[t._v(t._s(t.title))]),a("div",{staticClass:"count-echarts-wrap"},[a("echarts-line-wrap",{ref:"echartsLineTrend",attrs:{styles:t.echartsOption.styles,colorList:t.echartsOption.colorList,eId:t.echartsOption.eId,option:t.resultOption}})],1)])},s=[],n=(a("b0c0"),a("fa71")),r=a("313e"),l={name:"typeDistribution",components:{echartsLineWrap:n["default"]},props:["result"],data:function(){return{echartsOption:{styles:"width: 100%; height: 100%;",colorList:[],eId:"trendEchartsLine"},title:"报警预警趋势",typeName:"alarm",resultOption:{title:{text:"",show:!1},tooltip:{trigger:"axis"},legend:{top:5,right:5,data:["报警","预警"],icon:"circle",textStyle:{color:"#fff",fontSize:16}},grid:{left:"20",right:"20",bottom:"5",top:30,containLabel:!0},xAxis:{type:"category",boundaryGap:!1,show:!0,data:[],splitLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"#fff"}}},yAxis:{type:"value",splitLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"#fff"}}},series:[{name:"报警",type:"line",smooth:!0,symbolSize:12,areaStyle:{color:new r["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"rgba(58,77,233,0.8)"},{offset:1,color:"rgba(58,77,233,0.1)"}])},label:{show:!1,formatter:function(t){return r["format"].formatTime("yyyy-MM-dd",t.value)},backgroundColor:"#7581BD"},data:[]},{name:"预警",type:"line",smooth:!1,symbolSize:12,data:[]}]}}},watch:{result:{handler:function(t,e){this.resultOption.xAxis.data=t["name"],this.resultOption.series[0].data=t["alarm"],this.resultOption.series[1].data=t["warning"],this.updateEcharts()},deep:!0}},methods:{updateEcharts:function(){this.$refs.echartsLineTrend.updateEchart()}}},o=l,c=(a("8ee8"),a("2877")),u=Object(c["a"])(o,i,s,!1,null,null,null);e["default"]=u.exports},a8a9:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"big-alarm-table-list-wrap"},[a("div",{staticClass:"title-t"},[t._v(t._s(t.title))]),a("div",{staticClass:"query-right-div"},[a("el-checkbox-group",{model:{value:t.queryCheckbox,callback:function(e){t.queryCheckbox=e},expression:"queryCheckbox"}},[a("el-checkbox",{attrs:{label:"warning"}},[t._v("包含预警")]),a("el-checkbox",{attrs:{label:"off"}},[t._v("只显示离线报警")])],1)],1),a("el-table",{staticClass:"alarm-table",attrs:{data:t.list,height:"212","highlight-pageNum-row":!0}},[a("el-table-column",{attrs:{prop:"projectName",label:"项目",align:"center",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",["UNPROCESS"===e.row.processStatus?a("i",{staticClass:"iconfont iconbaojing",staticStyle:{color:"#FF2F60"}}):t._e(),"PROCESSED"===e.row.processStatus?a("i",{staticClass:"iconfont iconbaojing",staticStyle:{color:"#25F094"}}):t._e(),"IGNORE"===e.row.processStatus?a("i",{staticClass:"iconfont iconbaojing",staticStyle:{color:"#25F094"}}):t._e(),a("span",{staticStyle:{"margin-left":"10px"},domProps:{textContent:t._s(e.row.projectName)}})])]}}])}),a("el-table-column",{attrs:{prop:"projectAddress",label:"地址",align:"left"}}),a("el-table-column",{attrs:{prop:"deviceName",label:"线路",align:"center",width:"150"}}),a("el-table-column",{attrs:{prop:"alarmDivide",label:"报警类型",align:"center",width:"150",formatter:t.alarmTypeFormatter}}),a("el-table-column",{attrs:{prop:"alarmTime",label:"报警时间",align:"center",width:"160"}}),a("el-table-column",{attrs:{prop:"t6",label:"耗时",align:"center",width:"150"}}),a("el-table-column",{attrs:{prop:"processStatus",label:"状态",align:"center",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return["UNPROCESS"===e.row.processStatus?a("span",{style:"color: #FF2F60;"},[t._v("未处理")]):t._e(),"PROCESSED"===e.row.processStatus?a("span",{style:"color: #25F094;"},[t._v("已处理")]):t._e(),"IGNORE"===e.row.processStatus?a("span",{style:"color: #c0c4cc;"},[t._v("忽略")]):t._e()]}}])})],1)],1)},s=[],n=(a("c975"),a("b562")),r={name:"alarmTableList",props:["projectId"],data:function(){return{title:"实时报警列表",queryCheckbox:[],list:[]}},created:function(){this.getAlarmRecrdList()},watch:{projectId:function(t,e){this.getAlarmRecrdList()},queryCheckbox:function(t,e){this.getAlarmRecrdList()}},methods:{alarmTypeFormatter:function(t){return"ALARM"===t.alarmDivide?"报警":"WARNING"===t.alarmDivide?"预警":void 0},getAlarmRecrdList:function(){var t=this;Object(n["a"])({alarmDivide:this.queryCheckbox.indexOf("warning")<0?"ALARM":void 0,deviceState:this.queryCheckbox.indexOf("off")>=0?"OFFLINE":void 0,projectId:this.projectId||void 0,pageNum:1,pageSize:5}).then((function(e){t.list=e.rows}))}}},l=r,o=(a("b360"),a("2877")),c=Object(o["a"])(l,i,s,!1,null,null,null);e["default"]=c.exports},aad0:function(t,e,a){"use strict";a("18b7")},ad8d:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"big-v1-wrap",style:{transformOrigin:"center top",transform:"scale("+t.scalseNum+","+t.scalseNum+")","-webkit-transform":"scale("+t.scalseNum+","+t.scalseNum+")","-moz-transform":"scale("+t.scalseNum+","+t.scalseNum+")","-o-transform":"scale("+t.scalseNum+","+t.scalseNum+")","-ms-transform":"scale("+t.scalseNum+","+t.scalseNum+")"},attrs:{id:"big-v1-wrap-id"}},[a("div",{staticClass:"main-block"},[a("head-wrap",{ref:"mainHead",attrs:{handelTile:t.title,projectList:t.projectList},on:{eventFullscreen:t.eventFullscreen,eventProjectId:t.eventProjectId,eventRegionalismId:t.eventRegionalismId}}),a("div",{staticClass:"count-wrap"},[a("div",{staticClass:"count-left"},[a("div",{staticClass:"left-block-1"},[a("device-proportion-wrap",{attrs:{projectId:t.projectId}}),a("wraring-info-wrap",{attrs:{result:t.alarmInfoResult}})],1),a("div",{staticClass:"map-block-1"},[a("map-wrap",{attrs:{fullscreen:t.fullscreen,countResult:t.alarmInfoResult,projectList:t.projectList},on:{eventFullscreen:t.eventFullscreenMap}})],1),a("div",{staticClass:"bottom-block-1"},[a("alarm-table-list-wrap",{attrs:{projectId:t.projectId}})],1)]),a("div",{staticClass:"right-block-1"},[a("today-ratio-wrap",{attrs:{result:t.resultInfo.warningAnalysisStatisticsVo||[]}}),a("type-distribution-wrap",{attrs:{result:t.resultInfo.alarmCategoriesList||[]}}),a("trend-wrap",{attrs:{result:t.resultInfo.alarmChartDataVo||[]}})],1)])],1)])},s=[],n=(a("a9e3"),a("6d87")),r=a("65d6"),l=a("d8d9"),o=a("a8a9"),c=a("bfed"),u=a("f3f1"),d=a("a46a"),p=a("e297"),h=a("b562"),m={name:"BigScreenWraps",components:{HeadWrap:n["default"],DeviceProportionWrap:r["default"],WraringInfoWrap:l["default"],AlarmTableListWrap:o["default"],TodayRatioWrap:c["default"],TypeDistributionWrap:u["default"],trendWrap:d["default"],MapWrap:p["default"]},data:function(){return{title:"智慧能源综合管理系统",scalseNum:1,resultInfo:{},alarmInfoResult:{},projectList:[],projectId:null,regionalismId:null,fullscreen:!1}},mounted:function(){var t=this;this.resize_window(),window.addEventListener("resize",(function(){t.resize_window()}))},created:function(){document.getElementById("app").style.background="#021c80",document.getElementById("con_lf_top_div").style.background="#021c80",document.getElementById("con_lf_top_div").style.height="calc(100vh - 84px)",document.getElementById("con_lf_top_div").style.overflow="hidden",document.getElementById("con_lf_top_div").scrollTop=0,this.getProjectList(),this.warningAnalysisList(),this.homeCount()},methods:{eventFullscreenMap:function(t){this.fullscreen=t.value,this.$refs.mainHead["fullscreen"]=t.value},eventFullscreen:function(t){this.fullscreen=t.value},eventProjectId:function(t){this.projectId=t,this.homeCount(),this.warningAnalysisList()},eventRegionalismId:function(t){this.regionalismId=t,this.getProjectList()},resize_window:function(){var t=0;t=this.fullscreen?Number(document.documentElement.clientHeight/1080):Number(document.documentElement.clientHeight/1186),this.scalseNum=t},getProjectList:function(){var t=this;Object(h["c"])({regionalismId:this.regionalismId}).then((function(e){t.projectList=e.rows}))},homeCount:function(){var t=this;Object(h["g"])({alarmDivide:"ALARM",projectId:this.projectId}).then((function(e){t.alarmInfoResult=e.data}))},warningAnalysisList:function(){var t=this;Object(h["f"])({projectId:this.projectId}).then((function(e){t.resultInfo=e.data}))}},destroyed:function(){document.getElementById("app").style.background="#fff",document.getElementById("con_lf_top_div").style.background="#fff0",document.getElementById("con_lf_top_div").style.overflow="auto"}},f=m,v=(a("92c4"),a("2877")),y=Object(v["a"])(f,i,s,!1,null,null,null);e["default"]=y.exports},b360:function(t,e,a){"use strict";a("23d8")},bbf7:function(t,e,a){},bfed:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"big-today-ratio-wrap"},[a("div",{staticClass:"title-t"},[t._v(t._s(t.title))]),a("div",{staticClass:"echarts-list-wrap"},t._l(t.rchartsList,(function(e){return a("div",{key:e.valueKeys},[a("div",{staticClass:"title"},[t._v(t._s(e.title))]),a("echarts-gauge-wrap",{attrs:{styles:e.styles,colorList:e.colorList,eId:e.valueKeys,option:t.tempResult[e.valueKeys]}})],1)})),0),a("div",{staticClass:"info-tb-block"},[a("div",[a("div",[t._v(t._s(t.alarmTB)+"%")]),a("div",[t._v("同比")])]),a("div",[a("div",[t._v(t._s(t.warningTB)+"%")]),a("div",[t._v("同比")])])])])},s=[],n=a("1c76"),r={name:"todayRatio",components:{EchartsGaugeWrap:n["default"]},props:["result"],data:function(){return{tempResult:{q1:0,q2:0,q3:0,q4:0},alarmTB:0,warningTB:0,rchartsList:[{styles:"width: 100%; height: 100%;",colorList:["#27d0ec"],valueKeys:"q1",title:"今日报警"},{styles:"width: 100%; height: 100%;",colorList:["#fdc46e"],valueKeys:"q2",title:"昨日报警 "},{styles:"width: 100%; height: 100%;",colorList:["#27d0ec"],valueKeys:"q3",title:"今日预警"},{styles:"width: 100%; height: 100%;",colorList:["#fdc46e"],valueKeys:"q4",title:"昨日预警"}],title:"最近2天警情同比"}},watch:{result:{handler:function(t,e){if(t){this.tempResult={};for(var a=0;a<t.length;a++)"ALARM"===t[a]["alarmDivide"]?(this.tempResult["q1"]=t[a]["todayAlarm"],this.tempResult["q2"]=t[a]["yesterdayAlarm"],this.alarmTB=t[a]["dayOnDay"]):"WARNING"===t[a]["alarmDivide"]&&(this.tempResult["q3"]=t[a]["todayAlarm"],this.tempResult["q4"]=t[a]["yesterdayAlarm"],this.warningTB=t[a]["dayOnDay"])}},deep:!0}}},l=r,o=(a("f6cc"),a("2877")),c=Object(o["a"])(l,i,s,!1,null,null,null);e["default"]=c.exports},c63a:function(t,e,a){"use strict";a("71a5")},d005:function(t,e,a){},d618:function(t,e,a){t.exports=a.p+"static/img/b.4e981a70.png"},d8d9:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"big-wraring-info-wrap"},[a("div",{staticClass:"title-t"},[t._v(t._s(t.title))]),a("div",{staticClass:"count-block"},[a("div",{staticClass:"info-block-div"},[a("div",[t._v("报警总数")]),a("div",[t._v(t._s(t.result.alarmTotal))])]),a("div",{staticClass:"info-block-div"},[a("div",[t._v("已处理率")]),a("div",[t._v(t._s(t.result.processedRate)+"%")])]),a("div",{staticClass:"info-block-div"},[a("div",[t._v("未处理")]),a("div",{staticStyle:{color:"rgba(255, 47, 96, 1)"}},[t._v(t._s(t.result.unProcessed))])]),a("div",{staticClass:"info-block-div"},[a("div",[t._v("已处理")]),a("div",{staticStyle:{color:"rgba(40, 255, 155, 1)"}},[t._v(t._s(t.result.processed))])]),t._m(0)]),a("echarts-bar-wrap",{attrs:{styles:"width: 100%; height: 220px;",option:t.radarOption}})],1)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"alarm-icon-block"},[a("i",{staticClass:"iconfont iconbaojing"})])}],n=a("6b12"),r={name:"wraringInfoWrap",components:{EchartsBarWrap:n["default"]},props:["result"],data:function(){return{title:"警情信息处理情况",radarOption:[]}},created:function(){this.radarOption=[0,0,0]},watch:{result:{handler:function(t,e){this.radarOption=[],t?(this.radarOption.push(t.alarmTotal),this.radarOption.push(t.unProcessed),this.radarOption.push(t.processed)):this.radarOption=[0,0,0]},deep:!0}}},l=r,o=(a("aad0"),a("2877")),c=Object(o["a"])(l,i,s,!1,null,null,null);e["default"]=c.exports},e297:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"big-map-wrap"},[a("amap-wrap",{ref:"bigscLocationMap",attrs:{mapCenter:{lng:116.397428,lat:39.90923,address:""},projectList:t.projectList}}),a("div",{staticClass:"top-wrap-1"},t._l(t.labelList,(function(e){return a("div",{directives:[{name:"show",rawName:"v-show",value:!("PERSONAL"===t.tempUserType&&"projectTotal"===e.valueKeys),expression:"!(tempUserType === 'PERSONAL' && item.valueKeys === 'projectTotal')"}],key:e.valueKeys},[a("div",{staticClass:"item-value"},[t._v(t._s(t.countResult[e.valueKeys]))]),a("img",{staticStyle:{"pointer-events":"none"},attrs:{src:e.image}}),a("div",{staticClass:"item-label",on:{click:function(a){return t.routerTokeys(e.valueKeys)}}},[t._v(t._s(e.label))])])})),0),a("div",{staticClass:"bottom-wrap-1"},[a("div"),a("div",[a("el-button",{staticClass:"mapButton",attrs:{icon:"iconfont iconsheji"},on:{click:t.overview}}),t._v("全局总览 ")],1)])],1)},s=[],n=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"amap-bigsc-location"},[a("div",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"container"}})])}],l=(a("99af"),a("a15b"),a("a9e3"),a("024c")),o=a.n(l),c=a("01b6"),u=a.n(c),d={name:"ShopLcation",props:{mapCenter:{type:Object,default:{lng:116.397428,lat:39.90923,address:""}},zoom:{type:[String,Number],default:10},draggable:{type:Boolean,default:!1},projectList:{type:Array,default:[]}},data:function(){return{aMap:null,pointResult:{lng:119.275254,lat:26.028928,address:""},theme:"6c31a547eb9387caefc013b7809e9d21",infoWindow:null}},mounted:function(){this.initMap()},watch:{projectList:{handler:function(t,e){this.aMap&&this.aMap.clearMap(),this.createMarker()},deep:!0}},methods:{overview:function(){this.aMap&&this.aMap.setFitView()},initMap:function(){this.pointResult["lng"]=this.mapCenter.lng,this.pointResult["lat"]=this.mapCenter.lat,this.aMap=new o.a.Map("container",{center:[this.mapCenter.lng,this.mapCenter.lat],resizeEnable:!0,zoom:this.zoom,mapStyle:"amap://styles/"+this.theme}),this.createMarker()},createInfoWindowO:function(){this.infoWindow=new o.a.InfoWindow({isCustom:!0,content:"",offset:new o.a.Pixel(-3,-9)})},markerClick:function(t){this.infoWindow||this.createInfoWindowO(),this.infoWindow.setContent(t.target.content),this.infoWindow.open(this.aMap,t.target.getPosition())},createMarker:function(){for(var t=0;t<this.projectList.length;t++)if(this.projectList[t].projectLat&&this.projectList[t].projectLng){var e=new o.a.Marker({position:[this.projectList[t].projectLng,this.projectList[t].projectLat],map:this.aMap,icon:u.a,offset:new o.a.Pixel(-13,-30),draggable:!1,raiseOnDrag:!1,clickable:!0}),a=[];a.push('<div class="info-block">\n <div class="info-lable">\n <div class="t1">项目<span class="tt">:</span></div>\n <div class="t1">地址<span class="tt">:</span></div>\n </div>\n <div class="info-value">\n <div class="v1">'.concat(this.projectList[t].projectName,'</div>\n <div class="v1">\n <marquee style="margin: 0;" behavior="alternate" scrollamount="1" width="100%"><span>').concat(this.projectList[t].projectAddress,"</span></marquee>\n </div>\n </div>\n </div>"));var i=this;e.content=i.createInfoWindow(a.join("<br/>")),e.on("click",i.markerClick)}this.aMap.setFitView()},createInfoWindow:function(t){var e=document.createElement("div");e.className="custom-info input-card content-window-card";var a=document.createElement("div");return a.className="info-middle",a.style.backgroundColor="#ff2f6000",a.innerHTML=t,e.appendChild(a),e},closeInfoWindow:function(){this.aMap.clearInfoWindow()},getPositionByLonLats:function(t,e){var a=this,i=[t,e];o.a.service("AMap.Geocoder",(function(){var t=new o.a.Geocoder({});t.getAddress(i,(function(t,e){if("complete"===t&&"OK"===e.info){var i=e.regeocode.formattedAddress;a.pointResult.address=i}a.$emit("mapEvent",a.pointResult)}))}))},showInfoOut:function(t){this.getPositionByLonLats(this.pointResult["lng"],this.pointResult["lat"])},showInfoM:function(t){this.pointResult["lat"]=t.lnglat.lat,this.pointResult["lng"]=t.lnglat.lng}}},p=d,h=(a("90d2"),a("2877")),m=Object(h["a"])(p,n,r,!1,null,null,null),f=m.exports,v=a("4b19"),y=a.n(v),g=(a("b562"),{name:"mapWrap",components:{amapWrap:f},props:["countResult","projectList","fullscreen"],data:function(){return{imgs:y.a,labelList:[{guid:"1",label:"项目总数",valueKeys:"projectTotal",image:y.a,routerKeys:"project"},{guid:"2",label:"设备总数",valueKeys:"deviceTotal",image:y.a,routerKeys:"device"},{guid:"3",label:"在线设备",valueKeys:"onlineDeviceTotal",image:y.a,routerKeys:"device"},{guid:"4",label:"今日报警",valueKeys:"todayAlarmTotal",image:y.a,routerKeys:"alarm"},{guid:"2",label:"报警总数",valueKeys:"alarmTotal",image:y.a,routerKeys:"alarm"}],deviceList:[],tempUserType:null}},created:function(){this.tempUserType=this.$store.getters.userType},methods:{closeFullScreen:function(){document.getElementById("con_lf_top_div");document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),this.$emit("eventFullscreen",{value:!1})},routerTokeys:function(t){this.fullscreen&&this.closeFullScreen();var e="";switch(t){case"projectTotal":e="/project/project","TENANT"===this.$store.getters.userType&&(e="/project_tenant/project_tenant");case"deviceTotal":e="/device/device","TENANT"===this.$store.getters.userType?e="/device_tenant/device_tenant":"PERSONAL"===this.$store.getters.userType&&(e="/device_oneself/device_oneself");case"onlineDeviceTotal":e="/device/device","TENANT"===this.$store.getters.userType?e="/device_tenant/device_tenant":"PERSONAL"===this.$store.getters.userType&&(e="/device_oneself/device_oneself");case"todayAlarmTotal":e="/alarm/record","TENANT"===this.$store.getters.userType?e="/alarm_tenant/alarm_tenant":"PERSONAL"===this.$store.getters.userType&&(e="/alarm_oneself/alarm_oneself");case"alarmTotal":e="/alarm/record","TENANT"===this.$store.getters.userType?e="/alarm_tenant/alarm_tenant":"PERSONAL"===this.$store.getters.userType&&(e="/alarm_oneself/alarm_oneself")}this.$router.push({path:e})},overview:function(){this.$refs.bigscLocationMap.overview()}},watch:{}}),b=g,w=(a("3b1f"),Object(h["a"])(b,i,s,!1,null,null,null));e["default"]=w.exports},e6db:function(t,e,a){"use strict";a.d(e,"d",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return l})),a.d(e,"f",(function(){return o})),a.d(e,"b",(function(){return c})),a.d(e,"e",(function(){return u}));var i=a("b775"),s=a("04bc");function n(t){return Object(i["a"])({url:"/system/regionalism/list",method:"get",params:t})}function r(t){return Object(i["a"])({url:"/system/regionalism/"+t,method:"get"})}function l(t){return Object(s["e"])(!0),Object(i["a"])({url:"/system/regionalism",method:"post",data:t})}function o(t){return Object(s["e"])(!0),Object(i["a"])({url:"/system/regionalism",method:"put",data:t})}function c(t){return Object(i["a"])({url:"/system/regionalism/"+t,method:"delete"})}function u(){return Object(i["a"])({url:"/system/regionalism/tree-list",method:"get"})}},e970:function(t,e,a){},ec0a:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bigscreen-echarts-radar"},[a("div",{style:t.styles,attrs:{id:t.eId}})])},s=[],n=a("313e"),r={name:"echartsRadarWrap",props:{eId:{type:String},styles:{type:String},colorList:{type:[Array,String],default:""},option:{stype:Object,default:{}}},data:function(){return{chart:null}},created:function(){this.chart=null},mounted:function(){this.drawLine()},methods:{drawLine:function(){this.chart||(this.chart=n["init"](document.getElementById(this.eId)));var t={title:{text:""},color:this.colorList,tooltip:{},legend:{data:[]},radar:{nameGap:5,name:{textStyle:{color:"#fff",backgroundColor:"#99999900",borderRadius:2,padding:[1,1]}},splitArea:{show:!0,areaStyle:{color:["#515a6e00"]}},axisLabel:{show:!1,textStyle:{color:"#247bd7"}},splitLine:{show:!0,lineStyle:{width:1,color:"#0865da"}},indicator:this.option.indicator},series:[{name:"预算 vs 开销(Budget vs spending)",type:"radar",symbol:"none",itemStyle:{normal:{color:"rgba(46, 255, 233, 1)",lineStyle:{color:"rgba(30, 238, 255, 1)"},areaStyle:{type:"default"}}},data:[{value:this.option.seriesList,name:""}]}]};console.log("radar",this.option,this.chart),this.chart.setOption(t)}},watch:{option:{handler:function(t,e){this.chart=null,this.drawLine()},deep:!0}}},l=r,o=(a("0e53"),a("2877")),c=Object(o["a"])(l,i,s,!1,null,null,null);e["default"]=c.exports},ee0e:function(t,e,a){},f222:function(t,e,a){"use strict";a("a028")},f3f1:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"big-type-distribution-wrap"},[a("div",{staticClass:"title-t"},[t._v(t._s(t.title))]),a("div",{staticClass:"count-echarts-wrap"},[a("div",{staticClass:"tabs-block"},[a("div",{class:"alarm"===t.typeName?"div-select":"",on:{click:function(e){t.typeName="alarm"}}},[t._v("报警")]),a("div",{class:"waraing"===t.typeName?"div-select":"",on:{click:function(e){t.typeName="waraing"}}},[t._v("预警")])]),a("echarts-pie-wrap",{ref:"echartsPieType",attrs:{styles:t.echartsOption.styles,colorList:t.echartsOption.colorList,eId:t.echartsOption.eId,option:t.templist[t.typeName]}})],1)])},s=[],n=(a("c975"),a("494f")),r={name:"typeDistribution",components:{EchartsPieWrap:n["default"]},props:["result"],data:function(){return{resultList:[{value:40,name:"rose 1"},{value:38,name:"rose 2"},{value:32,name:"rose 3"},{value:30,name:"rose 4"}],templist:{alarm:[],waraing:[]},echartsOption:{styles:"width: 100%; height: 100%;",colorList:[],eId:"typeEchartsPie"},title:"最近2天警情同比",typeName:"alarm"}},watch:{typeName:function(t,e){t&&this.updateEcharts()},result:{handler:function(t,e){if(this.templist={alarm:[],waraing:[]},t)for(var a=0;a<t.length;a++)console.log(t[a]["typeCode"].indexOf("a")),0===t[a]["typeCode"].indexOf("a")?this.templist["alarm"].push({value:t[a].alarmTotal,name:t[a].typeName}):0===t[a]["typeCode"].indexOf("w")&&this.templist["waraing"].push({value:t[a].alarmTotal,name:t[a].typeName});console.log(this.templist),this.updateEcharts()},deep:!0}},methods:{updateEcharts:function(){this.$refs.echartsPieType.updateEchart()}}},l=r,o=(a("49c0"),a("2877")),c=Object(o["a"])(l,i,s,!1,null,null,null);e["default"]=c.exports},f6cc:function(t,e,a){"use strict";a("8edc")},fa71:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bigscreen-echarts-pie"},[a("div",{style:t.styles,attrs:{id:t.eId}})])},s=[],n=a("313e"),r={name:"echartsRadarWrap",props:{eId:{type:String},styles:{type:String},colorList:{type:[Array,String],default:""},option:{stype:Object,default:{}}},data:function(){return{chart:null}},created:function(){this.chart=null},mounted:function(){this.drawLine()},methods:{updateEchart:function(){this.chart&&(this.chart=null),this.drawLine()},drawLine:function(){this.chart||(this.chart=n["init"](document.getElementById(this.eId))),this.chart.setOption(this.option)}},watch:{option:function(t,e){this.chart=null,this.drawLine()}}},l=r,o=(a("028a"),a("2877")),c=Object(o["a"])(l,i,s,!1,null,null,null);e["default"]=c.exports}}]); |