视频调整

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: number | string;
url: string;
categoryId: string | number;
mediaUrl: string;

View File

@ -31,8 +31,9 @@ export const listCategory = (query?: CategoryQuery): AxiosPromise<CategoryVO[]>
*/
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 }
});
};
/**

View File

@ -55,7 +55,7 @@
:default-expand-all="isExpandAll"
: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="phone" align="center" width="100" />
<el-table-column label="审核状态" prop="status" align="center" width="100">
@ -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: '删除成功',