增加忽略商品

This commit is contained in:
yml
2026-04-12 16:10:21 +08:00
parent eb5041ea60
commit 4c98b78267
18 changed files with 328 additions and 124 deletions
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { useRoute } from 'vue-router'
import { ElMessage, ElMessageBox } from 'element-plus'
import { showConfirm, showError, showSuccess } from '@/lib/feedback'
import { fetchAdminWebhookEventDetail, replayAdminWebhookEvent } from '@/services/admin'
import AdminStatusTag from '@/components/admin/AdminStatusTag.vue'
import type { AdminWebhookEventDetail, AdminWebhookReplayResponse } from '@/types/admin'
@@ -38,7 +38,7 @@ async function submitReplay() {
}
try {
await ElMessageBox.confirm(
await showConfirm(
`确认重放 webhook #${detail.value.eventId} 吗?这会重新推进订单与任务处理。`,
'确认重放',
{
@@ -56,10 +56,10 @@ async function submitReplay() {
try {
const response = await replayAdminWebhookEvent(detail.value.eventId)
lastReplayResult.value = response.data.result
ElMessage.success(`Webhook 已重放,生成/更新任务 ${response.data.result.taskCount}`)
showSuccess(`Webhook 已重放,生成/更新任务 ${response.data.result.taskCount}`)
await loadDetail()
} catch (error) {
ElMessage.error(error instanceof Error ? error.message : '重放 webhook 失败')
showError(error instanceof Error ? error.message : '重放 webhook 失败')
} finally {
replayLoading.value = false
}