This commit is contained in:
2024-01-31 14:56:48 +08:00
parent 14cbb87311
commit 494e3ee248
97 changed files with 11579 additions and 3858 deletions
+20 -88
View File
@@ -103,6 +103,11 @@
¥{{ formatNumber(record.expendMoney) }}
</span>
</template>
<template v-if="column.key === 'userLevel'">
<span>
{{ USER_LEVEL_LIST[record.userLevel] }}
</span>
</template>
<template v-else-if="column.key === 'status'">
<a-switch
:checked="record.status === 0"
@@ -175,6 +180,7 @@
import { getDictionaryOptions } from '@/utils/common';
import { listOrganizations } from '@/api/system/organization';
import { Organization } from '@/api/system/organization/model';
import { USER_LEVEL_LIST } from "@/api/system/user/model";
// 加载状态
const loading = ref(true);
@@ -256,13 +262,6 @@
hideInSetting: true,
customRender: ({ index }) => index + (tableRef.value?.tableIndex ?? 0)
},
// {
// title: '操作',
// key: 'action',
// width: 200,
// fixed: 'left',
// align: 'center'
// },
{
title: 'ID',
dataIndex: 'userId',
@@ -314,86 +313,6 @@
hideInTable: true,
showSorterTooltip: false
},
{
title: '可用余额',
dataIndex: 'balance',
key: 'balance',
sorter: true,
showSorterTooltip: false
},
{
title: '实际消费金额',
dataIndex: 'expendMoney',
key: 'expendMoney',
sorter: true,
showSorterTooltip: false
},
{
title: '可用积分',
dataIndex: 'points',
sorter: true
},
{
title: '注册来源',
key: 'platform',
dataIndex: 'platform',
sorter: true,
hideInTable: true,
customRender: ({ text }) => ['未知', '网站', '小程序', 'APP'][text]
},
{
title: '证件号码',
dataIndex: 'idCard',
hideInTable: true
},
{
title: '出生日期',
dataIndex: 'birthday',
key: 'birthday',
hideInTable: true
},
{
title: '省份',
dataIndex: 'province',
key: 'province',
hideInTable: true
},
{
title: '城市',
dataIndex: 'city',
key: 'city',
hideInTable: true,
showSorterTooltip: false
},
{
title: '地区',
dataIndex: 'region',
key: 'region',
hideInTable: true,
showSorterTooltip: false
},
{
title: '个人简介',
dataIndex: 'introduction',
key: 'introduction',
hideInTable: true,
showSorterTooltip: false
},
{
title: '邮箱认证',
dataIndex: 'emailVerified',
sorter: true,
hideInTable: true,
showSorterTooltip: false,
customRender: ({ text }) => ['未认证', '已认证'][text]
},
{
title: '实名认证',
dataIndex: 'certification',
sorter: true,
hideInTable: true,
customRender: ({ text }) => ['未认证', '已认证'][text]
},
{
title: '角色',
dataIndex: 'roles',
@@ -403,6 +322,12 @@
filterMultiple: false,
filters: roles.value
},
{
title: '小程序权限',
dataIndex: 'userLevel',
key: 'userLevel',
align: 'center',
},
{
title: '创建时间',
dataIndex: 'createTime',
@@ -419,7 +344,14 @@
showSorterTooltip: false,
width: 90,
align: 'center'
}
},
{
title: '操作',
key: 'action',
width: 200,
fixed: 'left',
align: 'center'
},
]);
// 默认搜索条件