This commit is contained in:
‘937886381’
2025-11-14 14:16:43 +08:00
parent 5ddab768ef
commit 3d167e8d71
21 changed files with 717 additions and 144 deletions

View File

@@ -70,7 +70,7 @@ export default {
label: { backgroundColor: '#6a7985' }
}
},
grid: { top: 10, bottom: 20, right: 25, left: 30 },
grid: { top: 10, bottom: 20, right: 25, left: 50 },
xAxis: [
{
type: 'category',
@@ -94,9 +94,9 @@ export default {
yAxis: {
type: 'value',
nameTextStyle: { color: 'rgba(0, 0, 0, 0.45)', fontSize: 14, align: 'left' },
min: () => 0,
max: (value) => Math.ceil(value.max),
scale: true,
// min: () => 0,
// max: (value) => Math.ceil(value.max),
// scale: true,
axisTick: { show: false },
axisLabel: { color: 'rgba(0, 0, 0, 0.45)', fontSize: 12 },
splitLine: { lineStyle: { color: 'rgba(0, 0, 0, 0.15)' } },

View File

@@ -22,7 +22,7 @@
<div class="right">
<!-- 完成率颜色动态绑定 -->
<div class="number" :style="{ 'color': item.completed === 0 ? '#FF8400' : 'rgba(54, 181, 138, .7)' }">
{{ item.proportion !== null && item.proportion !== undefined ? (item.proportion * 100) + '%' : '0%' }}
{{ item.proportion !== null && item.proportion !== undefined ? (item.proportion) + '%' : '0%' }}
</div>
<div class="title">完成率</div>
</div>

View File

@@ -23,7 +23,7 @@
<div class="right">
<!-- 完成率颜色动态绑定 -->
<div class="number" :style="{ 'color': item.completed === 0 ? '#FF8400' : 'rgba(54, 181, 138, .7)' }">
{{ item.proportion !== null && item.proportion !== undefined ? (item.proportion * 100) + '%' : '0%' }}
{{ item.proportion !== null && item.proportion !== undefined ? (item.proportion) + '%' : '0%' }}
</div>
<div class="title">完成率</div>
</div>

View File

@@ -80,7 +80,7 @@ export default {
return {
targetValue: targetItem?.[`${field}Target`] || 0, // 对应指标的目标值字段(如 profitTarget
value: targetItem?.[field] || 0, // 对应指标的实际值
proportion: (targetItem?.[`${field}Proportion`] || 0) * 100, // 对应指标的占比(转百分比)
proportion: (targetItem?.[`${field}Proportion`] || 0), // 对应指标的占比(转百分比)
completed: targetItem?.[`${field}Completed`] ?? 0 // 状态字段(复用分公司的 completed
};
});

View File

@@ -6,7 +6,7 @@
<div class="content-wrapper">
<div class="left">
<div class="number" style="color: rgba(103, 103, 103, 0.79);">{{ item.targetValue }}</div>
<div class="title">目标值</div>
<div class="title" style="color: rgba(134, 134, 135, 1);">目标值</div>
</div>
<div class="line"></div>
<!-- 实际值根据 实际值目标值 动态绑定类名 -->
@@ -17,7 +17,7 @@
}">
{{ item.currentValue }}
</div>
<div class="title">实际值</div>
<div class="title" style="color: rgba(134, 134, 135, 1);">实际值</div>
</div>
</div>
<div class="line"></div>
@@ -236,7 +236,7 @@ export default {
/* 百分比 - 实际值≥目标值(绿色) */
.percent-exceed {
color: #28CB97 !important;
color: rgba(54, 181, 138, 1) !important;
}
/* 百分比 - 实际值<目标值(黄色) */

View File

@@ -55,14 +55,14 @@ export default {
unit: "原片成本·元/㎡",
route: "cost/cost",
target: 16,
actual: 18,
actual: 16,
progress: 110
},
{
unit: "加工成本·元/㎡",
route: "cost/cost",
target: 16,
actual: 14,
actual: 16,
progress: 85
},
{