This commit is contained in:
insanity 2018-03-19 15:08:15 +09:00
parent 98986b3f2e
commit a4f38ee99c
5 changed files with 89 additions and 77 deletions

View File

@ -1,23 +1,25 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { InfraPageComponent } from './infra-page.component';
import { InfraPageRoutingModule } from './infra-page-routing.module';
import { MaterialModule } from 'packages/commons/material/material.module';
import { InfraModule } from 'packages/infra/infra.module';
import { SettingComponent as DiscoverySettingComponent } from 'packages/discovery/component/setting/setting.component';
import { InfraPageComponent } from './infra-page.component';
import { DiscoveryModule } from 'packages/discovery/discovery.module';
@NgModule({
imports: [
CommonModule,
InfraPageRoutingModule,
MaterialModule,
InfraModule
InfraModule,
DiscoveryModule
],
declarations: [
InfraPageComponent
InfraPageComponent,
],
entryComponents: [
DiscoverySettingComponent

View File

@ -1,17 +1 @@
<div fxLayout="row" fxLayoutWrap fxLayoutAlign="center">
<div *ngIf="step == 1">
<of-sensor-setting></of-sensor-setting>
</div>
<div *ngIf="step == 2">
<of-sensor-setting-result></of-sensor-setting-result>
</div>
<div fxLayout="col" fxLayoutWrap fxLayoutAlign="center">
<button mat-button (click)="onCloseCancel()">Cancel</button>
스텝 순서를 바꿨으니 나중에 바꾸잡
<button mat-button (click)="onNext()">Next</button>
</div>
</div>

View File

@ -1,3 +1,6 @@
<div fxLayout="row" fxLayoutWrap fxLayoutAlign="center">
<div *ngIf="step == 1">
<!-- -->
<div fxLayout="row" fxLayoutWrap fxLayoutAlign="center">
<div fxLayout="row" fxLayoutWrap fxLayoutAlign="center">
@ -63,3 +66,21 @@
</div>
</div>
<!-- -->
</div>
<div *ngIf="step == 2">
<of-sensor-setting-result></of-sensor-setting-result>
</div>
<div fxLayout="col" fxLayoutWrap fxLayoutAlign="center">
<button mat-button (click)="onCloseCancel()">Cancel</button>
스텝 순서를 바꿨으니 나중에 바꾸잡
<button mat-button (click)="onNext()">Next</button>
</div>
</div>
<!-- -->

View File

@ -9,6 +9,8 @@ import { AfterContentInit } from '@angular/core/src/metadata/lifecycle_hooks';
})
export class SettingComponent implements OnInit, AfterContentInit {
step = 1;
constructor() { }
selectCrawler: String;
@ -28,4 +30,7 @@ export class SettingComponent implements OnInit, AfterContentInit {
this.crawlerList.push('PostgreSQL Crawler');
}
onNext() {
this.step += 1;
}
}