1 line
7.7 KiB
JavaScript
1 line
7.7 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-58400871"],{"2ca5":function(t,e,i){},"35b5":function(t,e,i){},"9e5e":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("el-form",{attrs:{model:t.formData,inline:!0,size:"medium","label-width":"80px"}},[i("el-form-item",[i("el-button",{on:{click:function(e){return t.toE10()}}},[t._v("E10")])],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:function(e){return t.toOEE()}}},[t._v("OEE")])],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:function(e){return t.toMTTR()}}},[t._v("MTTR")])],1),t._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.toMCBF()}}},[t._v("MCBF")])],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("module.equipmentManager.equipmentVisualization.timeSlot"),"label-width":"100px",prop:"time"}},[i("el-date-picker",{attrs:{type:"datetimerange","start-placeholder":t.$t("module.orderManage.order.StartTime"),"end-placeholder":t.$t("module.orderManage.order.StartTime"),"range-separator":t.$t("module.orderManage.order.To"),clearable:""},model:{value:t.formData.timeSlot,callback:function(e){t.$set(t.formData,"timeSlot",e)},expression:"formData.timeSlot"}})],1),t._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.getList()}}},[t._v(" "+t._s(t._f("i18nFilter")("btn.search"))+" ")])],1)],1),t._v(" "),t.mcbfVisible?i("mcbfChart",{ref:"mcbfChart",attrs:{time1:t.startTime,time2:t.endTime},on:{equipmentName:t.seeDetail}}):t._e(),t._v(" "),t.mcbfDetail?i("mcbf-detail-chart",{ref:"mcbfDetailChart",attrs:{time1:t.startTime,time2:t.endTime,"equipment-name":t.equipmentName}}):t._e()],1)},n=[],s=i("2b0b"),o=i.n(s),r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticStyle:{"margin-left":"10%"},style:{width:"1000px",height:"800px"},attrs:{id:"monitorChart"}})])},l=[],c=(i("7f7f"),i("313e")),m=i.n(c),u={props:{time1:{type:Date,default:function(){return""}},time2:{type:Date,default:function(){return""}}},data:function(){return{chart:null,list:[],xDataList:[],yDataList:[]}},mounted:function(){},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{removeData:function(){this.xDataList=["ACOT1","ACOT2","ACOT-a","ACOT-b"],this.yDataList=[22,40,66,44]},getList:function(){this.removeData(),this.init()},init:function(){this.chart=m.a.init(document.getElementById("monitorChart"));var t=this;t.chart.on("click",(function(e){t.$emit("equipmentName",e.name)})),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},toolbox:{feature:{saveAsImage:{show:!0}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0,rotate:-30},max:10,data:this.xDataList},yAxis:[{type:"value",min:0,max:100,axisLabel:{formatter:"{value}次"}},{type:"value",min:0,max:100,axisLabel:{formatter:"{value}次"}}],series:[{name:"稼动率值",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},barWidth:40,data:this.yDataList},{name:"稼动率值",type:"line",yAxisIndex:1,data:this.yDataList}]})}}},h=u,f=i("2877"),b=Object(f["a"])(h,r,l,!1,null,null,null),p=b.exports,d=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",[i("el-button-group",[i("el-button",{on:{click:t.byYear}},[t._v("年")]),t._v(" "),i("el-button",{on:{click:t.byQuarterly}},[t._v("季度")]),t._v(" "),i("el-button",{on:{click:t.byMonth}},[t._v("月")]),t._v(" "),i("el-button",{on:{click:t.byWeek}},[t._v("周")]),t._v(" "),i("el-button",{on:{click:t.byDay}},[t._v("天")])],1)],1),t._v(" "),i("div",{staticStyle:{"margin-left":"10%"},style:{width:"700px",height:"550px"},attrs:{id:"monitorChart"}}),t._v(" "),t.tableVisible?i("mcbf-table",{ref:"tableRef",attrs:{"table-data":t.tableData}}):t._e()],1)},v=[],y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("base-table",{attrs:{"table-config":t.tableProps,"table-data":t.list,"is-loading":t.listLoading}})],1)},D=[],g=i("9923"),x=i("c0ee"),_=[{prop:"tmc",label:g["a"].t("module.equipmentManager.monitoringInfo.allCycles"),align:"center"},{prop:"emc",label:g["a"].t("module.equipmentManager.monitoringInfo.badTimes"),align:"center"},{prop:"time",label:g["a"].t("module.equipmentManager.monitoringInfo.time"),align:"center"},{prop:"mtbf",label:g["a"].t("module.equipmentManager.monitoringInfo.MCBF"),align:"center"}],T={name:"",components:{BaseTable:x["a"]},props:{tableData:{type:Array,default:function(){}}},data:function(){return{total:0,tableProps:_,list:[],listLoading:!1}},mounted:function(){},methods:{init:function(){this.list=this.tableData}}},C=T,L=(i("f1db"),Object(f["a"])(C,y,D,!1,null,"da97073a",null)),$=L.exports,k={components:{McbfTable:$},props:{time1:{type:Date,default:function(){return""}},time2:{type:Date,default:function(){return""}},equipmentName:{type:String,default:function(){return""}}},data:function(){return{chart:null,tableVisible:!1,tableData:[],equipmentDetail:[],list:[],xDataList:[],yDataList:[],startTime:"",endTime:"",name:""}},mounted:function(){this.startTime=this.time1,this.endTime=this.time2,this.name=this.equipmentName},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{getDataList:function(t){console.log(t)},byYear:function(){var t=this;this.removeData(),this.setChart(this.list.年),this.tableData=this.list.年,o()((function(){t.$refs.tableRef.init()}),60)},byQuarterly:function(){var t=this;this.removeData(),this.setChart(this.list.季度),this.tableData=this.list.季度,o()((function(){t.$refs.tableRef.init()}),60)},byMonth:function(){var t=this;this.removeData(),this.setChart(this.list.月),this.tableData=this.list.月,o()((function(){t.$refs.tableRef.init()}),60)},byWeek:function(){var t=this;this.removeData(),this.setChart(this.list.周),this.tableData=this.list.周,o()((function(){t.$refs.tableRef.init()}),60)},byDay:function(){var t=this;this.removeData(),this.setChart(this.list.天),this.tableData=this.list.天,o()((function(){t.$refs.tableRef.init()}),60)},setChart:function(t){this.init()},removeData:function(){this.xDataList=[this.name],this.yDataList=[11,33,20,53,24]},getList:function(){this.tableVisible=!0},init:function(){this.chart=m.a.init(document.getElementById("monitorChart")),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},toolbox:{feature:{saveAsImage:{show:!0}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",max:10,axisLabel:{interval:0,rotate:-30},data:this.xDataList},yAxis:{type:"value"},series:[{name:"稼动率值",type:"line",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.yDataList}]})}}},M=k,E=Object(f["a"])(M,d,v,!1,null,null,null),q=E.exports,S={name:"MCBF",components:{mcbfChart:p,mcbfDetailChart:q},data:function(){return{list:[],startTime:"",endTime:"",formData:{timeSlot:[],current:1,size:10},mcbfVisible:!1,mcbfDetail:!1,equipmentName:"",eqList:[]}},created:function(){},methods:{toE10:function(){this.$router.push({name:"E10"})},toOEE:function(){this.$router.push({name:"OEE"})},toMTTR:function(){this.$router.push({name:"MTTR"})},toMCBF:function(){this.$router.push({name:"MCBF"})},seeDetail:function(t){var e=this;this.equipmentName=t,this.mcbfVisible=!1,this.mcbfDetail=!0,o()((function(){e.$refs.mcbfDetailChart.getList()}),60)},getList:function(){var t=this;0!==this.formData.timeSlot.length&&(this.startTime=this.formData.timeSlot[0],this.endTime=this.formData.timeSlot[1],this.$nextTick((function(){t.mcbfVisible=!0,o()((function(){t.$refs.mcbfChart.getList()}),60)})))}}},w=S,O=(i("9ef4"),Object(f["a"])(w,a,n,!1,null,"cc86fb48",null));e["default"]=O.exports},"9ef4":function(t,e,i){"use strict";i("35b5")},f1db:function(t,e,i){"use strict";i("2ca5")}}]); |