优化终端运行评价页面

This commit is contained in:
GGJ
2025-05-22 11:04:42 +08:00
parent a869989dba
commit 2a6b9a37d2
5 changed files with 33 additions and 16 deletions

View File

@@ -32,7 +32,7 @@
<el-card v-for="(item, index) in tableStore.table.data" :key="index">
<template #header>
<div style="cursor: pointer;" @click="queryline(item, false)">
<el-tag v-if="item.data < 60 && item.data > 0"
<el-tag v-if="item.data < 60 && item.data >= 0"
style="color: #fff; background: #339966" size="small">
</el-tag>
@@ -44,7 +44,7 @@
style="color: #fff; background: #cc0000" size="small">
</el-tag>
<el-tag v-if="item.data == 3.14159 || item.data == 0"
<el-tag v-if="item.data == 3.14159 "
style="color: #fff; background: #ccc" size="small">
</el-tag>
@@ -55,7 +55,24 @@
<div class="card-content">
<div class="card-item" v-for="(item1, index1) in item.children"
:key="index1" @click="queryline(item1, true)">
<el-tag v-if="item1.data == 3.14159 || item1.data == 0"
<el-tag v-if="item1.data < 60 && item1.data >= 0"
style="color: #fff; background: #339966" size="small">
</el-tag>
<el-tag v-if="60 <= item1.data && item1.data < 90"
style="color: #fff; background: #ffcc33" size="small">
</el-tag>
<el-tag v-if="90 <= item1.data && item1.data"
style="color: #fff; background: #cc0000" size="small">
</el-tag>
<el-tag v-if="item1.data == 3.14159 "
style="color: #fff; background: #ccc" size="small">
</el-tag>
<!-- <el-tag v-if="item1.data == 3.14159 || item1.data == 0"
style="background: #ccc; color: #fff" size="small">
</el-tag>
@@ -82,7 +99,7 @@
<el-tag v-if="2 <= item1.data && item1.data && item1.data !== 3.14159"
style="background: #cc0000; color: #fff" size="small">
5
</el-tag>
</el-tag> -->
<span class="xdf">
<el-tooltip :show-arrow="false" :offset="-0" :content="item1.name"
popper-class="atooltip" placement="bottom-start">
@@ -252,7 +269,7 @@ const histogram = (res: any) => {
// 定制显示(按顺序)
color: function (params) {
if (params.value == 0 || params.value == 0.14159) {
if ( params.value == 0.14159) {
return '#ccc'
} else if (params.value >= 90) {
return new echarts.graphic.LinearGradient(