fix:修改asset选择为虚拟机时 modelId未传递的问题

This commit is contained in:
zhangyu
2021-05-13 14:25:03 +08:00
parent b60eb36839
commit 480e3707ee
3 changed files with 15 additions and 8 deletions

View File

@@ -51,7 +51,7 @@
<span v-else >--</span>
</template>
<template v-else-if="item.prop == 'pingInfo'">
<div @mouseenter="showTableTooltip( formatPingTime(scope.row.pingInfo.lastUpdate), true, $event)" @mouseleave="hideTableTooltip" >
<div @mouseenter="showTableTooltip( formatPingTime(scope.row.pingInfo.lastUpdate), true, $event)" @mouseleave="hideTableTooltip" v-if="scope.row.pingInfo">
<div :class="{'active-icon green-bg':scope.row.pingInfo.status == 1,'active-icon red-bg':scope.row.pingInfo.status == 0}"></div><span>{{scope.row.pingInfo.rtt?scope.row.pingInfo.rtt+'ms':''}}</span>
</div>
</template>