mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
提交修改
This commit is contained in:
@@ -72,7 +72,7 @@ const contentTypeMaps = {
|
||||
30: '图片',
|
||||
40: '文档',
|
||||
41: '图文',
|
||||
50: 'scrom包',
|
||||
50: 'scorm',
|
||||
52: '外链',
|
||||
60: '作业',
|
||||
61: '考试',
|
||||
@@ -99,6 +99,8 @@ export function toContentType(fileType) {
|
||||
type = 30;
|
||||
} else if (docTypes.indexOf(fileType)>-1){
|
||||
type = 40;
|
||||
} else if(fileType === "zip"){
|
||||
type = 50;
|
||||
} else {
|
||||
type = 90;
|
||||
}
|
||||
|
||||
@@ -684,7 +684,14 @@ export default {
|
||||
}
|
||||
//scorm课件的内容,取第一个sco
|
||||
var scorm=JSON.parse(row.content);
|
||||
console.log(scorm,'scorm')
|
||||
if(scorm.index){
|
||||
//这里需要提取的到配置文件中,实际中只需要传 rowId就可以了
|
||||
this.scormUrl='http://localhost:9083/scorm-player?page='+scorm.index;//播放的首页
|
||||
}else{
|
||||
this.scormUrl='http://localhost:9083/scorm-player?page='+scorm.index;//播放的首页
|
||||
}
|
||||
|
||||
}
|
||||
//console.log(row, 'row');
|
||||
this.coursewareShow = true;
|
||||
|
||||
Reference in New Issue
Block a user