chunk-22892a52.4b3d3e79.js
6.69 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22892a52"],{"18cc":function(t,a,e){"use strict";e("9583")},"40e3":function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB0klEQVQ4T5WTTWsTURSGn3eSkhmke4ngugvFnUqJqKAIuqgfWKFTFVEUf4EgdVUF/0LBItRMlShUN4ooBDFYUMSFLtxLRXCpMjNJZo7MrRJi0hTP6t7Luc895z3vFaMiih9giNngzEZpGgmox18QRhhs3xwQJXfAAqr+eZf8LamRacUBPDvJVr/lzteSu0gpoX+p2PYqiOIljLNIj4EJB0NvMSua2AOKgc+YHUcsEQbuoR6gYSU6aQM4BlwDbxXZYadBSc/J8kmM24injFWmmVbWD2hambX0E2IBFGA2D+at964c6QbYL4yrbKvs4KC6/YD78QEy7qHSKSxf7V3+K59yyt5esuwhcIEwaK4DoqSBWQ20BfES9AHL54eq7nlzmO3COOKqkVqiHi8japjGgSae3pPnN0cC4BDYT4xWT8Tlzn7ybn3TFrrZI7zyOWbGXg1OoZ1+BBaRKgMiojlkCXCZamXnoIjFFL6mhUBHMa4j77UbYxGmF1i+D3ELeEa1cnoQEMURxgxo5Y+RxkHvnBPNdoN+OCNhJwrpCYPZf5yYLID5VP2LfMfIupPk2RNXgVeaolR+49addmH5NqF/pR8wTPb/+kzDAEVbRYRBuNFv/A27p7+ZCxvVGAAAAABJRU5ErkJggg=="},"555a":function(t,a,e){t.exports=e.p+"static/img/icon.402ecc11.png"},8707:function(t,a,e){"use strict";var i=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"header"},[i("span",[t._v(t._s(t.title))]),i("p",{staticClass:"time"},[i("img",{attrs:{src:e("40e3")}}),t._v(t._s(t.date)+" "+t._s(t.time))])])},s=[],o=(e("fb6a"),{props:["title"],data:function(){return{active:"/home",time:"",date:""}},created:function(){this.active=this.$route.path,this.updateTime(),setInterval(this.updateTime,1e3)},methods:{updateTime:function(){var t=new Date;this.time=this.zeroPadding(t.getHours(),2)+":"+this.zeroPadding(t.getMinutes(),2)+":"+this.zeroPadding(t.getSeconds(),2),this.date=this.zeroPadding(t.getFullYear(),4)+"-"+this.zeroPadding(t.getMonth()+1,2)+"-"+this.zeroPadding(t.getDate(),2)},zeroPadding:function(t,a){for(var e="",i=0;i<a;i++)e+="0";return(e+t).slice(-a)}},computed:{}}),r=o,n=(e("18cc"),e("2877")),l=Object(n["a"])(r,i,s,!1,null,"2c78a2b8",null);a["a"]=l.exports},9583:function(t,a,e){},af96:function(t,a,e){"use strict";e("bebc")},b775:function(t,a,e){"use strict";var i=e("bc3a"),s=e.n(i),o=s.a.create({});a["a"]=o},bebc:function(t,a,e){},eaa3:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-body"},[e("Header",{attrs:{title:"黄石台光报警信息看板"}}),e("div",{staticClass:"first"}),e("div",{staticClass:"last"},[e("div",{staticClass:"fault boxall"},[t._m(0),e("div",{staticClass:"border_bottom"}),e("div",{ref:"faultEchart",staticClass:"echartPoint",attrs:{id:"faultEchart"}})]),e("div",{staticClass:"good boxall"},[t._m(1),e("div",{staticClass:"border_bottom"}),e("div",{ref:"goodEchart",staticClass:"echartBar",attrs:{id:"goodEchart"}})])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.errorData.length,expression:"errorData.length"}],staticClass:"tk-box"},[t._m(2),e("div",{staticClass:"border_bottom"}),e("vue-seamless-scroll",{staticClass:"tk-body",attrs:{data:t.errorData,"class-option":t.classOption}},t._l(t.errorData,(function(a,i){return e("div",{key:i,staticClass:"error-box"},[e("div",{staticClass:"tk-main"},[t._v(t._s(a))])])})),0)],1),e("div",{staticClass:"foot"},[t._v("技术支持: 长沙华恒机器人系统有限公司")])],1)},s=[function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"logo first-box"},[i("img",{attrs:{src:e("555a")}}),i("span",{staticClass:"device"},[t._v("設備的故障率")])])},function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"logo first-box"},[i("img",{attrs:{src:e("555a")}}),i("span",{staticClass:"device"},[t._v("設備的妥善率")])])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"header"},[e("span",{staticClass:"msg"},[t._v("报警信息")]),e("span",{staticClass:"tip"},[t._v("后台处理好后自动关闭")])])}],o=e("8707"),r=e("b775");function n(t){return Object(r["a"])({url:"/api/Dashboard/AlarmResult",method:"get",data:t})}var l=e("313e"),c={components:{Header:o["a"]},data:function(){return{sysData:{},timeNum:10,newDate:new Date,timer:null,timerAlarmRefresh:null,isTimer:!1,eqFaultRatioOpt:{xAxis:{boundarygap:!1,type:"category",data:[],axisLabel:{textStyle:{color:"rgba(255,255,255,.8)",fontSize:"13"}},axisLine:{lineStyle:{color:"rgba(255,255,255,.6)"}}},yAxis:[{type:"value",min:0,max:100,name:"百分比(%)",nameTextStyle:{color:"#fff",fontSize:"12"},axisLabel:{show:!0,ubterval:"auto",formatter:"{value}",textStyle:{color:"rgba(255,255,255,.8)"}},axisTick:{show:!0},axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,.6)"}},show:!0,splitLine:{show:!1}}],grid:{left:"1%",top:"18%",right:"3%",bottom:"3%",containLabel:!0},series:[{data:[],type:"line",color:"#089ABB"}],tooltip:{backgroundColor:"rgba(32, 33, 36,.7)",borderColor:"rgba(32, 33, 36,0.20)",borderWidth:1,textStyle:{color:"#fff"}}},eqTuoShanRatioOpt:{xAxis:{type:"category",axisTick:{show:!1},axisLine:{lineStyle:{color:"rgba(255,255,255,.6)"}},axisLabel:{textStyle:{color:"rgba(255,255,255,.8)",fontSize:"13"}},data:[]},yAxis:[{type:"value",min:0,max:100,name:"百分比(%)",nameTextStyle:{color:"#fff",fontSize:"13"},axisTick:{show:!0},axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,.6)"}},axisLabel:{show:!0,ubterval:"auto",formatter:"{value}",textStyle:{color:"rgba(255,255,255,.8)",fontSize:"13"}},show:!0,splitLine:{show:!1}}],grid:{left:"3%",top:"15%",right:"3%",bottom:"5%",containLabel:!0},series:[{data:[],type:"bar",barWidth:"35%",borderWidth:1,borderColor:"#000",itemStyle:{normal:{color:new l["graphic"].LinearGradient(0,0,0,1,[{offset:0,color:"#32DAFF"},{offset:1,color:"#0AA6FD"}])}}}]},errorData:[]}},mounted:function(){this.getdata();var t=this;setInterval((function(){t.getdata()}),1e4)},methods:{EqFaultRatioEchart:function(){var t=this.$refs.faultEchart;if(null==t)return clearInterval(this.timerAlarmRefresh),void(this.isTimer=!0);var a=this.$echarts.init(t);this.eqFaultRatioOpt.xAxis.data=this.sysData.equipmentFailureRates.xData,this.eqFaultRatioOpt.series[0].data=this.sysData.equipmentFailureRates.yData,a.setOption(this.eqFaultRatioOpt)},EqTuoShanRatioOptEchart:function(){var t=this.$echarts.init(this.$refs.goodEchart);this.eqTuoShanRatioOpt.xAxis.data=this.sysData.equipmentAvailabilities.xData,this.eqTuoShanRatioOpt.series[0].data=this.sysData.equipmentAvailabilities.yData,t.setOption(this.eqTuoShanRatioOpt)},getdata:function(){var t=this;n().then((function(a){console.log(a),200==a.data.code?(t.sysData=a.data.data,t.errorData=t.sysData.alarmMsg,t.EqFaultRatioEchart(),t.isTimer||t.EqTuoShanRatioOptEchart()):alert(a.data.msg)}))}},computed:{classOption:function(){return{step:.3,limitMoveNum:5,hoverStop:!0,direction:1,openWatch:!0,singleHeight:0,singleWidth:0,waitTime:1e3}}}},u=c,d=(e("af96"),e("2877")),h=Object(d["a"])(u,i,s,!1,null,null,null);a["default"]=h.exports}}]);
//# sourceMappingURL=chunk-22892a52.4b3d3e79.js.map