修改考试控制及scorm课件部分

This commit is contained in:
daihh
2023-01-03 18:18:26 +08:00
parent e404e980a5
commit 3af2d10631
6 changed files with 93 additions and 7 deletions

View File

@@ -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 = [];