fix(mobile): 患者列表默认显示所有患者
This commit is contained in:
@@ -47,6 +47,7 @@ export const nursingApi = {
|
||||
completeTask: (id, data) => service.post(`/nurse-station/advice-process/execute`, data),
|
||||
getPatientInfo: (id) => service.get('/inpatientmanage/inhospitalregister/' + id),
|
||||
getPatientList: (params) => service.get('/administration/practitioner-patient/list', { params }),
|
||||
getPatientsByPractitioner: (practitionerId) => service.get('/administration/practitioner-patient/practitioner/' + practitionerId + '/patients'),
|
||||
getOrders: (encounterId) => service.get('/nurse-station/advice-process/page', { params: { encounterId } }),
|
||||
getVitalSigns: (patientId) => service.get('/nursing/vital-signs/' + patientId),
|
||||
submitVitalSign: (data) => service.post('/nursing/vital-sign', data),
|
||||
|
||||
@@ -26,7 +26,10 @@ const displayPatients = computed(() => searchText.value ? patients.value.filter(
|
||||
|
||||
const loadPatients = async () => {
|
||||
loading.value = true
|
||||
try { const res = await nursingApi.getPatientList({}); patients.value = res.data || [] } catch (e) { ElMessage.error('加载失败') } finally { loading.value = false }
|
||||
try {
|
||||
const res = await nursingApi.getPatientList({ pageSize: 100 })
|
||||
patients.value = res.data?.records || res.data?.rows || res.data || []
|
||||
} catch (e) { ElMessage.error('加载患者列表失败') } finally { loading.value = false }
|
||||
}
|
||||
|
||||
onMounted(loadPatients)
|
||||
|
||||
Reference in New Issue
Block a user