fix path route manual
This commit is contained in:
parent
66a8302e68
commit
ccf2a6d6da
1 changed files with 5 additions and 3 deletions
|
|
@ -46,14 +46,14 @@ const generatePopupPath = (routeName: any, type: string) => {
|
||||||
if (routeName.includes("organizationChart")) {
|
if (routeName.includes("organizationChart")) {
|
||||||
return `${path}/chapter-1-user${type}-organization-chart`;
|
return `${path}/chapter-1-user${type}-organization-chart`;
|
||||||
}
|
}
|
||||||
if (routeName.includes("registry")) {
|
if (routeName.includes("registry") || routeName.includes("request-edit")) {
|
||||||
return `${path}/chapter-2-user${type}-registry`;
|
return `${path}/chapter-2-user${type}-registry`;
|
||||||
}
|
}
|
||||||
if (routeName.includes("evaluate")) {
|
if (routeName.includes("evaluate")) {
|
||||||
return `${path}/chapter-3-user-evaluate`;
|
return `${path}/chapter-3-user-evaluate`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (routeName.includes("leave")) {
|
if (routeName.includes("leave") || routeName.includes("addAbsence")) {
|
||||||
return `${path}/chapter-${type ? "3" : "4"}-user${type}-leave`;
|
return `${path}/chapter-${type ? "3" : "4"}-user${type}-leave`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -79,7 +79,7 @@ const generatePopupPath = (routeName: any, type: string) => {
|
||||||
return `${path}/chapter-14-user-service-testing`;
|
return `${path}/chapter-14-user-service-testing`;
|
||||||
}
|
}
|
||||||
if (routeName.includes("Retire")) {
|
if (routeName.includes("Retire")) {
|
||||||
return `${path}/chapter-${type ? "5" : "11"}-user${type}-retire`;
|
return `${path}/chapter-${type ? "6" : "12"}-user${type}-retire`;
|
||||||
} else {
|
} else {
|
||||||
return manualConfig[routeName as keyof typeof manualConfig];
|
return manualConfig[routeName as keyof typeof manualConfig];
|
||||||
}
|
}
|
||||||
|
|
@ -93,6 +93,8 @@ const manualConfig = {
|
||||||
addPortfolio: `${path}/chapter-5-user-portfolio`,
|
addPortfolio: `${path}/chapter-5-user-portfolio`,
|
||||||
addTransfer: `${path}/chapter-6-user-transfer`,
|
addTransfer: `${path}/chapter-6-user-transfer`,
|
||||||
KPIMain: `${path}/chapter-8-user-KPI`,
|
KPIMain: `${path}/chapter-8-user-KPI`,
|
||||||
|
KPIAdd: `${path}/chapter-8-user-KPI`,
|
||||||
|
KPIEdit: `${path}/chapter-8-user-KPI`,
|
||||||
KPIMainEvaluator: `${path}/chapter-9-user-KPI-evaluator`,
|
KPIMainEvaluator: `${path}/chapter-9-user-KPI-evaluator`,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue