htc 3 天之前
父節點
當前提交
5cadb90c59
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      pagesHome/pdfZyb.vue

+ 3 - 3
pagesHome/pdfZyb.vue

@@ -416,9 +416,9 @@
 								ctx.stroke();
 							});
 							
-							const minScore = ((row.minScore||0)+'').length>2?(row.minScore||0).toFixed(2):row.minScore;
-							const avgScore = ((row.avgScore||0)+'').length>2?(row.avgScore||0).toFixed(2):row.avgScore;
-							const maxScore = ((row.maxScore||0)+'').length>2?(row.maxScore||0).toFixed(2):row.maxScore;
+							const minScore = ((row.minScore||0)+'').length>2?Number(row.minScore||0).toFixed(2):row.minScore;
+							const avgScore = ((row.avgScore||0)+'').length>2?Number(row.avgScore||0).toFixed(2):row.avgScore;
+							const maxScore = ((row.maxScore||0)+'').length>2?Number(row.maxScore||0).toFixed(2):row.maxScore;
 							ctx.font = `bold 14px ${FONT_FAMILY}`;
 							ctx.fillStyle = '#667E90';
 							ctx.fillText(minScore, COL_POSITIONS.min + COL_WIDTHS.min / 2, y + ROW_HEIGHT / 2);