fix: Fix the Qos policy data in the list
Modify request parameters to ensure that data can be separated under different tabs Change-Id: I2eb396031c140f215b0ea4c1a87269b290d35dcf
This commit is contained in:
parent
088c38e65c
commit
237ea4a901
@ -25,10 +25,22 @@ export class QoSPolicy extends Base {
|
||||
this.downloadStore = new QoSPolicyStore();
|
||||
}
|
||||
|
||||
updateFetchParamsByPage = (params) => ({
|
||||
...params,
|
||||
all_projects: this.tabKey === 'allQoSPolicy' || this.isAdminPage,
|
||||
});
|
||||
updateFetchParamsByPage = (params) => {
|
||||
switch (this.tabKey) {
|
||||
case 'projectQoSPolicy':
|
||||
return {
|
||||
...params,
|
||||
project_id: this.currentProjectId,
|
||||
};
|
||||
case 'sharedQoSPolicy':
|
||||
return {
|
||||
...params,
|
||||
shared: true,
|
||||
};
|
||||
default:
|
||||
return params;
|
||||
}
|
||||
};
|
||||
|
||||
get checkEndpoint() {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user