修改禅道bug

This commit is contained in:
2026-03-11 15:59:57 +08:00
parent 4d3b2b13b8
commit 2a316f89c6
40 changed files with 104 additions and 99 deletions

View File

@@ -4,7 +4,7 @@
<div :id="id" style="width: 100%; height:100%;"></div>
<div class="bottomTip">
<div class="precent">
<span class="precentNum">{{ detailData.rate || 0 }} </span>
<span class="precentNum">{{ detailData.rate || 0 }}% </span>
</div>
</div>
</div>

View File

@@ -84,10 +84,11 @@ export default {
// }
},
grid: {
top: 30,
bottom: 50,
right: 20,
left: 40,
top: 25,
bottom: 30,
right: 0,
left: 2,
containLabel: true
},
xAxis: [
{

View File

@@ -95,7 +95,7 @@ export default {
if (rate >= 100) return 1;
// 2. 完成率 = 0 且 (目标值=0 或 实际值=目标值=0) => 达标
if (rate === 0 && target === 0) return 1;
if (real <= target) return 1;
// 其他情况 => 未达标
return 0;

View File

@@ -90,7 +90,7 @@ export default {
if (rate >= 100) return 1;
// 2. 完成率 = 0 且 (目标值=0 或 实际值=目标值=0) => 达标
if (rate === 0 && target === 0) return 1;
if (real <= target) return 1;
// 其他情况 => 未达标
return 0;