Fix distribution level display (#39)
This commit is contained in:
1 parent
be07f64aa6
commit
f362808f74
3 files changed
+18
-3
No files matched your search
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"comment": "fix distribution level",
|
||||
"packageName": "@zhishuyun/hub",
|
||||
"email": "cqc@germey.cn",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
||||
@@ -46,11 +46,17 @@ class DistributionStatusService {
|
||||
|
||||
export const distributionStatusOperator = new DistributionStatusService();
|
||||
|
||||
export interface IDistributionLevelQuery {
|
||||
limit?: number;
|
||||
}
|
||||
|
||||
class DistributionLevelService {
|
||||
key = 'distribution-levels';
|
||||
|
||||
async getAll(): Promise<AxiosResponse<IDistributionLevelListResponse>> {
|
||||
return await httpClient.get(`/${this.key}/`);
|
||||
async getAll(query: IDistributionLevelQuery): Promise<AxiosResponse<IDistributionLevelListResponse>> {
|
||||
return await httpClient.get(`/${this.key}/`, {
|
||||
params: query
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -324,7 +324,9 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
async onFetchDistributionLevels() {
|
||||
const { data } = await distributionLevelOperator.getAll();
|
||||
const { data } = await distributionLevelOperator.getAll({
|
||||
limit: 20
|
||||
});
|
||||
this.distributionLevels = data.items;
|
||||
},
|
||||
async onFetchInvitees() {
|
||||
|
||||
Reference in new issue
Block a user