From 8f1c660d1f7fee8c96002418f1dd0eadca581666 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 14 Dec 2024 18:56:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E3=80=91IoT=EF=BC=9A=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=A2=9E=E5=8A=A0=E5=AF=BC=E5=87=BA=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/device/index.ts | 5 +++ src/views/iot/device/device/index.vue | 46 +++++++++++++++++++++------ 2 files changed, 41 insertions(+), 10 deletions(-) diff --git a/src/api/iot/device/index.ts b/src/api/iot/device/index.ts index f9e388f2..536f52a6 100644 --- a/src/api/iot/device/index.ts +++ b/src/api/iot/device/index.ts @@ -87,6 +87,11 @@ export const DeviceApi = { return await request.delete({ url: `/iot/device/delete?id=` + id }) }, + // 导出设备 + exportDeviceExcel: async (params: any) => { + return await request.download({ url: `/iot/device/export-excel`, params }) + }, + // 获取设备数量 getDeviceCount: async (productId: number) => { return await request.get({ url: `/iot/device/count?productId=` + productId }) diff --git a/src/views/iot/device/device/index.vue b/src/views/iot/device/device/index.vue index 824f41ac..522ab918 100644 --- a/src/views/iot/device/device/index.vue +++ b/src/views/iot/device/device/index.vue @@ -104,6 +104,15 @@ 新增 + + 导出 + @@ -117,7 +126,7 @@ - + @@ -127,6 +136,15 @@ + + +