diff --git a/src/api/modules/course.js b/src/api/modules/course.js index 00db854c..197ee0e2 100644 --- a/src/api/modules/course.js +++ b/src/api/modules/course.js @@ -440,6 +440,12 @@ const queryCrowd=function(query){ const ids=function (data){ return ajax.postJson('/xboe/m/course/manage/ids',data); } + +const saveTip = function() { + return ajax.postJson('/xboe/m/course/manage/saveTip'); +} + + export default { saveBase, submitCourse, @@ -482,6 +488,7 @@ export default { exportCourseAudit, exportCourse, queryCrowd, - ids + ids, + saveTip } diff --git a/src/api/modules/courseTag.js b/src/api/modules/courseTag.js new file mode 100644 index 00000000..0368c0d9 --- /dev/null +++ b/src/api/modules/courseTag.js @@ -0,0 +1,64 @@ +/**课程标签模块的相关处理*/ +import ajax from '@/utils/xajax.js' + +/** + * 分页查询:标签列表 + * @param {Object} query + */ +const portalPageList = function(query) { + return ajax.post('/xboe/m/coursetag/page', query); +} + +//改变标签的公共属性 +const changeTagPublic = function (row){ + // 返回 Promise 的 API 调用 + return ajax.post('/xboe/m/coursetag/changePublicStatus', { + id: row.id, + isPublic: row.isPublic + }); +} + +//改变标签的热点属性 +const changeTagHot = function (row){ + // 返回 Promise 的 API 调用 + return ajax.post('/xboe/m/coursetag/changeHotStatus', { + id: row.id, + isHot: row.isHot + }); +} + +//查询指定id的标签关联的所有课程 +const showCourseByTag = function (query){ + return ajax.post('/xboe/m/coursetag/showCourseByTag', query); +} + +//解除指定id的课程和某个标签之间的关联关系 +const unbindCourseTagRelation = function (params){ + return ajax.post('/xboe/m/coursetag/unbind', params); +} + +//编辑课程:标签模糊查询 +const searchTags = function (params){ + return ajax.post('/xboe/m/coursetag/searchTags', params); +} + +//编辑课程:创建标签(与当前课程关联) +const createTag = function (params){ + return ajax.post('/xboe/m/coursetag/createTag', params); +} + +//获取最新前10个热点标签 +const getHotTagList = function (params){ + return ajax.post('/xboe/m/coursetag/getHotTagList', params); +} + +export default { + portalPageList, + changeTagPublic, + changeTagHot, + showCourseByTag, + unbindCourseTagRelation, + searchTags, + createTag, + getHotTagList +} diff --git a/src/assets/images/project/title-bg.png b/src/assets/images/project/title-bg.png new file mode 100644 index 00000000..d754fb01 Binary files /dev/null and b/src/assets/images/project/title-bg.png differ diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index eef5a11f..4dcda9ca 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -5,15 +5,15 @@ -
- - -
+
+ + +
- - + +
@@ -41,6 +41,43 @@ 确定 --> + + +
+
+
+
+
+
+
+
用标签为课程精准定位,吸引更多学员!可从以下维度构思:
+
✨ 讲领域(如:品质管理)
+
✨ 教技能(如:沟通技巧)
+
✨ 涉内容(如:5W1H分析法)
+
+
+ +
+ +
+
+ + + + + @@ -64,19 +101,33 @@ - + + :options="sysTypeListMap" + @focus="onContentTypeFocus" + @change="onContentTypeChange"> + + + + + + + + + + - - 选择 - + + 选择 + @@ -109,11 +160,11 @@ - + - + @@ -141,7 +192,6 @@ PC端可见 移动端可见 多端可见 - 仅内网访问 @@ -151,11 +201,11 @@ + maxlength="255" + show-word-limit + :rows="3" + v-model="courseInfo.summary" + placeholder="请尽量填写课程简介,用于列表中显示,可以让用户更容易了解课程信息"> @@ -219,14 +269,16 @@ - + + :options="sysTypeListMap" + @focus="onContentTypeFocus" + @change="onContentTypeChange"> @@ -254,18 +306,28 @@ --> + + + + + + + + - - {{ tag }} - + + {{ tag }} + - - 选择 - + + 选择 + @@ -273,13 +335,13 @@ - + - + @@ -306,7 +368,6 @@ PC端可见 移动端可见 多端可见 - 仅内网访问 @@ -393,8 +454,8 @@ - - + + 确 定 @@ -404,6 +465,7 @@ + diff --git a/src/components/Course/courseTag.vue b/src/components/Course/courseTag.vue new file mode 100644 index 00000000..b494f4a2 --- /dev/null +++ b/src/components/Course/courseTag.vue @@ -0,0 +1,400 @@ + + + + + diff --git a/src/data/pages.js b/src/data/pages.js index fa49ae36..5ec52049 100644 --- a/src/data/pages.js +++ b/src/data/pages.js @@ -128,7 +128,8 @@ export const iframes=[ {title:'查看受众', path:'/iframe/ugroup/view',hidden:false,component:'manage/AudienceView'}, {title:'问答管理', path:'/iframe/qa/manages',hidden:false,component:'qa/ManageList'}, {title:'待审核课程', path:'/iframe/course/noapproved',hidden:false,component:'examine/NotApproved'}, - {title:'已审核课程', path:'/iframe/course/reviewed',hidden:false,component:'examine/Reviewed'} + {title:'已审核课程', path:'/iframe/course/reviewed',hidden:false,component:'examine/Reviewed'}, + {title:'标签管理', path:'/iframe/tag/manages',hidden:false,component:'tag/TagManageList'}, ] diff --git a/src/views/portal/course/Detail.vue b/src/views/portal/course/Detail.vue index 0b5a3dd1..5fa3e3b2 100644 --- a/src/views/portal/course/Detail.vue +++ b/src/views/portal/course/Detail.vue @@ -30,13 +30,19 @@ + +
+
+ {{ item }} +
+
{{courseInfo.studys}}人学习
-
- {{item}} -
+ + :disabled="!twoList.children.length" :open-delay="0" :close-delay="0" trigger="hover" + :visible-arrow="false" @hide="leaveIndex" @show="changeIndex(twoList.id)" transition="none">
{{ - twoList.name }}
+ twoList.name }}-
@@ -51,8 +51,8 @@
+ :key="threeList.id" @click.stop="handleOptionClick(threeList, 3, twoList.children)" + class="course-three"> {{ threeList.name }}
@@ -62,272 +62,87 @@
- - - - - -
- - +
-