Fix invitee page (#38)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"comment": "fix invitee page",
|
||||
"packageName": "@zhishuyun/hub",
|
||||
"email": "cqc@germey.cn",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import { IUserDetailResponse, IUser, IUserListResponse } from './models';
|
||||
export interface IInviteesQuery {
|
||||
offset?: number;
|
||||
limit?: number;
|
||||
ordering?: string;
|
||||
}
|
||||
|
||||
class UserOperator {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -20,7 +20,7 @@ export default {
|
||||
{
|
||||
path: 'invitees',
|
||||
name: ROUTE_DISTRIBUTION_INVITEES,
|
||||
component: () => import('@/pages/distribution/History.vue')
|
||||
component: () => import('@/pages/distribution/Invitees.vue')
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user