Browse Source

[完善]完善接口参数

dev
邵佳豪 3 years ago
parent
commit
4a39fa41c8
  1. 9
      src/app/pages/audit/annual-inspection/edit-annual-inspection/edit-annual-inspection.component.ts

9
src/app/pages/audit/annual-inspection/edit-annual-inspection/edit-annual-inspection.component.ts

@ -40,11 +40,12 @@ export class EditAnnualInspectionComponent implements OnInit {
ok() {
if (this.validateForm.valid) {
this.isLoading = true
let params = {
id: this.dataCopy.licenseTypeId,
date: moment(this.validateForm.value.time).format('YYYY-MM-MM')//开业时间格式化
let body = {
licenseTypeId: this.dataCopy.licenseTypeId,
organizationId: JSON.parse(sessionStorage.getItem('userdata')).organization.id,
yearlyCheckDate: moment(this.validateForm.value.time).format('YYYY-MM-MM')//开业时间格式化
}
this.http.put('/api/services/app/OrganizationValidityLicenseRule/UpdateYearlyCheckDate', null, { params: params }).subscribe((data) => {
this.http.put('/api/services/app/OrganizationValidityLicenseRule/UpdateYearlyCheckDate', body).subscribe((data) => {
this.message.create('success', '修改成功');
this.isLoading = false
this.modal.triggerOk()

Loading…
Cancel
Save