From 14101bd42ce17dfb9d951d0738abe9d303fb3fe5 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期一, 11 十二月 2023 10:41:39 +0800 Subject: [PATCH] 机器开机率、人员技能比饼图优化 --- src/views/cockpitPage/components/StatisticalBox.vue | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/views/cockpitPage/components/StatisticalBox.vue b/src/views/cockpitPage/components/StatisticalBox.vue index c354d63..851656a 100644 --- a/src/views/cockpitPage/components/StatisticalBox.vue +++ b/src/views/cockpitPage/components/StatisticalBox.vue @@ -4,12 +4,15 @@ <div class="box"> <div class="commom-title">{{ item.label }}</div> <div + v-if="item.label == '鐗╂枡涓嶈冻/寰呮帓绋�'" + class="commom-value redColor" + > + {{ item.value }}/{{ item.value1 }} + </div> + <div + v-else class="commom-value" - :class=" - item.label == '寤舵湡浜や粯' || item.label == '鐗╂枡涓嶈冻' - ? 'redColor' - : '' - " + :class="item.label == '寤舵湡浜や粯' ? 'redColor' : ''" > {{ item.value }} </div> @@ -43,7 +46,8 @@ }, { value: 10, - label: "鐗╂枡涓嶈冻", + value1: 0, + label: "鐗╂枡涓嶈冻/寰呮帓绋� ", }, { value: 2, -- Gitblit v1.8.0