|
|
|
@ -251,7 +251,7 @@ export class HostConfigComponent implements OnInit {
|
|
|
|
|
label(item) { |
|
|
|
|
this.http.get(`/api/EdgeDevices/${this.hostId}`).subscribe({ |
|
|
|
|
next: (data: any) => { |
|
|
|
|
if (this.hostType == '交大') { |
|
|
|
|
if (this.hostType == '警旗1') { |
|
|
|
|
if (data.configFiles) { |
|
|
|
|
this.isSourceYaml = true; |
|
|
|
|
const element = document.documentElement; |
|
|
|
@ -283,7 +283,7 @@ export class HostConfigComponent implements OnInit {
|
|
|
|
|
this.isSourceYaml = false; |
|
|
|
|
this.message.create('error', '请先下发source.yaml配置'); |
|
|
|
|
} |
|
|
|
|
} else if (this.hostType == '黄海') { |
|
|
|
|
} else if (this.hostType == '警旗2') { |
|
|
|
|
const element = document.documentElement; |
|
|
|
|
if (element.requestFullscreen) { |
|
|
|
|
//进入全屏
|
|
|
|
@ -309,7 +309,7 @@ export class HostConfigComponent implements OnInit {
|
|
|
|
|
modal.afterClose.subscribe((result) => { |
|
|
|
|
this.ngOnInit(); |
|
|
|
|
}); |
|
|
|
|
} else if (this.hostType == '安信') { |
|
|
|
|
} else if (this.hostType == '警旗3') { |
|
|
|
|
const element = document.documentElement; |
|
|
|
|
if (element.requestFullscreen) { |
|
|
|
|
//进入全屏
|
|
|
|
@ -1566,9 +1566,14 @@ rule_threshold:
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
configJsonToAx() { |
|
|
|
|
// server: 'http://121.36.37.70:8208',
|
|
|
|
|
// obs: 'http://121.36.37.70:8906',
|
|
|
|
|
|
|
|
|
|
// server: 'http://10.156.134.53:8208',
|
|
|
|
|
// obs: 'https://znaq.sinochemoilmarketing.com',
|
|
|
|
|
let data = { |
|
|
|
|
server: 'http://121.36.37.70:8208', |
|
|
|
|
obs: 'http://121.36.37.70:8906', |
|
|
|
|
server: 'http://10.156.134.53:8208', |
|
|
|
|
obs: 'https://znaq.sinochemoilmarketing.com', |
|
|
|
|
userInfo: { |
|
|
|
|
user: '', |
|
|
|
|
password: '', |
|
|
|
|