xiugai
This commit is contained in:
@@ -196,15 +196,15 @@ export default {
|
||||
const currentFlag = flags[params.dataIndex] || 0;
|
||||
console.log('currentFlag', flags, params.dataIndex);
|
||||
|
||||
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: {
|
||||
|
||||
Reference in New Issue
Block a user