fix: resolve list organization source

This commit is contained in:
riefive
2025-10-01 14:36:48 +07:00
parent 6b69e48bd6
commit 41405ae113
11 changed files with 106 additions and 70 deletions
+3
View File
@@ -28,6 +28,7 @@ import {
handleActionRemove,
handleCancelForm,
} from '~/handlers/unit.handler'
import { installations, getInstallationList } from '~/handlers/_shared.handler'
// Services
import { getUnits, getUnitDetail } from '~/services/unit.service'
@@ -110,6 +111,7 @@ watch([recId, recAction], () => {
})
onMounted(async () => {
await getInstallationList()
await getUnitList()
})
</script>
@@ -127,6 +129,7 @@ onMounted(async () => {
<Dialog v-model:open="isFormEntryDialogOpen" :title="!!recItem ? title : 'Tambah Unit'" size="lg" prevent-outside>
<AppUnitEntryForm
:schema="UnitSchema"
:installations="installations"
:values="recItem"
:is-loading="isProcessing"
:is-readonly="isReadonly"