fixing path config manual
This commit is contained in:
parent
abee5bc462
commit
c2db1f3d4b
3 changed files with 54 additions and 68 deletions
|
|
@ -18,6 +18,7 @@ do
|
||||||
sed -i 's|VITE_REALM_KEYCLOAK|'${VITE_REALM_KEYCLOAK}'|g' $file
|
sed -i 's|VITE_REALM_KEYCLOAK|'${VITE_REALM_KEYCLOAK}'|g' $file
|
||||||
sed -i 's|VITE_CLIENTID_KEYCLOAK|'${VITE_CLIENTID_KEYCLOAK}'|g' $file
|
sed -i 's|VITE_CLIENTID_KEYCLOAK|'${VITE_CLIENTID_KEYCLOAK}'|g' $file
|
||||||
sed -i 's|VITE_CLIENTSECRET_KEYCLOAK|'${VITE_CLIENTSECRET_KEYCLOAK}'|g' $file
|
sed -i 's|VITE_CLIENTSECRET_KEYCLOAK|'${VITE_CLIENTSECRET_KEYCLOAK}'|g' $file
|
||||||
|
sed -i 's|VITE_MANUAL_URL|'${VITE_MANUAL_URL}'|g' $file
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -137,67 +137,52 @@ const API = {
|
||||||
...file,
|
...file,
|
||||||
};
|
};
|
||||||
|
|
||||||
const path = "https://bma-ehr-manual.frappet.synology.me";
|
const path =
|
||||||
|
import.meta.env.VITE_MANUAL_URL ??
|
||||||
|
"https://bma-ehr-manual.frappet.synology.me";
|
||||||
|
|
||||||
const generatePopupPath = (routeName: any) => {
|
const generatePopupPath = (routeName: any) => {
|
||||||
if (routeName.includes("metadata")) {
|
if (routeName.includes("metadata")) {
|
||||||
return `${path}/manual/chapter-2-admin-metadata`;
|
return `${path}/manual/chapter-2-admin-metadata`;
|
||||||
}
|
} else if (routeName.includes("registryNew")) {
|
||||||
// if (routeName.includes("KPI")) {
|
|
||||||
// return `${path}/manual/chapter-3-admin-evaluate`;
|
|
||||||
// }
|
|
||||||
if (routeName.includes("compete")) {
|
|
||||||
return `${path}/manual/chapter-9-admin-recruit`;
|
|
||||||
}
|
|
||||||
if (routeName.includes("registryNew")) {
|
|
||||||
return `${path}/manual/chapter-6-admin-registry`;
|
return `${path}/manual/chapter-6-admin-registry`;
|
||||||
}
|
} else if (routeName.includes("registry-employee")) {
|
||||||
if (routeName.includes("registry-employee")) {
|
|
||||||
return `${path}/manual/chapter-7-admin-registry-employee`;
|
return `${path}/manual/chapter-7-admin-registry-employee`;
|
||||||
}
|
} else if (routeName.includes("insignia")) {
|
||||||
if (routeName.includes("qualify")) {
|
|
||||||
return `${path}/manual/chapter-9-admin-recruit`;
|
|
||||||
}
|
|
||||||
if (routeName.includes("insignia")) {
|
|
||||||
return `${path}/manual/chapter-13-admin-insignia`;
|
return `${path}/manual/chapter-13-admin-insignia`;
|
||||||
}
|
} else if (routeName.includes("acting")) {
|
||||||
if (routeName.includes("acting")) {
|
return `${path}/manual/chapter-4-admin-acting`;
|
||||||
return `${path}/manual/chapter-5-admin-acting`;
|
} else if (routeName.includes("positionEmployee")) {
|
||||||
}
|
return `${path}/manual/chapter-5-admin-position-employee`;
|
||||||
if (routeName.includes("positionEmployee")) {
|
} else if (routeName.includes("resign")) {
|
||||||
return `${path}/manual/chapter-6-admin-position-employee`;
|
|
||||||
}
|
|
||||||
if (routeName.includes("resign")) {
|
|
||||||
return `${path}/manual/chapter-12-admin-retirement`;
|
return `${path}/manual/chapter-12-admin-retirement`;
|
||||||
}
|
} else if (routeName.includes("retirement")) {
|
||||||
if (routeName.includes("retirement")) {
|
|
||||||
return `${path}/manual/chapter-12-admin-retirement`;
|
return `${path}/manual/chapter-12-admin-retirement`;
|
||||||
}
|
} else if (routeName.includes("deceased")) {
|
||||||
if (routeName.includes("deceased")) {
|
|
||||||
return `${path}/manual/chapter-12-admin-retirement`;
|
return `${path}/manual/chapter-12-admin-retirement`;
|
||||||
}
|
} else if (routeName.includes("exit-Interview")) {
|
||||||
if (routeName.includes("exit-Interview")) {
|
|
||||||
return `${path}/manual/chapter-12-admin-retirement`;
|
return `${path}/manual/chapter-12-admin-retirement`;
|
||||||
}
|
} else if (routeName.includes("expulsion")) {
|
||||||
if (routeName.includes("expulsion")) {
|
|
||||||
return `${path}/manual/chapter-12-admin-retirement`;
|
return `${path}/manual/chapter-12-admin-retirement`;
|
||||||
}
|
} else if (routeName.includes("discharged")) {
|
||||||
if (routeName.includes("discharged")) {
|
|
||||||
return `${path}/manual/chapter-12-admin-retirement`;
|
return `${path}/manual/chapter-12-admin-retirement`;
|
||||||
}
|
} else if (routeName.includes("discipline")) {
|
||||||
if (routeName.includes("discipline")) {
|
|
||||||
return `${path}/manual/chapter-15-admin-discipline`;
|
return `${path}/manual/chapter-15-admin-discipline`;
|
||||||
}
|
} else if (routeName.includes("appeal")) {
|
||||||
if (routeName.includes("appeal")) {
|
|
||||||
return `${path}/manual/chapter-15-admin-discipline`;
|
return `${path}/manual/chapter-15-admin-discipline`;
|
||||||
}
|
} else if (routeName.includes("KPI")) {
|
||||||
if (routeName.includes("evaluate")) {
|
return `${path}/manual/chapter-18-admin-perf-evaluation`;
|
||||||
return `${path}/manual/chapter-16-admin-KPI`;
|
} else if (routeName.includes("salary")) {
|
||||||
}
|
|
||||||
if (routeName.includes("salary")) {
|
|
||||||
return `${path}/manual/chapter-17-admin-salary`;
|
return `${path}/manual/chapter-17-admin-salary`;
|
||||||
}
|
} else if (
|
||||||
if (routeName.includes("development")) {
|
routeName.includes("qualify") ||
|
||||||
|
routeName.includes("recruiting") ||
|
||||||
|
routeName.includes("compete") ||
|
||||||
|
routeName.includes("disable") ||
|
||||||
|
routeName.includes("manage")
|
||||||
|
) {
|
||||||
|
return `${path}/manual/chapter-9-admin-recruit`;
|
||||||
|
} else if (routeName.includes("development")) {
|
||||||
return `${path}/manual/chapter-19-admin-development`;
|
return `${path}/manual/chapter-19-admin-development`;
|
||||||
} else {
|
} else {
|
||||||
return manualConfig[routeName as keyof typeof manualConfig];
|
return manualConfig[routeName as keyof typeof manualConfig];
|
||||||
|
|
@ -226,12 +211,7 @@ const manualConfig = {
|
||||||
order: `${path}/manual/chapter-8-admin-order`,
|
order: `${path}/manual/chapter-8-admin-order`,
|
||||||
OrderDetail: `${path}/manual/chapter-8-admin-order`,
|
OrderDetail: `${path}/manual/chapter-8-admin-order`,
|
||||||
OrderAdd: `${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`,
|
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`,
|
placement: `${path}/manual/chapter-10-admin-appointment`,
|
||||||
transfer: `${path}/manual/chapter-10-admin-appointment`,
|
transfer: `${path}/manual/chapter-10-admin-appointment`,
|
||||||
receive: `${path}/manual/chapter-10-admin-appointment`,
|
receive: `${path}/manual/chapter-10-admin-appointment`,
|
||||||
|
|
@ -241,6 +221,8 @@ const manualConfig = {
|
||||||
"appoint-employee": `${path}/manual/chapter-10-admin-appointment`,
|
"appoint-employee": `${path}/manual/chapter-10-admin-appointment`,
|
||||||
other: `${path}/manual/chapter-10-admin-appointment`,
|
other: `${path}/manual/chapter-10-admin-appointment`,
|
||||||
probation: `${path}/manual/chapter-11-admin-probation`,
|
probation: `${path}/manual/chapter-11-admin-probation`,
|
||||||
|
probationDetail: `${path}/manual/chapter-11-admin-probation`,
|
||||||
|
probationForm: `${path}/manual/chapter-11-admin-probation`,
|
||||||
retirement: `${path}/manual/chapter-12-admin-retirement`,
|
retirement: `${path}/manual/chapter-12-admin-retirement`,
|
||||||
resign: `${path}/manual/chapter-12-admin-retirement`,
|
resign: `${path}/manual/chapter-12-admin-retirement`,
|
||||||
ExitInterviewEditQuestion: `${path}/manual/chapter-12-admin-retirement`,
|
ExitInterviewEditQuestion: `${path}/manual/chapter-12-admin-retirement`,
|
||||||
|
|
@ -256,11 +238,13 @@ const manualConfig = {
|
||||||
leaveRejectDetail: `${path}/manual/chapter-14-admin-leave`,
|
leaveRejectDetail: `${path}/manual/chapter-14-admin-leave`,
|
||||||
leaveReport: `${path}/manual/chapter-14-admin-leave`,
|
leaveReport: `${path}/manual/chapter-14-admin-leave`,
|
||||||
appealComplain: `${path}/manual/chapter-15-admin-discipline`,
|
appealComplain: `${path}/manual/chapter-15-admin-discipline`,
|
||||||
KPIRound: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
// KPIRound: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||||
"KPIList": `${path}/manual/chapter-18-admin-perf-evaluation`,
|
// "KPIList": `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||||
KPIDetail: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
// KPIDetail: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||||
KPIReport: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
// KPIReport: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||||
KPIDetailnew: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
// KPIDetailnew: `${path}/manual/chapter-18-admin-perf-evaluation`,
|
||||||
|
evaluate: `${path}/manual/chapter-16-admin-KPI`,
|
||||||
|
evaluateDetail: `${path}/manual/chapter-16-admin-KPI`,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
||||||
|
|
@ -13,18 +13,7 @@ import type {
|
||||||
export const useMenuDataStore = defineStore("menuUse", () => {
|
export const useMenuDataStore = defineStore("menuUse", () => {
|
||||||
/****************** เมนู **************************/
|
/****************** เมนู **************************/
|
||||||
/** รายการเมนู*/
|
/** รายการเมนู*/
|
||||||
const menuList = ref<ListMenu[]>([
|
const menuList = ref<ListMenu[]>([]);
|
||||||
{
|
|
||||||
id: "dashboard",
|
|
||||||
order: 0,
|
|
||||||
icon: "mdi-home-variant-outline",
|
|
||||||
sysName: "หน้าแรก",
|
|
||||||
sysDescription: "หน้าแรก",
|
|
||||||
path: "dashboard",
|
|
||||||
parentId: null,
|
|
||||||
children: [],
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
|
|
||||||
/** ข้อมูล Level3*/
|
/** ข้อมูล Level3*/
|
||||||
const childLevelTree = ref<ChildLevelTree>({
|
const childLevelTree = ref<ChildLevelTree>({
|
||||||
|
|
@ -117,7 +106,19 @@ export const useMenuDataStore = defineStore("menuUse", () => {
|
||||||
*/
|
*/
|
||||||
function fetchListMenu(data: ListMenu[]) {
|
function fetchListMenu(data: ListMenu[]) {
|
||||||
if (data) {
|
if (data) {
|
||||||
menuList.value.push(...data);
|
menuList.value = [
|
||||||
|
{
|
||||||
|
id: "dashboard",
|
||||||
|
order: 0,
|
||||||
|
icon: "mdi-home-variant-outline",
|
||||||
|
sysName: "หน้าแรก",
|
||||||
|
sysDescription: "หน้าแรก",
|
||||||
|
path: "dashboard",
|
||||||
|
parentId: null,
|
||||||
|
children: [],
|
||||||
|
},
|
||||||
|
...data,
|
||||||
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue