You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
936 B
33 lines
936 B
import { Component, OnInit } from '@angular/core'; |
|
import { NzModalRef } from 'ng-zorro-antd/modal'; |
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms'; |
|
@Component({ |
|
selector: 'app-disposition', |
|
templateUrl: './disposition.component.html', |
|
styleUrls: ['./disposition.component.scss'] |
|
}) |
|
export class DispositionComponent implements OnInit { |
|
validateForm!: FormGroup; |
|
constructor(private modal: NzModalRef, private fb: FormBuilder) { } |
|
|
|
|
|
peopleName:string |
|
|
|
ngOnInit(): void { |
|
if(sessionStorage.getItem('isGasStation') == 'true'){ |
|
this.peopleName = JSON.parse(sessionStorage.getItem('userdataOfgasstation')).name |
|
}else{ |
|
this.peopleName = JSON.parse(sessionStorage.getItem('userdata')).name |
|
} |
|
|
|
this.validateForm = this.fb.group({ |
|
content: [null, [Validators.required]] |
|
}); |
|
} |
|
destroyModal(){ |
|
this.modal.destroy(); |
|
} |
|
ok(){ |
|
this.modal.triggerOk() |
|
} |
|
}
|
|
|