feat(admin): 重复批量投递warning提供复制run_id按钮(复用copyToClipboard)

This commit is contained in:
萝卜
2026-03-17 18:32:50 +08:00
parent 7dd2e2e40a
commit e937946011
4 changed files with 74 additions and 2 deletions

View File

@@ -1638,7 +1638,9 @@ class PlatformOrderController extends Controller
if ($existing !== '' && str_starts_with($existing, 'BAS')) {
$res = $res
->with('warning_link_href', '/admin/platform-batches/show?type=bas&run_id=' . urlencode($existing))
->with('warning_link_label', '进入上次批次复盘');
->with('warning_link_label', '进入上次批次复盘')
->with('warning_copy_text', $existing)
->with('warning_copy_label', '复制run_id');
}
return $res;
@@ -1789,7 +1791,9 @@ class PlatformOrderController extends Controller
if ($existing !== '' && str_starts_with($existing, 'BMPA')) {
$res = $res
->with('warning_link_href', '/admin/platform-batches/show?type=bmpa&run_id=' . urlencode($existing))
->with('warning_link_label', '进入上次批次复盘');
->with('warning_link_label', '进入上次批次复盘')
->with('warning_copy_text', $existing)
->with('warning_copy_label', '复制run_id');
}
return $res;