1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
|
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)",shadowCo
|