|
|
|
@ -1,20 +1,28 @@
|
|
|
|
|
import { Component, OnInit, Input } from '@angular/core'; |
|
|
|
|
import { NzModalRef } from 'ng-zorro-antd/modal'; |
|
|
|
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms'; |
|
|
|
|
import { HttpClient } from '@angular/common/http'; |
|
|
|
|
import { handleType,handleTypeList } from 'src/app/pages/license/inform/inform.component'; |
|
|
|
|
|
|
|
|
|
import { Component, OnInit, Input } from "@angular/core"; |
|
|
|
|
import { NzModalRef } from "ng-zorro-antd/modal"; |
|
|
|
|
import { FormBuilder, FormGroup, Validators } from "@angular/forms"; |
|
|
|
|
import { HttpClient } from "@angular/common/http"; |
|
|
|
|
import { |
|
|
|
|
handleType, |
|
|
|
|
handleTypeList, |
|
|
|
|
} from "src/app/pages/license/inform/inform.component"; |
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
|
selector: 'app-add-update-of-license', |
|
|
|
|
templateUrl: './add-update-of-license.component.html', |
|
|
|
|
styleUrls: ['./add-update-of-license.component.scss'] |
|
|
|
|
selector: "app-add-update-of-license", |
|
|
|
|
templateUrl: "./add-update-of-license.component.html", |
|
|
|
|
styleUrls: ["./add-update-of-license.component.scss"], |
|
|
|
|
}) |
|
|
|
|
export class AddUpdateOfLicenseComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
validateForm!: FormGroup; |
|
|
|
|
constructor(private modal: NzModalRef, private fb: FormBuilder, private http: HttpClient) { } |
|
|
|
|
|
|
|
|
|
constructor( |
|
|
|
|
private modal: NzModalRef, |
|
|
|
|
private fb: FormBuilder, |
|
|
|
|
private http: HttpClient |
|
|
|
|
) {} |
|
|
|
|
importantLevelList= [ |
|
|
|
|
{ name: "普通", value: 0 }, |
|
|
|
|
{ name: "重要", value: 1 } |
|
|
|
|
]; |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
this.validateForm = this.fb.group({ |
|
|
|
|
name: [null, [Validators.required]], |
|
|
|
@ -22,13 +30,13 @@ export class AddUpdateOfLicenseComponent implements OnInit {
|
|
|
|
|
closingRemindDays: [30, [Validators.required]], |
|
|
|
|
handleType: [[], [Validators.required]], |
|
|
|
|
isEctype: [false, [Validators.required]], |
|
|
|
|
isYearlyCheck: [true, [Validators.required]] |
|
|
|
|
isYearlyCheck: [true, [Validators.required]], |
|
|
|
|
importantLevel: [0, [Validators.required]], |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
destroyModal(): void { |
|
|
|
|
this.modal.destroy({ data: 'this the result data' }); |
|
|
|
|
this.modal.destroy({ data: "this the result data" }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
handleTypeList: handleTypeList[] = new handleType().list; //办理类型list
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|