链路监视:添加数据状态

This commit is contained in:
高云鹏 2024-12-31 14:12:11 +08:00
parent 9dc5abf77a
commit 4aaf2782e6

View File

@ -43,10 +43,21 @@
<div class="tabsPart">
<el-table :data="linkMonitorTableData" class="tablePart" highlight-current-row>
<el-table-column prop="linkName" :label="LinkMonitorFieldsEnums['linkName']" align="left"> </el-table-column>
<el-table-column prop="status" :label="LinkMonitorFieldsEnums['status']" align="center" width="80">
<el-table-column prop="status" :label="LinkMonitorFieldsEnums['status']" align="center" width="100">
<template #default="scope">
<div class="status-container">
<span :class="scope.row.status == 0 ? 'status-dot-online' : 'status-dot-offline'"></span>
<el-tag v-if="scope.row.onlineStatus === 1" type="success">在线</el-tag>
<el-tag v-else type="danger">离线</el-tag>
</div>
<div></div>
</template>
</el-table-column>
<el-table-column label="数据状态" width="150" align="left">
<template #default="scope">
<div class="dataState">
<el-tag :type="scope.row.realStatus === 1 ? 'success' : 'danger'">实时数据</el-tag>
<el-tag v-if="scope.row.ftpStatus === 1" type="success">FTP</el-tag>
<el-tag v-else-if="scope.row.ftpStatus === 0" type="danger">FTP</el-tag>
</div>
</template>
</el-table-column>
@ -460,6 +471,11 @@ $paginationHeight: 32px;
justify-content: center;
align-items: center;
}
.dataState {
display: flex;
justify-content: space-between;
align-items: center;
}
.status-dot-online,
.status-dot-offline {
width: 10px;