Merge branch 'develop' of github.com:Frappet/bma-ehr-frontend into develop
* 'develop' of github.com:Frappet/bma-ehr-frontend: แก้ไข config manual path
This commit is contained in:
commit
ee1665ec7e
1 changed files with 72 additions and 64 deletions
|
|
@ -137,7 +137,7 @@ const API = {
|
|||
...file,
|
||||
};
|
||||
|
||||
const path = "http://chamomind.ddns.net:20006";
|
||||
const path = "https://bma-ehr-manual.frappet.synology.me";
|
||||
|
||||
const generatePopupPath = (routeName: any) => {
|
||||
if (routeName.includes("metadata")) {
|
||||
|
|
@ -147,19 +147,19 @@ const generatePopupPath = (routeName: any) => {
|
|||
// return `${path}/manual/chapter-3-admin-evaluate`;
|
||||
// }
|
||||
if (routeName.includes("compete")) {
|
||||
return `${path}/manual/chapter-10-admin-recruit`;
|
||||
return `${path}/manual/chapter-9-admin-recruit`;
|
||||
}
|
||||
if (routeName.includes("registryNew")) {
|
||||
return `${path}/manual/chapter-7-admin-registry`;
|
||||
return `${path}/manual/chapter-6-admin-registry`;
|
||||
}
|
||||
if (routeName.includes("registry-employee")) {
|
||||
return `${path}/manual/chapter-8-admin-registry-employee`;
|
||||
return `${path}/manual/chapter-7-admin-registry-employee`;
|
||||
}
|
||||
if (routeName.includes("qualify")) {
|
||||
return `${path}/manual/chapter-10-admin-recruit`;
|
||||
return `${path}/manual/chapter-9-admin-recruit`;
|
||||
}
|
||||
if (routeName.includes("insignia")) {
|
||||
return `${path}/manual/chapter-14-admin-insignia`;
|
||||
return `${path}/manual/chapter-13-admin-insignia`;
|
||||
}
|
||||
if (routeName.includes("acting")) {
|
||||
return `${path}/manual/chapter-5-admin-acting`;
|
||||
|
|
@ -168,37 +168,37 @@ const generatePopupPath = (routeName: any) => {
|
|||
return `${path}/manual/chapter-6-admin-position-employee`;
|
||||
}
|
||||
if (routeName.includes("resign")) {
|
||||
return `${path}/manual/chapter-13-admin-retirement`;
|
||||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
}
|
||||
if (routeName.includes("retirement")) {
|
||||
return `${path}/manual/chapter-13-admin-retirement`;
|
||||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
}
|
||||
if (routeName.includes("deceased")) {
|
||||
return `${path}/manual/chapter-13-admin-retirement`;
|
||||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
}
|
||||
if (routeName.includes("exit-Interview")) {
|
||||
return `${path}/manual/chapter-13-admin-retirement`;
|
||||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
}
|
||||
if (routeName.includes("expulsion")) {
|
||||
return `${path}/manual/chapter-13-admin-retirement`;
|
||||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
}
|
||||
if (routeName.includes("discharged")) {
|
||||
return `${path}/manual/chapter-13-admin-retirement`;
|
||||
return `${path}/manual/chapter-12-admin-retirement`;
|
||||
}
|
||||
if (routeName.includes("discipline")) {
|
||||
return `${path}/manual/chapter-16-admin-discipline`;
|
||||
return `${path}/manual/chapter-15-admin-discipline`;
|
||||
}
|
||||
if (routeName.includes("appeal")) {
|
||||
return `${path}/manual/chapter-16-admin-discipline`;
|
||||
return `${path}/manual/chapter-15-admin-discipline`;
|
||||
}
|
||||
if (routeName.includes("evaluate")) {
|
||||
return `${path}/manual/chapter-17-admin-KPI`;
|
||||
return `${path}/manual/chapter-16-admin-KPI`;
|
||||
}
|
||||
if (routeName.includes("salary")) {
|
||||
return `${path}/manual/chapter-18-admin-salary`;
|
||||
return `${path}/manual/chapter-17-admin-salary`;
|
||||
}
|
||||
if (routeName.includes("development")) {
|
||||
return `${path}/manual/chapter-20-admin-development`;
|
||||
return `${path}/manual/chapter-19-admin-development`;
|
||||
} else {
|
||||
return manualConfig[routeName as keyof typeof manualConfig];
|
||||
}
|
||||
|
|
@ -206,53 +206,61 @@ const generatePopupPath = (routeName: any) => {
|
|||
|
||||
const manualConfig = {
|
||||
dashboard: `${path}/`,
|
||||
strategic: `${path}/manual/chapter-3-admin-evaluate`,
|
||||
KPIIndicatorByRoleAdd: `${path}/manual/chapter-3-admin-evaluate`,
|
||||
KPIIndicatorByPlan: `${path}/manual/chapter-3-admin-evaluate`,
|
||||
"KPIIndicatorByPlan/Add": `${path}/manual/chapter-3-admin-evaluate`,
|
||||
KPIIndicatorByPlanByid: `${path}/manual/chapter-3-admin-evaluate`,
|
||||
KPIIndicatorByRoleByid: `${path}/manual/chapter-3-admin-evaluate`,
|
||||
KPICompetency: `${path}/manual/chapter-3-admin-evaluate`,
|
||||
KPIAssignment: `${path}/manual/chapter-3-admin-evaluate`,
|
||||
KPIAssignmentById: `${path}/manual/chapter-3-admin-evaluate`,
|
||||
KPIIndicatorByRole: `${path}/manual/chapter-3-admin-evaluate`,
|
||||
KPICompetencyAdd: `${path}/manual/chapter-3-admin-evaluate`,
|
||||
KPICompetencyByid: `${path}/manual/chapter-3-admin-evaluate`,
|
||||
organizationalNew: `${path}/manual/chapter-4-admin-organization`,
|
||||
organization: `${path}/manual/chapter-7-admin-registry`,
|
||||
registry: `${path}/manual/chapter-7-admin-registry`,
|
||||
registryDetail: `${path}/manual/chapter-7-admin-registry`,
|
||||
verified: `${path}/manual/chapter-7-admin-registry`,
|
||||
order: `${path}/manual/chapter-9-admin-order`,
|
||||
OrderDetail: `${path}/manual/chapter-9-admin-order`,
|
||||
OrderAdd: `${path}/manual/chapter-9-admin-order`,
|
||||
disableperiod: `${path}/manual/chapter-10-admin-recruit`,
|
||||
manage: `${path}/manual/chapter-10-admin-recruit`,
|
||||
editorweb: `${path}/manual/chapter-10-admin-recruit`,
|
||||
manageDetaill: `${path}/manual/chapter-10-admin-recruit`,
|
||||
ExamForm: `${path}/manual/chapter-10-admin-recruit`,
|
||||
Payment: `${path}/manual/chapter-10-admin-recruit`,
|
||||
placement: `${path}/manual/chapter-11-admin-appointment`,
|
||||
transfer: `${path}/manual/chapter-11-admin-appointment`,
|
||||
receive: `${path}/manual/chapter-11-admin-appointment`,
|
||||
"help-government": `${path}/manual/chapter-11-admin-appointment`,
|
||||
repatriate: `${path}/manual/chapter-11-admin-appointment`,
|
||||
"appoint-promote": `${path}/manual/chapter-11-admin-appointment`,
|
||||
"appoint-employee": `${path}/manual/chapter-11-admin-appointment`,
|
||||
other: `${path}/manual/chapter-11-admin-appointment`,
|
||||
probation: `${path}/manual/chapter-12-admin-probation`,
|
||||
retirement: `${path}/manual/chapter-13-admin-retirement`,
|
||||
resign: `${path}/manual/chapter-13-admin-retirement`,
|
||||
ExitInterviewEditQuestion: `${path}/manual/chapter-13-admin-retirement`,
|
||||
"dismiss-order": `${path}/manual/chapter-13-admin-retirement`,
|
||||
"report-report": `${path}/manual/chapter-14-admin-insignia`,
|
||||
"report-report-01": `${path}/manual/chapter-14-admin-insignia`,
|
||||
appealComplain: `${path}/manual/chapter-16-admin-discipline`,
|
||||
KPIRound: `${path}/manual/chapter-19-admin-perf-evaluation`,
|
||||
"KPIList": `${path}/manual/chapter-19-admin-perf-evaluation`,
|
||||
KPIDetail: `${path}/manual/chapter-19-admin-perf-evaluation`,
|
||||
KPIReport: `${path}/manual/chapter-19-admin-perf-evaluation`,
|
||||
KPIDetailnew: `${path}/manual/chapter-19-admin-perf-evaluation`,
|
||||
strategic: `${path}/manual/chapter-2-admin-evaluate`,
|
||||
KPIIndicatorByRoleAdd: `${path}/manual/chapter-2-admin-evaluate`,
|
||||
KPIIndicatorByPlan: `${path}/manual/chapter-2-admin-evaluate`,
|
||||
"KPIIndicatorByPlan/Add": `${path}/manual/chapter-2-admin-evaluate`,
|
||||
KPIIndicatorByPlanByid: `${path}/manual/chapter-2-admin-evaluate`,
|
||||
KPIIndicatorByRoleByid: `${path}/manual/chapter-2-admin-evaluate`,
|
||||
KPICompetency: `${path}/manual/chapter-2-admin-evaluate`,
|
||||
KPIAssignment: `${path}/manual/chapter-2-admin-evaluate`,
|
||||
KPIAssignmentById: `${path}/manual/chapter-2-admin-evaluate`,
|
||||
KPIIndicatorByRole: `${path}/manual/chapter-2-admin-evaluate`,
|
||||
KPICompetencyAdd: `${path}/manual/chapter-2-admin-evaluate`,
|
||||
KPICompetencyByid: `${path}/manual/chapter-2-admin-evaluate`,
|
||||
organizationalNew: `${path}/manual/chapter-3-admin-organization`,
|
||||
organization: `${path}/manual/chapter-6-admin-registry`,
|
||||
registry: `${path}/manual/chapter-6-admin-registry`,
|
||||
registryDetail: `${path}/manual/chapter-6-admin-registry`,
|
||||
verified: `${path}/manual/chapter-6-admin-registry`,
|
||||
order: `${path}/manual/chapter-8-admin-order`,
|
||||
OrderDetail: `${path}/manual/chapter-8-admin-order`,
|
||||
OrderAdd: `${path}/manual/chapter-8-admin-order`,
|
||||
disableperiod: `${path}/manual/chapter-9-admin-recruit`,
|
||||
manage: `${path}/manual/chapter-9-admin-recruit`,
|
||||
editorweb: `${path}/manual/chapter-9-admin-recruit`,
|
||||
manageDetaill: `${path}/manual/chapter-9-admin-recruit`,
|
||||
ExamForm: `${path}/manual/chapter-9-admin-recruit`,
|
||||
Payment: `${path}/manual/chapter-9-admin-recruit`,
|
||||
placement: `${path}/manual/chapter-10-admin-appointment`,
|
||||
transfer: `${path}/manual/chapter-10-admin-appointment`,
|
||||
receive: `${path}/manual/chapter-10-admin-appointment`,
|
||||
"help-government": `${path}/manual/chapter-10-admin-appointment`,
|
||||
repatriate: `${path}/manual/chapter-10-admin-appointment`,
|
||||
"appoint-promote": `${path}/manual/chapter-10-admin-appointment`,
|
||||
"appoint-employee": `${path}/manual/chapter-10-admin-appointment`,
|
||||
other: `${path}/manual/chapter-10-admin-appointment`,
|
||||
probation: `${path}/manual/chapter-11-admin-probation`,
|
||||
retirement: `${path}/manual/chapter-12-admin-retirement`,
|
||||
resign: `${path}/manual/chapter-12-admin-retirement`,
|
||||
ExitInterviewEditQuestion: `${path}/manual/chapter-12-admin-retirement`,
|
||||
"dismiss-order": `${path}/manual/chapter-12-admin-retirement`,
|
||||
"report-report": `${path}/manual/chapter-13-admin-insignia`,
|
||||
"report-report-01": `${path}/manual/chapter-13-admin-insignia`,
|
||||
roundTime: `${path}/manual/chapter-14-admin-leave`,
|
||||
changeRound: `${path}/manual/chapter-14-admin-leave`,
|
||||
workList: `${path}/manual/chapter-14-admin-leave`,
|
||||
timestampSpecial: `${path}/manual/chapter-14-admin-leave`,
|
||||
leave: `${path}/manual/chapter-14-admin-leave`,
|
||||
leaveDetail: `${path}/manual/chapter-14-admin-leave`,
|
||||
leaveRejectDetail: `${path}/manual/chapter-14-admin-leave`,
|
||||
leaveReport: `${path}/manual/chapter-14-admin-leave`,
|
||||
appealComplain: `${path}/manual/chapter-15-admin-discipline`,
|
||||
KPIRound: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
"KPIList": `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
KPIDetail: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
KPIReport: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
KPIDetailnew: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||
};
|
||||
|
||||
export default {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue