|
|
@ -11,13 +11,13 @@ if @shixun
|
|
|
|
json.myself_experience @work.myshixun.try(:total_score).to_i
|
|
|
|
json.myself_experience @work.myshixun.try(:total_score).to_i
|
|
|
|
json.total_experience @shixun.all_score
|
|
|
|
json.total_experience @shixun.all_score
|
|
|
|
json.work_score number_with_precision @work.work_score.to_f.round(2), precision: 1
|
|
|
|
json.work_score number_with_precision @work.work_score.to_f.round(2), precision: 1
|
|
|
|
json.all_work_score number_with_precision 100, precision: 1
|
|
|
|
json.all_work_score number_with_precision @homework.total_score, precision: 1
|
|
|
|
json.time_consuming @work.myshixun_consume
|
|
|
|
json.time_consuming @work.myshixun_consume
|
|
|
|
json.evaluate_count @user_evaluate_count.to_i
|
|
|
|
json.evaluate_count @user_evaluate_count.to_i
|
|
|
|
if @homework.work_efficiency
|
|
|
|
if @homework.work_efficiency
|
|
|
|
json.eff_score_full number_with_precision @homework.eff_score, precision: 1
|
|
|
|
json.eff_score_full number_with_precision @homework.eff_score, precision: 1
|
|
|
|
json.eff_score number_with_precision @work.eff_score.to_f.round(2), precision: 1
|
|
|
|
json.eff_score number_with_precision @work.eff_score.to_f.round(2), precision: 1
|
|
|
|
json.challenge_score_full number_with_precision (100 - @homework.eff_score), precision: 1
|
|
|
|
json.challenge_score_full number_with_precision (@homework.total_score - @homework.eff_score), precision: 1
|
|
|
|
json.challenge_score number_with_precision @work.final_score.to_f.round(2), precision: 1
|
|
|
|
json.challenge_score number_with_precision @work.final_score.to_f.round(2), precision: 1
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|