From 282b7f77a98835ec8bbac94f27950e3ae046d927 Mon Sep 17 00:00:00 2001 From: wangsixiang <2970484253@qq.com> Date: Thu, 24 Apr 2025 09:30:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=9F=E6=84=9F=E8=AE=BE=E5=A4=87=E6=96=B9?= =?UTF-8?q?=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/common/menuData.js | 2 +- .../pages/maintenanceOperations/smart/smoke/index.vue | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui/src/common/menuData.js b/ruoyi-ui/src/common/menuData.js index b25c801b..b6fd53d7 100644 --- a/ruoyi-ui/src/common/menuData.js +++ b/ruoyi-ui/src/common/menuData.js @@ -231,7 +231,7 @@ export default [ component: "maintenanceOperations/smart/door/index.vue", }, { - title: "烟感报警监测", + title: "烟感监测", name: "smoke", path: "/maintain/smart/smoke", component: "maintenanceOperations/smart/smoke/index.vue", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/smoke/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/smoke/index.vue index 148e2dda..0397e06e 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/smoke/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/smoke/index.vue @@ -32,7 +32,7 @@ /> - + @@ -126,8 +126,8 @@ export default { }).then((result) => { if (result.code != 200) return Message.error(result?.msg); result.rows.forEach(e=>{ - e.directionName = e.direction === 1 ? '菏泽方向' : - (e.direction === 3 ? '济南方向' : '双向'); + e.directionName = e.direction == 1 ? '菏泽方向' : + (e.direction == 3 ? '济南方向' : '双向'); }) this.tableData = result.rows; this.total = result.total; @@ -145,6 +145,10 @@ export default { method: "get", }).then((result) => { if (result.code != 200) return Message.error(result?.msg); + result.rows.forEach(e=>{ + e.directionName = e.direction == 1 ? '菏泽方向' : + (e.direction == 3 ? '济南方向' : '双向'); + }) this.tableData = result.rows; this.total = result.total; });