Fix Bug #463: [目录管理-诊疗目录] 新增/编辑弹窗中"诊疗子项"检索功能失效,无法搜到已维护的项目
根因分析:medicineList.vue 的搜索功能仅做本地过滤,数据受限于初始加载的1000条(pageSize: 1000), 输入搜索关键词时不会向后端发起新的请求,导致不在前1000条内的项目无法被搜到。 修复策略: 1. medicineList.vue:当用户输入搜索关键词时,新增 searchList() 走服务端搜索(调用 API 的 searchKey 参数), 使用 pageSize: 5000 提高搜索覆盖率;搜索词清空时恢复使用预加载数据 2. 放宽 childrenJson 过滤条件,从严格的 == null 改为兼容空字符串(== null || === '') 3. 修复 diagnosisTreatmentDialog.vue 中 medicineList 的重复 import
This commit is contained in:
@@ -372,7 +372,6 @@ import {
|
||||
} from './diagnosistreatment';
|
||||
import PopoverList from '@/components/OpenHis/popoverList/index.vue';
|
||||
import medicineList from './medicineList.vue';
|
||||
import MedicineList from '../components/medicineList.vue';
|
||||
import {getCurrentInstance, nextTick, watch} from 'vue';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
Reference in New Issue
Block a user