fix: 列表数据为空时统一占位字符

This commit is contained in:
@changcode
2021-07-09 15:35:58 +08:00
parent 2aa7b4ad58
commit 95af9160a7
7 changed files with 13 additions and 10 deletions

View File

@@ -49,7 +49,7 @@
<template v-else-if="item.prop === 'dc'">{{scope.row.dc ? scope.row.dc.name : '-'}}</template>
<template v-else-if="item.prop === 'cabinet'">
<span v-if="scope.row.cabinet && scope.row.cabinet !== '--'">{{scope.row.cabinet.name}}&nbsp;{{returnCabinet( scope.row.cabinetStart, scope.row.cabinetEnd)}}</span>
<span v-else >--</span>
<span v-else >-</span>
</template>
<template v-else-if="item.prop == 'pingInfo'">
<div @mouseenter="showTableTooltip( formatPingTime(scope.row.pingInfo.lastUpdate), true, $event)" @mouseleave="hideTableTooltip" v-if="scope.row.pingInfo">