mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
修改考试控制及scorm课件部分
This commit is contained in:
@@ -277,6 +277,8 @@
|
||||
import {toScore} from '@/utils/tools.js'
|
||||
import apiArticle from '@/api/modules/article.js'
|
||||
import apiBoeCourse from '@/api/boe/course.js'
|
||||
import apiUserGroup from "@/api/modules/usergroup.js";
|
||||
import { mapGetters } from 'vuex'
|
||||
export default{
|
||||
data(){
|
||||
return{
|
||||
@@ -336,9 +338,32 @@
|
||||
this.conType=1;
|
||||
}
|
||||
this.loadSeachWords();
|
||||
if(this.audiences.length==0){
|
||||
//let hasIds;
|
||||
// let hasIds=sessionStorage.getItem(localKey);
|
||||
// if(hasIds && hasIds.length>0){
|
||||
// this.audiences=hasIds.split(",");
|
||||
// this.search();
|
||||
// }else{
|
||||
//console.log(this.userInfo,'this.userInfo')
|
||||
Promise.all([apiBoeCourse.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();
|
||||
})
|
||||
//}
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
|
||||
...mapGetters(['userInfo'])
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.onReachBottom();
|
||||
@@ -553,6 +578,7 @@
|
||||
async loadCourseData(){
|
||||
uni.showLoading({title:'加载中...'});
|
||||
this.course.params.keyword=this.keyword;
|
||||
this.course.params.audiences=this.audiences.join(',');
|
||||
//查询课程
|
||||
let $this=this;
|
||||
let dataList = [];
|
||||
|
||||
Reference in New Issue
Block a user