|
|
|
@ -225,7 +225,7 @@ module HomeworkCommonsHelper
|
|
|
|
|
|
|
|
|
|
# 作品状态
|
|
|
|
|
def practice_homework_status homework, member
|
|
|
|
|
[{id: 0, name: "未提交", count: homework.compelete_status_count(member, 0)},
|
|
|
|
|
[{id: 0, name: "未开启", count: homework.compelete_status_count(member, 0)},
|
|
|
|
|
{id: 1, name: "未通关", count: homework.compelete_status_count(member, 1)},
|
|
|
|
|
{id: 2, name: "按时通关", count: homework.compelete_status_count(member, 2)},
|
|
|
|
|
{id: 3, name: "迟交通关", count: homework.compelete_status_count(member, 3)}]
|
|
|
|
|