export const columns=[
  {
    title: '创建时间',
    align:'center',
    dataIndex: 'created_at',
    scopedSlots: {
      customRender: 'created_at',
    }
  },
  {
    title:'uid',
    align:'center',
    dataIndex:'uuid'
  },
  {
    title:'用户名',
    align:'center',
    dataIndex: 'user_name'
  },
  {
    title: '手机号',
    align:'center',
    dataIndex: 'phone',
  },
  {
    title: '所在机构层级',
    align:'center',
    scopedSlots: { customRender: 'level' },
  },
  {
    title: '所属银行',
    align:'center',
    dataIndex: 'bank_name',
  },
  {
    title: '所属一级分行',
    align:'center',
    dataIndex: 'firstLevelBranch',
    hideInPlatform: true,
  },
  {
    title: '所属二级分行',
    align:'center',
    dataIndex: 'secondaryBranch',
    hideInPlatform: true,
  },
  {
    title: '所属一级支行',
    align:'center',
    dataIndex: 'firstSubBranch',
    hideInPlatform: true,
  },
  {
    title: '所属二级支行',
    align:'center',
    dataIndex: 'secondarySubBranch',
    hideInPlatform: true,
  },
  {
    title: '状态',
    align:'center',
    dataIndex: 'status',
    scopedSlots: {
      customRender: 'status',
    }
  },
  {
    title: '操作',
    align:'center',
    scopedSlots: { customRender: 'action' },
  },
]

export function getPlatformUserManagementTableColumns(){
  return columns.filter(i => !i.hideInPlatform)
}