From 2884d8d4f43bb17ee805b1a02a7ede0040be5d67 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 13 Nov 2025 09:25:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=95=8C=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/cal/index.vue | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/pages/cal/index.vue b/src/pages/cal/index.vue index 572dcc3..739b5fb 100644 --- a/src/pages/cal/index.vue +++ b/src/pages/cal/index.vue @@ -28,9 +28,12 @@ - + - + @@ -38,11 +41,11 @@ v-for="(item, index) in tableData" :key="index" :class="['score-row', { 'current-row': item.isCurrent }]" - :style="{ backgroundColor: item.color }" + > - - - + + +
项目碳排放量 +
项目碳排放量
+
与基准线相比
+
企业分值区间企业/项目等级项目/企业等级
{{ item.pf }}{{ item.score }}{{ item.level }}{{ item.pf }}{{ item.score }}{{ item.level }}
@@ -162,7 +165,7 @@ const tableData = computed(() => [ isCurrent: currentScore.value >= 30 && currentScore.value < 60 }, { - pf: "高于", + pf: "高于基准线", score: "0~29", level: "较差", color: "rgba(244, 67, 54, 0.7)", @@ -242,7 +245,7 @@ const updateRadarData = () => { // 生成随机数据,但保持在合理范围内 const newData = currentData.value.map((value, index) => { const maxValue = option.value.radar.indicator[index].max; - const fluctuation = (Math.random() - 0.5) * 0.4; // -20% 到 +20% + const fluctuation = (Math.random() - 0.5) * 0.3; // -20% 到 +20% let newValue = value * (1 + fluctuation); // 确保不超过最大值 @@ -311,11 +314,12 @@ onUnmounted(() => { /* 表头样式 */ .score-table thead { - background-color: #333; + background-color: #f7f6f6; } .score-table th { - color: #fff; + /* color: #fff; */ + color: black; font-weight: bold; padding: 12px 16px; text-align: center; @@ -325,6 +329,7 @@ onUnmounted(() => { /* 表格行样式 */ .score-table tbody tr { transition: all 0.3s ease; + background-color: white; } .score-table td {