From 14f130f2c71de04346ec71f3bcf3e5bce702f303 Mon Sep 17 00:00:00 2001 From: suguo <25950955@qq.com> Date: Mon, 23 Mar 2026 15:57:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/point/list.vue | 546 ++++++++++++++++++++++++++++++++++++++ src/pages/record/list.vue | 336 +++++++++++++++++++++++ src/router/index.js | 4 +- 3 files changed, 885 insertions(+), 1 deletion(-) create mode 100644 src/pages/point/list.vue create mode 100644 src/pages/record/list.vue diff --git a/src/pages/point/list.vue b/src/pages/point/list.vue new file mode 100644 index 0000000..47ab8bd --- /dev/null +++ b/src/pages/point/list.vue @@ -0,0 +1,546 @@ + + + + + + 监测点位管理 + 添加点位 + + + + + + 全部类型 + + {{ type.label }} + + + + + {{ opt.label }} + + + + + 加载中... + {{ error }} + + + + + {{ point.name }} + + {{ getStatusLabel(point.status) }} + + + 编号:{{ point.code }} + + 类型:{{ getTypeLabel(point.type) }} + 项目:{{ point.projectName || '-' }} + 设备:{{ point.deviceName || '-' }} + + + 最后更新:{{ point.lastUpdate }} + + + + 编辑 + 删除 + + + 暂无监测点位 + + + + + 添加监测点位 + + + 点位名称 + + + + 点位编号 + + + + 点位类型 + + 请选择 + + {{ type.label }} + + + + + 所属项目 + + + + 关联设备 + + + + 状态 + + 在线 + 离线 + 维护中 + + + + + + + + + + 编辑监测点位 + + + 点位名称 + + + + 点位编号 + + + + 点位类型 + + 请选择 + + {{ type.label }} + + + + + 所属项目 + + + + 关联设备 + + + + 状态 + + 在线 + 离线 + 维护中 + + + + + + + + + + \ No newline at end of file diff --git a/src/pages/record/list.vue b/src/pages/record/list.vue new file mode 100644 index 0000000..88cb04a --- /dev/null +++ b/src/pages/record/list.vue @@ -0,0 +1,336 @@ + + + + + + 数据记录管理 + + + + + + + 设备名称 + 项目名称 + 监测点位 + 数据值 + 时间戳 + 状态 + + + + + {{ record.deviceName }} + {{ record.projectName }} + {{ record.pointName }} + {{ record.value }} + {{ record.timestamp }} + + + {{ record.status }} + + + + + + 暂无数据记录 + + + + + + 共 {{ total }} 条记录,每页 {{ pageSize }} 条,第 {{ page }} / {{ Math.ceil(total / pageSize) }} 页 + + + + 首页 + + + 上一页 + + + 下一页 + + + 末页 + + + 10条/页 + 20条/页 + 50条/页 + + + + + + + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index d9b205a..c8857f0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -59,7 +59,9 @@ const router = createRouter({ { path: 'device/list', name: 'admin-device-list', component: () => import('../pages/device/list.vue') }, { path: 'project/list', name: 'admin-project-list', component: () => import('../pages/project/list.vue') }, { path: 'project/detail', name: 'admin-project-detail', component: () => import('../pages/project/detail.vue') }, - {path:'task/list',name:'admin-task-list',component:()=> import('../pages/task/list.vue')} + {path:'task/list',name:'admin-task-list',component:()=> import('../pages/task/list.vue')}, + {path:'data/list',name:'admin-record-list',component:()=> import('../pages/record/list.vue')}, + {path:'point/list',name:'admin-point-list',component:()=> import('../pages/point/list.vue')} ], }, ],