2023-07-17 19:37:46 +08:00
|
|
|
<template>
|
2023-07-20 14:11:37 +08:00
|
|
|
<custom-modal v-model="visible" :width="750" title="QC Results">
|
2023-07-17 19:37:46 +08:00
|
|
|
<a-table :columns="columns" :dataSource="list" :pagination="false" />
|
|
|
|
<a-button slot="custom-footer" type="primary">Export to Excel</a-button>
|
|
|
|
</custom-modal>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import ModalMixin from '@/mixins/ModalMixin'
|
|
|
|
|
|
|
|
const columns = [
|
|
|
|
{
|
|
|
|
title: 'Name',
|
|
|
|
dataIndex: 'name'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Pass/Fail',
|
|
|
|
dataIndex: 'status'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Value',
|
|
|
|
dataIndex: 'value'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Standard',
|
|
|
|
dataIndex: 'standard'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
export default {
|
|
|
|
mixins: [ModalMixin],
|
|
|
|
data() {
|
|
|
|
this.columns = columns
|
|
|
|
return {
|
|
|
|
list: [
|
|
|
|
{
|
|
|
|
name: 'name',
|
|
|
|
status: 'status',
|
|
|
|
value: 'value',
|
|
|
|
standard: 'standard'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="less" scoped></style>
|