From a02c8656c6ff09ec900c5403a456a842be0adb0c Mon Sep 17 00:00:00 2001 From: helen Date: Fri, 27 Dec 2024 15:54:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E7=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/report/index.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/manage/report/index.vue b/src/views/manage/report/index.vue index 7ae849b..73ebc9b 100644 --- a/src/views/manage/report/index.vue +++ b/src/views/manage/report/index.vue @@ -293,7 +293,7 @@ const handleUpdate = async (row?: BannedVO) => { reset(); const _id = row?.id || ids.value[0]; // const res = await getBanned(_id); - // Object.assign(form.value, res.data); + Object.assign(form.value,row); dialog.visible = true; dialog.title = `封禁【${row.nickName}】`; }; @@ -303,12 +303,13 @@ const submitForm = () => { bannedFormRef.value?.validate(async (valid: boolean) => { const arr = { ...form.value, + id: form.value.reportUserId, type: queryParams.value.type, - message: 0 - } + deleteType: 0 + }; if (valid) { buttonLoading.value = true; - await updatemanage(form.value).finally(() => (buttonLoading.value = false)); + await updatemanage(arr).finally(() => (buttonLoading.value = false)); proxy?.$modal.msgSuccess('操作成功'); dialog.visible = false; await getList(); @@ -321,10 +322,11 @@ const handleDelete = async (row?: BannedVO) => { const _ids = row?.contentId; const _idsname = row?.contentName; const arr = { - id: row?.contentId, + id: row?.id, + contentId: row?.contentId, type: queryParams.value.type, handlingStatus: 1, - message: 1 + deleteType: 1 }; const text = queryParams.value.type == 1 ? '笔记名称为“' : queryParams.value.type == 2 ? '活动名称为“' : '评论内容为“'; await proxy?.$modal.confirm('是否确认删除' + text + _idsname + '"的数据项?').finally(() => (loading.value = false));