邵佳豪
3 years ago
7 changed files with 176 additions and 39 deletions
@ -1,11 +1,17 @@
|
||||
.topbox{ |
||||
form{ |
||||
display: flex; |
||||
nz-form-item{ |
||||
margin-right: 6px; |
||||
} |
||||
.topbox { |
||||
form { |
||||
display: flex; |
||||
|
||||
nz-form-item { |
||||
margin-right: 6px; |
||||
} |
||||
.searchParams{ |
||||
width: 250px; |
||||
|
||||
button { |
||||
margin-right: 6px; |
||||
} |
||||
} |
||||
} |
||||
|
||||
.searchParams { |
||||
width: 250px; |
||||
} |
||||
} |
||||
|
@ -0,0 +1,18 @@
|
||||
<div class="box"> |
||||
<form nz-form [formGroup]="validateForm"> |
||||
<nz-form-item> |
||||
<nz-form-control> |
||||
<nz-select nzMode="multiple" formControlName="type" nzPlaceHolder="请选择类型"> |
||||
<nz-option [nzValue]="'Peoplenet'" nzLabel="Peoplenet"></nz-option> |
||||
<nz-option [nzValue]="'Trafficcam'" nzLabel="Trafficcam"></nz-option> |
||||
<nz-option [nzValue]="'Actionnet'" nzLabel="Actionnet"></nz-option> |
||||
<nz-option [nzValue]="'Idnet'" nzLabel="Idnet"></nz-option> |
||||
<nz-option [nzValue]="'Oilnet'" nzLabel="Oilnet"></nz-option> |
||||
<nz-option [nzValue]="'Smoking_calling_net'" nzLabel="Smoking_calling_net"></nz-option> |
||||
<nz-option [nzValue]="'Connet'" nzLabel="Connet"></nz-option> |
||||
<nz-option [nzValue]="'Fire_smoke_net'" nzLabel="Fire_smoke_net"></nz-option> |
||||
</nz-select> |
||||
</nz-form-control> |
||||
</nz-form-item> |
||||
</form> |
||||
</div> |
@ -0,0 +1,24 @@
|
||||
import { Component, OnInit } from '@angular/core'; |
||||
import { NzModalRef } from 'ng-zorro-antd/modal'; |
||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms'; |
||||
import { HttpClient } from '@angular/common/http'; |
||||
@Component({ |
||||
selector: 'app-model', |
||||
templateUrl: './model.component.html', |
||||
styleUrls: ['./model.component.scss'] |
||||
}) |
||||
export class ModelComponent implements OnInit { |
||||
|
||||
validateForm!: FormGroup; |
||||
constructor(private modal: NzModalRef, private fb: FormBuilder, private http: HttpClient) { } |
||||
|
||||
ngOnInit(): void { |
||||
this.validateForm = this.fb.group({ |
||||
type: [null, [Validators.required]], |
||||
}); |
||||
} |
||||
destroyModal(): void { |
||||
this.modal.destroy({ data: 'this the result data' }); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue