From 66799688e75ec40d19491f5e39064b8ef006c88c Mon Sep 17 00:00:00 2001 From: hwj Date: Wed, 28 Jan 2026 14:45:44 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E9=87=87=E9=9B=86=E8=AE=BE?= =?UTF-8?q?=E5=A4=87-=E8=AE=BE=E5=A4=87=E5=B1=9E=E6=80=A7=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E2=80=9C=E5=AF=BC=E5=87=BA=E2=80=9D=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=BF=85=E9=80=89=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/device/components/DeviceAttributeList.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/iot/device/components/DeviceAttributeList.vue b/src/views/iot/device/components/DeviceAttributeList.vue index 8c55bc14..79df434a 100644 --- a/src/views/iot/device/components/DeviceAttributeList.vue +++ b/src/views/iot/device/components/DeviceAttributeList.vue @@ -240,14 +240,14 @@ const handleBatchDelete = async () => { /** 导出按钮操作 */ const handleExport = async () => { - if (!selectedIds.value.length) { - message.error('请选择需要导出的数据') - return - } try { await message.exportConfirm() exportLoading.value = true - const data = await DeviceModelAttributeApi.exportDeviceModelAttribute({ ids: selectedIds.value.join(',') }) + const params: any = {} + if (selectedIds.value.length) { + params.ids = selectedIds.value.join(',') + } + const data = await DeviceModelAttributeApi.exportDeviceModelAttribute(params) download.excel(data, '采集设备-点位管理.xls') } catch { } finally {