Browse Source

chore: options

master
wangxiang 2 years ago
parent
commit
66f69a41ae
No known key found for this signature in database
GPG Key ID: 1BA7946AB6B232E4
  1. 19
      src/views/system/user/sso/sso.data.ts

19
src/views/system/user/sso/sso.data.ts

@ -1,12 +1,7 @@
import { BasicColumn } from '/@/components/Table'; import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table'; import { FormSchema } from '/@/components/Table';
import { h } from 'vue'; import { h } from 'vue';
import {Switch, Tag} from 'ant-design-vue'; import { 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';
/** 表格列配置 */ /** 表格列配置 */
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
@ -39,13 +34,19 @@ export const columns: BasicColumn[] = [
}, },
{ {
title: '邮箱', title: '邮箱',
dataIndex: 'phone', dataIndex: 'email',
width: 200 width: 200,
customRender: ({record}) => {
return record.email || h(Tag, { color: 'warning' }, () => '暂无邮箱');
}
}, },
{ {
title: '手机号', title: '手机号',
dataIndex: 'phone', dataIndex: 'phone',
width: 200 width: 200,
customRender: ({record}) => {
return record.phone || h(Tag, { color: 'warning' }, () => '暂无手机号');
}
}, },
{ {
title: '创建时间', title: '创建时间',

Loading…
Cancel
Save