用户代理加入统计

dev_aliyun
jingquan huang 5 years ago
parent 5e92a38af9
commit c331eaa60a

@ -43,6 +43,8 @@ class WelcomeController < ApplicationController
# 运营引流个人数据展示
def user_agents
@user_agents = UserAgent.where(key: params[:edu]).order("register_status desc, action_status desc")
@action_count = @user_agents.where(action_status: 2).count
@register_count = @user_agents.where(register_status: 2).count
@agents_count = @user_agents.count
limit = 20
@agents_pages = Paginator.new @agents_count, limit, params['page'] || 1

@ -1,7 +1,6 @@
<div class="edu-con-bg01 clearfix mt10 bor-grey-e pt10 pb10">
<div class="pl15">
统计总计:
引流总人数<span class="color-red"><%= @agents_count %></span>人,
引流总人数:<span class="color-red"><%= @agents_count %></span>人 | 竞赛成功报名:<span class="color-red"><%= @action_count %></span>
</div>
</div>
<div class="edu-con-bg01 mt15" id="managements_department_part_list">

Loading…
Cancel
Save