feat: 添加团队查看功能,整合团队成员表格及过滤器,支持根据推荐码查询团队信息

This commit is contained in:
2026-01-19 22:51:34 +07:00
parent 1856cbeb33
commit a0efa2c3c3
5 changed files with 122 additions and 15 deletions

View File

@@ -8,6 +8,7 @@ import Wallet from './components/wallet.vue';
import Address from './components/address.vue';
import Payment from './components/payment.vue';
import Withdraw from './components/withdraw.vue';
import Team from './components/team.vue';
const dialog = useDialog();
@@ -26,20 +27,20 @@ const fetchData: TableFetchData = ({ pagination, filter }) => {
const columns: TableBaseColumns = [
{
key: 'uid',
key: 'userProfile.uid',
title: 'UID',
width: 120
},
{
key: 'user.name',
key: 'name',
title: '姓名'
},
{
key: 'user.username',
key: 'username',
title: '手机号'
},
{
key: 'referralCode',
key: 'userProfile.referralCode',
title: '推荐码'
},
{
@@ -52,7 +53,7 @@ const columns: TableBaseColumns = [
{
key: 'operations',
title: '操作',
width: 300,
width: 350,
fixed: 'right',
operations: (row: any) => [
{
@@ -124,6 +125,18 @@ const columns: TableBaseColumns = [
}
});
}
},
{
contentText: '查看团队',
size: 'small',
onClick: () => {
dialog.create({
title: '查看团队',
showIcon: false,
style: { width: '1000px' },
content: () => h(Team, { code: row.userProfile.referralCode })
});
}
}
]
}