import type { Record } from '@/api'
import type { ColumnsType } from 'ant-design-vue/es/table'

export const recordColumns: ColumnsType<Record> = [
  {
    title: '序列',
    dataIndex: 'logId',
    key: 'logId'
  },
  {
    title: '项目名称',
    dataIndex: 'projectName',
    key: 'projectName'
  },
  {
    title: '备注',
    dataIndex: 'logMsg',
    key: 'logMsg'
  },
  {
    title: '操作人',
    dataIndex: 'userName',
    key: 'userName'
  },
  {
    title: '操作时间',
    dataIndex: 'createTime',
    key: 'createTime',
    customRender({ record }) {
      return record.createTime.substring(0, 16)
    }
  },
  {
    width: '60px',
    title: '操作',
    dataIndex: 'action',
    key: 'action'
  }
]
