refactor(components): change ID types from string to number and update related components

- Update installation and unit detail components to use number type for IDs
- Modify route parameter handling to pass numbers instead of strings
- Add new unit position entry detail component with proper type handling
This commit is contained in:
Khafid Prayoga
2025-10-30 14:10:40 +07:00
parent 343d1d21cb
commit bf441ff714
5 changed files with 198 additions and 6 deletions
@@ -47,7 +47,7 @@ const title = ref('')
// #region Props & Emits
const props = defineProps<{
installationId: string
installationId: number
}>()
const installation = ref<Installation>({} as Installation)
// #endregion
+3 -3
View File
@@ -47,7 +47,7 @@ const title = ref('')
// #region Props & Emits
const props = defineProps<{
unitId: string
unitId: number
}>()
const unit = ref<Unit>({} as Unit)
// #endregion
@@ -86,7 +86,7 @@ const dataMap = computed(() => {
})
const headerPrep: HeaderPrep = {
title: 'Detail Instalasi',
title: 'Detail Unit',
icon: 'i-lucide-user',
refSearchNav: {
placeholder: 'Cari (min. 3 karakter)...',
@@ -191,7 +191,7 @@ watch([recId, recAction], () => {
}
"
>
<AppUnitPositionEntry
<AppUnitPositionEntryDetail
:schema="UnitPositionSchema"
:unit-id="unitId"
:employees="employees"