app/views/educode_sales/teachers/index.json.jbuilder in educode_sales-0.9.48 vs app/views/educode_sales/teachers/index.json.jbuilder in educode_sales-0.9.49

- old
+ new

@@ -14,11 +14,21 @@ json.teacher_follows_count d.teacher_follows_count json.activities_count d.activity_teachers_count json.source EducodeSales::Common.teacher_source_name[d.source_id] json.attitude d.follow_up&.attitude&.name json.courses_count d.courses_count + json.area d.department&.school&.province json.actives d.actives + json.experience d['experience'] || 0 + json.grade d['grade'] || 0 + json.mobile d.mobile json.students d.students_count + json.followup_at d.followup_at.to_s + json.latest_time (d['latest_time'] ? DateTime.parse(Time.now.strftime("%Y-%m-%d")) - DateTime.parse(d['latest_time'].strftime("%Y-%m-%d")) : DateTime.parse(Time.now.strftime("%Y-%m-%d")) - DateTime.parse(d.created_at.strftime("%Y-%m-%d"))).to_i + + json.staff_manage @staff_manages[d.department&.school&.province]&.join(",") + + json.follow_person d.follow_up&.staff&.user&.real_name || '' json.created_on d.user.present? ? d.user.created_on.to_s(:date) : '' json.last_login_on (d.user.present? && d.user.last_login_on.present?) ? d.user.last_login_on.to_s(:date) : '' json.teacher_used d.teacher_used json.wechat d.wechat json.created_at d.created_at.to_s(:date) \ No newline at end of file