This commit is contained in:
‘937886381’
2026-01-12 16:07:02 +08:00
parent b491f24126
commit babbe98c09
95 changed files with 286 additions and 259 deletions

View File

@@ -163,14 +163,14 @@ getRateFlag(rate, real, target) {
// const flags = flags || [];
const currentDiff = diff || 0;
const currentFlag = flagValue || 0;
const prefix = currentFlag === 1 ? '+' : '-';
// const prefix = currentFlag === 1 ? '+' : '-';
// 根据标志位选择不同的样式类
if (currentFlag === 1) {
// 达标 - 使用 rate-achieved 样式
return `{achieved|${prefix}${currentDiff}}{text|差值}`;
return `{achieved|${currentDiff}}{text|差值}`;
} else {
// 未达标 - 使用 rate-unachieved 样式
return `{unachieved|${prefix}${currentDiff}}{text|差值}`;
return `{unachieved|${currentDiff}}{text|差值}`;
}
},
backgroundColor: {