tft-fe/dist/js/2659.51f4311d.js
2023-06-30 14:01:06 +08:00

1 line
8.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[2659],{2659:function(t,e,s){s.r(e),s.d(e,{default:function(){return D}});var r=function(){var t=this,e=t._self._c;return e("el-row",{staticClass:"thicknessDistributionMap",attrs:{gutter:8}},[e("el-col",{attrs:{span:8}},[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:16}},[e("div",{staticClass:"right-box"},[e("thickness-distribution-chart",{attrs:{chartMsg:t.chartData}})],1)])],1)},a=[],i=s(475),n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"thicknessDistributionChart"},[e("div",{staticClass:"top-table"},[e("ul",[e("li",[t._v("转换速度:"+t._s(t.chartMsg[0]?t.chartMsg[0].conveyorSpeed:""))]),e("li",[t._v("配方类型:"+t._s(t.chartMsg[0]?t.chartMsg[0].glassType:""))]),e("li",[t._v("玻璃索引:"+t._s(t.chartMsg[0]?t.chartMsg[0].glassIndex:""))]),e("li",[t._v("等级:"+t._s(t.chartMsg[0]?t.chartMsg[0].result:""))]),e("li")]),e("ul",[e("li",{staticClass:"red-tip"},[t._v(" 最大值:"+t._s(t.chartMsg[0]?t.chartMsg[0].maxValue:"")+" ")]),e("li",{staticClass:"blue-tip"},[t._v(" 最小值:"+t._s(t.chartMsg[0]?t.chartMsg[0].minValue:"")+" ")]),e("li",{staticClass:"purple-tip"},[t._v(" 平均值:"+t._s(t.chartMsg[0]?t.chartMsg[0].avgValue:"")+" ")]),e("li",{staticClass:"green-tip"},[t._v(" 厚度差:"+t._s(t.chartMsg[0]?t.chartMsg[0].ttvValue:"")+" ")]),e("li",{staticClass:"yellow-tip"},[t._v(" 研磨类型:"+t._s(t.chartMsg[0]?t.chartMsg[0].grindType:"")+" ")])])]),e("div",[e("span",{staticClass:"title"},[t._v("玻璃ID"+t._s(t.chartMsg[0]?t.chartMsg[0].glassId:""))])]),e("div",{style:{height:t.chartHeight+"px"},attrs:{id:"thicknessChart"}})])},l=[],o=s(7171),u=s(5468),c={name:"thicknessDistributionChart",mixins:[u.Z],data(){return{chartDom:"",chart:"",chartHeight:(0,i.NC)(350)}},props:{chartMsg:{type:Array,default:()=>[]}},mounted(){this.getChart(),window.addEventListener("resize",(()=>{this.chartHeight=(0,i.NC)(350)}))},watch:{chartMsg:function(){this.getChart()}},methods:{getChart(){let t=Array.from({length:21},((t,e)=>e+1)),e=Array.from({length:7},((t,e)=>e+1));const s=[];let r=[];for(let i=0;i<this.chartMsg.length;i++){let t=[];t[0]=this.chartMsg[i].column13,t[1]=this.chartMsg[i].column11,t[2]=this.chartMsg[i].column9,t[3]=this.chartMsg[i].column7,t[4]=this.chartMsg[i].column5,t[5]=this.chartMsg[i].column3,t[6]=this.chartMsg[i].column1,r[20-i]=t}for(let i=0;i<r.length;i++)for(let t=0;t<r[i].length;t++){let e=[];e[0]=i,e[1]=t,e[2]=r[i][t],s.push(e)}this.chartDom=document.getElementById("thicknessChart"),this.chart=o.S1(this.chartDom);var a={tooltip:{position:"top"},grid:{height:"80%",width:"96%",left:"3%",top:"12%"},xAxis:{type:"category",data:t,splitArea:{show:!0}},yAxis:{type:"category",data:e,splitArea:{show:!0}},visualMap:{min:this.chartMsg[0]&&this.chartMsg[0].minValue||490,max:this.chartMsg[0]&&this.chartMsg[0].maxValue||510,calculable:!0,color:["#FF8481","#F9E35E","#A6FF99","#46EBE8","#4572FF"],orient:"horizontal",right:"9%",top:"3%"},series:[{name:"Punch Card",type:"heatmap",data:s,label:{show:!0,fontSize:10},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};a&&this.chart.setOption(a)}}},h=c,p=s(1001),d=(0,p.Z)(h,n,l,!1,null,"2c01a93d",null),m=d.exports,g=s(2334),y=s(381),f=s.n(y);const b=[{prop:"glassId",label:"ID"},{prop:"testTime",label:"检测时间",filter:i.g6,minWidth:160},{prop:"grindType",label:"研磨类型"}];var M={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=[f()().format("yyyy-MM-DD")+"T00:00:00",f()().format("yyyy-MM-DD")+"T23:59:59"],this.listQuery.startTime=f()().format("yyyy-MM-DD")+"T00:00:00",this.listQuery.endTime=f()().format("yyyy-MM-DD")+"T23:59:59",this.getList()},methods:{getList(){(0,g.dy)({...this.listQuery}).then((t=>{if(0===t.code&&t.data.length>0){let e=this;e.tableData=t.data,e.$nextTick((()=>{e.$refs.thicknessDistributionTable.setCurrent("thicknessDistributionTable1",0)})),e.listQuery2.glassId=e.tableData[0].glassId,e.listQuery2.glassType=e.tableData[0].grindType,e.listQuery2.testTime=e.tableData[0].testTime}else this.tableData=[],this.listQuery2.glassId="",this.listQuery2.glassType="",this.listQuery2.testTime=""}))},buttonClick(t){switch(t.btnName){case"search":this.listQuery.startTime=t.timeVal?t.timeVal[0]:"",this.listQuery.endTime=t.timeVal?t.timeVal[1]:"",this.listQuery.glassId=t.glassId,this.getList();break;default:(0,g.uX)({...this.listQuery2}).then((t=>{this.chartData=t.data}))}},handleCurrentChange(t){this.listQuery2.glassId=t.newVal.glassId,this.listQuery2.glassType=t.newVal.grindType,this.listQuery2.testTime=t.newVal.testTime}}},C=M,T=(0,p.Z)(C,r,a,!1,null,"1b7c3b5c",null),D=T.exports},2334:function(t,e,s){s.d(e,{Af:function(){return l},F0:function(){return m},G$:function(){return M},Jt:function(){return b},ON:function(){return u},QI:function(){return n},Qd:function(){return g},YU:function(){return d},dy:function(){return T},eT:function(){return h},gP:function(){return I},iF:function(){return c},jA:function(){return i},kT:function(){return v},nE:function(){return f},pS:function(){return o},pw:function(){return p},qn:function(){return q},r5:function(){return y},uX:function(){return D},v:function(){return a},vD:function(){return C}});var r=s(8859);function a(t){return(0,r.Z)({url:"/quality/processDetect/page",method:"post",data:t})}function i(t){return(0,r.Z)({url:"/quality/processDetect/list",method:"post",data:t})}function n(t){return(0,r.Z)({url:"/quality/processDetect/add",method:"post",formState:!0,data:t})}function l(t){return(0,r.Z)({url:"/quality/processDetect/detectInput",method:"post",formState:!0,data:t})}function o(t){return(0,r.Z)({url:"/quality/processDetect/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function u(t){return(0,r.Z)({url:"/quality/processCompleteInspetion/page",method:"post",data:t})}function c(t){return(0,r.Z)({url:"/quality/processCompleteInspetion/getDetails",method:"post",data:t})}function h(t){return(0,r.Z)({url:"/quality/processCompleteInspetion/listType",method:"post",data:t})}function p(t){return(0,r.Z)({url:"/quality/processCompleteInspetion/export2",method:"post",responseType:"blob",data:t})}function d(t){return(0,r.Z)({url:"/quality/processCompleteInspetion/pageIIS",method:"post",data:t})}function m(t){return(0,r.Z)({url:"/quality/ProcessFull/queryPoint",method:"post",data:t})}function g(t){return(0,r.Z)({url:"/quality/ProcessFull/drawPoint",method:"post",data:t})}function y(t){return(0,r.Z)({url:"/quality/ProcessFull/queryPointClear",method:"post",data:t})}function f(t){return(0,r.Z)({url:"/quality/ProcessFull/cornerData",method:"post",data:t})}function b(t){return(0,r.Z)({url:"/quality/ProcessFull/pointExport2",method:"post",responseType:"blob",data:t,timeout:6e4})}function M(t){return(0,r.Z)({url:"/quality/ProcessFull/pointExport",method:"post",responseType:"blob",data:t,timeout:6e4})}function C(t){return(0,r.Z)({url:"/quality/ProcessFull/confirm",method:"post",data:t})}function T(t){return(0,r.Z)({url:"/quality/ProcessFull/queryThickness",method:"post",data:t})}function D(t){return(0,r.Z)({url:"/quality/ProcessFull/drawThickness",method:"post",formState:!0,data:t})}function v(t){return(0,r.Z)({url:"/quality/productTrace/page",method:"post",data:t})}function I(t){return(0,r.Z)({url:"/quality/productTrace/pageProcess",method:"post",data:t})}function q(t){return(0,r.Z)({url:"/quality/productTrace/pageProcessParameter",method:"post",data:t})}}}]);