mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
课程多选查询
This commit is contained in:
@@ -415,6 +415,7 @@ export default {
|
|||||||
},
|
},
|
||||||
course: {
|
course: {
|
||||||
orderField: "studys",
|
orderField: "studys",
|
||||||
|
keywrod:'',//关键词
|
||||||
topOrder: true,
|
topOrder: true,
|
||||||
orderAsc: false,
|
orderAsc: false,
|
||||||
pageIndex: 1, // 第几页
|
pageIndex: 1, // 第几页
|
||||||
@@ -482,7 +483,7 @@ export default {
|
|||||||
|
|
||||||
this.loadSysTypes();
|
this.loadSysTypes();
|
||||||
this.getScoreList();
|
this.getScoreList();
|
||||||
this.getHotList();
|
//this.getHotList();
|
||||||
//查询排行榜,页面打开只查询一次
|
//查询排行榜,页面打开只查询一次
|
||||||
let localKey="user_"+this.userInfo.sysId+"_gids";
|
let localKey="user_"+this.userInfo.sysId+"_gids";
|
||||||
if(this.audiences.length==0){
|
if(this.audiences.length==0){
|
||||||
@@ -508,8 +509,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.searchterm();
|
//this.searchterm();//搜索词已经没有了
|
||||||
this.couresreso();
|
this.couresreso();//广告位
|
||||||
|
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
@@ -840,26 +841,50 @@ export default {
|
|||||||
}
|
}
|
||||||
//console.log(this.userInfo)
|
//console.log(this.userInfo)
|
||||||
//this.course.companyId=this.userInfo.companyId;
|
//this.course.companyId=this.userInfo.companyId;
|
||||||
|
this.course.type = "";//不使用单查询了
|
||||||
this.isFind = true;
|
this.course.types = "";
|
||||||
this.course.type = this.category;
|
|
||||||
if (this.types.sysTypes == 0 || this.types.sysTypes == null) {
|
|
||||||
this.course.sysType1 = "";
|
this.course.sysType1 = "";
|
||||||
this.course.sysType2 = "";
|
this.course.sysType2 = "";
|
||||||
this.course.sysType3 = "";
|
this.course.sysType3 = "";
|
||||||
} else {
|
|
||||||
this.course.sysType1 = this.types.sysTypes;
|
this.stagList.forEach(item=>{
|
||||||
|
if(item.checked){
|
||||||
|
|
||||||
}
|
}
|
||||||
this.course.sysType2 = this.types.subOne;
|
if(item.type==1){
|
||||||
this.course.sysType3 = this.types.subTow;
|
if(that.course.types){ that.course.types+='-'; }
|
||||||
if (this.course.sysType2 == 0) {
|
that.course.types+=item.id;
|
||||||
this.course.sysType2 = "";
|
}else if(item.type==11){
|
||||||
}
|
if(that.course.sysType1){ that.course.sysType1+='-'; }
|
||||||
if (this.course.sysType3 == 0) {
|
that.course.sysType1+=item.id;
|
||||||
this.course.sysType3 = "";
|
}else if(item.type==12){
|
||||||
|
if(that.course.sysType2){ that.course.sysType2+='-'; }
|
||||||
|
that.course.sysType2+=item.id;
|
||||||
|
}else if(item.type==13){
|
||||||
|
if(that.course.sysType3){ that.course.sysType3+='-'; }
|
||||||
|
that.course.sysType3+=item.id;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
this.isFind = true;
|
||||||
|
// this.course.type = this.category;
|
||||||
|
// if (this.types.sysTypes == 0 || this.types.sysTypes == null) {
|
||||||
|
// this.course.sysType1 = "";
|
||||||
|
// this.course.sysType2 = "";
|
||||||
|
// this.course.sysType3 = "";
|
||||||
|
// } else {
|
||||||
|
// this.course.sysType1 = this.types.sysTypes;
|
||||||
|
// }
|
||||||
|
// this.course.sysType2 = this.types.subOne;
|
||||||
|
// this.course.sysType3 = this.types.subTow;
|
||||||
|
// if (this.course.sysType2 == 0) {
|
||||||
|
// this.course.sysType2 = "";
|
||||||
|
// }
|
||||||
|
// if (this.course.sysType3 == 0) {
|
||||||
|
// this.course.sysType3 = "";
|
||||||
|
// }
|
||||||
this.course.device = 1;
|
this.course.device = 1;
|
||||||
this.getTags();
|
//this.getTags();
|
||||||
// if(this.course.pageIndex == 1) {
|
// if(this.course.pageIndex == 1) {
|
||||||
// this.courseList = [];
|
// this.courseList = [];
|
||||||
// }
|
// }
|
||||||
@@ -867,9 +892,7 @@ export default {
|
|||||||
let isTopList = [];
|
let isTopList = [];
|
||||||
// 隐藏loadMore
|
// 隐藏loadMore
|
||||||
this.moreState = 2;
|
this.moreState = 2;
|
||||||
await apiCoursePortal
|
await apiCoursePortal.courseSearch(this.course).then(res => {
|
||||||
.courseSearch(this.course)
|
|
||||||
.then(res => {
|
|
||||||
if (res.status == 200 && res.result.list.length > 0) {
|
if (res.status == 200 && res.result.list.length > 0) {
|
||||||
this.totalPages = res.result.totalPages;
|
this.totalPages = res.result.totalPages;
|
||||||
res.result.list.forEach(item => {
|
res.result.list.forEach(item => {
|
||||||
|
|||||||
Reference in New Issue
Block a user