From 4e084e301bcd6674775d4cf1fb903fdb027ce8ea Mon Sep 17 00:00:00 2001 From: BabyBoy <2019108827@qq.com> Date: Mon, 29 Sep 2025 17:05:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/contentCenter/types.ts | 1 + src/api/workflow/category/index.ts | 5 +++-- src/views/contentManage/video/index.vue | 10 ++++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/api/contentCenter/types.ts b/src/api/contentCenter/types.ts index 45b0744..1e952cb 100644 --- a/src/api/contentCenter/types.ts +++ b/src/api/contentCenter/types.ts @@ -69,6 +69,7 @@ export interface CategoryVO { /** * 流程分类ID */ + id: number | string; url: string; categoryId: string | number; mediaUrl: string; diff --git a/src/api/workflow/category/index.ts b/src/api/workflow/category/index.ts index 02c48c7..58d90af 100644 --- a/src/api/workflow/category/index.ts +++ b/src/api/workflow/category/index.ts @@ -31,8 +31,9 @@ export const listCategory = (query?: CategoryQuery): AxiosPromise */ export const updateaudit = (data?: Formaget) => { return request({ - url: `/cms/video/audit?vlogId=${data.vlogId}&reason=${data.reason}&status=${data.status}`, - method: 'post' + url: `/cms/vlog/changeVlogStatus`, + method: 'post', + data: { vlogId: data.vlogId, status: data.status, reason: data.reason } }); }; /** diff --git a/src/views/contentManage/video/index.vue b/src/views/contentManage/video/index.vue index 81c5da3..9e4a1df 100644 --- a/src/views/contentManage/video/index.vue +++ b/src/views/contentManage/video/index.vue @@ -55,7 +55,7 @@ :default-expand-all="isExpandAll" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" > - + @@ -164,13 +164,14 @@ const dateRange = ref([]); const submitRefute = async () => { // 这里可以添加提交反驳原因的逻辑,例如调用 API console.log('提交的反驳原因:', refuteReason.value); - const data: Formaget = { vlogId: object.value.fileId, status: 2, reason: refuteReason.value }; + const data: Formaget = { vlogId: object.value.id, status: 2, reason: refuteReason.value }; const res = await updateaudit(data); if (res.code === 200) { ElMessage({ message: '操作成功', type: 'success' }); + getList(); showRefuteDialog.value = false; cancel(); refuteReason.value = ''; @@ -314,7 +315,7 @@ const submitForm = () => { type: 'warning' }) .then(async () => { - const data: Formaget = { vlogId: object.value.fileId, status: 1, reason: refuteReason.value }; + const data: Formaget = { vlogId: object.value.id, status: 1, reason: refuteReason.value }; const res = await updateaudit(data); if (res.code == 200) { ElMessage({ @@ -324,6 +325,7 @@ const submitForm = () => { dialog.visible = false; getList(); } else { + getList(); ElMessage({ message: res.msg, type: 'error' @@ -343,7 +345,7 @@ const handleDelete = async (row: CategoryVO) => { cancelButtonText: '取消', type: 'warning' }).then(async () => { - const res = await updateaforbid(row.fileId); + const res = await updateaforbid(row.id); if (res.code == 200) { ElMessage({ message: '删除成功',