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.6 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.5 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.3 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.2 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.1 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.0 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.0.9 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.0.8 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.0.7 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.0.6 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.0.5 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.0.4 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.0.3 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.0.2 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.0.1 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.0.0 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-0.9.99 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-0.9.98 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-0.9.97 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-0.9.96 app/views/educode_sales/home/search_teacher.json.jbuilder