1 строка
10 KiB
JavaScript
1 строка
10 KiB
JavaScript
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[8695],{8695:function(t,e,n){n.r(e),n.d(e,{default:function(){return Z}});var a=function(){var t=this,e=t._self._c;return e("div",[e("el-row",{staticClass:"main-box",attrs:{gutter:10}},[e("el-col",{attrs:{span:4}},[e("div",{staticClass:"left-box"},[e("el-tree",{ref:"deviceTree",attrs:{data:t.treeData,"node-key":"name",props:t.defaultTime,"default-expand-all":"","highlight-current":!0},on:{"node-click":t.clickDevice}})],1)]),e("el-col",{attrs:{span:14}},[e("div",{staticClass:"middle-box"},[e("el-row",[e("el-col",{staticClass:"middle-top"},[e("div",[e("div",{staticClass:"choose-box"},[e("el-radio-group",{attrs:{size:"small"},on:{change:t.selectData},model:{value:t.selectDimension,callback:function(e){t.selectDimension=e},expression:"selectDimension"}},[e("el-radio-button",{attrs:{label:"year"}},[t._v("年")]),e("el-radio-button",{attrs:{label:"month"}},[t._v("月")]),e("el-radio-button",{attrs:{label:"week"}},[t._v("周")])],1)],1),e("div",{staticClass:"search-box"},[e("span",[t._v("发生时间 ")]),"year"===t.selectDimension?e("el-date-picker",{attrs:{type:"year",placeholder:"请选择",size:"small"},model:{value:t.yearDate,callback:function(e){t.yearDate=e},expression:"yearDate"}}):t._e(),"month"===t.selectDimension?e("el-date-picker",{attrs:{type:"month",placeholder:"请选择",size:"small"},model:{value:t.monthDate,callback:function(e){t.monthDate=e},expression:"monthDate"}}):t._e(),"week"===t.selectDimension?e("el-date-picker",{attrs:{type:"week",format:"yyyy 第 WW 周",placeholder:"请选择",size:"small"},model:{value:t.weekDate,callback:function(e){t.weekDate=e},expression:"weekDate"}}):t._e(),e("el-button",{staticStyle:{"margin-left":"24px"},attrs:{type:"primary",size:"small"}},[t._v("查询")])],1)])])],1),e("el-row",[e("el-col",{staticClass:"middle-bottom"},[e("span",{staticClass:"title"},[t._v("xxxx设备 故障信息")]),e("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"page-width":50,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH}})],1)],1)],1)]),e("el-col",{attrs:{span:6}},[e("div",{staticClass:"right-box"},[e("el-row",[e("el-col",{staticClass:"right-top"},[e("contrast-chart1",{attrs:{id:"chart1"}})],1)],1),e("el-row",[e("el-col",{staticClass:"right-bottom"},[e("contrast-chart2",{attrs:{id:"chart2"}})],1)],1)],1)])],1)],1)},r=[],o=n(5591),i=n(147),u=n(475),s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"box"},[e("span",{staticClass:"title"},[t._v("xxx设备MTBR对比")]),e("div",{staticStyle:{width:"100%"},style:{height:t.chartHeight+"px"},attrs:{id:t.id}}),t._m(0)])},l=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"bottom-tip"},[e("div",{staticClass:"l-box"},[e("p",{staticClass:"num1"},[t._v("78%")]),e("span",{staticClass:"month1"},[t._v("本月")])]),e("div",{staticClass:"r-box"},[e("p",{staticClass:"num2"},[t._v("78%")]),e("span",{staticClass:"month2"},[t._v("上月")])])])}],c=n(7171),m=n(5468),p={name:"ContrastChart",mixins:[m.Z],props:{id:{type:String,default:""}},data(){return{chartDom:"",chart:"",chartHeight:.5*(0,u.NC)(500)}},mounted(){this.chartDom=document.getElementById(this.id),this.chart=c.S1(this.chartDom),this.getChart(),window.addEventListener("resize",(()=>{this.chartHeight=.5*(0,u.NC)(500)}))},methods:{getChart(){var t=80,e=20,n=60,a=40,r={color:["#84E9DC","#fff","#E7E9F0","#E7E9F0"],tooltip:{show:!1},legend:{show:!1},series:[{namr:"lastMonth",type:"pie",zlevel:2,radius:["45%","60%"],center:["50%","45%"],avoidLabelOverlap:!1,silent:!0,tooltip:{show:!1},emphasis:{scale:!1},label:{show:!1},data:[{value:n,name:"已完成 "+n},{value:a,name:"未完成 "+a}]},{name:"thisMonth",type:"pie",radius:["60%","75%"],center:["50%","45%"],clockwise:!0,avoidLabelOverlap:!1,emphasis:{scale:!1},silent:!1,label:{show:!1},data:[{value:t,name:"已完成 "+t,itemStyle:{color:"#288aff"}},{value:e,name:"未完成 "+e}]}]};this.chart.setOption(r,!0)}}},d=p,h=n(1001),f=(0,h.Z)(d,s,l,!1,null,"334c85ea",null),g=f.exports;const b=[{prop:"startState",label:"前状态"},{prop:"endState",label:"后状态"},{prop:"occurrenceTime",label:"发生时间"},{prop:"ChangeTime",label:"变化时间"}];var y={name:"mtbrfPage",components:{contrastChart1:g,contrastChart2:g},data(){return{treeData:[],defaultTime:{children:"children",label:"name"},eqName:"",yearDate:"",monthDate:"",weekDate:"",listQuery:{current:1,size:500,type:"",time:"",name:""},tableProps:b,tableData:[],tableH:(0,u.NC)(350),selectDimension:"year"}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,u.NC)(350)})),this.getTree(),this.getList()},methods:{getTree(){(0,o.SI)().then((t=>{this.treeData=t.data,this.eqName=t.data[0].children[0].children[0].name,this.listQuery.name=this.eqName,setTimeout((()=>{this.$refs.deviceTree.setCurrentKey(this.eqName)}),100)}))},clickDevice(t){console.log(t),t.children||console.log(t.children)},selectData(t){console.log(t),this.yearDate="",this.monthDate="",this.weekDate=""},getList(){"week"===this.selectDimension?(0,i.Az)().then((t=>{console.log(t)})):(0,i.tR)().then((t=>{console.log(t)}))}}},v=y,D=(0,h.Z)(v,a,r,!1,null,"010f8f58",null),Z=D.exports},5591:function(t,e,n){n.d(e,{FH:function(){return u},Hp:function(){return l},JQ:function(){return i},SI:function(){return o},Vx:function(){return c},WQ:function(){return d},b6:function(){return m},iv:function(){return r},jL:function(){return s},m:function(){return p}});var a=n(8859);function r(){return(0,a.Z)({url:"/common/getList",method:"post"})}function o(){return(0,a.Z)({url:"/common/getTreeData",method:"post"})}function i(t){return(0,a.Z)({url:"/common/updateEqSeq",method:"post",data:t})}function u(t){return(0,a.Z)({url:"/common/attachment/downloadFile",method:"get",responseType:"blob",params:t,timeout:6e4})}function s(t){return(0,a.Z)({url:"/common/getFpyData",method:"post",data:t})}function l(t){return(0,a.Z)({url:"/common/getAlarmData",method:"post",data:t})}function c(t){return(0,a.Z)({url:"/common/getCapacityData",method:"post",data:t})}function m(t){return(0,a.Z)({url:"/common/getProductData",method:"post",data:t})}function p(t){return(0,a.Z)({url:"/common/getMaterialData",method:"post",data:t})}const d="/api/common/attachment/uploadFileFormData"},147:function(t,e,n){n.d(e,{$7:function(){return H},$F:function(){return v},$N:function(){return _},$d:function(){return f},A5:function(){return S},Ah:function(){return i},Az:function(){return m},Dr:function(){return b},HJ:function(){return p},Im:function(){return k},KK:function(){return z},KQ:function(){return w},Ko:function(){return F},Ku:function(){return y},OP:function(){return l},OT:function(){return D},UP:function(){return M},Uw:function(){return L},YG:function(){return A},bO:function(){return h},co:function(){return Z},fK:function(){return C},h:function(){return T},jD:function(){return u},jL:function(){return E},lJ:function(){return g},lZ:function(){return s},pl:function(){return P},rd:function(){return d},tR:function(){return c},uN:function(){return o},yx:function(){return q},zG:function(){return x},zh:function(){return r}});var a=n(8859);function r(t){return(0,a.Z)({url:"/equipment/PerformanceAnalysis/get",method:"post",data:t})}function o(t){return(0,a.Z)({url:"/equipment/PerformanceAnalysis/getPlan",method:"post",data:t})}function i(t){return(0,a.Z)({url:"/equipment/PerformanceAnalysis/updatePlan",method:"post",data:t})}function u(t){return(0,a.Z)({url:"/equipment/PerformanceAnalysis/getUtilization",method:"post",data:t})}function s(t){return(0,a.Z)({url:"/equipment/PalletIndicatorAnalysis/page",method:"post",data:t})}function l(t){return(0,a.Z)({url:"/equipment/PalletIndicatorAnalysis/getType",method:"post",data:t})}function c(t){return(0,a.Z)({url:"/equipment/PerformanceAnalysis/getMTBRF",method:"post",data:t})}function m(t){return(0,a.Z)({url:"/equipment/PerformanceAnalysis/getMTBRFWeek",method:"post",data:t})}function p(t){return(0,a.Z)({url:"/equipment/SparePartStock/page",method:"post",data:t})}function d(t){return(0,a.Z)({url:"/equipment/SparePartStock/inStock",method:"post",data:t})}function h(t){return(0,a.Z)({url:"/equipment/SparePartStock/get",method:"post",data:t})}function f(t){return(0,a.Z)({url:"/equipment/SparePartStock/update",method:"post",data:t})}function g(t){return(0,a.Z)({url:"/equipment/SparePartStock/outStock",method:"post",data:t})}function b(t){return(0,a.Z)({url:"/equipment/SparePartStock/stockDetail",method:"post",data:t})}function y(t){return(0,a.Z)({url:"/equipment/SparePartStock/getBatchList",method:"post",data:t})}function v(t){return(0,a.Z)({url:"/equipment/SparePartStock/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function D(t){return(0,a.Z)({url:"/equipment/SparePartStock/PageHis",method:"post",data:t})}function Z(t){return(0,a.Z)({url:"/equipment/SparePartStock/exportHis",method:"post",responseType:"blob",data:t,timeout:6e4})}function M(t){return(0,a.Z)({url:"/equipment/MaintainManage/pageSelect",method:"post",data:t})}function q(t){return(0,a.Z)({url:"/equipment/MaintainManage/unDistributeGet",method:"post",data:t})}function k(t){return(0,a.Z)({url:"/equipment/MaintainManage/create",method:"post",data:t})}function C(t){return(0,a.Z)({url:"/equipment/MaintainManage/unDistribute",method:"post",data:t})}function S(t){return(0,a.Z)({url:"/equipment/MaintainManage/completedDistribute",method:"post",data:t})}function x(t){return(0,a.Z)({url:"/equipment/MaintainManage/dispatch",method:"post",data:t})}function w(t){return(0,a.Z)({url:"/equipment/MaintainManage/confirm",method:"post",data:t})}function P(t){return(0,a.Z)({url:"/equipment/MaintainManage/PlainMaintainDelete",method:"post",data:t})}function A(t){return(0,a.Z)({url:"/equipment/MaintainManage/PlanMaintainExport",method:"post",responseType:"blob",data:t,timeout:6e4})}function _(t){return(0,a.Z)({url:"/equipment/MaintainManage/AutoMaintainPageSelect",method:"post",data:t})}function T(t){return(0,a.Z)({url:"/equipment/MaintainManage/AutoMaintainAdd",method:"post",data:t})}function z(t){return(0,a.Z)({url:"/equipment/MaintainManage/AutoMaintainModify",method:"post",data:t})}function E(t){return(0,a.Z)({url:"/equipment/MaintainManage/AUtoMaintainDelete",method:"post",data:t})}function H(t){return(0,a.Z)({url:"/equipment/MaintainManage/AutoMaintainExport",method:"post",responseType:"blob",data:t,timeout:6e4})}function F(t){return(0,a.Z)({url:"/equipment/AlarmMessage/nowAlertSelect",method:"post",data:t})}function L(t){return(0,a.Z)({url:"/equipment/AlarmMessage/historyAlertSelect",method:"post",data:t})}}}]); |