<% if schools.present? %> <% schools.each do |school| %> <% end %> <% else %> <%= render 'admins/shared/no_data_for_table' %> <% end %>
ID LOGO 标识码 单位名称 地区 城市 详细地址 <%= sort_tag('用户数', name: 'users_count', path: admins_schools_path) %> 部门数 <%= sort_tag('创建时间', name: 'created_at', path: admins_schools_path) %> 操作
<%= school.id %> <% if Util::FileManage.exists?(school) %> <%= image_tag(Util::FileManage.source_disk_file_url(school).to_s + "?#{Time.now.to_i}", width: 40, height: 40, class: 'preview-image') %> <% else %> <%= content_tag(:span, '--', class: 'text-secondary') %> <% end %> <%= display_text school.identifier %> <%= school.name %> <%= school.province %> <%= school.city %> <%= school.address %> <%= school.users_count %> <%= @department_count.fetch(school.id, 0) %> <%= school.created_at&.strftime('%Y-%m-%d %H:%M') %> <%= delete_link '删除', admins_school_path(school, element: ".school-item-#{school.id}"), class: 'delete-school-action' %>
<%= render partial: 'admins/shared/paginate', locals: { objects: schools } %>