2023-06-01 12:54:58 +07:00
|
|
|
|
/**ใช้รวมไฟล์ย่อยๆ ของ api แต่ละไฟล์ */
|
|
|
|
|
|
|
|
|
|
|
|
/** API Metadata */
|
|
|
|
|
|
import manageOrganization from "./api/manage/api.organization";
|
|
|
|
|
|
import managePerson from "./api/manage/api.person";
|
|
|
|
|
|
import managePosition from "./api/manage/api.position";
|
|
|
|
|
|
import managePositionEmployee from "./api/manage/api.positionEmployee";
|
|
|
|
|
|
import manageInsignia from "./api/manage/api.insignia";
|
|
|
|
|
|
import manageHoliday from "./api/manage/api.holiday";
|
|
|
|
|
|
|
|
|
|
|
|
/** API Tree List */
|
|
|
|
|
|
import organizationTreeList from "./api/02_organizational/api.treelist";
|
|
|
|
|
|
|
|
|
|
|
|
/** API Structure & Org Chart */
|
|
|
|
|
|
import organizationChart from "./api/02_organizational/api.chart";
|
|
|
|
|
|
|
|
|
|
|
|
/** API periodexam List */
|
|
|
|
|
|
import periodexam from "./api/recruiting/api.period-exam";
|
|
|
|
|
|
import disableexam from "./api/recruiting/api.disable";
|
|
|
|
|
|
|
|
|
|
|
|
/** API Recruit List */
|
|
|
|
|
|
import recruit from "./api/recruiting/api.recruit";
|
|
|
|
|
|
|
|
|
|
|
|
/** API Profile List */
|
|
|
|
|
|
import profile from "./api/registry/api.profile";
|
2024-03-15 11:24:53 +07:00
|
|
|
|
import registry from "./api/registry/api.registry";
|
2023-06-01 12:54:58 +07:00
|
|
|
|
|
|
|
|
|
|
/** API Report2 List */
|
|
|
|
|
|
import report2 from "./api/recruiting/api.report2";
|
|
|
|
|
|
|
|
|
|
|
|
/** API ระบบการบรรจุ แต่งตั้ง ย้าย โอน List */
|
|
|
|
|
|
import placement from "./api/05_placement/api.placement";
|
2023-08-04 10:40:04 +07:00
|
|
|
|
import probation from "./api/05_placement/api.probation";
|
2023-06-01 12:54:58 +07:00
|
|
|
|
|
|
|
|
|
|
/** API ระบบการพ้นจากราชการ List */
|
|
|
|
|
|
import retirement from "./api/06_retirement/api.retirement";
|
|
|
|
|
|
|
|
|
|
|
|
/** API ระบบงานเครื่องราชอิสริยาภรณ์ List */
|
|
|
|
|
|
import insignia from "./api/07_insignia/api.insignia";
|
|
|
|
|
|
|
2023-08-16 12:55:07 +07:00
|
|
|
|
/** API dashboard */
|
|
|
|
|
|
import message from "./api/00_dashboard/api.message";
|
|
|
|
|
|
|
2023-08-21 18:31:23 +07:00
|
|
|
|
/** API reports */
|
|
|
|
|
|
import reports from "./api/reports/api.report";
|
|
|
|
|
|
|
2023-11-10 13:28:42 +07:00
|
|
|
|
/** API ระบบลงเวลา */
|
|
|
|
|
|
import leave from "./api/09_leave/api.leave";
|
|
|
|
|
|
|
2023-11-21 16:36:05 +07:00
|
|
|
|
/** API วินัย */
|
2024-01-26 15:20:11 +07:00
|
|
|
|
import discipline from "./api/11_discipline/api.discipline";
|
2023-12-19 15:05:48 +07:00
|
|
|
|
|
|
|
|
|
|
/**API ประเมิน */
|
2024-01-26 15:20:11 +07:00
|
|
|
|
import evaluate from "./api/12_evaluatePersonal/api.evaluate";
|
|
|
|
|
|
|
|
|
|
|
|
/** API โครงสร้างอัตรากำลัง*/
|
|
|
|
|
|
import organization from "./api/02_organizational/api.organization";
|
|
|
|
|
|
|
2024-02-16 16:20:18 +07:00
|
|
|
|
import support from "./api/00_support/api.support";
|
|
|
|
|
|
|
2024-02-15 11:46:25 +07:00
|
|
|
|
/** API เงินเดือน/ค่าจ้าง*/
|
|
|
|
|
|
import salary from "./api/13_salary/api.salary";
|
|
|
|
|
|
|
|
|
|
|
|
/** API ระเมินผลการปฏิบัติราชการระดับบุคคล*/
|
|
|
|
|
|
import KPI from "./api/14_KPI/api.KPI";
|
|
|
|
|
|
|
|
|
|
|
|
/** API เงินเดือน/ค่าจ้าง*/
|
|
|
|
|
|
import development from "./api/15_development/api.development";
|
|
|
|
|
|
|
2024-09-11 15:59:04 +07:00
|
|
|
|
/** ออกคำสั่งใหม่ */
|
|
|
|
|
|
import command from "./api/18_command/api.command";
|
|
|
|
|
|
|
2024-03-19 16:45:49 +07:00
|
|
|
|
import file from "./api/file/api.file";
|
|
|
|
|
|
|
2023-06-01 12:54:58 +07:00
|
|
|
|
// environment variables
|
|
|
|
|
|
export const compettitivePanel = import.meta.env.VITE_COMPETITIVE_EXAM_PANEL;
|
|
|
|
|
|
export const qualifyDisableExamPanel = import.meta.env
|
|
|
|
|
|
.VITE_QUALIFY_DISABLE_EMAM_PANEL;
|
|
|
|
|
|
export const qualifyExamPanel = import.meta.env.VITE_QUALIFY_EXAM_PANEL;
|
|
|
|
|
|
|
|
|
|
|
|
const API = {
|
|
|
|
|
|
//Metadata
|
|
|
|
|
|
...manageOrganization,
|
|
|
|
|
|
...managePerson,
|
|
|
|
|
|
...managePosition,
|
|
|
|
|
|
...managePositionEmployee,
|
|
|
|
|
|
...manageInsignia,
|
|
|
|
|
|
...manageHoliday,
|
|
|
|
|
|
|
2024-01-26 15:20:11 +07:00
|
|
|
|
// โครงสร้างอัตรากำลัง
|
|
|
|
|
|
...organization,
|
|
|
|
|
|
|
2023-06-01 12:54:58 +07:00
|
|
|
|
//Tree List
|
|
|
|
|
|
...organizationTreeList,
|
|
|
|
|
|
...organizationChart,
|
|
|
|
|
|
|
|
|
|
|
|
//periodexam
|
|
|
|
|
|
...periodexam,
|
|
|
|
|
|
...disableexam,
|
|
|
|
|
|
|
|
|
|
|
|
// recruit
|
|
|
|
|
|
...recruit,
|
|
|
|
|
|
|
|
|
|
|
|
//profile
|
|
|
|
|
|
...profile,
|
2024-03-15 11:24:53 +07:00
|
|
|
|
...registry,
|
2023-06-01 12:54:58 +07:00
|
|
|
|
|
|
|
|
|
|
//report2
|
|
|
|
|
|
...report2,
|
|
|
|
|
|
|
|
|
|
|
|
...placement,
|
2023-08-04 10:40:04 +07:00
|
|
|
|
...probation,
|
2023-06-01 12:54:58 +07:00
|
|
|
|
...retirement,
|
|
|
|
|
|
...insignia,
|
2023-08-16 12:55:07 +07:00
|
|
|
|
|
|
|
|
|
|
//dashboard
|
|
|
|
|
|
...message,
|
2023-08-21 18:31:23 +07:00
|
|
|
|
|
|
|
|
|
|
//reports
|
|
|
|
|
|
...reports,
|
2023-11-10 13:28:42 +07:00
|
|
|
|
|
|
|
|
|
|
/**leave */
|
|
|
|
|
|
...leave,
|
2023-11-21 16:36:05 +07:00
|
|
|
|
|
|
|
|
|
|
/**discipline */
|
|
|
|
|
|
...discipline,
|
2023-12-19 15:05:48 +07:00
|
|
|
|
|
|
|
|
|
|
/**evaluate*/
|
2024-01-26 15:20:11 +07:00
|
|
|
|
...evaluate,
|
2024-02-15 11:46:25 +07:00
|
|
|
|
|
2024-02-16 16:20:18 +07:00
|
|
|
|
/** support */
|
|
|
|
|
|
...support,
|
|
|
|
|
|
|
2024-02-15 11:46:25 +07:00
|
|
|
|
...salary,
|
|
|
|
|
|
...KPI,
|
|
|
|
|
|
...development,
|
2024-03-19 16:45:49 +07:00
|
|
|
|
|
2024-09-11 15:59:04 +07:00
|
|
|
|
/** ออกคำสั่งใหม่ */
|
|
|
|
|
|
...command,
|
|
|
|
|
|
|
2024-03-19 16:45:49 +07:00
|
|
|
|
/*file*/
|
|
|
|
|
|
...file,
|
2023-06-01 12:54:58 +07:00
|
|
|
|
};
|
|
|
|
|
|
|
2024-12-20 16:13:18 +07:00
|
|
|
|
const path = import.meta.env.VITE_MANUAL_URL ?? "";
|
2024-06-24 15:52:06 +07:00
|
|
|
|
|
|
|
|
|
|
const generatePopupPath = (routeName: any) => {
|
|
|
|
|
|
if (routeName.includes("metadata")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-2-admin-metadata`;
|
2024-08-08 16:44:31 +07:00
|
|
|
|
} else if (routeName.includes("registryNew")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-6-1-admin-registry`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName.includes("registryEmployeeList")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-6-2-admin-registry`;
|
2024-08-08 16:44:31 +07:00
|
|
|
|
} else if (routeName.includes("registry-employee")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-6-3-admin-registry`;
|
2024-08-08 16:44:31 +07:00
|
|
|
|
} else if (routeName.includes("acting")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-4-admin-acting`;
|
2024-08-08 16:44:31 +07:00
|
|
|
|
} else if (routeName.includes("positionEmployee")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-5-admin-position-employee`;
|
2024-12-11 15:15:16 +07:00
|
|
|
|
} else if (routeName == "retirement") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-11-admin-retirement`;
|
2024-12-11 15:15:16 +07:00
|
|
|
|
} else if (routeName == "resign") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-11-2-admin-retirement`;
|
2024-12-11 15:15:16 +07:00
|
|
|
|
} else if (routeName == "resignEmployee") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-11-3-admin-retirement`;
|
2024-12-11 15:15:16 +07:00
|
|
|
|
} else if (routeName == "exit-Interview") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-11-4-admin-retirement`;
|
2024-12-11 15:15:16 +07:00
|
|
|
|
} else if (routeName == "deceased") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-11-5-admin-retirement`;
|
2024-12-11 15:15:16 +07:00
|
|
|
|
} else if (routeName == "dismiss-order") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-11-6-admin-retirement`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("disciplineComplaints")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-14-admin-discipline-complaints`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("disciplineInvestigatefacts")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-14-2-admin-discipline-investigatefacts`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("disciplineDisciplinary")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-14-3-admin-discipline-disciplinary`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("disciplineResult")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-14-4-admin-discipline-result`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("disciplineListSuspend")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-14-5-admin-discipline-suspend`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("appealComplain")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-14-6-admin-discipline-appealcomplain`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("disciplineDirector")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-14-7-admin-discipline-director`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("disciplineChannel")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-14-7-2-admin-discipline-channel`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName.includes("KPIIndicatorByPlan")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-2-admin-evaluate`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName.includes("KPIIndicatorByRole")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-2-1-2-admin-evaluate`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName.includes("KPIAssignment")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-2-1-3-admin-evaluate`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName.includes("KPICompetency")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-2-2-admin-evaluate`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName.includes("strategic")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-2-3-admin-evaluate`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName == "commandListPage") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-7-admin-order`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName == "competePeriod") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-8-3-admin-compete-period`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName == "qualifyPeriod") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-8-4-1-admin-qualify-period`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName == "disablePeriod") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-8-4-2-admin-disable-period`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName == "manage") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-8-4-3-admin-qualify-manage`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName == "qualifyPeriodStat") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-8-4-4-admin-qualify-period-stat`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName == "qualifyPeriodStatDisable") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-8-4-5-admin-qualify-disable-stat`;
|
2024-11-21 10:55:41 +07:00
|
|
|
|
} else if (routeName.includes("competePeriodStat")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-8-3-2-admin-compete-period-stat`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("probation")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-10-admin-probation`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("insigniaProposals")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-12-admin-insignia`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("insigniaManage")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-12-2-admin-insignia`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("insigniaRecord")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-12-3-admin-insignia`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("insigniaAllocate")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-12-4-admin-insignia`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("insigniaBorrow")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-12-5-admin-insignia`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("insigniaReport")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-12-6-admin-insignia`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("roundTime")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-13-admin-leave`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("workList")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-13-2-admin-leave`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("changeRound")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-13-3-admin-leave`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("timestampSpecial")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-13-4-admin-leave`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "leave") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-13-5-admin-leave`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "leaveReport") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-13-6-admin-leave`;
|
2024-08-08 16:44:31 +07:00
|
|
|
|
} else if (
|
|
|
|
|
|
routeName.includes("qualify") ||
|
|
|
|
|
|
routeName.includes("recruiting") ||
|
|
|
|
|
|
routeName.includes("compete") ||
|
|
|
|
|
|
routeName.includes("disable") ||
|
|
|
|
|
|
routeName.includes("manage")
|
|
|
|
|
|
) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-9-admin-recruit`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("developmentMain")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-18-admin-development`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("developmentHistory")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-18-2-admin-development-history`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("developmentEmployeeHistory")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-18-3-admin-development-employee-history`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName.includes("developmentScholarship")) {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-18-4-admin-development-scholarship`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "evaluate") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-15-admin-KPI`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "evaluateDirector") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-15-2-admin-KPI`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "evaluateMeeting") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-15-2-2-admin-KPI`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "salaryChart") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-16-admin-salary`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "salaryEmployeeChart") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-16-2-admin-salary`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "salaryRound") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-16-3-admin-salary`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "salaryLists") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-16-4-admin-salary`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "salaryEmployeeLists") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-16-5-admin-salary`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "KPIRound") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-17-admin-development`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "KPIList") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-17-2-admin-development-history`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "KPIResults") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-17-3-admin-development-employee-history`;
|
2024-11-25 17:40:03 +07:00
|
|
|
|
} else if (routeName == "KPIReport") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-17-4-admin-development-scholarship`;
|
2024-12-11 15:15:16 +07:00
|
|
|
|
} else if (routeName == "positionCondition") {
|
2024-12-20 16:13:18 +07:00
|
|
|
|
return `${path}/chapter-19-admin-position-condition`;
|
2024-06-24 15:52:06 +07:00
|
|
|
|
} else {
|
|
|
|
|
|
return manualConfig[routeName as keyof typeof manualConfig];
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
2024-06-24 10:11:04 +07:00
|
|
|
|
|
|
|
|
|
|
const manualConfig = {
|
2024-06-24 15:52:06 +07:00
|
|
|
|
dashboard: `${path}/`,
|
2024-12-20 16:13:18 +07:00
|
|
|
|
strategic: `${path}/chapter-2-admin-evaluate`,
|
|
|
|
|
|
KPIIndicatorByRoleAdd: `${path}/chapter-2-admin-evaluate`,
|
|
|
|
|
|
KPIIndicatorByPlan: `${path}/chapter-2-admin-evaluate`,
|
|
|
|
|
|
"KPIIndicatorByPlan/Add": `${path}/chapter-2-admin-evaluate`,
|
|
|
|
|
|
KPIIndicatorByPlanByid: `${path}/chapter-2-admin-evaluate`,
|
|
|
|
|
|
KPIIndicatorByRoleByid: `${path}/chapter-2-admin-evaluate`,
|
|
|
|
|
|
KPICompetency: `${path}/chapter-2-admin-evaluate`,
|
|
|
|
|
|
KPIAssignment: `${path}/chapter-2-admin-evaluate`,
|
|
|
|
|
|
KPIAssignmentById: `${path}/chapter-2-admin-evaluate`,
|
|
|
|
|
|
KPIIndicatorByRole: `${path}/chapter-2-admin-evaluate`,
|
|
|
|
|
|
KPICompetencyAdd: `${path}/chapter-2-admin-evaluate`,
|
|
|
|
|
|
KPICompetencyByid: `${path}/chapter-2-admin-evaluate`,
|
|
|
|
|
|
organizationalNew: `${path}/chapter-3-admin-organization`,
|
|
|
|
|
|
organization: `${path}/chapter-6-admin-registry`,
|
|
|
|
|
|
registry: `${path}/chapter-6-admin-registry`,
|
|
|
|
|
|
registryDetail: `${path}/chapter-6-admin-registry`,
|
|
|
|
|
|
verified: `${path}/chapter-6-admin-registry`,
|
|
|
|
|
|
order: `${path}/chapter-8-admin-order`,
|
|
|
|
|
|
OrderDetail: `${path}/chapter-8-admin-order`,
|
|
|
|
|
|
OrderAdd: `${path}/chapter-8-admin-order`,
|
|
|
|
|
|
editorweb: `${path}/chapter-8-admin-recruit`,
|
|
|
|
|
|
|
|
|
|
|
|
placement: `${path}/chapter-9-admin-placement`,
|
|
|
|
|
|
transfer: `${path}/chapter-9-2-admin-transfer`,
|
|
|
|
|
|
receive: `${path}/chapter-9-3-admin-receive`,
|
|
|
|
|
|
"help-government": `${path}/chapter-9-4-admin-help-government`,
|
|
|
|
|
|
repatriate: `${path}/chapter-9-5-admin-repatriate`,
|
|
|
|
|
|
"appoint-promote": `${path}/chapter-9-6-admin-appoint-promote`,
|
|
|
|
|
|
"appoint-employee": `${path}/chapter-9-7-admin-appoint-employee`,
|
|
|
|
|
|
other: `${path}/chapter-9-8-admin-other`,
|
|
|
|
|
|
|
|
|
|
|
|
probation: `${path}/chapter-11-admin-probation`,
|
|
|
|
|
|
probationDetail: `${path}/chapter-11-admin-probation`,
|
|
|
|
|
|
probationForm: `${path}/chapter-11-admin-probation`,
|
|
|
|
|
|
retirement: `${path}/chapter-12-admin-retirement`,
|
|
|
|
|
|
resign: `${path}/chapter-12-admin-retirement`,
|
|
|
|
|
|
ExitInterviewEditQuestion: `${path}/chapter-12-admin-retirement`,
|
|
|
|
|
|
"dismiss-order": `${path}/chapter-12-admin-retirement`,
|
|
|
|
|
|
"report-report": `${path}/chapter-13-admin-insignia`,
|
|
|
|
|
|
"report-report-01": `${path}/chapter-13-admin-insignia`,
|
|
|
|
|
|
roundTime: `${path}/chapter-14-admin-leave`,
|
|
|
|
|
|
changeRound: `${path}/chapter-14-admin-leave`,
|
|
|
|
|
|
workList: `${path}/chapter-14-admin-leave`,
|
|
|
|
|
|
timestampSpecial: `${path}/chapter-14-admin-leave`,
|
|
|
|
|
|
leave: `${path}/chapter-14-admin-leave`,
|
|
|
|
|
|
leaveDetail: `${path}/chapter-14-admin-leave`,
|
|
|
|
|
|
leaveRejectDetail: `${path}/chapter-14-admin-leave`,
|
|
|
|
|
|
leaveReport: `${path}/chapter-14-admin-leave`,
|
|
|
|
|
|
appealComplain: `${path}/chapter-15-admin-discipline`,
|
|
|
|
|
|
// KPIRound: `${path}/chapter-18-admin-perf-evaluation`,
|
|
|
|
|
|
// "KPIList": `${path}/chapter-18-admin-perf-evaluation`,
|
|
|
|
|
|
// KPIDetail: `${path}/chapter-18-admin-perf-evaluation`,
|
|
|
|
|
|
// KPIReport: `${path}/chapter-18-admin-perf-evaluation`,
|
|
|
|
|
|
// KPIDetailnew: `${path}/chapter-18-admin-perf-evaluation`,
|
2024-06-24 10:11:04 +07:00
|
|
|
|
};
|
|
|
|
|
|
|
2023-06-01 12:54:58 +07:00
|
|
|
|
export default {
|
|
|
|
|
|
API: API,
|
|
|
|
|
|
compettitivePanel,
|
|
|
|
|
|
qualifyDisableExamPanel,
|
|
|
|
|
|
qualifyExamPanel,
|
2024-06-24 10:11:04 +07:00
|
|
|
|
manualConfig,
|
2024-06-24 15:52:06 +07:00
|
|
|
|
generatePopupPath,
|
2023-06-01 12:54:58 +07:00
|
|
|
|
};
|