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:
xusongfu 2022-02-24 14:23:33 +08:00
parent 088c38e65c
commit 237ea4a901

View File

@ -25,10 +25,22 @@ export class QoSPolicy extends Base {
this.downloadStore = new QoSPolicyStore(); this.downloadStore = new QoSPolicyStore();
} }
updateFetchParamsByPage = (params) => ({ updateFetchParamsByPage = (params) => {
...params, switch (this.tabKey) {
all_projects: this.tabKey === 'allQoSPolicy' || this.isAdminPage, case 'projectQoSPolicy':
}); return {
...params,
project_id: this.currentProjectId,
};
case 'sharedQoSPolicy':
return {
...params,
shared: true,
};
default:
return params;
}
};
get checkEndpoint() { get checkEndpoint() {
return true; return true;