|
|
|
@ -157,17 +157,20 @@ export class UpdateCategoryComponent implements OnInit {
|
|
|
|
|
let newUrl = window.location.protocol + '//' + window.location.host + body.imageUrl |
|
|
|
|
body.imageUrl = newUrl |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (body.hasAttachmentDefault && body.attachment) { |
|
|
|
|
let newUrl = window.location.protocol + '//' + window.location.host + body.attachment |
|
|
|
|
body.attachment = newUrl |
|
|
|
|
} |
|
|
|
|
if (!instance.isSubmit) { |
|
|
|
|
this.http.post('/api/services/app/StationValidityLicense/Create', body).subscribe((data:any) => { |
|
|
|
|
this.http.post('/api/services/app/StationValidityLicense/Create', body).subscribe((data: any) => { |
|
|
|
|
this.getStationList(); |
|
|
|
|
this.message.create('success', '修改成功!'); |
|
|
|
|
}) |
|
|
|
|
return false; |
|
|
|
|
} else { |
|
|
|
|
await new Promise(resolve => { |
|
|
|
|
this.http.post('/api/services/app/StationValidityLicense/Create', body).subscribe((data:any) => { |
|
|
|
|
this.submitReview(data.result).then(res=>{ |
|
|
|
|
this.http.post('/api/services/app/StationValidityLicense/Create', body).subscribe((data: any) => { |
|
|
|
|
this.submitReview(data.result).then(res => { |
|
|
|
|
resolve(data); |
|
|
|
|
return true; |
|
|
|
|
}); |
|
|
|
|