|
|
|
@ -48,12 +48,13 @@ export class UpdateOfLicenseComponent implements OnInit {
|
|
|
|
|
nzOnOk: async () => { |
|
|
|
|
if (instance.validateForm.valid) { |
|
|
|
|
await new Promise(resolve => { |
|
|
|
|
console.log('表单信息', instance.validateForm) |
|
|
|
|
let body = { |
|
|
|
|
licenseName: instance.validateForm.value.name, |
|
|
|
|
handleRemindDays: instance.validateForm.value.handleRemindDays, |
|
|
|
|
closingRemindDays: instance.validateForm.value.closingRemindDays, |
|
|
|
|
isYearlyCheck: instance.validateForm.value.isYearlyCheck |
|
|
|
|
isYearlyCheck: instance.validateForm.value.isYearlyCheck, |
|
|
|
|
hasAttachment: instance.validateForm.value.hasAttachment, |
|
|
|
|
handleTypes: instance.validateForm.value.handleTypes, |
|
|
|
|
} |
|
|
|
|
this.http.post('/api/services/app/ValidityLicenseType/Create', body).subscribe(data => { |
|
|
|
|
resolve(data) |
|
|
|
@ -93,7 +94,9 @@ export class UpdateOfLicenseComponent implements OnInit {
|
|
|
|
|
licenseName: instance.validateForm.value.name, |
|
|
|
|
handleRemindDays: instance.validateForm.value.handleRemindDays, |
|
|
|
|
closingRemindDays: instance.validateForm.value.closingRemindDays, |
|
|
|
|
isYearlyCheck: instance.validateForm.value.isYearlyCheck |
|
|
|
|
isYearlyCheck: instance.validateForm.value.isYearlyCheck, |
|
|
|
|
hasAttachment: instance.validateForm.value.hasAttachment, |
|
|
|
|
handleTypes: instance.validateForm.value.handleTypes, |
|
|
|
|
} |
|
|
|
|
this.http.put('/api/services/app/ValidityLicenseType/Update', body).subscribe(data => { |
|
|
|
|
resolve(data) |
|
|
|
|