feat(unit): finishing integrate unit

This commit is contained in:
riefive
2025-09-30 13:55:34 +07:00
parent 829758e0d8
commit 181fed37d5
3 changed files with 11 additions and 6 deletions
+8 -3
View File
@@ -22,10 +22,15 @@ function handlePageChange(page: number) {
<template>
<div class="space-y-4">
<PubBaseDataTable
:rows="data" :cols="cols" :header="header" :keys="keys" :func-parsed="funcParsed"
:func-html="funcHtml" :func-component="funcComponent" :skeleton-size="paginationMeta?.pageSize"
:rows="data"
:cols="cols"
:header="header"
:keys="keys"
:func-parsed="funcParsed"
:func-html="funcHtml"
:func-component="funcComponent"
:skeleton-size="paginationMeta?.pageSize"
/>
<PaginationView :pagination-meta="paginationMeta" @page-change="handlePageChange" />
</div>
</template>
+1 -1
View File
@@ -26,7 +26,7 @@ import {
handleActionEdit,
handleActionRemove,
handleCancelForm,
} from '~/handlers/division.handler'
} from '~/handlers/unit.handler'
// Services
import { getUnits, getUnitDetail } from '~/services/unit.service'
+2 -2
View File
@@ -6,8 +6,8 @@ import Error from '~/components/pub/base/error/error.vue'
definePageMeta({
// middleware: ['rbac'],
roles: ['doctor', 'nurse', 'admisi', 'pharmacy', 'billing', 'management'],
title: 'List Unit',
contentFrame: 'cf-full-width',
title: 'Daftar Unit',
contentFrame: 'cf-container-lg',
})
const route = useRoute()