🐛 fix (api): correct type code parameter name in api requests
This commit is contained in:
@@ -63,7 +63,7 @@ const {
|
|||||||
fetchFn: async ({ page, search }) => {
|
fetchFn: async ({ page, search }) => {
|
||||||
const result = await getList({
|
const result = await getList({
|
||||||
'encounter-id': id,
|
'encounter-id': id,
|
||||||
typeCode: 'dev-record',
|
'type-code': 'dev-record',
|
||||||
includes: 'encounter',
|
includes: 'encounter',
|
||||||
search,
|
search,
|
||||||
page,
|
page,
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ onMounted(async () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
async function getMyList() {
|
async function getMyList() {
|
||||||
const url = `/api/v1/soapi?typeCode=${typeCode.value}&includes=encounter,employee&encounter-id=${route.params.id}`
|
const url = `/api/v1/soapi?type-code=${typeCode.value}&includes=encounter,employee&encounter-id=${route.params.id}`
|
||||||
const resp = await xfetch(url)
|
const resp = await xfetch(url)
|
||||||
if (resp.success) {
|
if (resp.success) {
|
||||||
data.value = (resp.body as Record<string, any>).data
|
data.value = (resp.body as Record<string, any>).data
|
||||||
|
|||||||
Reference in New Issue
Block a user