修复107 系统管理-》基础数据-》科室管理:科室分类筛选条件无效中搜索条件清空问题
This commit is contained in:
@@ -386,12 +386,6 @@ function parseClassEnumValues(value) {
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNo = 1;
|
||||
if (Array.isArray(queryParams.value.classEnum)) {
|
||||
queryParams.value.classEnum =
|
||||
queryParams.value.classEnum.length > 0
|
||||
? queryParams.value.classEnum.join(',')
|
||||
: undefined;
|
||||
}
|
||||
getPageList();
|
||||
}
|
||||
|
||||
@@ -406,7 +400,15 @@ function resetQuery() {
|
||||
|
||||
function getPageList() {
|
||||
loading.value = true;
|
||||
getList(queryParams.value).then((res) => {
|
||||
// 创建API调用的查询参数副本,处理classEnum的转换
|
||||
const apiParams = { ...queryParams.value };
|
||||
if (Array.isArray(apiParams.classEnum)) {
|
||||
apiParams.classEnum =
|
||||
apiParams.classEnum.length > 0
|
||||
? apiParams.classEnum.join(',')
|
||||
: undefined;
|
||||
}
|
||||
getList(apiParams).then((res) => {
|
||||
// 处理返回的科室数据,确保科室分类显示与系统标准字典一致
|
||||
const processedData = res.data.records.map(item => {
|
||||
// 保留原有显示文本作为基础
|
||||
|
||||
Reference in New Issue
Block a user