update frontend

This commit is contained in:
Himit_ZH 2021-12-18 23:10:27 +08:00
parent 788b688a2f
commit 3921ddb2e2
1 changed files with 5 additions and 0 deletions

View File

@ -403,6 +403,11 @@ export default {
this.limit = pageSize; this.limit = pageSize;
this.getProblemList(); this.getProblemList();
}, },
getPercentage(partNumber, total) {
return partNumber == 0
? 0
: Math.round((partNumber / total) * 10000) / 100.0;
},
getPassingRate(ac, total) { getPassingRate(ac, total) {
if (!total) { if (!total) {
return 0; return 0;