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