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

Loading…
Cancel
Save