79 lines
1.2 KiB
Vue
79 lines
1.2 KiB
Vue
<template>
|
|
<div>
|
|
<base-table
|
|
:table-props="tableProps"
|
|
:table-data="tableData"
|
|
:max-height="tableH"
|
|
/>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import { timeFormatter, tableHeight } from '@/utils'
|
|
const tableProps = [
|
|
{
|
|
prop: 'glassId',
|
|
label: '玻璃ID',
|
|
minWidth: 120
|
|
},
|
|
{
|
|
prop: 'testTime',
|
|
label: '检测时间',
|
|
filter: timeFormatter,
|
|
minWidth: 160
|
|
},
|
|
{
|
|
prop: 'palletId',
|
|
label: '托盘ID',
|
|
minWidth: 120
|
|
},
|
|
{
|
|
prop: 'grindType',
|
|
label: '研磨类型',
|
|
minWidth: 120
|
|
},
|
|
{
|
|
prop: 'maxValue',
|
|
label: '最大值',
|
|
minWidth: 120
|
|
},
|
|
{
|
|
prop: 'minValue',
|
|
label: '最小值',
|
|
minWidth: 120
|
|
},
|
|
{
|
|
prop: 'avgValue',
|
|
label: '平均值',
|
|
minWidth: 120
|
|
},
|
|
{
|
|
prop: 'ttvValue',
|
|
label: '厚薄差',
|
|
minWidth: 120
|
|
}
|
|
]
|
|
export default {
|
|
name: 'glassThickReport',
|
|
data() {
|
|
return {
|
|
tableProps,
|
|
tableH: tableHeight(292)
|
|
}
|
|
},
|
|
mounted() {
|
|
window.addEventListener('resize', () => {
|
|
this.tableH = tableHeight(292)
|
|
})
|
|
},
|
|
props: {
|
|
tableData: {
|
|
type: Array,
|
|
required: true,
|
|
default: () => {
|
|
return []
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|