Fix invitee page (#38)

This commit is contained in:
AceDataCloud
2024-01-07 13:53:57 +00:00
parent e3793ec6ff
commit b7a90ef9f8
4 changed files with 12 additions and 3 deletions
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix invitee page",
"packageName": "@zhishuyun/hub",
"email": "cqc@germey.cn",
"dependentChangeType": "patch"
}
+1
View File
@@ -5,6 +5,7 @@ import { IUserDetailResponse, IUser, IUserListResponse } from './models';
export interface IInviteesQuery {
offset?: number;
limit?: number;
ordering?: string;
}
class UserOperator {
+3 -2
View File
@@ -28,7 +28,7 @@
<span class="description">{{ scope.row.nickname }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('user.field.isVerified')" width="100px">
<el-table-column :label="$t('user.field.isVerified')">
<template #default="scope">
<el-switch :model-value="scope.row?.is_verified" />
</template>
@@ -123,7 +123,8 @@ export default defineComponent({
async onFetchInvitees() {
const { data } = await userOperator.getInvitees({
limit: this.limit,
offset: (this.page - 1) * this.limit
offset: (this.page - 1) * this.limit,
ordering: '-created_at'
});
this.invitees = data.items;
this.total = data.count;
+1 -1
View File
@@ -20,7 +20,7 @@ export default {
{
path: 'invitees',
name: ROUTE_DISTRIBUTION_INVITEES,
component: () => import('@/pages/distribution/History.vue')
component: () => import('@/pages/distribution/Invitees.vue')
}
]
};