diff --git a/public/toc.json b/public/toc.json index c1a34994..c1116550 100644 --- a/public/toc.json +++ b/public/toc.json @@ -1,214 +1,219 @@ -[{ - "icon": "mdi-home-variant-outline", - "activeIcon": "mdi-home-variant", - "label": "หน้าแรก", - "path": "/" - }, - { - "icon": "mdi-file-outline", - "activeIcon": "mdi-file", - "label": "คู่มือการใช้งานระบบแอดมิน", +[ + { + "icon": "mdi-home-variant-outline", + "activeIcon": "mdi-home-variant", + "label": "หน้าแรก", + "path": "/" + }, + { + "icon": "mdi-file-outline", + "activeIcon": "mdi-file", + "label": "คู่มือการใช้งานระบบแอดมิน", + "children": [ + { + "label": "การใช้งานผู้ดูแลระบบ", + "path": "/manual/chapter-1-superadmin-maintenance" + }, + { + "label": "การใช้งานผู้ดูแลระบบระดับสูง", + "path": "/manual/chapter-2-superadmin-maintenance" + }, + { + "label": "คู่มือการตรวจสอบและแก้ไข", + "path": "/manual/chapter-3-superadmin-debug" + }, + { + "label": "คู่มือการจัดการระบบ", + "path": "/manual/chapter-4-superadmin-build-and-deploy" + } + ] + }, + { + "icon": "mdi-file-outline", + "activeIcon": "mdi-file", + "label": "คู่มือการใช้งานระบบบริหารจัดการ", + "children": [ + { + "label": "การเข้าสู่ระบบ", + "path": "/manual/chapter-1-admin-login" + }, + { + "label": "ระบบข้อมูลการประเมิน", + "path": "/manual/chapter-2-admin-evaluate" + }, + { + "label": "ระบบโครงสร้างอัตรากำลัง", + "path": "/manual/chapter-3-admin-organization" + }, + { + "label": "ระบบรักษาการในตำแหน่ง", + "path": "/manual/chapter-4-admin-acting" + }, + { + "label": "ระบบอัตรากำลังลูกจ้าง", + "path": "/manual/chapter-5-admin-position-employee" + }, + { + "label": "ระบบทะเบียนประวัติ", + "path": "/manual/chapter-6-admin-registry" + }, + { + "label": "ระบบทะเบียนประวัติลูกจ้าง", + "path": "/manual/chapter-7-admin-registry-employee" + }, + { + "label": "ระบบออกคำสั่ง", + "path": "/manual/chapter-8-admin-order" + }, + { + "label": "ระบบสรรหา", + "path": "/manual/chapter-9-admin-recruit" + }, + { + "label": "ระบบบรรจุ", + "path": "/manual/chapter-10-admin-appointment" + }, + { + "label": "ทดลองปฏิบัติหน้าที่ราชการ", + "path": "/manual/chapter-11-admin-probation" + }, + { + "label": "ระบบพ้นจากราชการ", + "path": "/manual/chapter-12-admin-retirement" + }, + { + "label": "ระบบเครื่องราช", + "path": "/manual/chapter-13-admin-insignia" + }, + { + "label": "ระบบการลา", + "path": "/manual/chapter-14-admin-leave" + }, + { + "label": "ระบบวินัย", + "path": "/manual/chapter-15-admin-discipline" + }, + { + "label": "ระบบประเมินบุคคล", + "path": "/manual/chapter-16-admin-KPI" + }, + { + "label": "ระบบเงินเดือนและค่าจ้าง", + "path": "/manual/chapter-17-admin-salary" + }, + { + "label": "ระบบประเมินผลการปฎิบัติ", + "path": "/manual/chapter-18-admin-perf-evaluation" + }, + { + "label": "ระบบพัฒนา", + "path": "/manual/chapter-19-admin-development" + } + ] + }, + { + "key": 4, + "icon": "mdi-file-outline", + "activeIcon": "mdi-file", + "label": "คู่มือการใช้งานระบบผู้ใช้งานทั่วไป", + "children": [ + { + "key": 4.1, + "label": "คู่มือการใช้งานระบบข้าราชการกรุงเทพหานครสามัญ", "children": [ - - { - "label": "การใช้งานผู้ดูแลระบบ", - "path": "/manual/chapter-1-superadmin-maintenance" - - }, - { - "label": "การใช้งานผู้ดูแลระบบระดับสูง", - "path": "/manual/chapter-2-superadmin-maintenance" - }, - { - - "label": "คู่มือการตรวจสอบและแก้ไข", - "path": "/manual/chapter-3-superadmin-debug" - }, - { - "label": "คู่มือการจัดการระบบ", - "path": "/manual/chapter-4-superadmin-build-and-deploy" - } + { + "label": "ระบบแผนผังองค์กร", + "path": "/manual/chapter-1-user-organization-chart" + }, + { + "label": "ระบบทะเบียนประวัติ", + "path": "/manual/chapter-2-user-registry" + }, + { + "label": "ระบบประเมินบุคคล", + "path": "/manual/chapter-3-user-evaluate" + }, + { + "label": "ระบบการลา", + "path": "/manual/chapter-4-user-leave" + }, + { + "label": "ระบบผลงาน", + "path": "/manual/chapter-5-user-portfolio" + }, + { + "label": "ระบบขอโอน", + "path": "/manual/chapter-6-user-transfer" + }, + { + "label": "ระบบอุทธรณ์ร้องทุกข์", + "path": "/manual/chapter-7-user-appeal-complain" + }, + { + "label": "ระบบผู้ขอรับประเมิน (KPI)", + "path": "/manual/chapter-8-user-KPI" + }, + { + "label": "ระบบผู้ประเมิน (KPI)", + "path": "/manual/chapter-9-user-KPI-evaluator" + }, + { + "label": "ระบบทุนการศึกษา/ฝึกอบรม", + "path": "/manual/chapter-10-user-scholarship" + }, + { + "label": "ระบบการพัฒนารายบุคคล", + "path": "/manual/chapter-11-user-Individual-development" + }, + { + "label": "ระบบลาออก", + "path": "/manual/chapter-12-user-retire" + }, + { + "label": "ระบบบันทึกการลงเวลาปฏิบัติงาน", + "path": "/manual/chapter-13-user-worktimerecord" + }, + { + "label": "ระบบทุนการศึกษา/ฝึกอบรม", + "path": "/manual/chapter-14-user-service-testing" + } ] - }, - { - "icon": "mdi-file-outline", - "activeIcon": "mdi-file", - "label": "คู่มือการใช้งานระบบบริหารจัดการ", - "children": [{ - "label": "การเข้าสู่ระบบ", - "path": "/manual/chapter-1-admin-login" - }, - { - "label": "ระบบข้อมูลการประเมิน", - "path": "/manual/chapter-2-admin-evaluate" - }, - { - "label": "ระบบโครงสร้างอัตรากำลัง", - "path": "/manual/chapter-3-admin-organization" - }, - { - "label": "ระบบรักษาการในตำแหน่ง", - "path": "/manual/chapter-4-admin-acting" - }, - { - "label": "ระบบอัตรากำลังลูกจ้าง", - "path": "/manual/chapter-5-admin-position-employee" - }, - { - "label": "ระบบทะเบียนประวัติ", - "path": "/manual/chapter-6-admin-registry" - }, - { - "label": "ระบบทะเบียนประวัติลูกจ้าง", - "path": "/manual/chapter-7-admin-registry-employee" - }, - { - "label": "ระบบออกคำสั่ง", - "path": "/manual/chapter-8-admin-order" - }, - { - "label": "ระบบสรรหา", - "path": "/manual/chapter-9-admin-recruit" - }, - { - "label": "ระบบบรรจุ", - "path": "/manual/chapter-10-admin-appointment" - }, - { - "label": "ทดลองปฏิบัติหน้าที่ราชการ", - "path": "/manual/chapter-11-admin-probation" - }, - { - "label": "ระบบพ้นจากราชการ", - "path": "/manual/chapter-12-admin-retirement" - }, - { - "label": "ระบบเครื่องราช", - "path": "/manual/chapter-13-admin-insignia" - }, - { - "label": "ระบบการลา", - "path": "/manual/chapter-14-admin-leave" - }, - { - "label": "ระบบวินัย", - "path": "/manual/chapter-15-admin-discipline" - }, - { - "label": "ระบบประเมินบุคคล", - "path": "/manual/chapter-16-admin-KPI" - }, - { - "label": "ระบบเงินเดือนและค่าจ้าง", - "path": "/manual/chapter-17-admin-salary" - }, - { - "label": "ระบบประเมินผลการปฎิบัติ", - "path": "/manual/chapter-18-admin-perf-evaluation" - }, - { - "label": "ระบบพัฒนา", - "path": "/manual/chapter-19-admin-development" - } - ] - }, - { + }, - "icon": "mdi-file-outline", - "activeIcon": "mdi-file", - "label": "คู่มือการใช้งานระบบผู้ใช้งานทั่วไป", - "children": [{ - "label": "คู่มือการใช้งานระบบข้าราชการกรุงเทพหานครสามัญ", - "children": [{ - "label": "ระบบแผนผังองค์กร", - "path": "/manual/chapter-1-user-organization-chart" - }, - { - "label": "ระบบทะเบียนประวัติ", - "path": "/manual/chapter-2-user-registry" - }, - { - "label": "ระบบประเมินบุคคล", - "path": "/manual/chapter-3-user-evaluate" - }, - { - "label": "ระบบการลา", - "path": "/manual/chapter-4-user-leave" - }, - { - "label": "ระบบผลงาน", - "path": "/manual/chapter-5-user-portfolio" - }, - { - "label": "ระบบขอโอน", - "path": "/manual/chapter-6-user-transfer" - }, - { - "label": "ระบบอุทธรณ์ร้องทุกข์", - "path": "/manual/chapter-7-user-appeal-complain" - }, - { - "label": "ระบบผู้ขอรับประเมิน (KPI)", - "path": "/manual/chapter-8-user-KPI" - }, - { - "label": "ระบบผู้ประเมิน (KPI)", - "path": "/manual/chapter-9-user-KPI-evaluator" - }, - { - "label": "ระบบทุนการศึกษา/ฝึกอบรม", - "path": "/manual/chapter-10-user-scholarship" - }, - { - "label": "ระบบการพัฒนารายบุคคล", - "path": "/manual/chapter-11-user-Individual-development" - }, - { - "label": "ระบบลาออก", - "path": "/manual/chapter-12-user-retire" - }, - { - "label": "ระบบบันทึกการลงเวลาปฏิบัติงาน", - "path": "/manual/chapter-13-user-worktimerecord" - }, - { - "label": "ระบบทุนการศึกษา/ฝึกอบรม", - "path": "/manual/chapter-14-user-service-testing" - } - ] - }, - - { - "label": "คู่มือการใช้งานระบบลูกจ้างประจำกรุงเทพมหานคร", - "children": [{ - "label": "ระบบแผนผังองค์กร", - "path": "/manual/chapter-1-user-organization-chart" - }, - { - "label": "ระบบทะเบียนประวัติ", - "path": "/manual/chapter-2-user-registry" - }, { - "label": "ระบบการลา", - "path": "/manual/chapter-4-user-leave" - }, - { - "label": "ระบบลงเวลา (ยังไม่ได้ทำ)", - "path": "/manual/" - }, - { - "label": "ระบบอุทธรณ์ร้องทุกข์", - "path": "/manual/chapter-7-user-appeal-complain" - }, - { - "label": "ระบบลาออก", - "path": "/manual/chapter-12-user-retire" - }, - { - "label": "ระบบบันทึกการลงเวลาปฏิบัติงาน", - "path": "/manual/chapter-13-user-worktimerecord" - } - ] - } + { + "key": 4.2, + "label": "คู่มือการใช้งานระบบลูกจ้างประจำกรุงเทพมหานคร", + "children": [ + { + "label": "ระบบแผนผังองค์กร", + "path": "/manual/chapter-1-user-organization-chart" + }, + { + "label": "ระบบทะเบียนประวัติ", + "path": "/manual/chapter-2-user-registry" + }, + { + "label": "ระบบการลา", + "path": "/manual/chapter-4-user-leave" + }, + { + "label": "ระบบลงเวลา (ยังไม่ได้ทำ)", + "path": "/manual/" + }, + { + "label": "ระบบอุทธรณ์ร้องทุกข์", + "path": "/manual/chapter-7-user-appeal-complain" + }, + { + "label": "ระบบลาออก", + "path": "/manual/chapter-12-user-retire" + }, + { + "label": "ระบบบันทึกการลงเวลาปฏิบัติงาน", + "path": "/manual/chapter-13-user-worktimerecord" + } ] - } -] \ No newline at end of file + } + ] + } +] diff --git a/src/interface/request/main/type.ts b/src/interface/request/main/type.ts index 3fc7ebd4..0d7ff9d5 100644 --- a/src/interface/request/main/type.ts +++ b/src/interface/request/main/type.ts @@ -3,5 +3,6 @@ export interface MenuItem { activeIcon: string; label: string; path?: string; + key?: number; children?: MenuItem[]; } diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index f77540e1..ef6ce062 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -19,6 +19,7 @@ const queryRole = route.query.role as string; const drawerMini = ref(false); const drawerMain = ref(false); const search = ref(""); +const link = ref(""); /** * ปุ่มย่อ ขยาย สารบัญทางขวาของคู่มือ @@ -245,6 +246,105 @@ function defaultOpen(index: number) {
+
+ + +
+ + {{ menuItem.label }} + + + +
+ +
+ + {{ subMenu.label }} + + + + + + + + + {{ + subMenu2.label + }} + + + + + + + + + {{ subMenu.label }} + + +
+
+
+
+
+