diff --git a/src/api/iot/device/device/index.ts b/src/api/iot/device/device/index.ts index c618bb19..ec80bfab 100644 --- a/src/api/iot/device/device/index.ts +++ b/src/api/iot/device/device/index.ts @@ -123,7 +123,7 @@ export const DeviceApi = { return await request.get({ url: `/iot/device/simple-list?`, params: { deviceType } }) }, - // 获取设备属性最新数据 + // 获取设备属性最���数据 getDevicePropertiesLatestData: async (params: any) => { return await request.get({ url: `/iot/device/data/latest`, params }) }, @@ -131,5 +131,10 @@ export const DeviceApi = { // 获取设备属性历史数据 getDevicePropertiesHistoryData: async (params: any) => { return await request.get({ url: `/iot/device/data/history`, params }) + }, + + // 获取导入模板 + importDeviceTemplate: async () => { + return await request.download({ url: `/iot/device/get-import-template` }) } } diff --git a/src/views/iot/device/device/DeviceImportForm.vue b/src/views/iot/device/device/DeviceImportForm.vue new file mode 100644 index 00000000..a6412f6a --- /dev/null +++ b/src/views/iot/device/device/DeviceImportForm.vue @@ -0,0 +1,139 @@ + + + diff --git a/src/views/iot/device/device/index.vue b/src/views/iot/device/device/index.vue index 9e7d53eb..8525d674 100644 --- a/src/views/iot/device/device/index.vue +++ b/src/views/iot/device/device/index.vue @@ -123,6 +123,9 @@ > 导出 + + 导入 + + +