feat(specialist): add unit info to specialist detail view

- Extend getDetail function to accept optional params
- Include unit data when fetching specialist details
- Display unit code alongside name in detail view
This commit is contained in:
Khafid Prayoga
2025-10-31 13:34:45 +07:00
parent a4f8e1a64f
commit d3090d04ef
3 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -15,8 +15,8 @@ export function getList(params: any = null) {
return base.getList(path, params, name)
}
export function getDetail(id: number | string) {
return base.getDetail(path, id, name)
export function getDetail(id: number | string, params?: any) {
return base.getDetail(path, id, name, params)
}
export function update(id: number | string, data: any) {