提交修改

This commit is contained in:
daihh
2022-12-13 15:43:01 +08:00
parent ee94dd6cc0
commit 193eaa3b3b
2 changed files with 12 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ export const cutOrgNamePath = (namePath) => {
newName=names[0]
}
}
// if(names.length>1){
// newName=names[1];
// if(num==2){
@@ -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;
}

View File

@@ -684,7 +684,14 @@ export default {
}
//scorm课件的内容取第一个sco
var scorm=JSON.parse(row.content);
this.scormUrl='http://localhost:9083/scorm-player?page='+scorm.index;//播放的首页
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;