diff --git a/openhis-ui-vue3/src/views/doctorstation/components/examination/examinationApplication.vue b/openhis-ui-vue3/src/views/doctorstation/components/examination/examinationApplication.vue index 8cfa6802..d0d34308 100644 --- a/openhis-ui-vue3/src/views/doctorstation/components/examination/examinationApplication.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/examination/examinationApplication.vue @@ -301,7 +301,12 @@
{{ dictLoading ? '' : '暂无检查项目,请在"检查项目设置"中配置' }}
- + 0) { - for (const typeId of activeNames) { - const cat = filteredCategoryList.value.find(c => c.typeId == typeId); - if (cat && (!cat.methods || cat.methods.length === 0)) { - await handleCategoryExpand(cat); - } + if (activeName) { + const cat = filteredCategoryList.value.find(c => c.typeId == activeName); + if (cat && (!cat.methods || cat.methods.length === 0)) { + await handleCategoryExpand(cat); } } } @@ -761,7 +764,7 @@ async function loadCategoryList() { // 默认展开第一个 if (categoryList.value.length > 0) { - activeNames.value = [categoryList.value[0].typeId]; + activeNames.value = categoryList.value[0].typeId; } } catch (err) { console.error('加载检查项目分类失败', err);