Browse Source

门禁方向,收费站分中心UPS

develop
wangsixiang 4 days ago
parent
commit
8b307dd033
  1. 13
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue
  2. 8
      ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/door/index.vue

13
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue

@ -40,7 +40,7 @@
<div ref="chartRef" class='chart LineChart'/>
</ElTabPane>
<template v-if="(dialogData.facilityType === 1 || dialogData.facilityType === 11)">
<ElTabPane v-for="(item,index) in upsList" :key="'UPS_'+item" :label="'UPS'+(index+1)"
<ElTabPane v-for="(item,index) in upsList" :key="'UPS_'+item" :label="getLabelName(index)"
:name="'UPS_'+item">
<Descriptions :data="upsData" :list="upsForm" column="6" labelWidth="142px" style="gap: 12px"/>
</ElTabPane>
@ -300,6 +300,17 @@ export default {
this.data = dData;
},
methods: {
getLabelName(index) {
if (this.upsList.length <= 2) {
// upsList 2 UPS
return `UPS${index + 1}`;
} else {
// upsList > 2 UPS
return index < 2
? `UPS${index + 1}`
: `分中心${index - 1}`;
}
},
bindNearLoad(e) {
for (let i of this.cameraMaps) {
if (e.indexOf(i.iotDeviceId) !== -1) {

8
ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/door/index.vue

@ -43,7 +43,7 @@
/>
<ElTableColumn label="设备类型" prop="deviceTypeName" />
<!-- <ElTableColumn label="方向" prop="directionName" /> -->
<ElTableColumn label="方向" prop="directionName" />
<ElTableColumn label="桩号" prop="stakeMark" />
<ElTableColumn label="时间" prop="warningTime" />
@ -169,8 +169,8 @@ export default {
console.log(result)
result.rows.forEach(e=>{
e.deviceTypeName = _.find(deviceTypeOptions,{value:parseInt(e.deviceType)}).label
e.directionName = e.direction === 1 ? '菏泽方向' :
(e.direction === 3 ? '济南方向' : '双向');
e.directionName = e.direction == 1 ? '菏泽方向' :
(e.direction == 3 ? '济南方向' : '双向');
e.warningTime = moment(e.createTime).format('YYYY-MM-DD HH:mm:ss')
e.stateName = (e.status==='0'?'未处理':(e.status==='1'?'已处理':'自动处理'))
})
@ -193,6 +193,8 @@ export default {
result.rows.forEach(e=>{
e.deviceTypeName = _.find(deviceTypeOptions,{value:parseInt(e.deviceType)}).label
e.warningTime = moment(e.createTime).format('YYYY-MM-DD HH:mm:ss')
e.directionName = e.direction == 1 ? '菏泽方向' :
(e.direction == 3 ? '济南方向' : '双向');
})
this.tableData = result.rows;
this.total = result.total;

Loading…
Cancel
Save