diff --git a/src/api/courseTag.js b/src/api/courseTag.js new file mode 100644 index 00000000..3919fed7 --- /dev/null +++ b/src/api/courseTag.js @@ -0,0 +1,46 @@ +/**课程标签模块的相关处理*/ +// import ajax from '@/utils/xajax.js' +// import http from "@/api/configPublic"; +// import {getCookieForName} from "@/api/method"; +import http from "./config"; + +/** + * 分页查询:标签列表 + * @param obj + */ +// export const portalPageList = (query = {}) => http.get(`/admin/courseTag/list`, {params: query}); +export const portalPageList = (obj) => http.get('/admin/courseTag/list', {params: obj}) + +//改变标签的公共属性 +export const changeTagPublic = (id = {}) => http.post(`/admin/courseTag/changePublicStatus`, id); + +//改变标签的热点属性 +export const changeTagHot = (id = {}) => http.post(`/admin/courseTag/changeHotStatus`, id); + +//查询指定id的标签关联的所有课程 +export const showCourseByTag = (obj = {}) => http.get(`/admin/courseTag/showCourseByTag`, {params: obj}); + + +//解除指定id的课程和某个标签之间的关联关系 +export const unbindCourseTagRelation = (id = {}) => http.post(`/admin/courseTag/unbind`, id); + +//编辑课程:标签模糊查询 +export const searchTags = (params = {}) => http.post(`/admin/courseTag/searchTags`, params); + + +//编辑课程:创建标签(与当前课程关联) +export const createTag = (params = {}) => http.post(`/admin/courseTag/createTag`, params); + +//导出 +export const exportTagFile = (params = {}) => http.get(`/admin/courseTag/exportTag`, params); + +/*export default { + portalPageList, + changeTagPublic, + changeTagHot, + showCourseByTag, + unbindCourseTagRelation, + searchTags, + createTag, + getHotTagList +}*/ diff --git a/src/assets/images/navleft/tag.png b/src/assets/images/navleft/tag.png new file mode 100644 index 00000000..3a7bdb56 Binary files /dev/null and b/src/assets/images/navleft/tag.png differ diff --git a/src/components/BreadCrumb.vue b/src/components/BreadCrumb.vue index d5397b9b..5a5ae1d7 100644 --- a/src/components/BreadCrumb.vue +++ b/src/components/BreadCrumb.vue @@ -893,6 +893,13 @@ } ]; } + if (n.indexOf("/tagmanage") !== -1 || n.indexOf("/download") !== -1) { + state.list = [ + { + name: "标签管理", + }, + ]; + } } ); diff --git a/src/components/NavLeft.vue b/src/components/NavLeft.vue index 2a7cfc10..6c78775a 100644 --- a/src/components/NavLeft.vue +++ b/src/components/NavLeft.vue @@ -564,7 +564,18 @@ 新任管理者培训数据 - + + + + + + 标签管理 + + + @@ -572,13 +583,13 @@ - + 业务支援读书会管理 - + @@ -673,7 +684,7 @@ import { reactive, toRefs, onMounted, onUnmounted, watch } from "vue"; import { useRoute } from "vue-router"; import { useStore } from "vuex"; import { checkMenu, checkOrgs, lecturerRoute } from "@/utils/utils"; -import { reportOrgs } from "@/api/indexProject"; +// import { reportOrgs } from "@/api/indexProject"; export default { name: "NavLeft", setup() { @@ -706,6 +717,7 @@ export default { "sub13", "sub14", "sub15", + "sub16", "sub17", "sub18", "sub19", @@ -1000,6 +1012,12 @@ export default { selectedKeys: "sub15", pagename: "下载中心", }, + { + href: "/tagmanage", + openKeys: "sub16", + selectedKeys: "sub16", + pagename: "标签管理", + }, { href: "/operational", openKeys: "sub17", diff --git a/src/views/tag/PortalTagManage.vue b/src/views/tag/PortalTagManage.vue new file mode 100644 index 00000000..489701fc --- /dev/null +++ b/src/views/tag/PortalTagManage.vue @@ -0,0 +1,390 @@ + + + + + + + + + + + + + + + + + + + + + 查询 + + 重置 + + + + + + + + + + + + + + + + + {{ scope.row.useCount }} + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + {{ scope.$index + 1 }} + + + + + + + + + + + 解绑 + + + + + + + + + + + + + + + + + diff --git a/src/views/tag/TagManage.vue b/src/views/tag/TagManage.vue new file mode 100644 index 00000000..996aefe5 --- /dev/null +++ b/src/views/tag/TagManage.vue @@ -0,0 +1,1523 @@ + + + + + + + + + + + + + + + + + + + 搜索 + + + + 重置 + + + + + 导出 + + + + + + + + + + + + + + {{ record.useCount }} + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ record.courseName }} + + + + + + + + + {{ record.sysCreateBy }} + + + + + + + {{ formatDate(record.sysCreateTime) }} + + + + + + + {{ record.otherTags }} + + + + + + + + handleOper(record)" + type="link" + > + 解绑 + + + + + + + + + + + + + + + + + + + \ No newline at end of file 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 @@ + + + + + + + + + +