修改
This commit is contained in:
@@ -78,7 +78,7 @@ export default {
|
||||
// 达标标识判断(≥100返回1,<100返回0)
|
||||
getRateFlag(rate) {
|
||||
if (isNaN(rate) || rate === null || rate === undefined) return 0;
|
||||
return rate >= 100 ? 1 : 0;
|
||||
return +(rate >= 100 || rate === 0); // + 号将布尔值转为数字(true→1,false→0)
|
||||
},
|
||||
|
||||
// 处理领用量/加工产量数据
|
||||
|
||||
Reference in New Issue
Block a user