From e64cb2ca25d2a6edaf3d7c6b91baa2799a3e134b Mon Sep 17 00:00:00 2001 From: jiangzongtao Date: Fri, 18 Jul 2025 18:49:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E4=B8=93=E5=AE=B6=E6=8F=90?= =?UTF-8?q?=E5=87=BA=E7=9A=84=E6=95=B4=E6=94=B9=E5=B7=B2=E7=BB=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/SimpleCheckItemSelector.vue | 9 ++++++++- client/src/views/dtsjygl/qyxxgl.vue | 7 ++++++- client/src/views/dtsjygl/qyxxsb.vue | 6 +++++- .../lawenforcement/service/EnterpriseAuditService.java | 6 +++++- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/client/src/components/SimpleCheckItemSelector.vue b/client/src/components/SimpleCheckItemSelector.vue index 465b74b..7693012 100644 --- a/client/src/components/SimpleCheckItemSelector.vue +++ b/client/src/components/SimpleCheckItemSelector.vue @@ -93,7 +93,14 @@ const handleChange = (val) => { // 找到选中的检查项完整信息 let selectedCheckItems -信息 + if (Array.isArray(val)) { + selectedCheckItems = checkItems.value.filter(checkItem => val.includes(checkItem.itemId)) + } else { + const selectedCheckItem = checkItems.value.find(checkItem => checkItem.itemId === val) + selectedCheckItems = selectedCheckItem ? [selectedCheckItem] : [] + } + + // 触发change事件,传递完整的企业信息 emit('change', props.multiple ? selectedCheckItems : (selectedCheckItems[0] || null)) } diff --git a/client/src/views/dtsjygl/qyxxgl.vue b/client/src/views/dtsjygl/qyxxgl.vue index f9db411..a087030 100644 --- a/client/src/views/dtsjygl/qyxxgl.vue +++ b/client/src/views/dtsjygl/qyxxgl.vue @@ -49,7 +49,12 @@ 导入整合数据 导入国标 导出 - excel,application/x-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" + 下载样表 + 注意:导入的表格只读取第一个工作表 + + +