diff --git a/resources/views/business/pages/other/log-statistics.blade.php b/resources/views/business/pages/other/log-statistics.blade.php index 172220cc5..5ec848f6d 100644 --- a/resources/views/business/pages/other/log-statistics.blade.php +++ b/resources/views/business/pages/other/log-statistics.blade.php @@ -319,20 +319,25 @@ @php $isSelected = $worklogFilters['date'] === $day['statistics_date']; $deadline = \Illuminate\Support\Carbon::parse($day['statistics_date'])->addDay()->setTime(12, 0); + $detailUrl = route('business.pages.show', [ + 'section' => 'other', + 'page' => 'log-statistics', + 'from' => $worklogFilters['from'], + 'to' => $worklogFilters['to'], + 'date' => $day['statistics_date'], + ]) . '#worklog-detail'; @endphp $isSelected])> - {{ $day['statistics_date'] }} + {{ $day['statistics_date'] }} {{ $deadline->format('Y-m-d H:i:s') }} - {{ number_format((int) $day['submitter_count']) }} - {{ number_format((int) $day['submission_count']) }} + + {{ number_format((int) $day['submitter_count']) }} + + + {{ number_format((int) $day['submission_count']) }} + {{ $day['first_submitted_at'] ?: '-' }} {{ $day['last_submitted_at'] ?: '-' }} @@ -343,7 +348,7 @@ @endif -
+
日志提交明细 {{ $worklogFilters['date'] }} diff --git a/tests/Feature/Business/PagesTest.php b/tests/Feature/Business/PagesTest.php index a50534ee5..67f445a48 100644 --- a/tests/Feature/Business/PagesTest.php +++ b/tests/Feature/Business/PagesTest.php @@ -146,7 +146,10 @@ class PagesTest extends FeatureTestCase ->assertSeeText('2026-11-03') ->assertSeeText('秋香') ->assertSeeText('李斯') - ->assertSeeText('2026-11-04 10:26:00'); + ->assertSeeText('2026-11-04 10:26:00') + ->assertSee('id="worklog-detail"', false) + ->assertSee('title="查看 2026-11-03 提交人姓名"', false) + ->assertSee('title="查看 2026-11-03 日志明细"', false); } finally { Carbon::setTestNow(); }