【web】 首页样式调整

dev
Wangxin 9 months ago
parent 58cbb0d94f
commit 05fed99163
  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; color: #2d3748;
line-height: 1.6; line-height: 1.6;
padding: 20px; padding: 20px;
min-height: 60vh; min-height: 50vh;
} }
.dashboard { .dashboard {

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

@ -105,10 +105,7 @@
</td> </td>
<td>{{ device.temperature || 0 }}°C</td> <td>{{ device.temperature || 0 }}°C</td>
<td> <td>
<div class="health-bar"> <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>
<div class="health-fill" :class="getHealthStatus(device.health || 0)"></div>
</div>
{{ device.health || 0 }}%
</td> </td>
<td>{{ formatDuration(device.contWorkPeriod) }}</td> <td>{{ formatDuration(device.contWorkPeriod) }}</td>
<td>{{ parseTime(device.gatherTime) || '--' }}</td> <td>{{ parseTime(device.gatherTime) || '--' }}</td>

Loading…
Cancel
Save