From 54c45a7ed0ba1fbe6097096b485bf477fe41dcb2 Mon Sep 17 00:00:00 2001 From: make Date: Tue, 6 May 2025 16:59:07 +0800 Subject: [PATCH] feat: update --- src/api/config/index.ts | 21 +- src/api/modules/video/fenlei.ts | 6 +- src/api/modules/video/list.ts | 36 +- src/assets/json/authMenuList.json | 39 +- src/views/site/drawer.vue | 71 ++-- src/views/video/chapter/index.vue | 91 ++++ src/views/video/component/chapterDrawer.vue | 229 ++++++++++ src/views/video/components/chapter.vue | 181 ++++++++ src/views/video/drawer.vue | 235 +++++------ src/views/video/fenlei/index.vue | 61 +-- src/views/video/index.vue | 392 ++++++++++++------ src/views/video/setDrawer.vue | 366 ++++++++++++++++ src/views/video/setPfDrawer.vue | 366 ++++++++++++++++ src/views/{video => videoFeedback}/dialog.vue | 0 src/views/videoFeedback/drawer.vue | 339 +++++++++++++-- src/views/videoFeedback/fenlei/index.vue | 103 +++++ src/views/videoFeedback/index.vue | 214 +++++++--- .../{video => videoFeedback}/modifyDrawer.vue | 0 .../{video => videoFeedback}/tagDialog.vue | 0 19 files changed, 2237 insertions(+), 513 deletions(-) create mode 100644 src/views/video/chapter/index.vue create mode 100644 src/views/video/component/chapterDrawer.vue create mode 100644 src/views/video/components/chapter.vue create mode 100644 src/views/video/setDrawer.vue create mode 100644 src/views/video/setPfDrawer.vue rename src/views/{video => videoFeedback}/dialog.vue (100%) create mode 100644 src/views/videoFeedback/fenlei/index.vue rename src/views/{video => videoFeedback}/modifyDrawer.vue (100%) rename src/views/{video => videoFeedback}/tagDialog.vue (100%) diff --git a/src/api/config/index.ts b/src/api/config/index.ts index 15f2569..20f5eae 100644 --- a/src/api/config/index.ts +++ b/src/api/config/index.ts @@ -1,7 +1,7 @@ // 登录 export const loginApiUrl = "/guest/login"; -// 配置 +// 配置 export const getSystemConfigListApiUrl = "/system/config/list"; export const getSystemConfigSaveApiUrl = "/system/config/save"; @@ -23,23 +23,22 @@ export const getSystemUserInfoApiUrl = "/system/user/info"; export const getSystemUserlistApiUrl = "/system/user/list"; // 视频分类 /shipin/fenlei/list?page=1&limit=10&key= -export const getShipinFenleiApiUrl = "/shipin/fenlei/list"; -// 视频列表 /shipin/main/list?page=1&limit=10&key= -export const getShipinMainListApiUrl = "/shipin/main/list"; +export const getVideoCategoryApiUrl = "/video/category/list"; +export const getVideoListApiUrl = "/video/list"; // 视频列表 -批量设置每日推荐视频 -export const getShipinMainMrtjApiUrl = "/shipin/main/mrtj"; -export const getShipinMainVipApiUrl = "/shipin/main/vip"; +export const getVideoSetLevelApiUrl = "/video/level/set"; +export const getVideoSetBoxOfficeApiUrl = "/video/boxoffice/set"; // seo关键词 export const getKeyWordListApiUrl = "/system/keyword/list"; export const getKeyWordSaveApiUrl = "/system/keyword/save"; export const getKeyWordDelApiUrl = "/system/keyword/del"; -// 小说分类 +// 小说分类 export const getXiaoShuoFenleiApiUrl = "/novel/category/list"; -// 小说章节 +// 小说章节 export const getXiaoZhangJieYouApiUrl = "/xiaoshuo/zhangjie/list"; -// 小说列表 +// 小说列表 export const getXiaoShuoMainListApiUrl = "/novel/list"; // 广告分组 /guanggao/main/group/list?page=1&limit=10&key= @@ -67,7 +66,6 @@ export const getGuangGaoMainSaveApiUrl = "/guanggao/main/save"; // 删除广告 /guanggao/main/group/del 传参form-data 参数 gg_id export const getGuangGaoMainDelApiUrl = "/guanggao/main/del"; - // 参数模板列表 export const getTkdargListUrl = "/site/tkdarg/list"; @@ -77,6 +75,3 @@ export const getTemplateListUrl = "/site/template/list"; export const getSubjectFomartGroupList = "/site/subject/fomart/group/list"; // 替换模板列表 export const getSubjectFomartList = "/site/subject/fomart/list"; - - - diff --git a/src/api/modules/video/fenlei.ts b/src/api/modules/video/fenlei.ts index 93c6046..b32f0e0 100644 --- a/src/api/modules/video/fenlei.ts +++ b/src/api/modules/video/fenlei.ts @@ -1,15 +1,15 @@ import { ResPage } from "@/api/interface/index"; import { fenLeiList } from "@/api/interface/video/fenlei"; -import { getShipinFenleiApiUrl } from "@/api/config"; +import { getVideoCategoryApiUrl } from "@/api/config"; import http from "@/api"; /** * @name 视频分类 */ export const getList = (params: fenLeiList.ReqParams) => { - return http.get>(getShipinFenleiApiUrl, params); + return http.get>(getVideoCategoryApiUrl, params); }; export const getAllList = () => { - return http.get>(getShipinFenleiApiUrl, { limit: 1000, page: 1 }); + return http.get>(getVideoCategoryApiUrl, { limit: 1000, page: 1 }); }; diff --git a/src/api/modules/video/list.ts b/src/api/modules/video/list.ts index e078008..33c08f5 100644 --- a/src/api/modules/video/list.ts +++ b/src/api/modules/video/list.ts @@ -1,36 +1,24 @@ import { ResPage, ResultData } from "@/api/interface/index"; import { VideoList } from "@/api/interface/video/list"; -import { VIDEO_PORT } from "@/api/config/servicePort"; -import { getShipinMainListApiUrl, getShipinMainMrtjApiUrl, getShipinMainVipApiUrl } from "@/api/config"; +import { getVideoListApiUrl, getVideoSetLevelApiUrl, getVideoSetBoxOfficeApiUrl } from "@/api/config"; import http from "@/api"; /** * @name 视频列表 */ export const getVideoList = (params: VideoList.ReqParams) => { - return http.get>(getShipinMainListApiUrl, params); + return http.get>(getVideoListApiUrl, params); +}; + +/** + * @name 批量设置视频推荐等级 + */ +export const setLevel = (params: VideoList.delParams) => { + return http.post>(getVideoSetLevelApiUrl, params); }; /** - * @name 设置视频 + * @name 批量设置视频票房 */ -export const saveData = (params: VideoList.saveParams) => { - return http.post>(VIDEO_PORT + `/save`, params); -}; -/** - * @name 批量设置视频 - */ -export const batchData = (params: VideoList.delParams) => { - return http.post>(getShipinMainMrtjApiUrl, params); -}; -/** - * @name 批量设置vip视频 - */ -export const batchVipData = (params: VideoList.delParams) => { - return http.post>(getShipinMainVipApiUrl, params); -}; -/** - * @name 删除视频 - */ -export const deleteItem = (params: VideoList.delParams) => { - return http.post>(VIDEO_PORT + `/del`, params); +export const setBoxOffice = (params: VideoList.delParams) => { + return http.post>(getVideoSetBoxOfficeApiUrl, params); }; diff --git a/src/assets/json/authMenuList.json b/src/assets/json/authMenuList.json index 7bf25ed..f9f2cab 100644 --- a/src/assets/json/authMenuList.json +++ b/src/assets/json/authMenuList.json @@ -421,7 +421,7 @@ "icon": "VideoCameraFilled", "title": "视频管理", "isLink": "", - "isHide": true, + "isHide": false, "isFull": false, "isAffix": false, "isKeepAlive": true @@ -442,21 +442,7 @@ "isKeepAlive": true } }, - { - "path": "/video/nvyou/index", - "name": "videoNvYou", - "component": "/video/nvyou/index", - "meta": { - "an_id": 2307, - "icon": "Files", - "title": "明星列表", - "isLink": "", - "isHide": false, - "isFull": false, - "isAffix": false, - "isKeepAlive": true - } - }, + { "path": "/video/index", "name": "Video", @@ -472,21 +458,7 @@ "isKeepAlive": true } }, - { - "path": "/tag/videoTag/index", - "name": "videoTag", - "component": "/tag/videoTag/index", - "meta": { - "an_id": 2105, - "icon": "Files", - "title": "标签列表", - "isLink": "", - "isHide": true, - "isFull": false, - "isAffix": false, - "isKeepAlive": true - } - }, + { "path": "/searchGroup/index", "name": "searchGroupIndex", @@ -756,7 +728,6 @@ ] }, - { "path": "/feedback", "name": "feedback", @@ -811,7 +782,7 @@ "icon": "CameraFilled", "title": "广告管理", "isLink": "", - "isHide": true, + "isHide": false, "isFull": false, "isAffix": false, "isKeepAlive": true @@ -862,7 +833,7 @@ "isKeepAlive": true } }, - + { "path": "/ad/config", "name": "adConfig", diff --git a/src/views/site/drawer.vue b/src/views/site/drawer.vue index 1ec39a1..408b35a 100644 --- a/src/views/site/drawer.vue +++ b/src/views/site/drawer.vue @@ -10,7 +10,6 @@ :hide-required-asterisk="drawerProps.isView" >
- @@ -44,10 +43,9 @@ - +
- - +
@@ -58,19 +56,17 @@
- + -
- - +
- +
- + - + @@ -131,16 +132,18 @@
- - - + + + -
-
- + - +
diff --git a/src/views/video/setDrawer.vue b/src/views/video/setDrawer.vue new file mode 100644 index 0000000..22b1cd3 --- /dev/null +++ b/src/views/video/setDrawer.vue @@ -0,0 +1,366 @@ + + + + diff --git a/src/views/video/setPfDrawer.vue b/src/views/video/setPfDrawer.vue new file mode 100644 index 0000000..542ee61 --- /dev/null +++ b/src/views/video/setPfDrawer.vue @@ -0,0 +1,366 @@ + + + + diff --git a/src/views/video/dialog.vue b/src/views/videoFeedback/dialog.vue similarity index 100% rename from src/views/video/dialog.vue rename to src/views/videoFeedback/dialog.vue diff --git a/src/views/videoFeedback/drawer.vue b/src/views/videoFeedback/drawer.vue index c32246a..6c31748 100644 --- a/src/views/videoFeedback/drawer.vue +++ b/src/views/videoFeedback/drawer.vue @@ -2,7 +2,7 @@ + @@ -46,11 +49,60 @@ + +
+ diff --git a/src/views/videoFeedback/fenlei/index.vue b/src/views/videoFeedback/fenlei/index.vue new file mode 100644 index 0000000..d8c2b7f --- /dev/null +++ b/src/views/videoFeedback/fenlei/index.vue @@ -0,0 +1,103 @@ + + + diff --git a/src/views/videoFeedback/index.vue b/src/views/videoFeedback/index.vue index 02ed9d4..03eedec 100644 --- a/src/views/videoFeedback/index.vue +++ b/src/views/videoFeedback/index.vue @@ -1,45 +1,93 @@ diff --git a/src/views/video/modifyDrawer.vue b/src/views/videoFeedback/modifyDrawer.vue similarity index 100% rename from src/views/video/modifyDrawer.vue rename to src/views/videoFeedback/modifyDrawer.vue diff --git a/src/views/video/tagDialog.vue b/src/views/videoFeedback/tagDialog.vue similarity index 100% rename from src/views/video/tagDialog.vue rename to src/views/videoFeedback/tagDialog.vue