From 8e72e839595fa5bf01d9579335ce09e3564865e8 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Fri, 24 Oct 2025 14:31:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=A0=87=E7=AD=BE=E5=B5=8C?= =?UTF-8?q?=E5=A5=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/courseTag.js | 49 ++++ src/views/tag/TagManage.vue | 421 +++++++++++++++++++++++++++++++---- src/views/tag/TagManage1.vue | 52 +++++ 3 files changed, 480 insertions(+), 42 deletions(-) create mode 100644 src/api/courseTag.js create mode 100644 src/views/tag/TagManage1.vue diff --git a/src/api/courseTag.js b/src/api/courseTag.js new file mode 100644 index 00000000..eaccc708 --- /dev/null +++ b/src/api/courseTag.js @@ -0,0 +1,49 @@ +/**课程标签模块的相关处理*/ +import ajax from '@/utils/xajax.js' +import http from "@/api/configPublic"; + +/** + * 分页查询:标签列表 + * @param {Object} query + */ +const portalPageList = (query = {}) => http.post(`/systemapi/xboe/m/coursetag/page`, query); + +//改变标签的公共属性 +const changeTagPublic = (row = {}) => http.post(`/systemapi/xboe/m/coursetag/changePublicStatus`, { + id: row.id, + isPublic: row.isPublic +}); + +//改变标签的热点属性 +const changeTagHot = (row = {}) => http.post(`/systemapi/xboe/m/coursetag/changeHotStatus`, { + id: row.id, + isPublic: row.isHot +}); + +//查询指定id的标签关联的所有课程 +const showCourseByTag = (query = {}) => http.post(`/systemapi/xboe/m/coursetag/showCourseByTag`, query); + + +//解除指定id的课程和某个标签之间的关联关系 +const unbindCourseTagRelation = (params = {}) => http.post(`/systemapi/xboe/m/coursetag/unbind`, params); + +//编辑课程:标签模糊查询 +const searchTags = (params = {}) => http.post(`/systemapi/xboe/m/coursetag/searchTags`, params); + + +//编辑课程:创建标签(与当前课程关联) +const createTag = (params = {}) => http.post(`/systemapi/xboe/m/coursetag/createTag`, params); + +//获取最新前10个热点标签 +const getHotTagList = (params = {}) => http.post(`/systemapi/xboe/m/coursetag/getHotTagList`, params); + +export default { + portalPageList, + changeTagPublic, + changeTagHot, + showCourseByTag, + unbindCourseTagRelation, + searchTags, + createTag, + getHotTagList +} diff --git a/src/views/tag/TagManage.vue b/src/views/tag/TagManage.vue index 0f44a8fe..e2b3a542 100644 --- a/src/views/tag/TagManage.vue +++ b/src/views/tag/TagManage.vue @@ -1,52 +1,389 @@ - - - + - diff --git a/src/views/tag/TagManage1.vue b/src/views/tag/TagManage1.vue new file mode 100644 index 00000000..0f44a8fe --- /dev/null +++ b/src/views/tag/TagManage1.vue @@ -0,0 +1,52 @@ + + + + + +