This commit is contained in:
‘937886381’
2025-11-13 13:29:46 +08:00
parent bff6efbaa8
commit 5ddab768ef
33 changed files with 153 additions and 251 deletions

View File

@@ -21,7 +21,7 @@
<div class="number" :style="{ color: getColorByFlag(item.flag) }">
{{ item.value || 0 }}
</div>
<div class="title">当前</div>
<div class="title">实际</div>
</div>
</div>
<!-- 进度条 + 完成率 -->
@@ -35,7 +35,7 @@
</div>
</div>
<div class="yield">
<span class="progress-percent">完成率</span>
<span class="progress-percent" :style="{ color: getColorByFlag(item.flag) }">完成率</span>
<!-- 完成率动态颜色 + 百分比格式 -->
<span class="progress-percent progress-value" :style="{ color: getColorByFlag(item.flag) }">
{{ getProportionPercent(item.proportion) }}%
@@ -138,7 +138,7 @@ export default {
getColorByFlag(flag, isProgressBar = false) {
const colorMap = {
0: {
text: 'rgba(103, 103, 103, 0.79)',
text: 'rgba(54, 181, 138, 1)',
progress: 'rgba(103, 103, 103, 0.5)' // 进度条颜色稍浅
},
1: {