statistics

<%= search_form_for @q, url: statistics_review_logs_path, method: :get do |f| %>
<%= f.label :type_eq, "类型:", class: "text-right inline-block font-bold mr-4 w-[120px]" %> <%= f.collection_select :type_eq, [["图片", "CensorBear::ReviewLogs::Image"], ["文字", "CensorBear::ReviewLogs::Text"]], "last", "first", { include_blank: true }, { class: "select flex-1" } %>
<%= f.label :record_type_eq, "模型 Class:", class: "text-right inline-block font-bold mr-4 w-[120px]" %> <%= f.search_field :record_type_eq, class: "input flex-1" %>
<%= f.label :aasm_state_eq, "审核状态:", class: "text-right inline-block font-bold mr-4 w-[120px]" %> <%= f.collection_select :aasm_state_eq, [["待审核", "pending"], ["通过", "passed"], ["拒绝", "rejected"], ["已移除", "removed"]], "last", "first", { include_blank: true }, { class: "select flex-1" } %>
<%= f.label :created_at_between, "创建时间:", class: "text-right inline-block font-bold mr-4 w-[120px]" %>
<%= f.date_field :created_at_gteq, class: "" %>
-
<%= f.date_field :created_at_lteq_end_of_day, class: "" %>
<%= f.label :operated_at_between, "审核时间:", class: "text-right inline-block font-bold mr-4 w-[120px]" %>
<%= f.date_field :operated_at_gteq, class: "" %>
-
<%= f.date_field :operated_at_lteq_end_of_day, class: "" %>
<%= f.label :operator_email_eq, "审核人:", class: "text-right inline-block font-bold mr-4 w-[120px]" %> <%= f.search_field :operator_email_eq, class: "input flex-1" %>
<%= f.submit class: "btn btn-info" %>
<% end %>
<%= column_chart @condition.group_by_day(:created_at).count, title: "数据量" %>
<%= column_chart @condition.group_by_day(:operated_at).count, title: "审核量" %>
<%= pie_chart @condition.group("aasm_state").count, title: "状态比例" %>
<%= pie_chart @operators_operate_count, title: "审核人审核数" %>
<%= pie_chart @condition.group("type").count, title: "类型" %>
<%= pie_chart @condition.group("record_type").count, title: "模型占比" %>