chromesetting
daiao 6 years ago
parent ca7de7fbf3
commit e5faa5e278

@ -5,9 +5,11 @@ json.chooses do
json.type choose.category json.type choose.category
end end
end end
json.st @challenge.st
if @tab == 0 if @tab == 0
# 本关任务tab的编辑模式 # 本关任务tab的编辑模式
json.(@challenge, :id, :subject, :task_pass, :difficulty, :score, :exec_time) json.(@challenge, :id, :subject, :task_pass, :difficulty, :score, :exec_time, :st)
json.tags @challenge.challenge_tags.map(&:name) json.tags @challenge.challenge_tags.map(&:name)
elsif @tab == 1 elsif @tab == 1
# 评测设置的编辑模式 # 评测设置的编辑模式

@ -1,7 +1,7 @@
json.(@challenge_choose, :challenge_id, :subject, :answer, json.(@challenge_choose, :challenge_id, :subject, :answer,
:standard_answer, :score, :difficult, :standard_answer, :score, :difficult,
:position, :category) :position, :category)
json.st @challenge.st
# 选项的参数 # 选项的参数
json.choose_contents @challenge_choose.challenge_questions do |question| json.choose_contents @challenge_choose.challenge_questions do |question|
json.(question, :option_name, :position, :right_key) json.(question, :option_name, :position, :right_key)

Loading…
Cancel
Save