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.26 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.25 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.24 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.23 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.22 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.21 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.20 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.19 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.18 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.17 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.16 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.15 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.14 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.13 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.12 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.11 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.10 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.9 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.8 app/views/educode_sales/home/search_teacher.json.jbuilder
educode_sales-1.10.7 app/views/educode_sales/home/search_teacher.json.jbuilder