|
|
|
@ -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
|
|
|
|
|