diff --git a/src/api/org/api.org.ts b/src/api/org/api.org.ts index d7f9d78..66a0632 100644 --- a/src/api/org/api.org.ts +++ b/src/api/org/api.org.ts @@ -52,4 +52,11 @@ export default { dataUserCertificateHistory:(type:string,id:string) => `${profileOrg}/${type}/history/${id}`, dataUserHonorHistory:(type:string,emType:string,id:string) => `${profileOrg}${emType}/${type}/history/${id}`, dataUserOtherHistory:(id:string)=>`${profileOrg}/other/history/${id}`, + + + + orgActive:`${org}/active`, + /** struct-chart*/ + orgStructChart: (id: string, type: string) => + `${org}/struct-chart/${id}/${type}`, }; diff --git a/src/modules/01_dashboard/views/Dashboard.vue b/src/modules/01_dashboard/views/Dashboard.vue index 11f8bfc..165ba2a 100644 --- a/src/modules/01_dashboard/views/Dashboard.vue +++ b/src/modules/01_dashboard/views/Dashboard.vue @@ -31,7 +31,7 @@ const items = ref([ title: "แผนผังองค์กร", sub: "ดูแผนผังองค์กร", color: "blue-3", - path: "", + path: "/organization-chart", active: false, }, { diff --git a/src/modules/12_organization/router.ts b/src/modules/12_organization/router.ts new file mode 100644 index 0000000..25fa290 --- /dev/null +++ b/src/modules/12_organization/router.ts @@ -0,0 +1,13 @@ +const organizationChart = () => + import("@/modules/12_organization/views/main.vue"); +export default [ + { + path: "/organization-chart", + name: "organizationChart", + component: organizationChart, + meta: { + Auth: true, + Key: [7], + }, + }, +]; diff --git a/src/modules/12_organization/views/main.vue b/src/modules/12_organization/views/main.vue new file mode 100644 index 0000000..1e66b10 --- /dev/null +++ b/src/modules/12_organization/views/main.vue @@ -0,0 +1,282 @@ + + + + + diff --git a/src/router/index.ts b/src/router/index.ts index 86a2395..14191cb 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -15,6 +15,7 @@ import ModuleKPI from "@/modules/08_KPI/router"; import ModuleScholarship from "@/modules/09_scholarship/router"; import ModuleRegistry from "@/modules/10_registry/router"; import ModuleProbation from "@/modules/11_probation/router"; +import ModuleOrganization from "@/modules/12_organization/router"; // TODO: ใช้หรือไม่? import keycloak from "@/plugins/keycloak"; @@ -54,7 +55,8 @@ const router = createRouter({ ...ModuleKPI, ...ModuleScholarship, ...ModuleRegistry, - ...ModuleProbation + ...ModuleProbation, + ...ModuleOrganization, ], }, ],