From c37a16664dc557afc6a0f7e62258fc33561f4f2d Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 25 Nov 2024 17:40:03 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20route=20?= =?UTF-8?q?=E0=B9=84=E0=B8=9B=E0=B8=84=E0=B8=B9=E0=B9=88=E0=B8=A1=E0=B8=B7?= =?UTF-8?q?=E0=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.config.ts | 85 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 75 insertions(+), 10 deletions(-) diff --git a/src/app.config.ts b/src/app.config.ts index a4bf54b97..bea19bd34 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -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 == "KPI​List") { + 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]; }