From 1e60bd6de5a16a5d95b5be04957c5e2dbb98bda3 Mon Sep 17 00:00:00 2001 From: hwj Date: Tue, 30 Dec 2025 17:09:04 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E9=87=87=E9=9B=86=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=AD=90=E5=88=97=E8=A1=A8-=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/device/index.ts | 5 + .../device/components/DeviceAttributeList.vue | 119 ++++++--------- .../components/ModelAttributeList.vue | 135 +++++------------- src/views/iot/devicemodel/index.vue | 21 ++- 4 files changed, 104 insertions(+), 176 deletions(-) diff --git a/src/api/iot/device/index.ts b/src/api/iot/device/index.ts index 5ab9bdb7..3dbc001f 100644 --- a/src/api/iot/device/index.ts +++ b/src/api/iot/device/index.ts @@ -89,5 +89,10 @@ export const DeviceApi = { // 获得设备属性 getDeviceAttribute: async (id: number) => { return await request.get({ url: `/iot/device-contact-model/get?id=` + id }) + }, + + // 导出设备属性 Excel + exportDeviceAttribute: async (params) => { + return await request.download({ url: `/iot/device-contact-model/export-excel`, params }) } } diff --git a/src/views/iot/device/components/DeviceAttributeList.vue b/src/views/iot/device/components/DeviceAttributeList.vue index 196ffaf8..310d7814 100644 --- a/src/views/iot/device/components/DeviceAttributeList.vue +++ b/src/views/iot/device/components/DeviceAttributeList.vue @@ -1,52 +1,33 @@