1 line
9.1 KiB
JavaScript
1 line
9.1 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-799b1311"],{"68b8":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",{attrs:{type:"primary"},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",{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.oeeVisible?i("oeeChart",{ref:"oeeChart",attrs:{time1:t.startTime,time2:t.endTime},on:{equipmentName:t.seeDetail}}):t._e(),t._v(" "),t.oeeDetail?i("oee-detail-chart",{ref:"oeeDetailChart",attrs:{time1:t.startTime,time2:t.endTime,"equipment-name":t.equipmentName}}):t._e()],1)},n=[],o=i("2b0b"),s=i.n(o),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=[],u=(i("7f7f"),i("313e")),m=i.n(u),c={props:{time1:{type:Date,default:function(){return""}},time2:{type:Date,default:function(){return""}}},data:function(){return{chart:null,list:[],xDataList:[],oeeList:[]}},mounted:function(){},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{removeData:function(){this.xDataList=["ACOT1","ACOT2","ACOT-a","ACOT-b"],this.oeeList=[20,30,80,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:"oee",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},barWidth:40,data:this.oeeList},{name:"oee",type:"line",yAxisIndex:1,data:this.oeeList}]})}}},h=c,f=i("2877"),p=Object(f["a"])(h,r,l,!1,null,null,null),b=p.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("oee-table",{ref:"tableRef",attrs:{"table-data":t.tableData,"equipment-name":t.name}}):t._e()],1)},v=[],g=(i("96cf"),i("1da1")),y=i("6b47"),D=i.n(y),x=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.listL
|