|
|
|
@ -94,7 +94,19 @@ export class AllFileComponent {
|
|
|
|
|
this.aHrefUnsafe = this.sanitizer.bypassSecurityTrustUrl(aHref); |
|
|
|
|
return this.aHrefUnsafe |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
aHrefUnsafeLearnFun2(){ |
|
|
|
|
this.roleType = sessionStorage.getItem('roleType') |
|
|
|
|
let username = sessionStorage.getItem('username') |
|
|
|
|
let expires = sessionStorage.getItem('expires') |
|
|
|
|
let realName = sessionStorage.getItem('realName') |
|
|
|
|
let roleType = sessionStorage.getItem('roleType') |
|
|
|
|
let token = sessionStorage.getItem('token') |
|
|
|
|
let refreshToken = sessionStorage.getItem('refreshToken') |
|
|
|
|
let userId = sessionStorage.getItem('userId') |
|
|
|
|
let aHref = `ax2://startup?username=${username}&token=${token}&refreshToken=${refreshToken}&expires=${expires}&realname=${realName}&roleType=${roleType}&userId=${userId}` |
|
|
|
|
this.aHrefUnsafe = this.sanitizer.bypassSecurityTrustUrl(aHref); |
|
|
|
|
return this.aHrefUnsafe |
|
|
|
|
} |
|
|
|
|
//获得当前资料库的文件列表
|
|
|
|
|
getALLFileList(name){ |
|
|
|
|
this.selectedDataBank = name |
|
|
|
@ -434,6 +446,11 @@ export class AllFileComponent {
|
|
|
|
|
let key = `allFiles/${this.selectedDataBank}/战术学习/` |
|
|
|
|
this.downloadFile.handleData(key,"进入") |
|
|
|
|
} |
|
|
|
|
//记录多角色推演
|
|
|
|
|
openmultirole(){ |
|
|
|
|
let key = `allFiles/${this.selectedDataBank}/多角色推演/` |
|
|
|
|
this.downloadFile.handleData(key,"进入") |
|
|
|
|
} |
|
|
|
|
//返回上一级目录
|
|
|
|
|
backTominTop(){ |
|
|
|
|
let topnum = this.gettoplist(this.selectedDataBank) |
|
|
|
@ -934,7 +951,6 @@ export class AllFileComponent {
|
|
|
|
|
this.snackBar.open('文件夹不支持下载','确定',config) |
|
|
|
|
}else{ |
|
|
|
|
this.http.get('/api/ObjectMetadata/drives/' + this.selectDownloadFile.key).subscribe(data=>{ |
|
|
|
|
// console.log(123,data)
|
|
|
|
|
this.download = data |
|
|
|
|
this.downloadFile.download(this.download) |
|
|
|
|
}) |
|
|
|
|