in progress
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
<h1>Discovery</h1>
|
||||
<div class="ui-g">
|
||||
<div class="ui-g-12 ui-md-3">
|
||||
<of-discovery-search-config (discoverySearchStartClick)="onDiscoveryStart()"></of-discovery-search-config>
|
||||
</div>
|
||||
<div class="ui-g-12 ui-md-9">
|
||||
bb
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div class="ui-g-12">
|
||||
<p-panel [showHeader]="false" >Temp Area</p-panel>
|
||||
</div> -->
|
||||
|
||||
<div class="ui-g">
|
||||
<!-- <div class="ui-g">
|
||||
<div class="ui-g-12 ui-md-3">
|
||||
<p-accordion (onClose)="onTabClose($event)" (onOpen)="OnTabOpen($event)">
|
||||
<p-accordionTab header="Probe Select Area" [selected]="true">
|
||||
<!-- <of-probe-selector
|
||||
[preProbe]="selectedProbeHost"
|
||||
[probeHosts]="probeHosts"></of-probe-selector> -->
|
||||
</p-accordionTab>
|
||||
<p-accordionTab header="Discovery Search Config Area" >
|
||||
<of-discovery-search-config
|
||||
@@ -27,4 +32,4 @@
|
||||
<of-discovery-search-result [probe]="selectedProbe"></of-discovery-search-result>
|
||||
</p-panel>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
@@ -1,6 +1,5 @@
|
||||
import {
|
||||
AfterContentInit, Component, Input,
|
||||
OnInit
|
||||
Component, Input,
|
||||
} from '@angular/core';
|
||||
import { Probe, ProbeHost } from '@overflow/commons-typescript/model/probe';
|
||||
|
||||
@@ -8,48 +7,14 @@ import { Probe, ProbeHost } from '@overflow/commons-typescript/model/probe';
|
||||
selector: 'of-discovery',
|
||||
templateUrl: './discovery.component.html',
|
||||
})
|
||||
export class DiscoveryComponent implements OnInit, AfterContentInit {
|
||||
|
||||
@Input() probeHostID: number;
|
||||
export class DiscoveryComponent {
|
||||
|
||||
private tabIdx: number;
|
||||
selectedProbeHost: ProbeHost;
|
||||
@Input() selectedProbe: ProbeHost;
|
||||
|
||||
constructor(
|
||||
) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
// if (this.probeHostID) {
|
||||
// this.selectedProbeHost = this.probeHosts.find(probeHost => probeHost.id === this.probeHostID);
|
||||
// }
|
||||
}
|
||||
|
||||
ngAfterContentInit() {
|
||||
}
|
||||
|
||||
onTabClose(event) {
|
||||
|
||||
}
|
||||
|
||||
OnTabOpen(event) {
|
||||
this.tabIdx = event.index;
|
||||
}
|
||||
|
||||
onFilterResultOpen() {
|
||||
|
||||
}
|
||||
|
||||
onDiscoveryStart() {
|
||||
console.log('dddddddddddddd');
|
||||
}
|
||||
|
||||
onSelectedProbe(probe) {
|
||||
console.log(probe);
|
||||
// this.selectedProbe = probe;
|
||||
}
|
||||
|
||||
onProbeSelect(probe) {
|
||||
console.log(probe);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
export class SearchConfigComponent implements OnInit, AfterContentInit {
|
||||
|
||||
@Output() discoverySearchStartClick = new EventEmitter();
|
||||
@Output() selectProbe = new EventEmitter();
|
||||
@Output() selectedProbe = new EventEmitter();
|
||||
|
||||
includeServices = [];
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import { Probe } from '@overflow/commons-typescript/model/probe';
|
||||
})
|
||||
export class SearchResultComponent implements OnInit, AfterContentInit {
|
||||
|
||||
@Input() probe: Probe;
|
||||
@Input() selectedProbe: Probe;
|
||||
|
||||
constructor(
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user