在节点列表显示租期、是否为备用节点等信息

This commit is contained in:
GoEdgeLab
2023-05-19 11:11:34 +08:00
parent 145eea8437
commit 3095bc9773
4 changed files with 18 additions and 3 deletions

View File

@@ -76,6 +76,11 @@
<tr v-for="(node, nodeIndex) in nodes">
<td class="node-name-td"><a :href="'/clusters/cluster/node?clusterId=' + clusterId + '&nodeId=' + node.id">{{node.name}}<sup v-if="node.level > 1"><span class="blue"> &nbsp;L{{node.level}}</span></sup></a>
<a :href="'/clusters/cluster/node/settings/schedule?clusterId=' + node.cluster.id + '&nodeId=' + node.id">
<sup v-if="node.isBackup"><span class="blue"> &nbsp;备用</span></sup>
<sup v-if="node.offlineDay != null && node.offlineDay.length > 0"><span class="blue"> &nbsp;到{{node.offlineDay.substring(0, 4)}}-{{node.offlineDay.substring(4, 6)}}-{{node.offlineDay.substring(6, 8)}}</span></sup>
</a>
<a :href="'/clusters/cluster/node/update?clusterId=' + clusterId + '&nodeId=' + node.id" title="设置"><i class="icon setting grey"></i></a>
<div v-if="node.region != null">