tft-fe/dist/js/8695.4101e90a.js

1 line
10 KiB
JavaScript
Raw Normal View History

2023-06-30 14:01:06 +08:00
"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",la