From dbefb472c6c7e12ffb5b2a0c5d2820b45a4e4152 Mon Sep 17 00:00:00 2001 From: renshen <1005457301@qq.com> Date: Thu, 5 Nov 2026 21:43:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=A3=E5=88=86=E5=90=88=E8=AE=A1?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=AE=9A=E4=BD=8D=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 | 24 ++++++++++++++++++- tests/Feature/Business/PagesTest.php | 1 + 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/resources/views/business/pages/other/log-statistics.blade.php b/resources/views/business/pages/other/log-statistics.blade.php index 0938a727..9b17ac80 100644 --- a/resources/views/business/pages/other/log-statistics.blade.php +++ b/resources/views/business/pages/other/log-statistics.blade.php @@ -193,6 +193,7 @@ border: 1px solid var(--vip-border, #D8D2C7); border-radius: 8px; background: var(--vip-surface, #fff); + scroll-margin-top: 5rem; } .log-statistics-panel__head { @@ -379,7 +380,7 @@ @endphp
@if ($hasWorklogPenalty) - + {{ $worklogPenalty['start_date'] ?: '2026-11-04' }} 起扣分合计 {{ $worklogPenalty['total_points_formatted'] }} 点击查看扣分明细 @@ -554,4 +555,25 @@ @endif @endif + +
diff --git a/tests/Feature/Business/PagesTest.php b/tests/Feature/Business/PagesTest.php index 4ae17546..9405a5e7 100644 --- a/tests/Feature/Business/PagesTest.php +++ b/tests/Feature/Business/PagesTest.php @@ -179,6 +179,7 @@ class PagesTest extends FeatureTestCase ->assertSeeText('点击查看提交人') ->assertSeeText('点击查看日志明细') ->assertDontSeeText('点击查看每日统计') + ->assertSee('data-worklog-jump="worklog-penalty"', false) ->assertSee('data-worklog-penalty', false) ->assertSeeText('2026-11-04 起扣分合计') ->assertSeeText('第 1 次漏写扣 10 分')