module EducodeSales module SubjectHelper def status(d) d.public == 2 ? "已公开" : d.public == 1 ? "待审核" : d.status == 2 ? "已发布" : "编辑中" end def school_name(item) item.business ? item.business.school.name : item.school_name end # def deliver_date(item) # item.business ? item.business.p_course_time : item.deliver_date.strft审核中ime("%Y-%m-%d") # end # def b_name(item) # item.business ? item.business.name : '' # end def staffs(item) item.business ? item.business.staff.name : item.staffs_name end def manges(item) item.business ? item.business.business_deliver_subjects.take.subject_manages : item.manges_name end end end