|
|
|
@ -35,10 +35,14 @@ export class AnalysisOfTheHostComponent implements OnInit {
|
|
|
|
|
params: params |
|
|
|
|
}).subscribe((data: any) => { |
|
|
|
|
this.totalCount = data.totalCount |
|
|
|
|
console.log(data.items) |
|
|
|
|
data.items.forEach(element => { |
|
|
|
|
element.key = element.id |
|
|
|
|
element.title = element.name |
|
|
|
|
element.selectable = false |
|
|
|
|
if (element.isGasStation) { |
|
|
|
|
element.isLeaf = true |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.nodes = [...this.toTree.toTree(data.items)] |
|
|
|
|
this.defaultExpandedKeys = [this.nodes[0].id] |
|
|
|
@ -185,7 +189,7 @@ export class AnalysisOfTheHostComponent implements OnInit {
|
|
|
|
|
}; |
|
|
|
|
this.http.get(`/api/EdgeDevices/IdentityDigest/File`, httpOptions).subscribe({ |
|
|
|
|
next: (data: any) => { |
|
|
|
|
console.log('文件',data) |
|
|
|
|
console.log('文件', data) |
|
|
|
|
// 文件名中有中文 则对文件名进行转码
|
|
|
|
|
const link = document.createElement('a'); |
|
|
|
|
const blob = new Blob([data], { type: 'application/octet-stream' }); |
|
|
|
|