Browse Source

[完善]安信下发文件端口判断

非煤矿业企业安全风险监测预警系统
邵佳豪 2 years ago
parent
commit
b03d08d8e2
  1. 18
      src/app/system-management/host-config/host-config.component.ts

18
src/app/system-management/host-config/host-config.component.ts

@ -1566,14 +1566,18 @@ 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 server;
let obs;
if (location.origin.indexOf('121') !== -1) {
server = 'http://121.36.37.70:8208';
obs = 'http://121.36.37.70:8906';
} else {
server = 'http://10.156.134.53:8208';
obs = 'https://znaq.sinochemoilmarketing.com';
}
let data = {
server: 'http://10.156.134.53:8208',
obs: 'https://znaq.sinochemoilmarketing.com',
server: server,
obs: obs,
userInfo: {
user: '',
password: '',

Loading…
Cancel
Save