mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
增加公开课的查询
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
<svg-icon icon-class="hot" style="font-size:22px"></svg-icon>
|
||||
</span>
|
||||
</span>
|
||||
<span @click="jumOpen()" class="Uxtext" style="margin-left: 30px;"> 公开课
|
||||
<span @click="jumOpen()" class="Uxtext" style="margin-left: 30px;" :style="{'color': course.openCourse==1? '#387DF7':''}"> 公开课
|
||||
</span>
|
||||
</div>
|
||||
<div class="search-item-sub" v-if="types.oneSubList.length != 0">
|
||||
@@ -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 {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
|
||||
.course-type-left {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
|
||||
Reference in New Issue
Block a user