diff --git a/client/src/pages/admin/feedback.vue b/client/src/pages/admin/feedback.vue index 8231834..1135490 100644 --- a/client/src/pages/admin/feedback.vue +++ b/client/src/pages/admin/feedback.vue @@ -55,7 +55,7 @@ 标记处理 - + 忽略 @@ -82,7 +82,7 @@ - 回复反馈 + {{ replyAction === 'processed' ? '标记处理' : '忽略反馈' }} × @@ -101,13 +101,14 @@ /> - - 仅标记处理 + + {{ replyAction === 'processed' ? '仅标记处理' : '仅忽略' }} - - 回复并处理 + + {{ replyAction === 'processed' ? '回复并处理' : '回复并忽略' }} + @@ -147,6 +148,7 @@ const initialLoaded = ref(false) // 回复弹窗 const showReplyModal = ref(false) const replyTarget = ref(null) +const replyAction = ref<'processed' | 'ignored'>('processed') const replyText = ref('') const noMore = computed(() => list.value.length >= total.value && total.value > 0) @@ -199,20 +201,21 @@ function loadMore() { loadList(false) } -function openReplyModal(item: Feedback) { +function openReplyModal(item: Feedback, action: 'processed' | 'ignored' = 'processed') { replyTarget.value = item + replyAction.value = action replyText.value = '' showReplyModal.value = true } -async function handleProcessSkipReply() { +async function handleSkipReply() { if (!replyTarget.value) return - await doUpdateStatus(replyTarget.value, 'processed') + await doUpdateStatus(replyTarget.value, replyAction.value) } -async function handleProcessWithReply() { +async function handleWithReply() { if (!replyTarget.value) return - await doUpdateStatus(replyTarget.value, 'processed', replyText.value.trim() || undefined) + await doUpdateStatus(replyTarget.value, replyAction.value, replyText.value.trim() || undefined) } async function doUpdateStatus(item: Feedback, status: string, admin_reply?: string) {