fix: refetch doctor by specialist
This commit is contained in:
@@ -33,7 +33,7 @@ export async function getValueLabelList(params: any = null): Promise<{ value: st
|
||||
if (result.success) {
|
||||
const resultData = result.body?.data || []
|
||||
data = resultData.map((item: Doctor) => ({
|
||||
value: item.id ? Number(item.id) : item.id,
|
||||
value: item.id ? String(item.id) : item.id,
|
||||
label: item.employee?.person?.name || '',
|
||||
}))
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@ export function getList(params: any = null) {
|
||||
url += `/${params.serviceDate}`
|
||||
delete params.serviceDate
|
||||
}
|
||||
if (params?.specialistCode) {
|
||||
if (params?.specialistCode || (Number(params.specialistCode) === 0)) {
|
||||
url += `/${params.specialistCode}`
|
||||
delete params.specialistCode
|
||||
}
|
||||
return base.getList(path, params, name)
|
||||
return base.getList(url, params, name)
|
||||
}
|
||||
|
||||
export async function getValueLabelList(params: any = null): Promise<{ value: string; label: string }[]> {
|
||||
|
||||
Reference in New Issue
Block a user