问卷的导出和统计结果调整

dev_daiao
cxt 5 years ago
parent 4899437e56
commit acaf054d35

@ -21,5 +21,7 @@ json.question do
json.answer_percent question_vote_user.present? ? (answer_users_count.to_f / question_vote_user.to_f).round(3) : 0.0
end
end
json.vote_text question_votes.find_vote_text.present? ? question_votes.pluck(:vote_text).reject(&:blank?) : "--" #问题的回答是否有用户手动输入的内容
if question_votes.find_vote_text.present?
json.vote_text question_votes.pluck(:vote_text) #问题的回答是否有用户手动输入的内容
end
end
Loading…
Cancel
Save