
<template>
  <div class="page">
    <LayoutTable :data='tableData' :config='tableConfig' />
  </div>
</template>

<script>
import table from '@/assets/mixins/table';

export default {
  mixins: [table],
  data() {
    return {
      config: {
        search: [
          {
            name: 'name',
            type: 'text',
            label: '名称',
          },
        ],
        columns: [
          {
            type: 'selection',
            width: 60,
          },
          
  {
    prop: '字段',
    label: '字段名称',
  },
  

  {
    prop: 'id',
    label: '序号',
  },
  

  {
    prop: 'fieldOne',
    label: 'fieldOne',
  },
  

  {
    prop: 'fieldTwo',
    label: 'fieldTwo',
  },
  

  {
    prop: 'updateTime',
    label: 'datetime',
  },
  

  {
    prop: 'updateUser',
    label: 'updateUser',
  },
  

    {
      prop: 'createTime',
      label: 'fieldOne',
      width: 140,
      formatter: this.formatterDate
    },
    

  {
    prop: 'createUser',
    label: 'createUser',
  },
  
          {
            label: '操作',
            width: 180,
            formatter: (row)=> {
              return (
                <table-buttons row={row} onEdit={this.toEdit} onView={this.toView} onDel={this.toDel} />
              )
            },
          },
        ],
      },
    }
  }
}
</script>
