diff --git a/src/api/iot/device/index.ts b/src/api/iot/device/index.ts index 39a2e5a8..2a1951de 100644 --- a/src/api/iot/device/index.ts +++ b/src/api/iot/device/index.ts @@ -15,6 +15,7 @@ export interface DeviceVO { lastOnlineTime: Date // 最后上线时间 lastOfflineTime: Date // 最后离线时间 activeTime: Date // 设备激活时间 + createTime: Date // 创建时间 ip: string // 设备的 IP 地址 firmwareVersion: string // 设备的固件版本 deviceSecret: string // 设备密钥,用于设备认证,需安全存储 diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 4595d563..cba8359c 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -622,6 +622,17 @@ const remainingRouter: AppRouteRecordRaw[] = [ activeMenu: '/iot/product' }, component: () => import('@/views/iot/product/detail/index.vue') + }, + { + path: 'device/detail/:id', + name: 'IoTDeviceDetail', + meta: { + title: '设备详情', + noCache: true, + hidden: true, + activeMenu: '/iot/device' + }, + component: () => import('@/views/iot/device/detail/index.vue') } ] } diff --git a/src/views/iot/device/detail/DeviceDetailsHeader.vue b/src/views/iot/device/detail/DeviceDetailsHeader.vue new file mode 100644 index 00000000..cc585f4a --- /dev/null +++ b/src/views/iot/device/detail/DeviceDetailsHeader.vue @@ -0,0 +1,114 @@ + + diff --git a/src/views/iot/device/detail/DeviceDetailsInfo.vue b/src/views/iot/device/detail/DeviceDetailsInfo.vue new file mode 100644 index 00000000..2acbaabb --- /dev/null +++ b/src/views/iot/device/detail/DeviceDetailsInfo.vue @@ -0,0 +1,175 @@ + + diff --git a/src/views/iot/device/detail/index.vue b/src/views/iot/device/detail/index.vue new file mode 100644 index 00000000..2db16bbc --- /dev/null +++ b/src/views/iot/device/detail/index.vue @@ -0,0 +1,66 @@ + + diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue index bb733250..566c78a6 100644 --- a/src/views/iot/device/index.vue +++ b/src/views/iot/device/index.vue @@ -96,7 +96,11 @@ - + + +