diff --git a/public/ad/dlg(1).png b/public/ad/dlg(1).png new file mode 100644 index 00000000..d43b6186 Binary files /dev/null and b/public/ad/dlg(1).png differ diff --git a/public/ad/dlg.png b/public/ad/dlg.png index d43b6186..76b34f5d 100644 Binary files a/public/ad/dlg.png and b/public/ad/dlg.png differ diff --git a/public/images/foot_center.png b/public/images/foot_center.png index 3911d16c..60e035e0 100644 Binary files a/public/images/foot_center.png and b/public/images/foot_center.png differ diff --git a/src/api/modules/coursePortal.js b/src/api/modules/coursePortal.js index 8e514d9b..c5fc53cc 100644 --- a/src/api/modules/coursePortal.js +++ b/src/api/modules/coursePortal.js @@ -40,8 +40,8 @@ const pageList = function(query) { * 课程的详细信息 * @param {String} id */ -const detail = function(id) { - return ajax.get('/xboe/m/course/portal/detail?id=' + id); +const detail = function(id,preview) { + return ajax.get(`/xboe/m/course/portal/detail?id=${id}&preview=${preview}`); } /** @@ -78,7 +78,9 @@ const getTeacherByCourseIDs = function(ids){ const studyCounts=function(num){ return ajax.get('/xboe/school/study/course/studyCounts?num='+num); } - +const courseSearch=function(query){ + return ajax.post('/xboe/m/course/fulltext/search',query); +} export default { list, pageList, @@ -86,5 +88,6 @@ export default { ranking, scorelist, getTeacherByCourseIDs, - studyCounts + studyCounts, + courseSearch } diff --git a/src/components/Course/auditCourse1.vue b/src/components/Course/auditCourse1.vue index eb354891..277518ef 100644 --- a/src/components/Course/auditCourse1.vue +++ b/src/components/Course/auditCourse1.vue @@ -567,7 +567,7 @@ export default { }, getDetail() { let $this = this; - apiCoursePortal.detail(this.id).then(rs => { + apiCoursePortal.detail(this.id,true).then(rs => { if (rs.status == 200) { this.courseInfo = rs.result.course; this.teacherList = rs.result.teachers; diff --git a/src/components/Course/auditCourse2.vue b/src/components/Course/auditCourse2.vue index 2653c26b..ca0adb87 100644 --- a/src/components/Course/auditCourse2.vue +++ b/src/components/Course/auditCourse2.vue @@ -607,7 +607,7 @@ export default { this.courseInfo.coverImg = ""; }, getDetail() { - apiCoursePortal.detail(this.id).then(rs => { + apiCoursePortal.detail(this.id,true).then(rs => { if (rs.status == 200) { this.courseInfo = rs.result.course; if(rs.result.course.coverImg !== '') { diff --git a/src/components/Course/catalogCourseware.vue b/src/components/Course/catalogCourseware.vue index 06608d91..516c6077 100644 --- a/src/components/Course/catalogCourseware.vue +++ b/src/components/Course/catalogCourseware.vue @@ -326,7 +326,7 @@ import courseHomework from '@/components/Course/courseHomework.vue' import courseExam from '@/components/Course/courseExam.vue' import simplePaper from "@/components/Course/simpleTestPaper.vue"; - import WxEditor from "@/components/Editor/index.vue"; + import WxEditor from "@/components/Editor/indexCourse.vue"; import fileUpload from '@/components/FileUpload/index.vue'; import apiCourse from '../../api/modules/course.js'; import apiCourseFile from '../../api/modules/courseFile.js'; diff --git a/src/components/Course/choice.vue b/src/components/Course/choice.vue index 407e33b9..c85bb1b3 100644 --- a/src/components/Course/choice.vue +++ b/src/components/Course/choice.vue @@ -5,7 +5,18 @@ v-for="(item,index) in teacherValueList" :key="item.teacherId" @close="handleClose(item,index)">{{item.teacherName}} - + + +
+ +
+ @@ -39,7 +50,7 @@ data(){ return { teacherValueList:[], - teacherValues:{}, + teacherValues:'', loading:false, teacherDownList:[], } @@ -60,23 +71,24 @@ if(t) { let isCan = this.teacherValueList.some(it=>it.teacherId == t.teacherId); if(isCan){ - this.teacherValues = {}; + this.teacherValues = ''; this.teacherDownList = []; this.$message.warning('教师重复,请重新选择!') return; } this.teacherValueList.push(t); this.teacherDownList = []; - this.teacherValues = {}; + this.teacherValues = ''; this.$emit('getTeacherList',this.teacherValueList); } }, // 教师列标,远程查询 - async remoteFindTeacher(query) { - if (query) { + async remoteFindTeacher() { + console.log("2222"); + if (this.teacherValues !== '') { this.loading = true; try { - const { result, message, status } = await apiTeacher.findByName(query); + const { result, message, status } = await apiTeacher.findByName(this.teacherValues); this.loading = false; if (status === 200) { let list = []; @@ -104,10 +116,28 @@ diff --git a/src/components/Course/weikeContent.vue b/src/components/Course/weikeContent.vue index f1650329..1bcfd522 100644 --- a/src/components/Course/weikeContent.vue +++ b/src/components/Course/weikeContent.vue @@ -521,7 +521,7 @@ + + diff --git a/src/components/Study/manager.vue b/src/components/Study/manager.vue index 6355b018..06b4ba37 100644 --- a/src/components/Study/manager.vue +++ b/src/components/Study/manager.vue @@ -443,7 +443,7 @@ export default { } }, getDetail() { - apiCoursePortal.detail(this.manageStudyData.id).then(rs => { + apiCoursePortal.detail(this.manageStudyData.id,true).then(rs => { if (rs.status == 200) { let treeList = []; if (rs.result.sections.length > 0) { @@ -523,7 +523,7 @@ export default { }); }, getRecordDetail(id) { - apiCoursePortal.detail(id).then(rs => { + apiCoursePortal.detail(id,true).then(rs => { if (rs.status == 200) { let treeList = []; if (rs.result.sections.length > 0) { diff --git a/src/components/UcHeader/Index.vue b/src/components/UcHeader/Index.vue index 2038af56..427234b6 100644 --- a/src/components/UcHeader/Index.vue +++ b/src/components/UcHeader/Index.vue @@ -81,7 +81,7 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js"; mounted() { this.sex = this.userInfo.sex; // 判断路由是进入的学员默认页面就重置setCurIdentity - if(this.$route.path == '/study/index'){ + if(this.$route.path == '/uc/study/task' || this.$route.path == '/study/index'){ this.setCurIdentity(1); } //let testName='京东方科技集团股份有限公司/北京中祥英科技有限公司/技术中心'; diff --git a/src/components/UserCenter/menu.vue b/src/components/UserCenter/menu.vue index 0e136363..bea85f52 100644 --- a/src/components/UserCenter/menu.vue +++ b/src/components/UserCenter/menu.vue @@ -14,7 +14,7 @@ :default-active="activeMenu" router active-text-color="#00aaff" - :default-openeds="['manageTodo','manageFinish','teacherTodo','teacherFinish','myqa', 'mystudy', 'course', 'exam', 'u001', 'u002', 'u003', 'u004','u009','u008']" + :default-openeds="['manageTodo','manageFinish','teacherTodo','teacherFinish','myqa', 'mystudy', 'course', 'exam', 'u001', 'u002', 'u003', 'u004']" class="el-menu-vertical" @open="handleOpen" @close="handleClose" @@ -93,16 +93,14 @@ 问答管理 - + - +