视频调整
This commit is contained in:
parent
2ce601ace9
commit
4e084e301b
@ -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;
|
||||||
|
@ -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 }
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -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: '删除成功',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user