diff --git a/config/business_navigation.php b/config/business_navigation.php index cf79f8fa..381fc6e2 100644 --- a/config/business_navigation.php +++ b/config/business_navigation.php @@ -1130,6 +1130,10 @@ $navigation = [ ], ], ], + [ + 'slug' => 'log-statistics', + 'title' => '日志统计', + ], ], ], ]; diff --git a/resources/views/business/pages/other/log-statistics.blade.php b/resources/views/business/pages/other/log-statistics.blade.php new file mode 100644 index 00000000..6fdaafbb --- /dev/null +++ b/resources/views/business/pages/other/log-statistics.blade.php @@ -0,0 +1,74 @@ +
+ + +
+ +

日志统计页面已创建

+

页面入口和权限已就绪。数据来源、统计时间范围及汇总字段待确认后接入。

+
+ 数据来源:待接入 + 统计口径:待配置 + 更新时间:待接入 +
+
+
diff --git a/tests/Feature/Business/PagesTest.php b/tests/Feature/Business/PagesTest.php index 0f79444b..8ff47ce8 100644 --- a/tests/Feature/Business/PagesTest.php +++ b/tests/Feature/Business/PagesTest.php @@ -80,6 +80,20 @@ class PagesTest extends FeatureTestCase ->assertSeeText('查看退款待确认'); } + public function testLogStatisticsPageIsAvailableUnderOther(): void + { + $this->loginAs() + ->get(route('business.pages.show', [ + 'section' => 'other', + 'page' => 'log-statistics', + ])) + ->assertOk() + ->assertSee('data-log-statistics', false) + ->assertSeeText('日志统计页面已创建') + ->assertSeeText('数据来源:待接入') + ->assertSeeText('统计口径:待配置'); + } + public function testInventoryReportProvidesAFilteredExportButton(): void { InventoryWarehouseNameMapping::query()->create([