xiaohuo 9 months ago
commit 73c643ab5b
  1. 2
      ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/detail.vue
  2. 4
      ALOps_sys_fe/alops-ui/src/views/inMonitoring/devicesState/history.vue
  3. 5
      ALOps_sys_fe/alops-ui/src/views/index.vue

@ -972,7 +972,7 @@ mounted() {
color: #2d3748;
line-height: 1.6;
padding: 20px;
min-height: 60vh;
min-height: 50vh;
}
.dashboard {

@ -66,13 +66,13 @@ export default {
handler(val) {
this.getList(val)
},
deep: true,
immediate: true
deep: true
}
},
methods: {
/** 查询类型列表 */
getList(id) {
if (!id) return;
this.loading = true
try {
alertmessage(id).then(response => {

@ -105,10 +105,7 @@
</td>
<td>{{ device.temperature || 0 }}°C</td>
<td>
<div class="health-bar">
<div class="health-fill" :class="getHealthStatus(device.health || 0)"></div>
</div>
{{ device.health || 0 }}%
<el-tag :hit="false" :type="device.health == '1'?'success':device.health == '2'?'':device.health == '3'?'danger':device.health == '4'?'warning':'info'"> {{ device.health == '1'?'健康':device.health == '2'?'良好':device.health == '3'?'一般':device.health == '4'?'需维护':'未获取' }} </el-tag>
</td>
<td>{{ formatDuration(device.contWorkPeriod) }}</td>
<td>{{ parseTime(device.gatherTime) || '--' }}</td>

Loading…
Cancel
Save