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:
@@ -47,7 +47,7 @@ const title = ref('')
|
||||
|
||||
// #region Props & Emits
|
||||
const props = defineProps<{
|
||||
installationId: string
|
||||
installationId: number
|
||||
}>()
|
||||
const installation = ref<Installation>({} as Installation)
|
||||
// #endregion
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user