fix: list integration
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user