搜索框调整
This commit is contained in:
parent
d01a554399
commit
cacda9c0df
@ -2016,10 +2016,22 @@ const filteredPatients = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// 添加状态筛选变化处理函数
|
// 添加状态筛选变化处理函数
|
||||||
const handleStatusFilterChange = (value) => {
|
const handleStatusFilterChange = async (value) => {
|
||||||
statusFilter.value = value
|
statusFilter.value = value
|
||||||
// 重置选中的患者
|
// 重置选中的患者
|
||||||
selectedPatient.value = null
|
selectedPatient.value = null // 清空选中的患者
|
||||||
|
searchQuery.value = '' // 清空搜索词
|
||||||
|
patients.value = []// 清空患者列表
|
||||||
|
const params = {
|
||||||
|
status: value,
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 100
|
||||||
|
}
|
||||||
|
|
||||||
|
const itemsRes = await PatientApi.getPatientPage(params) // 获取患者列表
|
||||||
|
patients.value = itemsRes.list // 更新患者列表
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 添加检查是否已完成的响应式引用
|
// 添加检查是否已完成的响应式引用
|
||||||
|
Loading…
Reference in New Issue
Block a user