Merge branch '20230626-评审配置最高分精度问题' into 'release_20230714'
7.14 评审配置最高分精度问题 See merge request eshop/fe_service_ebtp_frontend!302
This commit is contained in:
@ -17,7 +17,7 @@ export const checkUnEmp = (val: any) => {
|
||||
|
||||
//计算一个table的最高分
|
||||
export const subCountScore = (subData: any) => {
|
||||
const mul = 10 ^ 5;
|
||||
const mul = 10 ** 5;
|
||||
const sum = subData?.detailList?.reduce((preValue: any, item: any) => { return preValue + item.highScore * mul }, 0);
|
||||
return Math.round(sum) / mul;
|
||||
}
|
||||
|
Reference in New Issue
Block a user