视频调整
This commit is contained in:
parent
2ce601ace9
commit
4e084e301b
@ -69,6 +69,7 @@ export interface CategoryVO {
|
||||
/**
|
||||
* 流程分类ID
|
||||
*/
|
||||
id: number | string;
|
||||
url: string;
|
||||
categoryId: string | number;
|
||||
mediaUrl: string;
|
||||
|
@ -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 }
|
||||
});
|
||||
};
|
||||
/**
|
||||
|
@ -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: '删除成功',
|
||||
|
Loading…
x
Reference in New Issue
Block a user