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