diff --git a/app/components/app/division/detail/list.vue b/app/components/app/division/detail/list.vue index 56198aec..4bbebb57 100644 --- a/app/components/app/division/detail/list.vue +++ b/app/components/app/division/detail/list.vue @@ -32,4 +32,14 @@ function handlePageChange(page: number) { :skeleton-size="paginationMeta?.pageSize" /> + +
+ +
diff --git a/app/components/app/installation/detail/list.vue b/app/components/app/installation/detail/list.vue index d6e760b5..b5884cfd 100644 --- a/app/components/app/installation/detail/list.vue +++ b/app/components/app/installation/detail/list.vue @@ -32,4 +32,14 @@ function handlePageChange(page: number) { :skeleton-size="paginationMeta?.pageSize" /> + +
+ +
diff --git a/app/components/content/division/list.vue b/app/components/content/division/list.vue index d9294491..0456891b 100644 --- a/app/components/content/division/list.vue +++ b/app/components/content/division/list.vue @@ -78,6 +78,7 @@ const headerPrep: HeaderPrep = { label: 'Tambah', icon: 'i-lucide-plus', onClick: () => { + recAction.value = '' recItem.value = null recId.value = 0 isFormEntryDialogOpen.value = true @@ -104,12 +105,22 @@ const getCurrentDivisionDetail = async (id: number | string) => { watch([recId, recAction], () => { switch (recAction.value) { case ActionEvents.showDetail: - navigateTo({ - name: 'org-src-division-id', - params: { - id: Number(recId.value), - }, - }) + if (Number(recId.value) > 0) { + const id = Number(recId.value) + + recAction.value = '' + recItem.value = null + recId.value = 0 + isFormEntryDialogOpen.value = false + isReadonly.value = false + + navigateTo({ + name: 'org-src-division-id', + params: { + id, + }, + }) + } break case ActionEvents.showEdit: diff --git a/app/components/content/installation/detail.vue b/app/components/content/installation/detail.vue index e9721a5b..55a0dd05 100644 --- a/app/components/content/installation/detail.vue +++ b/app/components/content/installation/detail.vue @@ -9,7 +9,7 @@ import Header from '~/components/pub/my-ui/nav-header/prep.vue' import type { Installation } from '~/models/installation' import { getDetail as getDetailInstallation } from '~/services/installation.service' -// #region division positions +// #region installtaion positions import { config } from '~/components/app/installation/detail/list.cfg' // Helpers @@ -174,7 +174,7 @@ watch([recId, recAction], () => {
- { watch([recId, recAction], () => { switch (recAction.value) { case ActionEvents.showDetail: - navigateTo({ - name: 'org-src-installation-id', - params: { - id: recId.value, - }, - }) + if (Number(recId.value) > 0) { + const id = Number(recId.value) + + recAction.value = '' + recItem.value = null + recId.value = 0 + isFormEntryDialogOpen.value = false + isReadonly.value = false + + navigateTo({ + name: 'org-src-installation-id', + params: { + id, + }, + }) + } break case ActionEvents.showEdit: diff --git a/app/components/pub/my-ui/nav-footer/ba.vue b/app/components/pub/my-ui/nav-footer/ba.vue new file mode 100644 index 00000000..2b8e7767 --- /dev/null +++ b/app/components/pub/my-ui/nav-footer/ba.vue @@ -0,0 +1,25 @@ + + +