修改课程传递受众问题

This commit is contained in:
NiSen
2023-10-19 14:37:02 +08:00
parent b05aae3d83
commit 7d3f3f1483

View File

@@ -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); sessionStorage.setItem(localKey, this.audiences);
// } else { } else {
// console.log(rs.message); console.log(rs.message);
// } }
// // this.search(); this.search();
// }) })
// // Promise.all([apiOldCourse.audience(this.userInfo.sysId),apiUserGroup.userGroupIds()]).then(rs=>{ // Promise.all([apiOldCourse.audience(this.userInfo.sysId),apiUserGroup.userGroupIds()]).then(rs=>{
// // //console.log(rs,'rs'); // //console.log(rs,'rs');
// // let aids=[]; // let aids=[];
// // if(rs[0].status==200){ // if(rs[0].status==200){
// // aids.push(rs[0].result); // aids.push(rs[0].result);
// // } // }
// // if(rs[1].status==200){ // if(rs[1].status==200){
// // aids.push(rs[1].result); // aids.push(rs[1].result);
// // } // }
// // this.audiences=aids; // this.audiences=aids;
// // sessionStorage.setItem(localKey,this.audiences); // sessionStorage.setItem(localKey,this.audiences);
// // this.search(); // 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);