|
|
|
@ -1,12 +1,7 @@
@@ -1,12 +1,7 @@
|
|
|
|
|
import { BasicColumn } from '/@/components/Table'; |
|
|
|
|
import { FormSchema } from '/@/components/Table'; |
|
|
|
|
import { h } from 'vue'; |
|
|
|
|
import {Switch, Tag} from 'ant-design-vue'; |
|
|
|
|
import { listRole } from '/@/api/platform/system/controller/role'; |
|
|
|
|
import { changeStatus } from '/@/api/platform/system/controller/user'; |
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'; |
|
|
|
|
import { getUserTypeList } from '/@/api/platform/system/controller/user'; |
|
|
|
|
import { SystemUserType } from '/@/enums/permissionEnum'; |
|
|
|
|
import { Tag } from 'ant-design-vue'; |
|
|
|
|
|
|
|
|
|
/** 表格列配置 */ |
|
|
|
|
export const columns: BasicColumn[] = [ |
|
|
|
@ -39,13 +34,19 @@ export const columns: BasicColumn[] = [
@@ -39,13 +34,19 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '邮箱', |
|
|
|
|
dataIndex: 'phone', |
|
|
|
|
width: 200 |
|
|
|
|
dataIndex: 'email', |
|
|
|
|
width: 200, |
|
|
|
|
customRender: ({record}) => { |
|
|
|
|
return record.email || h(Tag, { color: 'warning' }, () => '暂无邮箱'); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '手机号', |
|
|
|
|
dataIndex: 'phone', |
|
|
|
|
width: 200 |
|
|
|
|
width: 200, |
|
|
|
|
customRender: ({record}) => { |
|
|
|
|
return record.phone || h(Tag, { color: 'warning' }, () => '暂无手机号'); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '创建时间', |
|
|
|
|