mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
1 line
5.9 KiB
JavaScript
1 line
5.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-983e591e"],{3149:function(t,e,r){"use strict";r("4b50")},"4b50":function(t,e,r){},"93bb":function(t,e,r){"use strict";r.d(e,"a",(function(){return m})),r.d(e,"b",(function(){return p})),r.d(e,"c",(function(){return g}));r("5530");var a=r("c7eb"),n=r("1da1"),o=(r("d3b7"),r("99af"),r("bc3a")),i=r.n(o),c={ENC:!1,baseUrl:"http://locolhost:8888",code:401},s=c,l=(r("a18c"),s.baseUrl);i.a.CancelToken;i.a.interceptors.request.use((function(t){var e=localStorage.getItem("token");return t.headers.common["Content-Type"]="application/json;charset=utf-8",t.headers.common["token"]=e,t}),(function(t){return console.log(t),Promise.reject(t)})),i.a.interceptors.response.use((function(t){return 200!==t.status?Promise.reject(t):(t.data.code,s.code,t.data)}),(function(t){var e={success:!1,msg:"未知异常,请联系管理员!"};return Promise.reject(e)}));var u={headers:{enc:s.ENC}},b=function(t){return t},m=function(){var t=Object(n["a"])(Object(a["a"])().mark((function t(e,r){var n;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,r=b(r),t.next=4,i.a.get("".concat(l).concat(e),{params:r,headers:u.headers},u);case 4:return n=t.sent,t.abrupt("return",n);case 8:return t.prev=8,t.t0=t["catch"](0),t.abrupt("return",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,r){return t.apply(this,arguments)}}(),p=function(){var t=Object(n["a"])(Object(a["a"])().mark((function t(e,r){var n;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.a.get(e,{params:r});case 3:return n=t.sent,t.abrupt("return",n);case 7:return t.prev=7,t.t0=t["catch"](0),t.abrupt("return",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e,r){return t.apply(this,arguments)}}(),g=function(){var t=Object(n["a"])(Object(a["a"])().mark((function t(e,r){var n;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,r=b(r),t.next=4,i.a.post("".concat(l).concat(e),r,u);case 4:return n=t.sent,t.abrupt("return",n);case 8:return t.prev=8,t.t0=t["catch"](0),t.abrupt("return",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,r){return t.apply(this,arguments)}}()},e100:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var a=r("93bb"),n={big1:"/bigscreen/countUserNum",big2:"/bigscreen/countDeviceNum",big3:"/bigscreen/sbtx",big4:"/bigscreen/alarmNum",big5:"/bigscreen/ssyj",big6:"/bigscreen/installationPlan",big7:"/bigscreen/ranking",big8:"/bigscreen/centermap"},o=function(t,e){return a["a"](n[t],e)}},f1ef:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.pageflag?r("Echart",{ref:"charts",staticClass:"right_top_inner",attrs:{id:"rightTop",options:t.option}}):r("Reacquire",{staticStyle:{"line-height":"200px"},on:{onclick:t.getData}},[t._v(" 重新获取 ")])},n=[],o=r("e100"),i={data:function(){return{option:{},pageflag:!1,timer:null}},created:function(){this.getData()},mounted:function(){},beforeDestroy:function(){this.clearData()},methods:{clearData:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},getData:function(){var t=this;this.pageflag=!0,Object(o["a"])("big4").then((function(e){t.timer||console.log("报警次数",e),e.success?(t.countUserNumData=e.data,t.$nextTick((function(){t.init(e.data.dateList,e.data.numList,e.data.numList2),t.switper()}))):(t.pageflag=!1,t.$Message({text:e.msg,type:"warning"}))}))},switper:function(){var t=this;if(!this.timer){var e=function(e){t.getData()};this.timer=setInterval(e,this.$store.state.settings.echartsAutoTime);var r=this.$refs.charts.chart;r.on("mouseover",(function(e){t.clearData()})),r.on("mouseout",(function(r){t.timer=setInterval(e,t.$store.state.settings.echartsAutoTime)}))}},init:function(t,e,r){this.option={xAxis:{type:"category",data:t,boundaryGap:!1,splitLine:{show:!0,lineStyle:{color:"rgba(31,99,163,.2)"}},axisLine:{lineStyle:{color:"rgba(31,99,163,.1)"}},axisLabel:{color:"#7EB7FD",fontWeight:"500"}},yAxis:{type:"value",splitLine:{show:!0,lineStyle:{color:"rgba(31,99,163,.2)"}},axisLine:{lineStyle:{color:"rgba(31,99,163,.1)"}},axisLabel:{color:"#7EB7FD",fontWeight:"500"}},tooltip:{trigger:"axis",backgroundColor:"rgba(0,0,0,.6)",borderColor:"rgba(147, 235, 248, .8)",textStyle:{color:"#FFF"}},grid:{show:!0,left:"10px",right:"30px",bottom:"10px",top:"28px",containLabel:!0,borderColor:"#1F63A3"},series:[{data:e,type:"line",smooth:!0,symbol:"none",name:"报警1次数",color:"rgba(252,144,16,.7)",areaStyle:{normal:{color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(252,144,16,.7)"},{offset:1,color:"rgba(252,144,16,.0)"}],!1)}},markPoint:{data:[{name:"最大值",type:"max",valueDim:"y",symbol:"rect",symbolSize:[60,26],symbolOffset:[0,-20],itemStyle:{color:"rgba(0,0,0,0)"},label:{color:"#FC9010",backgroundColor:"rgba(252,144,16,0.1)",borderRadius:6,padding:[7,14],borderWidth:.5,borderColor:"rgba(252,144,16,.5)",formatter:"报警1:{c}"}},{name:"最大值",type:"max",valueDim:"y",symbol:"circle",symbolSize:6,itemStyle:{color:"#FC9010",shadowColor:"#FC9010",shadowBlur:8},label:{formatter:""}}]}},{data:r,type:"line",smooth:!0,symbol:"none",name:"报警2次数",color:"rgba(9,202,243,.7)",areaStyle:{normal:{color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(9,202,243,.7)"},{offset:1,color:"rgba(9,202,243,.0)"}],!1)}},markPoint:{data:[{name:"最大值",type:"max",valueDim:"y",symbol:"rect",symbolSize:[60,26],symbolOffset:[0,-20],itemStyle:{color:"rgba(0,0,0,0)"},label:{color:"#09CAF3",backgroundColor:"rgba(9,202,243,0.1)",borderRadius:6,borderColor:"rgba(9,202,243,.5)",padding:[7,14],formatter:"报警2:{c}",borderWidth:.5}},{name:"最大值",type:"max",valueDim:"y",symbol:"circle",symbolSize:6,itemStyle:{color:"#09CAF3",shadowColor:"#09CAF3",shadowBlur:8},label:{formatter:""}}]}}]}}}},c=i,s=(r("3149"),r("2877")),l=Object(s["a"])(c,a,n,!1,null,"62edadb8",null);e["default"]=l.exports}}]); |