|
|
@ -10,11 +10,7 @@ import { NoticeService } from '../../../service/https/notice.service'; |
|
|
|
export class PathComponent implements OnInit { |
|
|
|
export class PathComponent implements OnInit { |
|
|
|
@Input() datas: any; |
|
|
|
@Input() datas: any; |
|
|
|
data; |
|
|
|
data; |
|
|
|
viewType = 'ip'; |
|
|
|
viewType = 0; |
|
|
|
ipData: []; |
|
|
|
|
|
|
|
accountData: []; |
|
|
|
|
|
|
|
interfaceData: []; |
|
|
|
|
|
|
|
menuData: []; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constructor( |
|
|
|
constructor( |
|
|
|
private noticeService: NoticeService, |
|
|
|
private noticeService: NoticeService, |
|
|
@ -22,12 +18,10 @@ export class PathComponent implements OnInit { |
|
|
|
) {} |
|
|
|
) {} |
|
|
|
|
|
|
|
|
|
|
|
ngOnInit() { |
|
|
|
ngOnInit() { |
|
|
|
// this.queryData();
|
|
|
|
// const jsonStr = '{"type":3,"http://190.89.233.2:8909/getpublicconfig":[{"req_ip":"192.156.3.12","interface_addr":"http://190.89.233.2:8909/getpublicconfig","req_jobnum":43327,"req_frequency":43,"req_account":"liuhr"},{"req_ip":"192.156.3.12","interface_addr":"http://190.89.233.2:8909/getpublicconfig","req_jobnum":43328,"req_frequency":44,"req_account":"sunxq01"},{"req_ip":"192.156.3.18","interface_addr":"http://190.89.233.2:8909/getpublicconfig","req_jobnum":65341,"req_frequency":45,"req_account":"shicl"},{"req_ip":"192.106.3.33","interface_addr":"http://190.89.233.2:8909/getpublicconfig","req_jobnum":65342,"req_frequency":46,"req_account":"gongxs"},{"req_ip":"192.106.3.34","interface_addr":"http://190.89.233.2:8909/getpublicconfig","req_jobnum":65343,"req_frequency":47,"req_account":"sunzs"}]}'
|
|
|
|
console.log('11111'); |
|
|
|
// if (this.datas == null) {
|
|
|
|
const jsonStr = '{"type":3,"http://190.89.233.2:8909/getpublicconfig":[{"req_ip":"192.156.3.12","interface_addr":"http://190.89.233.2:8909/getpublicconfig","req_jobnum":43327,"req_frequency":43,"req_account":"liuhr"},{"req_ip":"192.156.3.12","interface_addr":"http://190.89.233.2:8909/getpublicconfig","req_jobnum":43328,"req_frequency":44,"req_account":"sunxq01"},{"req_ip":"192.156.3.18","interface_addr":"http://190.89.233.2:8909/getpublicconfig","req_jobnum":65341,"req_frequency":45,"req_account":"shicl"},{"req_ip":"192.106.3.33","interface_addr":"http://190.89.233.2:8909/getpublicconfig","req_jobnum":65342,"req_frequency":46,"req_account":"gongxs"},{"req_ip":"192.106.3.34","interface_addr":"http://190.89.233.2:8909/getpublicconfig","req_jobnum":65343,"req_frequency":47,"req_account":"sunzs"}]}' |
|
|
|
// this.datas = JSON.parse(jsonStr);
|
|
|
|
if (this.datas == null) { |
|
|
|
// }
|
|
|
|
this.datas = JSON.parse(jsonStr); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.parseData(this.datas); |
|
|
|
this.parseData(this.datas); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|