tft-fe/dist/js/6082.9c39cf0b.js

1 line
6.5 KiB
JavaScript
Raw Normal View History

2023-03-14 14:14:03 +08:00
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[6082],{5994:function(t,e,l){l.d(e,{Z:function(){return u}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bottom-box"},[e("div",{staticClass:"bottom-left"},[e("ul",{staticClass:"dataTab"},[e("div",{staticClass:"title"},[t._v("颗粒数据")]),t._l(t.leftList,(function(l,a){return e("li",{key:a},[e("p",{staticClass:"tabHead"},[t._v(t._s(l.name))]),e("p",{staticClass:"tabValue"},[t._v(t._s(l.value))])])}))],2)]),e("div",{staticClass:"bottom-right"},[e("ul",{staticClass:"dataTab"},[e("div",{staticClass:"title"},[t._v("面检数据")]),t._l(t.rightList,(function(l,a){return e("li",{key:a},[e("p",{staticClass:"tabHead"},[t._v(t._s(l.name))]),e("p",{staticClass:"tabValue"},[t._v(t._s(l.value))])])}))],2)])])},n=[],i={name:"DefectScatterPlot",props:{detailObj:{type:Object}},data(){return{leftList:[{name:"S",value:null,key:"s"},{name:"M",value:null,key:"m"},{name:"L",value:null,key:"l"},{name:"XL",value:null,key:"xl"}],rightList:[{name:"气泡",value:null,key:"bl"},{name:"变形",value:null,key:"distortion"},{name:"纤维",value:null,key:"fiber"},{name:"划伤",value:null,key:"scratch"},{name:"点状缺陷",value:null,key:"tin"},{name:"结石",value:null,key:"stone"},{name:"铂金",value:null,key:"pt"},{name:"结节",value:null,key:"knot"},{name:"拖尾",value:null,key:"tail"},{name:"ADG",value:null,key:"adg"},{name:"锡缺陷(顶部)",value:null,key:"top"},{name:"锡缺陷(底部)",value:null,key:"bottom"},{name:"无法识别",value:null,key:"iisrest"}]}},methods:{init(){console.log(this.detailObj);for(let t=0;t<this.leftList.length;t++)this.leftList[t].value=this.detailObj[this.leftList[t].key]?this.detailObj[this.leftList[t].key]:null;for(let t=0;t<this.rightList.length;t++)this.rightList[t].value=this.detailObj[this.rightList[t].key]?this.detailObj[this.rightList[t].key]:null}}},s=i,r=l(1001),o=(0,r.Z)(s,a,n,!1,null,"4eab165e",null),u=o.exports},6082:function(t,e,l){l.r(e),l.d(e,{default:function(){return m}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"full-inspection-detail"},[e("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),e("div",{staticClass:"plot-total"},[e("defect-scatter-plot-total",{ref:"fullInspectionDetailPlot",staticClass:"plot-total-box",attrs:{detailObj:t.detailObj}})],1),e("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH}},[t.tableBtn.length?e("method-btn",{attrs:{slot:"handleBtn",width:80,label:"操作",fixed:"right","method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"}):t._e()],1),e("pagination",{attrs:{limit:t.listQuery.size,total:t.total}})],1)},n=[],i=l(475),s=l(2334),r=l(5994);const o=[{prop:"virtualcode",label:"缺陷编号"},{prop:"filetype",label:"Y轴位置(mm)"},{prop:"glassLength",label:"X轴位置(mm)"},{prop:"glassWidth",label:"缺陷尺寸等级"},{prop:"glassHeight",label:"缺陷类型"},{prop:"grade",label:"长度(mm)"},{prop:"line",label:"宽度(mm)"}],u=[{type:"detail",btnName:"查看图片"}];var c={name:"FullInspectionDetail",components:{defectScatterPlotTotal:r.Z},data(){return{formConfig:[{type:"select",label:"缺陷类型",selectOptions:[],param:"defectType",labelField:"defectType",valueField:"defectType",defaultSelect:"",filterable:!0,width:200},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"separate"},{type:"button",btnName:"返回",name:"export",color:"primary",plain:!0}],detailObj:{},tableProps:o,tableData:[],tableH:(0,i.NC)(330),tableBtn:u,total:0,listQuery:{current:1,size:20,glassId:""}}},mounted(){const{virtualcode:t,filetype:e,time:l}=this.$route.query;this.listQuery.glassId=t,this.getDetail(t,e,l),window.addEventListener("resize",(()=>{this.tableH=(0,i.NC)(330)})),this.getListType()},methods:{getDetail(t,e,l){(0,s.iF)({virtualcode:t,time:l,defectType:decodeURIComponent(e)}).then((t=>{console.log(t),this.detailObj=t.data,this.$nextTick((()=>{this.$refs.fullInspe