diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index c597909b..13ae99a4 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -79,9 +79,12 @@ - - - + + + + + + 公开课 @@ -190,7 +193,12 @@ - + + + + + 公开课 +
@@ -885,6 +893,7 @@ export default { this.$prompt('请输入新章的名称', '添加章', { confirmButtonText: '确定', cancelButtonText: '取消', + customClass:'cusprompt', inputPattern:/^(a-z|A-Z|0-9)*[^$%^&*;:,<>?()\""\']{1,20}$/, inputErrorMessage:'不要超过20个字' }) @@ -1208,7 +1217,7 @@ export default { return; } if(this.weike.dlgShow && !this.unsavedWeiContent()){ - + return; } @@ -1554,4 +1563,16 @@ export default { } } } + + + diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index f21f7d91..ecf1a2ef 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -45,7 +45,7 @@ - 公开课 + 公开课
@@ -340,8 +340,10 @@ export default { topOrder: true, orderAsc: false, pageIndex: 1, // 第几页 - pageSize: 9 //每页多少条 + pageSize: 9 ,//每页多少条 + openCourse:0,//增加的公开课查询 }, + optionsList: [], //分类数据 sceneList: [], //场景 keyword: "", @@ -451,6 +453,9 @@ export default { }, jumOpen(){ //公开课 openCourse=1 + this.course.openCourse=1;// + this.searchTags.push({id:'openCourse',name:'公开课'}) + this.searchData(); }, emitInput(val) { this.course.keyword = val; @@ -556,6 +561,10 @@ export default { this.categorySub = ""; } + if (i === "openCourse") { + this.course.openCourse = 0; + } + this.searchTags.splice(index, 1); if(i === 'type') { @@ -740,6 +749,13 @@ export default { if (i == "type" && courseData[i] === 0) { courseData[i] = "在线课"; } + if (i == "openCourse") { + if(courseData[i] === 0){ + courseData[i] = "0"; + }else{ + courseData[i] = "公开课"; + } + } if (courseData[i] !== "0") { this.searchTags.push({ id: id, @@ -843,7 +859,7 @@ export default {