Sha256: aff436db27c5b176e84f64171b6d9700cb300053698682a9a5e52ed5c7eea155

Contents?: true

Size: 740 Bytes

Versions: 219

Compression:

Stored size: 740 Bytes

Contents

json.data do
  json.array! @data do |d|
    if d.is_a? EducodeSales::Teacher
      json.value "t-#{d.id}"
      if d.department.present?
        json.name "#{d.name}--(#{d.department&.school&.name}--#{d.department&.name}) (来源运营教师列表)"
      else
        json.name "#{d.name}--(来源运营教师列表)"
      end
      json.extras [d.professional_title, d.job]

    else
      json.value "u-#{d.id}"
      if d.department_id.present?
        json.name "#{d.real_name}--(#{d.user_extension.department&.school&.name}-#{d.user_extension.department&.name}) (来源头歌用户)"
      else
        json.name "#{d.real_name}--(来源头歌用户)"
      end
       json.extras ""
    end
  end
end
json.code 0
json.msg 'succcess'

Version data entries

219 entries across 219 versions & 1 rubygems

Version Path
educode_sales-1.10.74 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.73 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.72 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.71 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.70 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.59 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.58 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.49 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.48 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.46 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.41 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.37 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.36 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.35 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.34 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.33 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.31 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.30 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.29 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.28 app/views/educode_sales/home/search_teacher.json.jbuilder