添加判断

This commit is contained in:
Vce 2024-06-04 23:02:08 +08:00
parent ca1a598607
commit 0763058759

View File

@ -307,6 +307,7 @@ function drawBar() {
} else {
if(attendanceRhbRate > 0) attendanceRhbRate = "<span style='color:blue;margin-right:5px'>↑</span>"+Math.abs(attendanceRhbRate)+"%"
if(attendanceRhbRate < 0) attendanceRhbRate = "<span style='color:darkred;margin-right:5px'>↓</span>"+Math.abs(attendanceRhbRate)+"%"
if(attendanceRhbRate == 0) attendanceRhbRate = "0%"
// attendanceRhbRate = attendanceRhbRate + "%";
}
console.log(params);