From 986c1871566d3f8f0e08f3d2ac775483dfc5ee81 Mon Sep 17 00:00:00 2001 From: wangxiaogang <1433729587@qq.com> Date: Mon, 8 Jun 2026 17:03:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BF=BD=E7=95=A5=E5=8F=8D=E9=A6=88?= =?UTF-8?q?=E4=B9=9F=E6=94=AF=E6=8C=81=E5=9B=9E=E5=A4=8D=20=E2=80=94=20?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=A0=87=E8=AE=B0=E5=A4=84=E7=90=86/?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=E7=9A=84=E5=9B=9E=E5=A4=8D=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/pages/admin/feedback.vue | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) 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) {