| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- function columns(vm) {
- const cols = [
- {
- title: '序号',
- key: 'rowIndex',
- width: 60,
- align: 'center',
- customRender: function(t, r, index) {
- return parseInt(index) + 1
- }
- },
- {
- title: '姓名',
- align: 'center',
- dataIndex: 'realName',
- key: 'realName'
- },
- {
- title: '登录账号',
- align: 'center',
- dataIndex: 'userName',
- key: 'userName'
- },
- {
- title: '部门',
- align: 'center',
- dataIndex: 'dept',
- scopedSlots: { customRender: 'dept' },
- key: 'dept'
- }, {
- title: '岗位类型',
- align: 'center',
- dataIndex: 'postText',
- key: 'postText'
- },
- {
- title: '职务',
- align: 'center',
- dataIndex: 'roleName',
- key: 'roleName'
- },
- {
- title: '手机号',
- align: 'center',
- dataIndex: 'phone',
- key: 'phone'
- },
- {
- title: '状态',
- align: 'center',
- dataIndex: 'status',
- scopedSlots: { customRender: 'status' },
- key: 'status'
- },
- {
- title: '操作',
- dataIndex: 'action',
- width: 350,
- align: 'center',
- slots: { title: 'actionName' },
- scopedSlots: { customRender: 'action' }
- }
- ]
- return cols
- }
- export default columns
|