<template>
  <ele-pro-table ref="fileTable" :columns="columns1" :datasource="list">
  </ele-pro-table>
</template>

<script>
  export default {
    props: {
      list: {
        type: Array,
        default: () => []
      }
    },
    watch: {
      list: {
        handler(newVal) {
          this.list = newVal;
        },
        immediated: true,
        deep: true
      }
    },
    data() {
      return {
        columns1: [
          {
            label: '序号',
            type: 'index',
            width: 60,
            align: 'center'
          },
          {
            label: '实际开始时间',
            prop: 'realStartTime',
            minWidth: 150,
            align: 'center',
            showOverflowTooltip: true
          },
          {
            label: '实际结束时间',
            prop: 'realEndTime',
            minWidth: 150,
            align: 'center',
            showOverflowTooltip: true
          },
          {
            label: '工时',
            prop: 'durationText',
            width: 150,
            align: 'center',
            showOverflowTooltip: true
          },
          {
            label: '合格数量',
            prop: 'qualifiedQuantity',
            minWidth: 100,
            align: 'center',
            showOverflowTooltip: true
          },
          {
            label: '不合格数量',
            prop: 'unqualifiedQuantity',
            minWidth: 100,
            align: 'center',
            showOverflowTooltip: true
          },
          {
            label: '合格重量(kg)',
            prop: 'qualifiedWeight',
            minWidth: 100,
            align: 'center',
            showOverflowTooltip: true
          },
          {
            label: '不合格重量(kg)',
            prop: 'unqualifiedWeight',
            minWidth: 100,
            align: 'center',
            showOverflowTooltip: true
          },
          {
            label: '备注信息',
            prop: 'remark',
            minWidth: 220,
            align: 'center',
            showOverflowTooltip: true
          }
        ]
      };
    },
    computed: {},
    methods: {}
  };
</script>
<style scoped lang="scss"></style>
