From 66f69a41ae62f6aa87d1e3484fb6b778a69593da Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Sun, 6 Aug 2023 04:29:56 +0800 Subject: [PATCH] chore: options --- src/views/system/user/sso/sso.data.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/views/system/user/sso/sso.data.ts b/src/views/system/user/sso/sso.data.ts index 54ac300..318cbc2 100644 --- a/src/views/system/user/sso/sso.data.ts +++ b/src/views/system/user/sso/sso.data.ts @@ -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[] = [ }, { 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: '创建时间',