feat:添加机柜显示u位 信息

This commit is contained in:
zhangyu
2020-10-30 15:16:25 +08:00
parent 556571edc9
commit a51cb70084
2 changed files with 18 additions and 6 deletions

View File

@@ -119,7 +119,7 @@
<span >{{scope.row.idc.name}}</span>
</div>
<template v-if="item.prop=='cabinet'">
<span v-if="scope.row.cabinet && scope.row.cabinet != '--'">{{returnData(scope.row.cabinet).name}}</span>
<span v-if="scope.row.cabinet && scope.row.cabinet != '--'">{{returnData(scope.row.cabinet).name}}{{returnCabinet( scope.row.cabinetStart, scope.row.cabinetEnd)}}</span>
<span v-else >{{returnData(scope.row.cabinet)}}</span>
</template>
<div v-if="item.prop=='model'">
@@ -582,6 +582,12 @@
return "--";
}
},
returnCabinet(start,end){//返回机柜u位信息
if(!start|| !end){
return ''
}
return `[${start} - ${end}]`
},
closeAllPop() {
this.$refs.idcConfigBox.forEach((item) => {
item.show(false);