diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index 7bd5d227d..c2717c0e1 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -402,6 +402,64 @@ const menuList = readonly([ // }, // ], // }, + { + key: 11, + icon: "mdi-scale-balance", + activeIcon: "mdi-calendar", + label: "วินัย", + path: "/discipline", + role: "coin", + children: [ + { + key: 11.1, + label: "เรื่องร้องเรียน", + path: "/discipline-complaints", + role: "coin", + }, + { + key: 11.2, + label: "สืบสวนข้อเท็จจริง", + path: "/discipline-investigatefacts", + role: "coin", + }, + { + key: 11.3, + label: "สอบสวนความผิดวินัย", + path: "/discipline-disciplinary", + role: "coin", + }, + { + key: 11.4, + label: "ออกคำสั่ง", + path: "", + role: "coin", + }, + { + key: 11.5, + label: "รายงาน", + path: "", + role: "coin", + }, + { + label: "ข้อมูลพื้นฐาน", + path: "", + key: 11.6, + role: "coin", + children: [ + { + label: "กรรมการ", + path: "", + role: "coin", + }, + { + label: "ช่องทางการร้องเรียน", + path: "", + role: "coin", + }, + ], + }, + ], + }, ]); const tabList = readonly([ diff --git a/src/modules/11_discipline/components/1_Complaint/MainPage.vue b/src/modules/11_discipline/components/1_Complaint/MainPage.vue new file mode 100644 index 000000000..d04385ff3 --- /dev/null +++ b/src/modules/11_discipline/components/1_Complaint/MainPage.vue @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue b/src/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue new file mode 100644 index 000000000..9908a051e --- /dev/null +++ b/src/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue new file mode 100644 index 000000000..86b199249 --- /dev/null +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/src/modules/11_discipline/components/4_Order/MainPage.vue b/src/modules/11_discipline/components/4_Order/MainPage.vue new file mode 100644 index 000000000..d04385ff3 --- /dev/null +++ b/src/modules/11_discipline/components/4_Order/MainPage.vue @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/src/modules/11_discipline/components/5_Report/MainPage.vue b/src/modules/11_discipline/components/5_Report/MainPage.vue new file mode 100644 index 000000000..d04385ff3 --- /dev/null +++ b/src/modules/11_discipline/components/5_Report/MainPage.vue @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/src/modules/11_discipline/components/ุ6_Information/Channel/MainPage.vue b/src/modules/11_discipline/components/ุ6_Information/Channel/MainPage.vue new file mode 100644 index 000000000..d04385ff3 --- /dev/null +++ b/src/modules/11_discipline/components/ุ6_Information/Channel/MainPage.vue @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/src/modules/11_discipline/components/ุ6_Information/Director/MainPage.vue b/src/modules/11_discipline/components/ุ6_Information/Director/MainPage.vue new file mode 100644 index 000000000..d04385ff3 --- /dev/null +++ b/src/modules/11_discipline/components/ุ6_Information/Director/MainPage.vue @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/src/modules/11_discipline/interface/index/Main.ts b/src/modules/11_discipline/interface/index/Main.ts new file mode 100644 index 000000000..9870350dd --- /dev/null +++ b/src/modules/11_discipline/interface/index/Main.ts @@ -0,0 +1,4 @@ + +export type { + +}; diff --git a/src/modules/11_discipline/router.ts b/src/modules/11_discipline/router.ts new file mode 100644 index 000000000..0f41d90f9 --- /dev/null +++ b/src/modules/11_discipline/router.ts @@ -0,0 +1,38 @@ + +const complaintMain = () => import("@/modules/11_discipline/components/1_Complaint/MainPage.vue") +const factsMain = () => import("@/modules/11_discipline/components/2_InvestigateFacts/MainPage.vue") +const disciplinaryMain = () => import("@/modules/11_discipline/components/3_InvestigateDisciplinary/MainPage.vue") + + +export default [ + { + path: "/discipline/complaints", + name: "/discipline-complaints", + component: complaintMain, + meta: { + Auth: true, + Key: [11.1], + Role: "coin", + }, + }, + { + path: "/discipline/investigatefacts", + name: "/discipline-investigatefacts", + component: factsMain, + meta: { + Auth: true, + Key: [11.2], + Role: "coin", + }, + }, + { + path: "/discipline/disciplinary", + name: "/discipline-disciplinary", + component: disciplinaryMain, + meta: { + Auth: true, + Key: [9], + Role: "coin", + }, + }, +] \ No newline at end of file diff --git a/src/router/index.ts b/src/router/index.ts index 8676b6de3..effe76e05 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -13,7 +13,8 @@ import ModuleRetirement from "@/modules/06_retirement/router"; import ModuleInsignia from "@/modules/07_insignia/router"; import ModuleRegistryEmployee from "@/modules/08_registryEmployee/router"; import ModuleOrder from "@/modules/10_order/router"; -import ModuleLeave from "@/modules/09_leave/router" +import ModuleLeave from "@/modules/09_leave/router"; +import ModuleDiscipline from "@/modules/11_discipline/router" // TODO: ใช้หรือไม่? import keycloak from "@/plugins/keycloak"; @@ -45,7 +46,8 @@ const router = createRouter({ ...ModuleInsignia, ...ModuleRegistryEmployee, ...ModuleOrder, - ...ModuleLeave + ...ModuleLeave, + ...ModuleDiscipline ], }, /** diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index 8b9c8c849..c5770894d 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -562,7 +562,7 @@ const clickDelete = (id: string) => { @click="doLogout" /> - +
@@ -646,7 +646,8 @@ const clickDelete = (id: string) => { menuItem.key == 6 || menuItem.key == 7 || menuItem.key == 8 || - menuItem.key == 9 + menuItem.key == 9 || + menuItem.key == 11 " >
@@ -808,7 +809,8 @@ const clickDelete = (id: string) => { menuItem.key == 6 || menuItem.key == 7 || menuItem.key == 8 || - menuItem.key == 9 + menuItem.key == 9 || + menuItem.key == 11 " > -
+
@@ -858,7 +867,7 @@ const clickDelete = (id: string) => { :to="{ name: `${subMenu.path}` }" > - {{ subMenu.label }} + {{ subMenu.label }}