feat:【antd】【member 会员】完成详情界面的迁移
This commit is contained in:
@@ -8,6 +8,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
meta: {
|
meta: {
|
||||||
title: '会员详情',
|
title: '会员详情',
|
||||||
icon: 'lucide:user',
|
icon: 'lucide:user',
|
||||||
|
activePath: '/member/user',
|
||||||
hideInMenu: true,
|
hideInMenu: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -15,13 +15,13 @@ import { getWallet } from '#/api/pay/wallet/balance';
|
|||||||
import { $t } from '#/locales';
|
import { $t } from '#/locales';
|
||||||
|
|
||||||
import Form from '../modules/form.vue';
|
import Form from '../modules/form.vue';
|
||||||
import UserAccountInfo from './modules/user-account-info.vue';
|
import AccountInfo from './modules/account-info.vue';
|
||||||
import UserAddressList from './modules/user-address-list.vue';
|
import AddressList from './modules/address-list.vue';
|
||||||
import UserBalanceList from './modules/user-balance-list.vue';
|
import BalanceList from './modules/balance-list.vue';
|
||||||
import UserBasicInfo from './modules/user-basic-info.vue';
|
import BasicInfo from './modules/basic-info.vue';
|
||||||
import UserExperienceRecordList from './modules/user-experience-record-list.vue';
|
import ExperienceRecordList from './modules/experience-record-list.vue';
|
||||||
import UserPointList from './modules/user-point-list.vue';
|
import PointList from './modules/point-list.vue';
|
||||||
import UserSignList from './modules/user-sign-list.vue';
|
import SignList from './modules/sign-list.vue';
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { closeCurrentTab, refreshTab } = useTabs();
|
const { closeCurrentTab, refreshTab } = useTabs();
|
||||||
@@ -34,27 +34,28 @@ const [FormModal, formModalApi] = useVbenModal({
|
|||||||
const userId = Number(route.query.id);
|
const userId = Number(route.query.id);
|
||||||
const user = ref<MemberUserApi.User>();
|
const user = ref<MemberUserApi.User>();
|
||||||
const wallet = ref<PayWalletApi.Wallet>();
|
const wallet = ref<PayWalletApi.Wallet>();
|
||||||
/* 钱包初始化数据 */
|
|
||||||
const WALLET_INIT_DATA = {
|
|
||||||
balance: 0,
|
|
||||||
totalExpense: 0,
|
|
||||||
totalRecharge: 0,
|
|
||||||
} as PayWalletApi.Wallet;
|
|
||||||
|
|
||||||
|
/** 获取会员详情 */
|
||||||
async function getUserDetail() {
|
async function getUserDetail() {
|
||||||
if (!userId) {
|
if (!userId) {
|
||||||
message.error('参数错误,会员编号不能为空!');
|
message.error('参数错误,会员编号不能为空!');
|
||||||
closeCurrentTab();
|
await closeCurrentTab();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
user.value = await getUser(userId);
|
user.value = await getUser(userId);
|
||||||
wallet.value = (await getWallet({ userId })) || WALLET_INIT_DATA;
|
wallet.value = (await getWallet({ userId })) || {
|
||||||
|
balance: 0,
|
||||||
|
totalExpense: 0,
|
||||||
|
totalRecharge: 0,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 编辑会员 */
|
||||||
function handleEdit() {
|
function handleEdit() {
|
||||||
formModalApi.setData(user.value).open();
|
formModalApi.setData(user.value).open();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 初始化 */
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await getUserDetail();
|
await getUserDetail();
|
||||||
});
|
});
|
||||||
@@ -63,40 +64,40 @@ onMounted(async () => {
|
|||||||
<Page auto-content-height>
|
<Page auto-content-height>
|
||||||
<FormModal @success="refreshTab" />
|
<FormModal @success="refreshTab" />
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<UserBasicInfo v-if="user" class="w-3/5" :user="user" mode="member">
|
<BasicInfo v-if="user" class="w-3/5" :user="user" mode="member">
|
||||||
<template #title> 基本信息 </template>
|
<template #title> 基本信息 </template>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<Button type="primary" @click="handleEdit">
|
<Button type="primary" @click="handleEdit">
|
||||||
{{ $t('common.edit') }}
|
{{ $t('common.edit') }}
|
||||||
</Button>
|
</Button>
|
||||||
</template>
|
</template>
|
||||||
</UserBasicInfo>
|
</BasicInfo>
|
||||||
<UserAccountInfo
|
<AccountInfo
|
||||||
v-if="user && wallet"
|
v-if="user && wallet"
|
||||||
class="ml-4 w-2/5"
|
class="ml-4 w-2/5"
|
||||||
:user="user"
|
:user="user"
|
||||||
:wallet="wallet"
|
:wallet="wallet"
|
||||||
>
|
>
|
||||||
<template #title> 账户信息 </template>
|
<template #title> 账户信息 </template>
|
||||||
</UserAccountInfo>
|
</AccountInfo>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<Card title="账户明细">
|
<Card title="账户明细">
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<TabPane tab="积分" key="UserPointList">
|
<TabPane tab="积分" key="UserPointList">
|
||||||
<UserPointList class="h-full" :user-id="userId" />
|
<PointList class="h-full" :user-id="userId" />
|
||||||
</TabPane>
|
</TabPane>
|
||||||
<TabPane tab="签到" key="UserSignList">
|
<TabPane tab="签到" key="UserSignList">
|
||||||
<UserSignList class="h-full" :user-id="userId" />
|
<SignList class="h-full" :user-id="userId" />
|
||||||
</TabPane>
|
</TabPane>
|
||||||
<TabPane tab="成长值" key="UserExperienceRecordList">
|
<TabPane tab="成长值" key="UserExperienceRecordList">
|
||||||
<UserExperienceRecordList class="h-full" :user-id="userId" />
|
<ExperienceRecordList class="h-full" :user-id="userId" />
|
||||||
</TabPane>
|
</TabPane>
|
||||||
<TabPane tab="余额" key="UserBalanceList">
|
<TabPane tab="余额" key="UserBalanceList">
|
||||||
<UserBalanceList class="h-full" :wallet-id="wallet?.id" />
|
<BalanceList class="h-full" :wallet-id="wallet?.id" />
|
||||||
</TabPane>
|
</TabPane>
|
||||||
<TabPane tab="收货地址" key="UserAddressList">
|
<TabPane tab="收货地址" key="UserAddressList">
|
||||||
<UserAddressList class="h-full" :user-id="userId" />
|
<AddressList class="h-full" :user-id="userId" />
|
||||||
</TabPane>
|
</TabPane>
|
||||||
<TabPane tab="订单管理" key="UserOrderList">
|
<TabPane tab="订单管理" key="UserOrderList">
|
||||||
<!-- Todo: 商城模块 -->
|
<!-- Todo: 商城模块 -->
|
||||||
|
|||||||
@@ -21,14 +21,13 @@ withDefaults(
|
|||||||
|
|
||||||
const [Descriptions] = useDescription({
|
const [Descriptions] = useDescription({
|
||||||
componentProps: {
|
componentProps: {
|
||||||
bordered: false,
|
|
||||||
class: 'mx-4',
|
class: 'mx-4',
|
||||||
},
|
},
|
||||||
schema: [
|
schema: [
|
||||||
{
|
{
|
||||||
field: 'levelName',
|
field: 'levelName',
|
||||||
label: '等级',
|
label: '等级',
|
||||||
content: (data) => data.levelName || '无',
|
content: (data) => data.levelName || '-',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'experience',
|
field: 'experience',
|
||||||
@@ -19,26 +19,32 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
{
|
{
|
||||||
field: 'id',
|
field: 'id',
|
||||||
title: '地址编号',
|
title: '地址编号',
|
||||||
|
minWidth: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'name',
|
field: 'name',
|
||||||
title: '收件人名称',
|
title: '收件人名称',
|
||||||
|
minWidth: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'mobile',
|
field: 'mobile',
|
||||||
title: '手机号',
|
title: '手机号',
|
||||||
|
minWidth: 130,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'areaId',
|
field: 'areaId',
|
||||||
title: '地区编码',
|
title: '地区编码',
|
||||||
|
minWidth: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'detailAddress',
|
field: 'detailAddress',
|
||||||
title: '收件详细地址',
|
title: '收件详细地址',
|
||||||
|
minWidth: 200,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'defaultStatus',
|
field: 'defaultStatus',
|
||||||
title: '是否默认',
|
title: '是否默认',
|
||||||
|
minWidth: 100,
|
||||||
slots: {
|
slots: {
|
||||||
default: ({ row }) => {
|
default: ({ row }) => {
|
||||||
return h(
|
return h(
|
||||||
@@ -55,6 +61,7 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
{
|
{
|
||||||
field: 'createTime',
|
field: 'createTime',
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
|
minWidth: 180,
|
||||||
formatter: 'formatDateTime',
|
formatter: 'formatDateTime',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -73,6 +80,7 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
},
|
},
|
||||||
rowConfig: {
|
rowConfig: {
|
||||||
keyField: 'id',
|
keyField: 'id',
|
||||||
|
isHover: true,
|
||||||
},
|
},
|
||||||
toolbarConfig: {
|
toolbarConfig: {
|
||||||
refresh: true,
|
refresh: true,
|
||||||
@@ -15,31 +15,33 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
{
|
{
|
||||||
field: 'id',
|
field: 'id',
|
||||||
title: '编号',
|
title: '编号',
|
||||||
|
minWidth: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'title',
|
field: 'title',
|
||||||
title: '关联业务标题',
|
title: '关联业务标题',
|
||||||
|
minWidth: 200,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'price',
|
field: 'price',
|
||||||
title: '交易金额',
|
title: '交易金额',
|
||||||
formatter: 'formatAmount2',
|
minWidth: 120,
|
||||||
|
formatter: 'formatFenToYuanAmount',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'balance',
|
field: 'balance',
|
||||||
title: '钱包余额',
|
title: '钱包余额',
|
||||||
formatter: 'formatAmount2',
|
minWidth: 120,
|
||||||
|
formatter: 'formatFenToYuanAmount',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'createTime',
|
field: 'createTime',
|
||||||
title: '交易时间',
|
title: '交易时间',
|
||||||
|
minWidth: 180,
|
||||||
formatter: 'formatDateTime',
|
formatter: 'formatDateTime',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
keepSource: true,
|
keepSource: true,
|
||||||
pagerConfig: {
|
|
||||||
pageSize: 10,
|
|
||||||
},
|
|
||||||
proxyConfig: {
|
proxyConfig: {
|
||||||
ajax: {
|
ajax: {
|
||||||
query: async ({ page }, formValues) => {
|
query: async ({ page }, formValues) => {
|
||||||
@@ -54,6 +56,7 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
},
|
},
|
||||||
rowConfig: {
|
rowConfig: {
|
||||||
keyField: 'id',
|
keyField: 'id',
|
||||||
|
isHover: true,
|
||||||
},
|
},
|
||||||
toolbarConfig: {
|
toolbarConfig: {
|
||||||
refresh: true,
|
refresh: true,
|
||||||
@@ -20,7 +20,6 @@ withDefaults(
|
|||||||
|
|
||||||
const [Descriptions] = useDescription({
|
const [Descriptions] = useDescription({
|
||||||
componentProps: {
|
componentProps: {
|
||||||
bordered: false,
|
|
||||||
class: 'mx-4',
|
class: 'mx-4',
|
||||||
},
|
},
|
||||||
schema: [
|
schema: [
|
||||||
@@ -56,17 +55,17 @@ const [Descriptions] = useDescription({
|
|||||||
{
|
{
|
||||||
field: 'birthday',
|
field: 'birthday',
|
||||||
label: '生日',
|
label: '生日',
|
||||||
content: (data) => formatDate(data.birthday)?.toString() || '空',
|
content: (data) => formatDate(data.birthday)?.toString() || '-',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'createTime',
|
field: 'createTime',
|
||||||
label: '注册时间',
|
label: '注册时间',
|
||||||
content: (data) => formatDate(data.createTime)?.toString() || '空',
|
content: (data) => formatDate(data.createTime)?.toString() || '-',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'loginDate',
|
field: 'loginDate',
|
||||||
label: '最后登录时间',
|
label: '最后登录时间',
|
||||||
content: (data) => formatDate(data.loginDate)?.toString() || '空',
|
content: (data) => formatDate(data.loginDate)?.toString() || '-',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
@@ -81,10 +80,10 @@ const [Descriptions] = useDescription({
|
|||||||
<slot name="extra"></slot>
|
<slot name="extra"></slot>
|
||||||
</template>
|
</template>
|
||||||
<Row v-if="mode === 'member'" :gutter="24">
|
<Row v-if="mode === 'member'" :gutter="24">
|
||||||
<Col :span="4">
|
<Col :span="6">
|
||||||
<Avatar :size="140" shape="square" :src="user.avatar" />
|
<Avatar :size="180" shape="square" :src="user.avatar" />
|
||||||
</Col>
|
</Col>
|
||||||
<Col :span="20">
|
<Col :span="18">
|
||||||
<Descriptions :column="2" :data="user" />
|
<Descriptions :column="2" :data="user" />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
@@ -25,17 +25,22 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
label: '业务类型',
|
label: '业务类型',
|
||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
allowClear: true,
|
|
||||||
options: getDictOptions(
|
options: getDictOptions(
|
||||||
DICT_TYPE.MEMBER_EXPERIENCE_BIZ_TYPE,
|
DICT_TYPE.MEMBER_EXPERIENCE_BIZ_TYPE,
|
||||||
'number',
|
'number',
|
||||||
),
|
),
|
||||||
|
placeholder: '请选择业务类型',
|
||||||
|
allowClear: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'title',
|
fieldName: 'title',
|
||||||
label: '标题',
|
label: '标题',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入标题',
|
||||||
|
allowClear: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'createDate',
|
fieldName: 'createDate',
|
||||||
@@ -53,15 +58,18 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
{
|
{
|
||||||
field: 'id',
|
field: 'id',
|
||||||
title: '编号',
|
title: '编号',
|
||||||
|
minWidth: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'createTime',
|
field: 'createTime',
|
||||||
title: '获得时间',
|
title: '获得时间',
|
||||||
|
minWidth: 180,
|
||||||
formatter: 'formatDateTime',
|
formatter: 'formatDateTime',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'experience',
|
field: 'experience',
|
||||||
title: '经验',
|
title: '经验',
|
||||||
|
minWidth: 100,
|
||||||
slots: {
|
slots: {
|
||||||
default: ({ row }) => {
|
default: ({ row }) => {
|
||||||
return h(
|
return h(
|
||||||
@@ -79,22 +87,27 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
{
|
{
|
||||||
field: 'totalExperience',
|
field: 'totalExperience',
|
||||||
title: '总经验',
|
title: '总经验',
|
||||||
|
minWidth: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'title',
|
field: 'title',
|
||||||
title: '标题',
|
title: '标题',
|
||||||
|
minWidth: 200,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'description',
|
field: 'description',
|
||||||
title: '描述',
|
title: '描述',
|
||||||
|
minWidth: 250,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'bizId',
|
field: 'bizId',
|
||||||
title: '业务编号',
|
title: '业务编号',
|
||||||
|
minWidth: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'bizType',
|
field: 'bizType',
|
||||||
title: '业务类型',
|
title: '业务类型',
|
||||||
|
minWidth: 120,
|
||||||
cellRender: {
|
cellRender: {
|
||||||
name: 'CellDict',
|
name: 'CellDict',
|
||||||
props: { type: DICT_TYPE.MEMBER_EXPERIENCE_BIZ_TYPE },
|
props: { type: DICT_TYPE.MEMBER_EXPERIENCE_BIZ_TYPE },
|
||||||
@@ -102,9 +115,6 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
keepSource: true,
|
keepSource: true,
|
||||||
pagerConfig: {
|
|
||||||
pageSize: 10,
|
|
||||||
},
|
|
||||||
proxyConfig: {
|
proxyConfig: {
|
||||||
ajax: {
|
ajax: {
|
||||||
query: async ({ page }, formValues) => {
|
query: async ({ page }, formValues) => {
|
||||||
@@ -119,6 +129,7 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
},
|
},
|
||||||
rowConfig: {
|
rowConfig: {
|
||||||
keyField: 'id',
|
keyField: 'id',
|
||||||
|
isHover: true,
|
||||||
},
|
},
|
||||||
toolbarConfig: {
|
toolbarConfig: {
|
||||||
refresh: true,
|
refresh: true,
|
||||||
@@ -2,11 +2,11 @@
|
|||||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||||
import type { MemberPointRecordApi } from '#/api/member/point/record';
|
import type { MemberPointRecordApi } from '#/api/member/point/record';
|
||||||
|
|
||||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
|
||||||
import { getRecordPage } from '#/api/member/point/record';
|
|
||||||
import { DICT_TYPE } from '@vben/constants';
|
import { DICT_TYPE } from '@vben/constants';
|
||||||
import { getDictOptions } from '@vben/hooks';
|
import { getDictOptions } from '@vben/hooks';
|
||||||
|
|
||||||
|
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||||
|
import { getRecordPage } from '#/api/member/point/record';
|
||||||
import { getRangePickerDefaultProps } from '#/utils';
|
import { getRangePickerDefaultProps } from '#/utils';
|
||||||
import { useGridColumns } from '#/views/member/point/record/data';
|
import { useGridColumns } from '#/views/member/point/record/data';
|
||||||
|
|
||||||
@@ -22,14 +22,19 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
label: '业务类型',
|
label: '业务类型',
|
||||||
component: 'Select',
|
component: 'Select',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
allowClear: true,
|
|
||||||
options: getDictOptions(DICT_TYPE.MEMBER_POINT_BIZ_TYPE, 'number'),
|
options: getDictOptions(DICT_TYPE.MEMBER_POINT_BIZ_TYPE, 'number'),
|
||||||
|
placeholder: '请选择业务类型',
|
||||||
|
allowClear: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'title',
|
fieldName: 'title',
|
||||||
label: '积分标题',
|
label: '积分标题',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入积分标题',
|
||||||
|
allowClear: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'createDate',
|
fieldName: 'createDate',
|
||||||
@@ -45,9 +50,6 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
gridOptions: {
|
gridOptions: {
|
||||||
columns: useGridColumns(),
|
columns: useGridColumns(),
|
||||||
keepSource: true,
|
keepSource: true,
|
||||||
pagerConfig: {
|
|
||||||
pageSize: 10,
|
|
||||||
},
|
|
||||||
proxyConfig: {
|
proxyConfig: {
|
||||||
ajax: {
|
ajax: {
|
||||||
query: async ({ page }, formValues) => {
|
query: async ({ page }, formValues) => {
|
||||||
@@ -62,6 +64,7 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
},
|
},
|
||||||
rowConfig: {
|
rowConfig: {
|
||||||
keyField: 'id',
|
keyField: 'id',
|
||||||
|
isHover: true,
|
||||||
},
|
},
|
||||||
toolbarConfig: {
|
toolbarConfig: {
|
||||||
refresh: true,
|
refresh: true,
|
||||||
@@ -18,6 +18,10 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
fieldName: 'day',
|
fieldName: 'day',
|
||||||
label: '签到天数',
|
label: '签到天数',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
componentProps: {
|
||||||
|
placeholder: '请输入签到天数',
|
||||||
|
allowClear: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldName: 'createTime',
|
fieldName: 'createTime',
|
||||||
@@ -33,9 +37,6 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
gridOptions: {
|
gridOptions: {
|
||||||
columns: useGridColumns(),
|
columns: useGridColumns(),
|
||||||
keepSource: true,
|
keepSource: true,
|
||||||
pagerConfig: {
|
|
||||||
pageSize: 10,
|
|
||||||
},
|
|
||||||
proxyConfig: {
|
proxyConfig: {
|
||||||
ajax: {
|
ajax: {
|
||||||
query: async ({ page }, formValues) => {
|
query: async ({ page }, formValues) => {
|
||||||
@@ -50,6 +51,7 @@ const [Grid] = useVbenVxeGrid({
|
|||||||
},
|
},
|
||||||
rowConfig: {
|
rowConfig: {
|
||||||
keyField: 'id',
|
keyField: 'id',
|
||||||
|
isHover: true,
|
||||||
},
|
},
|
||||||
toolbarConfig: {
|
toolbarConfig: {
|
||||||
refresh: true,
|
refresh: true,
|
||||||
@@ -8,6 +8,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
meta: {
|
meta: {
|
||||||
title: '会员详情',
|
title: '会员详情',
|
||||||
icon: 'lucide:user',
|
icon: 'lucide:user',
|
||||||
|
activeMenu: '/member/user',
|
||||||
hideInMenu: true,
|
hideInMenu: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user