From 7c2d364492d9df68eab38e0ce4bcfbd7ffa1610c Mon Sep 17 00:00:00 2001 From: BabyBoy <2019108827@qq.com> Date: Fri, 13 Jun 2025 17:22:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=92=8C=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/contentCenter/types.ts | 101 +++++- src/api/workflow/category/index.ts | 48 ++- src/api/workflow/category/types.ts | 35 +- src/router/index.ts | 12 + src/views/contentManage/video/index.vue | 164 ++++----- .../contentManage/videocomment/index.vue | 323 ++++++++++++++++++ .../contentManage/videodetails/index.vue | 82 +---- src/views/ums/member/index.vue | 2 +- src/views/ums/memberCart/index.vue | 2 +- src/views/ums/memberLogininfor/index.vue | 2 +- 10 files changed, 596 insertions(+), 175 deletions(-) create mode 100644 src/views/contentManage/videocomment/index.vue diff --git a/src/api/contentCenter/types.ts b/src/api/contentCenter/types.ts index 3b1c699..957786e 100644 --- a/src/api/contentCenter/types.ts +++ b/src/api/contentCenter/types.ts @@ -19,6 +19,19 @@ export interface fansListVO { nickname: string; } +export interface QueryParamOV { + current: number; + size: number; + vlogId: number | string; + mobile: number | string; +} + +export interface QueryChildOV { + current: number; + size: number; + fatherCommentId: number | string; +} + export interface CommentsVO { comment_user_id: string; content: string; @@ -31,10 +44,25 @@ export interface CommentsVO { vlog_id: string; vloger_id: string; } +export interface LomgChildOV { + commentId: string; + commentUserId: string; + content: string; + createTime: string; + fatherCommentId: string; + id: string; + replyUserFace: string; + replyUserNickname: string; + replyedUserNickname: string; + vlogId: string; + likeCounts: string | number; + status: number; +} + export interface likeVO { face: string; nickname: string; - create_time: string; + created_time: string; } export interface CategoryVO { @@ -57,11 +85,15 @@ export interface CategoryVO { classPath: string; name: string; category: string; - fileId: string; + file_id: string; status: string; commentCounts: number; likeCounts: number; fansCounts: number; + reason: string; + /** + * 流程分类名称 + */ } export interface CategoryForm extends BaseEntity { @@ -89,10 +121,6 @@ export interface CategoryForm extends BaseEntity { } export interface CategoryQuery { - /** - * 流程分类名称 - */ - categoryName?: string; /** * 当前页 */ @@ -104,4 +132,65 @@ export interface CategoryQuery { * 查看详情id */ memberId?: string; + /** + * 查询手机号 + */ + mobile?: number; + /** + * 开始时间 + */ + startTime?: string; + /** + * 结束时间 + */ + endTime?: string; + /** + * 视频审核状态 + */ + status?: string; + /** + * 视频id + */ + vlogId?: string; + /** + *根据谁排序 + * **/ + column?: number; + /** + *排序方式 + * **/ + asc: string; +} + +export interface LomglistVO { + //评论状态 + status: number; + vlogUrl: string; + // 评论ID,字符串类型 + commentId?: string; + // 评论用户头像URL,字符串类型 + commentUserFace?: string; + // 评论用户ID,字符串类型 + commentUserId?: string; + // 评论用户昵称,字符串类型 + commentUserNickname?: string; + // 评论内容,字符串类型 + content?: string; + // 创建时间,字符串类型,可考虑转换为 Date 类型 + createTime?: string; + // 父评论ID,字符串类型 + fatherCommentId?: string; + // ID,字符串类型 + id?: string; + // 是否点赞,数字类型,可作为布尔值或整数 + isLike?: number; + // 点赞数,数字类型 + likeCounts?: number; + // 被回复用户昵称,可能为空,类型为 string 或 null + replyedUserNickname?: string | null; + // 视频日志ID,字符串类型 + vlogId?: string; + // 视频博主ID,字符串类型 + + vlogerMobile?: string | number; } diff --git a/src/api/workflow/category/index.ts b/src/api/workflow/category/index.ts index 1517701..89d26e0 100644 --- a/src/api/workflow/category/index.ts +++ b/src/api/workflow/category/index.ts @@ -1,10 +1,16 @@ -import { CategoryForm, CategoryQuery, CategoryTreeVO, CategoryVO, Formaget } from '@/api/workflow/category/types'; +import { CategoryForm, CategoryQuery, CategoryTreeVO, CategoryVO, Formaget, QueryChildOV, QueryParamOV } from '@/api/workflow/category/types'; import { AxiosPromise } from 'axios'; import request from '@/utils/request'; +export interface QueryChildOV { + current: number; + size: number; + fatherCommentId: number | string; +} + /** - * 查询流程分类列表 + * 视频列表 * @param query * @returns {*} */ @@ -13,8 +19,8 @@ export const listCategory = (query?: CategoryQuery): AxiosPromise return request({ // url: '/workflow/category/list',old url: '/admin/vlog/upload/list', - method: 'get', - params: query + method: 'post', + data: query }); }; /** @@ -29,6 +35,30 @@ export const updateaudit = (data?: Formaget) => { method: 'post' }); }; +/** + * 视频评论列表 + * @param vlogId 视频id + * @param mobile 手机号 + */ +export const getcommentlist = (data?: QueryParamOV) => { + return request({ + url: `/admin/comment/list`, + method: 'post', + data + }); +}; +/** + * 视频评论列表 +// * @param vlogId 视频id +// * @param reason 反驳理由 +// * @param status 状态1:通过 2:反驳 + */ +export const getchildList = (data?: QueryChildOV) => { + return request({ + url: `/admin/comment/childList?fatherCommentId=${data.fatherCommentId}¤t=${data.current}&size=${data.size}`, + method: 'get' + }); +}; /** * 获取去视频详情 * @param vlogId 视频id @@ -49,6 +79,16 @@ export const deldetail = (data?: string) => { method: 'post' }); }; +/** + * 上下架评论 + * @param id 评论id + */ +export const deloffline = (data?: string) => { + return request({ + url: `admin/comment/offline?commentId=${data}`, + method: 'post' + }); +}; /** * 视频通过和反驳 diff --git a/src/api/workflow/category/types.ts b/src/api/workflow/category/types.ts index 424b06a..9355cf2 100644 --- a/src/api/workflow/category/types.ts +++ b/src/api/workflow/category/types.ts @@ -5,12 +5,22 @@ export interface CategoryTreeVO { weight: number; children: CategoryTreeVO[]; } +export interface QueryChildOV { + current: number; + size: number; + fatherCommentId: number | string; +} export interface Formaget { vlogId: number | string; reason: string; status: number; } - +export interface QueryParamOV { + current: number; + size: number; + vlogId: number | string; + mobile: number | string; +} export interface CategoryVO { /** * 流程分类ID @@ -67,7 +77,26 @@ export interface CategoryForm extends BaseEntity { export interface CategoryQuery { /** - * 流程分类名称 + * 当前页 */ - categoryName?: string; + current?: number /** + * 每页页数 + */; + size?: number; + /** + * 查看详情id + */ + memberId?: string; + /** + * 查询手机号 + */ + mobile?: number; + /** + * 开始时间 + */ + publishTimestart?: string; + /** + * 结束时间 + */ + publishTimeEnd?: string; } diff --git a/src/router/index.ts b/src/router/index.ts index df3e8a3..a2e70ee 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -220,6 +220,18 @@ export const dynamicRoutes: RouteRecordRaw[] = [ hidden: true, permissions: ['system:user:edit'], children: [ + { + path: 'video', + component: () => import('@/views/contentManage/video/index.vue'), + name: 'video', + meta: { title: '视频列表', icon: 'dashboard', affix: true } + }, + { + path: 'videocomment', + component: () => import('@/views/contentManage/videocomment/index.vue'), + name: 'videocomment', + meta: { title: '视频评论', icon: 'dashboard', affix: true } + }, { path: 'detail', component: () => import('@/views/contentManage/videodetails/index.vue'), diff --git a/src/views/contentManage/video/index.vue b/src/views/contentManage/video/index.vue index 782ea5d..982f728 100644 --- a/src/views/contentManage/video/index.vue +++ b/src/views/contentManage/video/index.vue @@ -3,35 +3,49 @@ - - - + + + + + + + + + - - - - +