diff --git a/web/delivery-platform-ui/src/router/index.js b/web/delivery-platform-ui/src/router/index.js index 9ed4f30..cfe4cb5 100644 --- a/web/delivery-platform-ui/src/router/index.js +++ b/web/delivery-platform-ui/src/router/index.js @@ -116,6 +116,18 @@ const routes = [ component: () => import("../views/LicenseList.vue"), meta: { roles: ["SYS_ADMIN", "DEVELOPER"], title: "许可证管理" }, }, + { + path: "devices/:id", + name: "device-detail", + component: () => import("../views/DeviceDetailView.vue"), + meta: { roles: ["SYS_ADMIN", "DEVELOPER", "OPS"], title: "设备详情" }, + }, + { + path: "devices", + name: "devices", + component: () => import("../views/DeviceListView.vue"), + meta: { roles: ["SYS_ADMIN", "DEVELOPER", "OPS"], title: "设备管理" }, + }, ], }, { path: "/403", name: "forbidden", component: () => import("../views/ForbiddenView.vue") }, diff --git a/web/delivery-platform-ui/src/views/DeviceDetailView.vue b/web/delivery-platform-ui/src/views/DeviceDetailView.vue new file mode 100644 index 0000000..fcadc31 --- /dev/null +++ b/web/delivery-platform-ui/src/views/DeviceDetailView.vue @@ -0,0 +1,219 @@ + + + + + + ← 设备列表 + 设备详情 + + {{ statusLabel(device.status) }} + + + + 发起换机申请 + + + + + + + {{ device.mid ?? "—" }} + {{ device.alias ?? "—" }} + {{ device.site ?? "—" }} + + + {{ statusLabel(device.status) }} + + + {{ formatTime(device.firstSeenAt) }} + {{ formatTime(device.lastHeartbeatAt) }} + + + SN 绑定时间线 + + + + + {{ formatTime(row.bindAt) }} + + + + + + + + + + + + + + + + + + + + + 取消 + 提交 + + + + + + + + diff --git a/web/delivery-platform-ui/src/views/DeviceListView.vue b/web/delivery-platform-ui/src/views/DeviceListView.vue new file mode 100644 index 0000000..a145e4a --- /dev/null +++ b/web/delivery-platform-ui/src/views/DeviceListView.vue @@ -0,0 +1,236 @@ + + + + + 设备管理 + + + 查询 + 登记设备 + + + + + + + + + + + + {{ statusLabel(row.status) }} + + + + + + {{ formatTime(row.lastHeartbeatAt) }} + + + + + 详情 + + + + + + + + + + + + + + + + + + + + + + 取消 + 保存 + + + + + + + +