Browse Source

局端机数据接入

develop
wangsixiang 2 weeks ago
parent
commit
ca23b12fa8
  1. 19
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue

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

@ -301,14 +301,27 @@ export default {
},
methods: {
getLabelName(index) {
if (this.upsList.length <= 2) {
const length = this.upsList.length;
if (length <= 2) {
// upsList 2 UPS
return `UPS${index + 1}`;
} else {
} else if(length == 3){
// upsList > 2 UPS
return index < 2
? `UPS${index + 1}`
: `分中心${index - 1}`;
: `局端机`;
}else if(length === 4){
return index < 2
? `UPS${index + 1}`
: `局端机${index - 1}`;
}else if(length === 5){
if (index < 2) {
return `UPS${index + 1}`;
} else if (index < 4) {
return `分中心${index - 1}`;
} else {
return `局端机`;
}
}
},
bindNearLoad(e) {

Loading…
Cancel
Save