From dc24f0f2b934719de9d9e1628724a705c36d5565 Mon Sep 17 00:00:00 2001 From: xiaoming <13564692840@163.com> Date: Wed, 6 May 2026 17:47:05 +0800 Subject: [PATCH] =?UTF-8?q?=20bug427=20=E9=97=A8=E8=AF=8A=E5=8C=BB?= =?UTF-8?q?=E7=94=9F=E7=AB=99-=E6=A3=80=E6=9F=A5=E5=BC=80=E7=AB=8B?= =?UTF-8?q?=EF=BC=9A=E6=A3=80=E6=9F=A5=E9=A1=B9=E7=9B=AE=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=BB=BA=E8=AE=AE=E6=94=B9=E4=B8=BA=E2=80=9C=E6=89=8B=E9=A3=8E?= =?UTF-8?q?=E7=90=B4=E2=80=9D=E5=B1=95=E5=BC=80=E6=A8=A1=E5=BC=8F=EF=BC=88?= =?UTF-8?q?=E5=94=AF=E4=B8=80=E5=B1=95=E5=BC=80=E9=A1=B9=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../examination/examinationApplication.vue | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) 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);