From 0ec9cc091f56f055dd18c10e55cfaa57ea1d62f2 Mon Sep 17 00:00:00 2001 From: "yusron.alamsyah2311" Date: Tue, 7 Jul 2026 08:51:56 +0700 Subject: [PATCH] feat access CRUD pages --- components/pendaftaran/CardAntrianList.vue | 4 +- pages/antrean/all.vue | 17 +- pages/antrean/kategori/[id].vue | 18 +- pages/antrean/spesialis/[kode].vue | 17 +- pages/antrean/subspesialis/[kode].vue | 16 +- pages/dashboard.vue | 12 ++ pages/setting/hak-akses/form.vue | 184 ++++++++++++++++++--- store/userMenu.ts | 8 + utils/menu.ts | 16 ++ 9 files changed, 251 insertions(+), 41 deletions(-) create mode 100644 utils/menu.ts diff --git a/components/pendaftaran/CardAntrianList.vue b/components/pendaftaran/CardAntrianList.vue index 3ea0bb1..9f21a73 100644 --- a/components/pendaftaran/CardAntrianList.vue +++ b/components/pendaftaran/CardAntrianList.vue @@ -10,7 +10,7 @@ interface Props { loading?: boolean; hasMore?: boolean; totalItems?: number; - getActions?: (item: any) => Array<{ icon: string; color: string; tooltip: string; event: string }>; + getActions?: (item: any) => Array<{ icon: string; color: string; tooltip: string; event: string; access?: boolean }>; context?: 'all' | 'kategori' | 'spesialis' | 'subspesialis'; } @@ -241,7 +241,7 @@ onUnmounted(() => {