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" + 下载样表 + 注意:导入的表格只读取第一个工作表 + + +