update frontend
This commit is contained in:
parent
788b688a2f
commit
3921ddb2e2
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue