fix: update content list of specialist, subspecialist, etc
This commit is contained in:
No files matched your search
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user