tft-fe/dist/js/9929.9f8dbee7.js

1 line
7.7 KiB
JavaScript
Raw Normal View History

2023-06-28 17:05:34 +08:00
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[9929],{9929:function(t,e,r){r.r(e),r.d(e,{default:function(){return v}});var a=function(){var t=this,e=t._self._c;return e("el-row",{staticClass:"thicknessDistributionMap",attrs:{gutter:8}},[e("el-col",{attrs:{span:10}},[e("div",{staticClass:"left-box"},[e("search-bar",{attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),e("base-table",{ref:"thicknessDistributionTable",attrs:{id:"thicknessDistributionTable1","table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH,"highlight-current-row":""},on:{"current-change":t.handleCurrentChange}})],1)]),e("el-col",{attrs:{span:14}},[e("div",{staticClass:"right-box"},[e("thickness-distribution-chart",{attrs:{chartMsg:t.chartData}})],1)])],1)},s=[],i=r(475),n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"thicknessDistributionChart"},[t._m(0),t._m(1),e("div",{staticStyle:{width:"100%"},style:{height:t.chartHeight+"px"},attrs:{id:"thicknessChart"}})])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"top-table"},[e("ul",[e("li",[t._v("转换速度32654654")]),e("li",[t._v("配方类型G8.5-0943")]),e("li",[t._v("玻璃索引56565")]),e("li",[t._v("等级G1")]),e("li")]),e("ul",[e("li",{staticClass:"red-tip"},[t._v("最大值235454")]),e("li",{staticClass:"blue-tip"},[t._v("最小值5652356")]),e("li",{staticClass:"purple-tip"},[t._v("平均值6856532656")]),e("li",{staticClass:"green-tip"},[t._v("厚度差656413212")]),e("li",{staticClass:"yellow-tip"},[t._v("研磨类型4ABC")])])])},function(){var t=this,e=t._self._c;return e("div",[e("span",{staticClass:"title"},[t._v("玻璃ID46745386415274874")])])}],l=r(7171),u=r(5468),c={name:"thicknessDistributionChart",mixins:[u.Z],data(){return{chartDom:"",chart:"",chartHeight:(0,i.NC)(320)}},props:{chartMsg:{type:Array,default:()=>[]}},mounted(){this.chartDom=document.getElementById("thicknessChart"),this.chart=l.S1(this.chartDom),this.getChart(),window.addEventListener("resize",(()=>{this.chartHeight=(0,i.NC)(320)}))},watch:{chartMsg:function(){this.getChart()}},methods:{getChart(){let t=[];for(let s=1;s<=21;s++)t.push(s);let e=[];for(let s=1;s<=7;s++)e.push(s);const r=[];for(let s=0;s<t.length;s++)for(let t=0;t<e.length;t++){let e=[];e[0]=s,e[1]=t,e[2]=parseInt(80*Math.random()+470),r.push(e)}console.log(r);var a={tooltip:{position:"top"},grid:{height:"50%",top:"10%"},xAxis:{type:"category",data:t,splitArea:{show:!0}},yAxis:{type:"category",data:e,splitArea:{show:!0}},visualMap:{min:470,max:550,calculable:!0,color:["#FF8481","#F9E35E","#A6FF99","#46EBE8","#4572FF"],orient:"horizontal",right:"9%",top:"3%"},series:[{name:"Punch Card",type:"heatmap",data:r,label:{show:!0},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};a&&this.chart.setOption(a)}}},h=c,p=r(1001),d=(0,p.Z)(h,n,o,!1,null,"5a382438",null),m=d.exports,y=r(2334),f=r(381),g=r.n(f);const b=[{prop:"glassId",label:"ID"},{prop:"testTime",label:"检测时间",filter:i.g6,minWidth:160},{prop:"grindType",label:"研磨类型"}];var C={name:"thicknessDistributionMap",components:{thicknessDistributionChart:m},data(){return{formConfig:[{type:"datePicker",label:"检验时间",dateType:"datetimerange",format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-ddTHH:mm:ss",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",param:"timeVal",defaultSelect:[],width:350},{type:"input",label:"玻璃ID",placeholder:"玻璃ID",param:"glassId"},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"button",btnName:"绘图",name:"draw",color:"primary"}],listQuery:{glassId:"",startTime:"",endTime:""},listQuery2:{glassType:"",testTime:"",glassId:""},tableProps:b,tableData:[],tableH:(0,i.NC)(350),chartData:[]}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,i.NC)(350)})),this.formConfig[0].defaultSelect=[g()().format("yyyy-MM-DD")+"T00:00:00",g()().format("yyyy-MM-DD")+"T23:59:59"],this.listQuery.startTime=g()().format("yyyy-MM-DD")+"T00:00:00",this.list