webpackJsonp([167],{"+pEf":function(t,e){},"3PIt":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Dd8w"),s=a.n(i),o=a("XLwt"),n=a.n(o),l=a("NYxO");window.addEventListener("resize",function(){location.reload()});var r={name:"kanban",data:function(){return{data7:"",date:"",time:"",weekday:"",pageno7:1,totalPages7:1,dataList7:[],pageno8:1,totalPages8:1,dataList8:[],pageno9:1,totalPages9:1,dataList9:[],item2_chart_num_1:0,item2_chart_num_2:0,item2_chart_num_3:0,flag:!1,showLogo:!1,logoUrlDefault:a("7Otq"),logoUrlSubei:a("8Rg0"),interval_time:"10000"}},components:{},mounted:function(){document.documentElement.clientWidth,document.documentElement.clientHeight;this.getLogo(),this.getTime();var t=this;setInterval(function(){t.getTime()},1e3),this.setChart1(),this.setChart2(),this.setChart3(),this.setChart4(),this.setChart5(),this.setChart7(),this.setChart8()},computed:s()({},Object(l.e)({logoUrl:function(t){return t.common.logoUrl},logoUrlFlag:function(t){return t.common.logoUrlFlag}})),methods:{getLogo:function(){var t=this;this.$api.fileAPI.getLogo().then(function(e){0==e.code&&"sbly"==e.logoUrl&&(t.flag=!0),t.showLogo=!0})},compare:function(t){return function(e,a){var i=e[t];return a[t]-i}},setChart1:function(){var t,e=this,a=n.a.init(document.querySelector(".item1_container")),i=Math.floor(document.querySelector(".item1_container").offsetWidth/400*30),s=Math.floor(document.querySelector(".item1_container").offsetWidth/400*50);this.$api.kanbanAPI.equipmentStatus().then(function(i){var s=e;setTimeout(function(){s.setChart1()},s.interval_time),0===i.code&&(i.data.forEach(function(e){t.series[0].data.push({value:e.totalCount,name:e.statusName})}),a.setOption(t))}),t={series:[{name:"",type:"pie",radius:[i,s],center:["50%","50%"],label:{formatter:"{b}: {c}"},data:[],itemStyle:{normal:{color:function(t){return["#2196ff","#3affc3","#ffd969","#ff765d","#c9ffe5","#ffdffd","#ff3a99","#ff420d","#10d1ff","#789bc2","#b8c2b3","#d11806","#2f3661","#642318","#227b75","#551a3c"][t.dataIndex]}}}}]}},setChart2:function(){var t=this,e=n.a.init(document.querySelector(".item2_container"));this.$api.kanbanAPI.equipmentProduction().then(function(i){var s=t;setTimeout(function(){s.setChart2()},s.interval_time),0===i.code&&(i.data.forEach(function(t){a.series[0].data.push(t.conformityCount),a.xAxis.data.push(t.deviceName)}),e.setOption(a))});var a={xAxis:{type:"category",boundaryGap:!1,axisLine:{lineStyle:{color:"#708acc"}},data:[]},emphasis:{label:{color:"#708acc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},yAxis:{type:"value",axisLine:{lineStyle:{color:"#708acc"}},splitLine:{show:!0,lineStyle:{color:"#162139"}}},grid:{left:"10",bottom:"10",top:"30",right:"15",containLabel:!0},series:[{name:"",type:"line",smooth:!0,stack:"总量",areaStyle:{},data:[],itemStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#4c55fc"},{offset:1,color:"#4c55fc"}]}}}]}},setChart3:function(){var t,e,a;t={toolbox:{feature:{}},series:[{type:"gauge",radius:"100%",data:[{value:30}],axisLine:{lineStyle:{color:[[.2,"#f9387f"],[.8,"#1d8efe"],[1,"#42e4fb"]],width:3,shadowColor:"#fff"}},axisLabel:{textStyle:{fontWeight:"bolder",color:"#219cb9",shadowColor:"#fff",shadowBlur:1,fontSize:10}},axisTick:{length:10,lineStyle:{color:"auto",shadowColor:"#fff",shadowBlur:1}},splitLine:{length:6,lineStyle:{width:3,color:"rgba(0,0,0,0)",shadowColor:"#fff",shadowBlur:10}},itemStyle:{color:"#2b72bc",length:"70%"},pointer:{width:3},detail:{shadowBlur:5,offsetCenter:[0,"70%"],textStyle:{fontWeight:"bolder",color:"#fff",fontSize:18}}}]},n.a.init(document.querySelector(".item3_chart_1")).setOption(t,!0),e={toolbox:{feature:{}},series:[{type:"gauge",radius:"100%",data:[{value:50}],axisLine:{lineStyle:{color:[[.2,"#f9387f"],[.8,"#1d8efe"],[1,"#42e4fb"]],width:3,shadowColor:"#fff"}},axisLabel:{textStyle:{fontWeight:"bolder",color:"#219cb9",shadowColor:"#fff",shadowBlur:1,fontSize:10}},axisTick:{length:10,lineStyle:{color:"auto",shadowColor:"#fff",shadowBlur:1}},splitLine:{length:6,lineStyle:{width:3,color:"rgba(0,0,0,0)",shadowColor:"#fff",shadowBlur:10}},itemStyle:{color:"#2b72bc",length:"70%"},pointer:{width:3},detail:{shadowBlur:5,offsetCenter:[0,"70%"],textStyle:{fontWeight:"bolder",color:"#fff",fontSize:18}}}]},n.a.init(document.querySelector(".item3_chart_2")).setOption(e,!0),a={toolbox:{feature:{}},series:[{type:"gauge",radius:"100%",data:[{value:70}],axisLine:{lineStyle:{color:[[.2,"#f9387f"],[.8,"#1d8efe"],[1,"#42e4fb"]],width:3,shadowColor:"#fff"}},axisLabel:{textStyle:{fontWeight:"bolder",color:"#219cb9",shadowColor:"#fff",shadowBlur:1,fontSize:10}},axisTick:{length:10,lineStyle:{color:"auto",shadowColor:"#fff",shadowBlur:1}},splitLine:{length:6,lineStyle:{width:3,color:"rgba(0,0,0,0)",shadowColor:"#fff",shadowBlur:10}},itemStyle:{color:"#2b72bc",length:"70%"},pointer:{width:3},detail:{shadowBlur:5,offsetCenter:[0,"70%"],textStyle:{fontWeight:"bolder",color:"#fff",fontSize:18}}}]},n.a.init(document.querySelector(".item3_chart_3")).setOption(a,!0)},setChart4:function(){var t=this,e=n.a.init(document.querySelector(".item4_container")),a=void 0;this.$api.kanbanAPI.repairEventFaultRank().then(function(i){var s=t;if(setTimeout(function(){s.setChart4()},s.interval_time),0===i.code){(i.data.length>5?i.data.sort(s.compare("typeCount")).slice(0,5):i).data.forEach(function(t){a.yAxis.data.push(t.typeName),a.series[0].data.push(t.typeCount)}),e.setOption(a)}}),a={title:{},itemStyle:{color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#249bf3"},{offset:1,color:"#3026a5"}]}},emphasis:{label:{color:"#708acc"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{right:"5px",icon:"rect",itemWidth:10,itemHeight:4,itemGap:20,data:["故障次数"],textStyle:{color:"#fff",fontSize:"14"}},grid:{left:"10",bottom:"10",top:"30",right:"15",containLabel:!0},xAxis:{type:"value",boundaryGap:[0,.01],axisLine:{lineStyle:{color:"#708acc"}},splitLine:{show:!1}},yAxis:{type:"category",data:[],axisLine:{lineStyle:{color:"#708acc"}},axisLabel:{fontSize:14}},series:[{name:"故障次数",type:"bar",data:[],label:{normal:{show:!0,position:"right",color:"#fff"}}}]}},setChart5:function(){var t=this,e=n.a.init(document.querySelector(".item5_container"));n.a.init(document.querySelector(".item5_container"),null,{devicePixelRatio:2});var a=void 0;this.$api.kanbanAPI.repairEventRepairPower().then(function(i){var s=t;if(setTimeout(function(){s.setChart5()},s.interval_time),0===i.code){var o=[],n=void 0;n=i.tieFaultInterval.length>5?i.tieFaultInterval.sort(t.compare("avgTime")).slice(0,5):i.tieFaultInterval;for(var l=0;l