后台概览增加缓存,增加上周统计数据,百分号

This commit is contained in:
xxq250 2024-01-22 13:02:48 +08:00
parent f98c044715
commit 90ea1804e9
1 changed files with 4 additions and 4 deletions

View File

@ -21,10 +21,10 @@
<td><%= @pre_week_statistic.map(&:pv).sum %></td> <td><%= @pre_week_statistic.map(&:pv).sum %></td>
<td><%= @pre_week_statistic.map(&:visitor).sum %></td> <td><%= @pre_week_statistic.map(&:visitor).sum %></td>
<td><%= @pre_week_statistic.map(&:ip).sum %></td> <td><%= @pre_week_statistic.map(&:ip).sum %></td>
<td><%= (@pre_week_statistic.map(&:source_through).sum.to_f / 7).round(2) %></td> <td><%= (@pre_week_statistic.map(&:source_through).sum.to_f / 7).round(2) %>%</td>
<td><%= (@pre_week_statistic.map(&:source_link).sum.to_f / 7).round(2) %></td> <td><%= (@pre_week_statistic.map(&:source_link).sum.to_f / 7).round(2) %>%</td>
<td><%= (@pre_week_statistic.map(&:source_search).sum.to_f / 7).round(2) %></td> <td><%= (@pre_week_statistic.map(&:source_search).sum.to_f / 7).round(2) %>%</td>
<td><%= ((@pre_week_statistic.map(&:source_custom) - [nil]).sum.to_f / 7).round(2) %></td> <td><%= ((@pre_week_statistic.map(&:source_custom) - [nil]).sum.to_f / 7).round(2) %>%</td>
</td> </td>
</tr> </tr>
<% end %> <% end %>