视频调整

This commit is contained in:
BabyBoy 2025-09-29 17:05:17 +08:00
parent 2ce601ace9
commit 4e084e301b
3 changed files with 10 additions and 6 deletions

View File

@ -69,6 +69,7 @@ export interface CategoryVO {
/** /**
* ID * ID
*/ */
id: number | string;
url: string; url: string;
categoryId: string | number; categoryId: string | number;
mediaUrl: string; mediaUrl: string;

View File

@ -31,8 +31,9 @@ export const listCategory = (query?: CategoryQuery): AxiosPromise<CategoryVO[]>
*/ */
export const updateaudit = (data?: Formaget) => { export const updateaudit = (data?: Formaget) => {
return request({ return request({
url: `/cms/video/audit?vlogId=${data.vlogId}&reason=${data.reason}&status=${data.status}`, url: `/cms/vlog/changeVlogStatus`,
method: 'post' method: 'post',
data: { vlogId: data.vlogId, status: data.status, reason: data.reason }
}); });
}; };
/** /**

View File

@ -55,7 +55,7 @@
:default-expand-all="isExpandAll" :default-expand-all="isExpandAll"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
> >
<!-- <el-table-column label="视频id" prop="fileId" align="center" width="100" /> --> <!-- <el-table-column label="视频id" prop="id" align="center" width="100" /> -->
<el-table-column label="名称" prop="nickname" align="center" width="130" /> <el-table-column label="名称" prop="nickname" align="center" width="130" />
<el-table-column label="手机号" prop="phone" align="center" width="100" /> <el-table-column label="手机号" prop="phone" align="center" width="100" />
<el-table-column label="审核状态" prop="status" align="center" width="100"> <el-table-column label="审核状态" prop="status" align="center" width="100">
@ -164,13 +164,14 @@ const dateRange = ref([]);
const submitRefute = async () => { const submitRefute = async () => {
// API // API
console.log('提交的反驳原因:', refuteReason.value); 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); const res = await updateaudit(data);
if (res.code === 200) { if (res.code === 200) {
ElMessage({ ElMessage({
message: '操作成功', message: '操作成功',
type: 'success' type: 'success'
}); });
getList();
showRefuteDialog.value = false; showRefuteDialog.value = false;
cancel(); cancel();
refuteReason.value = ''; refuteReason.value = '';
@ -314,7 +315,7 @@ const submitForm = () => {
type: 'warning' type: 'warning'
}) })
.then(async () => { .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); const res = await updateaudit(data);
if (res.code == 200) { if (res.code == 200) {
ElMessage({ ElMessage({
@ -324,6 +325,7 @@ const submitForm = () => {
dialog.visible = false; dialog.visible = false;
getList(); getList();
} else { } else {
getList();
ElMessage({ ElMessage({
message: res.msg, message: res.msg,
type: 'error' type: 'error'
@ -343,7 +345,7 @@ const handleDelete = async (row: CategoryVO) => {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(async () => { }).then(async () => {
const res = await updateaforbid(row.fileId); const res = await updateaforbid(row.id);
if (res.code == 200) { if (res.code == 200) {
ElMessage({ ElMessage({
message: '删除成功', message: '删除成功',