feat: 添加地址管理功能,整合地址组件至用户界面
This commit is contained in:
@@ -5,6 +5,7 @@ import dayjs from 'dayjs';
|
||||
import { client, safeClient } from '@/service/api';
|
||||
import type { TableBaseColumns, TableFetchData, TableInst } from '@/components/table';
|
||||
import Wallet from './components/wallet.vue';
|
||||
import Address from './components/address.vue';
|
||||
|
||||
const dialog = useDialog();
|
||||
|
||||
@@ -49,7 +50,7 @@ const columns: TableBaseColumns = [
|
||||
{
|
||||
key: 'operations',
|
||||
title: '操作',
|
||||
width: 120,
|
||||
width: 200,
|
||||
fixed: 'right',
|
||||
operations: (row: any) => [
|
||||
{
|
||||
@@ -58,10 +59,23 @@ const columns: TableBaseColumns = [
|
||||
onClick: () => {
|
||||
dialog.create({
|
||||
title: '用户钱包',
|
||||
showIcon: false,
|
||||
style: { width: '1000px' },
|
||||
content: () => h(Wallet, { userId: row.userId })
|
||||
});
|
||||
}
|
||||
},
|
||||
{
|
||||
contentText: '收货地址',
|
||||
size: 'small',
|
||||
onClick: () => {
|
||||
dialog.create({
|
||||
title: '收货地址',
|
||||
showIcon: false,
|
||||
style: { width: '1000px' },
|
||||
content: () => h(Address, { userId: row.userId })
|
||||
});
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user