ปรับ route ไปคู่มือ
This commit is contained in:
parent
0023e22fb9
commit
c37a16664d
1 changed files with 75 additions and 10 deletions
|
|
@ -148,6 +148,7 @@ const path =
|
|||
"https://bma-ehr-manual.frappet.synology.me";
|
||||
|
||||
const generatePopupPath = (routeName: any) => {
|
||||
console.log("🚀 ~ generatePopupPath ~ routeName:", routeName);
|
||||
if (routeName.includes("metadata")) {
|
||||
return `${path}/manual/chapter-2-admin-metadata`;
|
||||
} else if (routeName.includes("registryNew")) {
|
||||
|
|
@ -174,10 +175,22 @@ const generatePopupPath = (routeName: any) => {
|
|||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
} else if (routeName.includes("discharged")) {
|
||||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
} else if (routeName.includes("discipline")) {
|
||||
return `${path}/manual/chapter-15-admin-discipline`;
|
||||
} else if (routeName.includes("appeal")) {
|
||||
return `${path}/manual/chapter-15-admin-discipline`;
|
||||
} else if (routeName.includes("disciplineComplaints")) {
|
||||
return `${path}/manual/chapter-14-admin-discipline-complaints`;
|
||||
} else if (routeName.includes("disciplineInvestigatefacts")) {
|
||||
return `${path}/manual/chapter-14-2-admin-discipline-investigatefacts`;
|
||||
} else if (routeName.includes("disciplineDisciplinary")) {
|
||||
return `${path}/manual/chapter-14-3-admin-discipline-disciplinary`;
|
||||
} else if (routeName.includes("disciplineResult")) {
|
||||
return `${path}/manual/chapter-14-4-admin-discipline-result`;
|
||||
} else if (routeName.includes("disciplineListSuspend")) {
|
||||
return `${path}/manual/chapter-14-5-admin-discipline-suspend`;
|
||||
} else if (routeName.includes("appealComplain")) {
|
||||
return `${path}/manual/chapter-14-6-admin-discipline-appealcomplain`;
|
||||
} else if (routeName.includes("disciplineDirector")) {
|
||||
return `${path}/manual/chapter-14-7-admin-discipline-director`;
|
||||
} else if (routeName.includes("disciplineChannel")) {
|
||||
return `${path}/manual/chapter-14-7-2-admin-discipline-channel`;
|
||||
} else if (routeName.includes("KPIIndicatorByPlan")) {
|
||||
return `${path}/manual/chapter-2-admin-evaluate`;
|
||||
} else if (routeName.includes("KPIIndicatorByRole")) {
|
||||
|
|
@ -188,8 +201,6 @@ const generatePopupPath = (routeName: any) => {
|
|||
return `${path}/manual/chapter-2-2-admin-evaluate`;
|
||||
} else if (routeName.includes("strategic")) {
|
||||
return `${path}/manual/chapter-2-3-admin-evaluate`;
|
||||
} else if (routeName.includes("salary")) {
|
||||
return `${path}/manual/chapter-17-admin-salary`;
|
||||
} else if (routeName == "commandListPage") {
|
||||
return `${path}/manual/chapter-7-admin-order`;
|
||||
} else if (routeName == "competePeriod") {
|
||||
|
|
@ -206,6 +217,32 @@ const generatePopupPath = (routeName: any) => {
|
|||
return `${path}/manual/chapter-8-4-5-admin-qualify-disable-stat`;
|
||||
} else if (routeName.includes("competePeriodStat")) {
|
||||
return `${path}/manual/chapter-8-3-2-admin-compete-period-stat`;
|
||||
} else if (routeName.includes("probation")) {
|
||||
return `${path}/manual/chapter-10-admin-probation`;
|
||||
} else if (routeName.includes("insigniaProposals")) {
|
||||
return `${path}/manual/chapter-12-admin-insignia`;
|
||||
} else if (routeName.includes("insigniaManage")) {
|
||||
return `${path}/manual/chapter-12-2-admin-insignia`;
|
||||
} else if (routeName.includes("insigniaRecord")) {
|
||||
return `${path}/manual/chapter-12-3-admin-insignia`;
|
||||
} else if (routeName.includes("insigniaAllocate")) {
|
||||
return `${path}/manual/chapter-12-4-admin-insignia`;
|
||||
} else if (routeName.includes("insigniaBorrow")) {
|
||||
return `${path}/manual/chapter-12-5-admin-insignia`;
|
||||
} else if (routeName.includes("insigniaReport")) {
|
||||
return `${path}/manual/chapter-12-6-admin-insignia`;
|
||||
} else if (routeName.includes("roundTime")) {
|
||||
return `${path}/manual/chapter-13-admin-leave`;
|
||||
} else if (routeName.includes("workList")) {
|
||||
return `${path}/manual/chapter-13-2-admin-leave`;
|
||||
} else if (routeName.includes("changeRound")) {
|
||||
return `${path}/manual/chapter-13-3-admin-leave`;
|
||||
} else if (routeName.includes("timestampSpecial")) {
|
||||
return `${path}/manual/chapter-13-4-admin-leave`;
|
||||
} else if (routeName == "leave") {
|
||||
return `${path}/manual/chapter-13-5-admin-leave`;
|
||||
} else if (routeName == "leaveReport") {
|
||||
return `${path}/manual/chapter-13-6-admin-leave`;
|
||||
} else if (
|
||||
routeName.includes("qualify") ||
|
||||
routeName.includes("recruiting") ||
|
||||
|
|
@ -214,10 +251,38 @@ const generatePopupPath = (routeName: any) => {
|
|||
routeName.includes("manage")
|
||||
) {
|
||||
return `${path}/manual/chapter-9-admin-recruit`;
|
||||
} else if (routeName.includes("development")) {
|
||||
return `${path}/manual/chapter-19-admin-development`;
|
||||
} else if (routeName.includes("evaluate")) {
|
||||
return `${path}/manual/chapter-18-admin-perf-evaluation`;
|
||||
} else if (routeName.includes("developmentMain")) {
|
||||
return `${path}/manual/chapter-18-admin-development`;
|
||||
} else if (routeName.includes("developmentHistory")) {
|
||||
return `${path}/manual/chapter-18-2-admin-development-history`;
|
||||
} else if (routeName.includes("developmentEmployeeHistory")) {
|
||||
return `${path}/manual/chapter-18-3-admin-development-employee-history`;
|
||||
} else if (routeName.includes("developmentScholarship")) {
|
||||
return `${path}/manual/chapter-18-4-admin-development-scholarship`;
|
||||
} else if (routeName == "evaluate") {
|
||||
return `${path}/manual/chapter-15-admin-KPI`;
|
||||
} else if (routeName == "evaluateDirector") {
|
||||
return `${path}/manual/chapter-15-2-admin-KPI`;
|
||||
} else if (routeName == "evaluateMeeting") {
|
||||
return `${path}/manual/chapter-15-2-2-admin-KPI`;
|
||||
} else if (routeName == "salaryChart") {
|
||||
return `${path}/manual/chapter-16-admin-salary`;
|
||||
} else if (routeName == "salaryEmployeeChart") {
|
||||
return `${path}/manual/chapter-16-2-admin-salary`;
|
||||
} else if (routeName == "salaryRound") {
|
||||
return `${path}/manual/chapter-16-3-admin-salary`;
|
||||
} else if (routeName == "salaryLists") {
|
||||
return `${path}/manual/chapter-16-4-admin-salary`;
|
||||
} else if (routeName == "salaryEmployeeLists") {
|
||||
return `${path}/manual/chapter-16-5-admin-salary`;
|
||||
} else if (routeName == "KPIRound") {
|
||||
return `${path}/manual/chapter-17-admin-development`;
|
||||
} else if (routeName == "KPIList") {
|
||||
return `${path}/manual/chapter-17-2-admin-development-history`;
|
||||
} else if (routeName == "KPIResults") {
|
||||
return `${path}/manual/chapter-17-3-admin-development-employee-history`;
|
||||
} else if (routeName == "KPIReport") {
|
||||
return `${path}/manual/chapter-17-4-admin-development-scholarship`;
|
||||
} else {
|
||||
return manualConfig[routeName as keyof typeof manualConfig];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue