You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
478 B
16 lines
478 B
json.(@bank, :id, :name, :description, :task_type, :is_public)
|
|
# 附件
|
|
json.authorize @bank.user_id == current_user.id || current_user.admin_or_business?
|
|
json.attachments @bank_attachments do |attachment|
|
|
json.partial! "attachments/attachment_simple", locals: {attachment: attachment}
|
|
end
|
|
|
|
# 分组要求
|
|
if @bank.task_type == 2
|
|
json.group_info do
|
|
json.max_number @bank.max_num
|
|
json.min_number @bank.min_num
|
|
json.base_on_project @bank.base_on_project
|
|
end
|
|
end
|