fix: list integration

This commit is contained in:
riefive
2025-10-02 14:12:10 +07:00
parent fc3bda14f4
commit 693d8225bf
13 changed files with 91 additions and 22 deletions
+3
View File
@@ -28,6 +28,7 @@ import {
handleActionRemove,
handleCancelForm,
} from '~/handlers/division.handler'
import { divisions, getDivisionParentList } from '~/handlers/_shared.handler'
// Services
import { getDivisions, getDivisionDetail } from '~/services/division.service'
@@ -111,6 +112,7 @@ watch([recId, recAction], () => {
onMounted(async () => {
await getDivisionList()
await getDivisionParentList(false, data.value || [])
})
</script>
@@ -127,6 +129,7 @@ onMounted(async () => {
<Dialog v-model:open="isFormEntryDialogOpen" :title="!!recItem ? title : 'Tambah Divisi'" size="lg" prevent-outside>
<AppDivisionEntryForm
:schema="DivisionSchema"
:divisions="divisions"
:values="recItem"
:is-loading="isProcessing"
:is-readonly="isReadonly"