feat(admin): 可同步订单跳转增加锚点定位批量同步区
This commit is contained in:
@@ -136,7 +136,7 @@
|
||||
$openSubSyncableUrl = '/admin/site-subscriptions/' . $order->siteSubscription->id . '?' . \Illuminate\Support\Arr::query([
|
||||
'back' => $subBack,
|
||||
'order_sync_status' => 'syncable',
|
||||
]);
|
||||
]) . '#syncable-batch';
|
||||
@endphp
|
||||
<a class="muted" href="{{ $openSubSyncableUrl }}">查看可同步订单</a>
|
||||
<span class="muted">|</span>
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="mt-10">
|
||||
<div class="mt-10" id="syncable-batch">
|
||||
<form method="post" action="/admin/platform-orders/batch-activate-subscriptions" onsubmit="return confirm('确认批量同步该订阅下“可同步”的订单?(仅处理:已支付+已生效+未同步)');">
|
||||
@csrf
|
||||
<input type="hidden" name="scope" value="filtered">
|
||||
|
||||
@@ -106,6 +106,7 @@ class AdminPlatformOrderShowTest extends TestCase
|
||||
->assertSee('打开订阅详情')
|
||||
->assertSee('/admin/site-subscriptions/' . $sub->id . '?back=' . urlencode('/admin/platform-orders/' . $order->id), false)
|
||||
->assertSee('order_sync_status=syncable')
|
||||
->assertSee('#syncable-batch')
|
||||
->assertSee('审计记录')
|
||||
->assertSee('清除同步失败标记');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user