From 6105be914ce09c0e46689bca6b7d4ab45fd3bf0f Mon Sep 17 00:00:00 2001 From: renshen <1005457301@qq.com> Date: Thu, 5 Nov 2026 12:29:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=97=A5=E5=BF=97=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E6=B1=87=E6=80=BB=E6=95=B0=E5=AD=97=E6=94=AF=E6=8C=81=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=9F=A5=E7=9C=8B=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/other/log-statistics.blade.php | 62 +++++++++++++------ tests/Feature/Business/PagesTest.php | 4 ++ 2 files changed, 47 insertions(+), 19 deletions(-) diff --git a/resources/views/business/pages/other/log-statistics.blade.php b/resources/views/business/pages/other/log-statistics.blade.php index 4a36d6a5..1952fa47 100644 --- a/resources/views/business/pages/other/log-statistics.blade.php +++ b/resources/views/business/pages/other/log-statistics.blade.php @@ -121,6 +121,19 @@ background: var(--vip-surface, #fff); } + .log-statistics-card.is-link { + color: inherit; + text-decoration: none; + transition: border-color 150ms ease, background 150ms ease; + } + + .log-statistics-card.is-link:hover, + .log-statistics-card.is-link:focus-visible { + border-color: var(--vip-content-accent, #B9954F); + background: var(--vip-content-accent-soft, #F7F0DE); + outline: none; + } + .log-statistics-card span { color: var(--vip-content-muted, #595959); font-size: 0.6875rem; @@ -137,6 +150,12 @@ text-decoration: none; } + .log-statistics-card__hint { + color: var(--vip-content-accent-dark, #856632) !important; + font-size: 0.625rem !important; + font-weight: 600; + } + .log-statistics-panel { overflow: hidden; border: 1px solid var(--vip-border, #D8D2C7); @@ -320,36 +339,41 @@ + @php + $currentDetailsUrl = route('business.pages.show', [ + 'section' => 'other', + 'page' => 'log-statistics', + 'from' => $worklogFilters['from'], + 'to' => $worklogFilters['to'], + 'date' => $worklogCurrent['statistics_date'], + 'details' => 1, + ]) . '#worklog-detail'; + @endphp
-
+ {{ $worklogPenalty['start_date'] ?: '2026-11-04' }} 起扣分合计 - {{ $worklogPenalty['total_points_formatted'] }} -
-
+ {{ $worklogPenalty['total_points_formatted'] }} + 点击查看扣分明细 + + {{ $worklogCurrent['statistics_date'] }} 提交人数 - - {{ number_format((int) $worklogCurrent['submitter_count']) }} - -
-
+ {{ number_format((int) $worklogCurrent['submitter_count']) }} + 点击查看提交人 + + {{ $worklogCurrent['statistics_date'] }} 日志条数 {{ number_format((int) $worklogCurrent['submission_count']) }} -
+ 点击查看日志明细 +
当前统计日截止时间 {{ $worklogCutoffAt }}
-
+ 查询范围日志总数 {{ number_format((int) $worklogTotalSubmissions) }} -
+ 点击查看每日统计 +
diff --git a/tests/Feature/Business/PagesTest.php b/tests/Feature/Business/PagesTest.php index 89bbd7a8..b9ffe308 100644 --- a/tests/Feature/Business/PagesTest.php +++ b/tests/Feature/Business/PagesTest.php @@ -171,6 +171,10 @@ class PagesTest extends FeatureTestCase ->assertSee('title="查看 2026-11-03 提交人姓名"', false) ->assertSee('title="查看 2026-11-03 日志明细"', false) ->assertSee('收起明细') + ->assertSeeText('点击查看扣分明细') + ->assertSeeText('点击查看提交人') + ->assertSeeText('点击查看日志明细') + ->assertSeeText('点击查看每日统计') ->assertSee('data-worklog-penalty', false) ->assertSeeText('2026-11-04 起扣分合计') ->assertSeeText('第 1 次漏写扣 10 分') -- 2.47.2