Browse Source

烟感设备方向

develop
wangsixiang 10 hours ago
parent
commit
282b7f77a9
  1. 2
      ruoyi-ui/src/common/menuData.js
  2. 10
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/smoke/index.vue

2
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",

10
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/smoke/index.vue

@ -32,7 +32,7 @@
/>
<!-- <ElTableColumn label="方向" prop="directionName" /> -->
<ElTableColumn label="方向" prop="directionName" />
<ElTableColumn label="桩号" prop="stakeMark" />
<ElTableColumn label="当前烟感值" width="300" prop="smokeValue" />
@ -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;
});

Loading…
Cancel
Save