From 382f34d9a3efc3b4acbfdb09f8d3cb4b57fb27a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Tue, 17 Mar 2026 15:43:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E8=AE=A2=E5=8D=95=EF=BC=9ABA?= =?UTF-8?q?S=E6=89=B9=E6=AC=A1=E7=AD=9B=E9=80=89badge=E6=96=87=E6=A1=88?= =?UTF-8?q?=E5=AF=B9=E9=BD=90BMPA=E5=B9=B6=E8=A1=A5=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/admin/platform_orders/index.blade.php | 14 +++++++++++--- ...ivationRunIdBadgeQuickLinksShouldRenderTest.php | 6 ++++-- ...exBatchActivationRunIdBadgeShouldRenderTest.php | 4 ++-- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index b9ec5dd..8004777 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -522,16 +522,24 @@ 'page' => null, ]); @endphp + @php + $runGoAllUrl = $buildQuickFilterUrl([ + 'batch_activation_run_id' => $batchActivationRunId, + 'page' => null, + ]); + @endphp
-
当前批次筛选
+
当前 BAS 批次筛选
- 当前 run_id:{{ $batchActivationRunId }} + 当前 BAS run_id:{{ $batchActivationRunId }} - 清除批次筛选 + 清除 BAS 批次筛选
快速查看: + 本批次全部 + 本批次失败 本批次未同步 diff --git a/tests/Feature/AdminPlatformOrderIndexBatchActivationRunIdBadgeQuickLinksShouldRenderTest.php b/tests/Feature/AdminPlatformOrderIndexBatchActivationRunIdBadgeQuickLinksShouldRenderTest.php index 8db2e47..a04d8f4 100644 --- a/tests/Feature/AdminPlatformOrderIndexBatchActivationRunIdBadgeQuickLinksShouldRenderTest.php +++ b/tests/Feature/AdminPlatformOrderIndexBatchActivationRunIdBadgeQuickLinksShouldRenderTest.php @@ -28,10 +28,12 @@ class AdminPlatformOrderIndexBatchActivationRunIdBadgeQuickLinksShouldRenderTest ->assertOk() ->getContent(); - $this->assertStringContainsString('当前 run_id:' . $runId . '', $html); + $this->assertStringContainsString('当前 BAS run_id:' . $runId . '', $html); + + // 本批次全部 + $this->assertStringContainsString('batch_activation_run_id=' . $runId, $html); // 本批次失败 - $this->assertStringContainsString('batch_activation_run_id=' . $runId, $html); $this->assertStringContainsString('sync_status=failed', $html); // 本批次可同步重试(unsynced + syncable_only=1) diff --git a/tests/Feature/AdminPlatformOrderIndexBatchActivationRunIdBadgeShouldRenderTest.php b/tests/Feature/AdminPlatformOrderIndexBatchActivationRunIdBadgeShouldRenderTest.php index 0f39a96..a9a9d67 100644 --- a/tests/Feature/AdminPlatformOrderIndexBatchActivationRunIdBadgeShouldRenderTest.php +++ b/tests/Feature/AdminPlatformOrderIndexBatchActivationRunIdBadgeShouldRenderTest.php @@ -26,9 +26,9 @@ class AdminPlatformOrderIndexBatchActivationRunIdBadgeShouldRenderTest extends T $res = $this->get('/admin/platform-orders?batch_activation_run_id=BAS_BADGE_0001'); $res->assertOk(); - $res->assertSee('当前批次筛选'); + $res->assertSee('当前 BAS 批次筛选'); $res->assertSee('BAS_BADGE_0001'); - $res->assertSee('清除批次筛选'); + $res->assertSee('清除 BAS 批次筛选'); $res->assertSee('/admin/platform-orders?batch_activation_run_id=', false); } }