diff --git a/src/api/iot/device/index.ts b/src/api/iot/device/index.ts
index a49289c2..234f3d4a 100644
--- a/src/api/iot/device/index.ts
+++ b/src/api/iot/device/index.ts
@@ -55,6 +55,10 @@ export interface LineDevicePageParams {
collectionTimeEnd?: string
}
+export interface SingleDeviceParams {
+ deviceId: string | number
+}
+
// 物联设备 API
export const DeviceApi = {
// 查询物联设备分页
@@ -103,6 +107,10 @@ export const DeviceApi = {
return await request.get({ url: `/iot/device/lineDevicePage`, params })
},
+ getSingleDevice: async (params: SingleDeviceParams) => {
+ return await request.get({ url: `/iot/device/singleDevice`, params })
+ },
+
// ==================== 子表(设备属性) ====================
// 获得设备属性分页
diff --git a/src/views/iot/historyData/HistorySingleDeviceDialog.vue b/src/views/iot/historyData/HistorySingleDeviceDialog.vue
new file mode 100644
index 00000000..29452385
--- /dev/null
+++ b/src/views/iot/historyData/HistorySingleDeviceDialog.vue
@@ -0,0 +1,235 @@
+
+
+
+
+
+
+
diff --git a/src/views/iot/historyData/index.vue b/src/views/iot/historyData/index.vue
index b4960646..16138902 100644
--- a/src/views/iot/historyData/index.vue
+++ b/src/views/iot/historyData/index.vue
@@ -99,11 +99,18 @@
@pagination="getList"
/>
+
+