| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import { h } from 'vue';
- import { BasicColumn } from '@/components/Table';
- export const columns: BasicColumn[] = [
- {
- label: '角色id',
- prop: 'roleId',
- },
- {
- label: '角色类型',
- prop: 'role_type',
- render(record) {
- let type = '管理员';
- if (record.row.role_type === 1) {
- type = '超级管理员';
- } else if (record.row.role_type === 3) {
- type = '用户';
- }
- return h(
- 'span',
- {},
- {
- default: () => type,
- },
- );
- },
- },
- {
- label: '角色编码',
- prop: 'roleCode',
- },
- {
- label: '角色名称',
- prop: 'roleName',
- },
- {
- label: '备注',
- prop: 'remark',
- },
- {
- label: '创建时间',
- prop: 'createTime',
- },
- ];
|