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 @@ + + +