| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- import { h } from 'vue';
- import { ElTag } from 'element-plus';
- import { BasicColumn } from '@/components/Table';
- // export const columns: BasicColumn[] = [
- // // {
- // // type: 'selection',
- // // },
- // {
- // label: '账号',
- // prop: 'username',
- // },
- // {
- // label: '用户名',
- // prop: 'nickname',
- // },
- // {
- // label: '手机',
- // prop: 'mobile',
- // },
- // {
- // label: '状态',
- // prop: 'isEnable',
- // render(record) {
- // return h(
- // ElTag,
- // {
- // type: record.row.isEnable ? 'success' : 'danger',
- // },
- // {
- // default: () => (record.row.isEnable ? '启用' : '禁用'),
- // },
- // );
- // },
- // },
- // {
- // label: '角色',
- // prop: 'roleName',
- // },
- // {
- // label: '租户',
- // prop: 'tenantName',
- // },
- // {
- // label: '部门',
- // prop: 'deptName',
- // },
- // {
- // label: '岗位',
- // prop: 'postName',
- // },
- // // {
- // // label: '描述',
- // // prop: 'remark',
- // // },
- // {
- // label: '创建时间',
- // prop: 'createTime',
- // },
- // ];
- export const columns: BasicColumn[] = [
- {
- type: 'selection',
- },
- // {
- // label: '账号',
- // prop: 'username',
- // },
- {
- label: '工号',
- prop: 'username',
- },
- // {
- // label: '用户名',
- // prop: 'nickname',
- // },
- {
- label: '姓名',
- prop: 'nickname',
- },
- {
- label: '手机',
- prop: 'mobile',
- },
- {
- label: '状态',
- prop: 'isEnable',
- render(record) {
- return h(
- ElTag,
- {
- type: record.row.isEnable ? 'success' : 'danger',
- },
- {
- default: () => (record.row.isEnable ? '正常' : '锁定'),
- },
- );
- },
- },
- {
- label: '角色',
- prop: 'roleName',
- },
- // {
- // label: '租户',
- // prop: 'tenantName',
- // },
- // {
- // label: '部门',
- // prop: 'deptName',
- // },
- {
- label: '组织',
- prop: 'postName',
- },
- // {
- // label: '岗位',
- // prop: 'postName',
- // },
- // {
- // label: '描述',
- // prop: 'remark',
- // },
- {
- label: '创建时间',
- prop: 'createTime',
- minWidth: 100,
- },
- ];
|