mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
修改课程传递受众问题
This commit is contained in:
@@ -719,38 +719,38 @@ export default {
|
|||||||
// this.toCourseDetail(item);
|
// this.toCourseDetail(item);
|
||||||
// this.orderChange(id);
|
// this.orderChange(id);
|
||||||
//查询排行榜,页面打开只查询一次
|
//查询排行榜,页面打开只查询一次
|
||||||
// let localKey = "user_" + this.userInfo.sysId + "_gids";
|
let localKey = "user_" + this.userInfo.sysId + "_gids";
|
||||||
// if (this.audiences.length == 0) {
|
if (this.audiences.length == 0) {
|
||||||
// //let hasIds;
|
//let hasIds;
|
||||||
// let hasIds = sessionStorage.getItem(localKey);
|
let hasIds = sessionStorage.getItem(localKey);
|
||||||
// if (hasIds && hasIds.length > 0) {
|
if (hasIds && hasIds.length > 0) {
|
||||||
// this.audiences = hasIds.split(",");
|
this.audiences = hasIds.split(",");
|
||||||
// this.search();
|
this.search();
|
||||||
// } else {
|
} else {
|
||||||
// apiUserbasic.getInAudienceIds().then(rs => {
|
apiUserbasic.getInAudienceIds().then(rs => {
|
||||||
// if (rs.status == 200) {
|
if (rs.status == 200) {
|
||||||
// this.audiences = rs.result;
|
this.audiences = rs.result;
|
||||||
|
sessionStorage.setItem(localKey, this.audiences);
|
||||||
|
} else {
|
||||||
|
console.log(rs.message);
|
||||||
|
}
|
||||||
|
this.search();
|
||||||
|
})
|
||||||
|
// Promise.all([apiOldCourse.audience(this.userInfo.sysId),apiUserGroup.userGroupIds()]).then(rs=>{
|
||||||
|
// //console.log(rs,'rs');
|
||||||
|
// let aids=[];
|
||||||
|
// if(rs[0].status==200){
|
||||||
|
// aids.push(rs[0].result);
|
||||||
|
// }
|
||||||
|
// if(rs[1].status==200){
|
||||||
|
// aids.push(rs[1].result);
|
||||||
|
// }
|
||||||
|
// this.audiences=aids;
|
||||||
// sessionStorage.setItem(localKey,this.audiences);
|
// sessionStorage.setItem(localKey,this.audiences);
|
||||||
// } else {
|
// this.search();
|
||||||
// console.log(rs.message);
|
|
||||||
// }
|
|
||||||
// // this.search();
|
|
||||||
// })
|
// })
|
||||||
// // Promise.all([apiOldCourse.audience(this.userInfo.sysId),apiUserGroup.userGroupIds()]).then(rs=>{
|
}
|
||||||
// // //console.log(rs,'rs');
|
}
|
||||||
// // let aids=[];
|
|
||||||
// // if(rs[0].status==200){
|
|
||||||
// // aids.push(rs[0].result);
|
|
||||||
// // }
|
|
||||||
// // if(rs[1].status==200){
|
|
||||||
// // aids.push(rs[1].result);
|
|
||||||
// // }
|
|
||||||
// // this.audiences=aids;
|
|
||||||
// // sessionStorage.setItem(localKey,this.audiences);
|
|
||||||
// // this.search();
|
|
||||||
// // })
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
//this.searchterm();//搜索词已经没有了
|
//this.searchterm();//搜索词已经没有了
|
||||||
this.couresreso();//广告位
|
this.couresreso();//广告位
|
||||||
@@ -1084,7 +1084,7 @@ export default {
|
|||||||
|
|
||||||
});
|
});
|
||||||
this.loadLocalFilters();
|
this.loadLocalFilters();
|
||||||
this.search()
|
// this.search()
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|||||||
Reference in New Issue
Block a user