fix: update content list of specialist, subspecialist, etc

This commit is contained in:
riefive
2025-10-06 11:06:29 +07:00
parent 301cb82803
commit fff5f2c11d
9 changed files with 34 additions and 718 deletions

No files matched your search

+7 -3
View File
@@ -29,7 +29,7 @@ import {
} from '~/handlers/uom.handler'
// Services
import { getUoms, getUomDetail } from '~/services/uom.service'
import { getList, getDetail } from '~/services/uom.service'
const title = ref('')
@@ -43,7 +43,11 @@ const {
fetchData: getUomList,
} = usePaginatedList({
fetchFn: async (params: any) => {
const result = await getUoms({ search: params.search, page: params['page-number'] || 0 })
const result = await getList({
search: params.search,
'page-number': params['page-number'] || 0,
'page-size': params['page-size'] || 10,
})
return { success: result.success || false, body: result.body || {} }
},
entityName: 'uom',
@@ -81,7 +85,7 @@ provide('rec_item', recItem)
provide('table_data_loader', isLoading)
const getCurrentUomDetail = async (id: number | string) => {
const result = await getUomDetail(id)
const result = await getDetail(id)
if (result.success) {
const currentValue = result.body?.data || {}
recItem.value = currentValue