|
|
|
@ -116,13 +116,24 @@ export class FileCategoryComponent implements OnInit {
|
|
|
|
|
nzFooter: null, |
|
|
|
|
nzClosable: false, |
|
|
|
|
nzOnOk: async () => { |
|
|
|
|
if (instance.validatyType == '2' && !instance.data2.imageUrl) { |
|
|
|
|
this.message.create('warning', '请上传附件!'); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
await new Promise(resolve => { |
|
|
|
|
instance.data2.validatyType = Number(instance.validatyType) |
|
|
|
|
this.http.post('/api/services/app/StationFileLicense/Create', instance.data2).subscribe(data => { |
|
|
|
|
this.http.post('/api/services/app/StationFileLicense/Create', instance.data2).subscribe((data: any) => { |
|
|
|
|
if (!instance.isSubmit) { |
|
|
|
|
resolve(data); |
|
|
|
|
this.getStationList(); |
|
|
|
|
this.message.create('success', '修改成功!'); |
|
|
|
|
return true |
|
|
|
|
return true; |
|
|
|
|
} else { //提交审核
|
|
|
|
|
this.submitReview(data.result).then(res=>{ |
|
|
|
|
resolve(data); |
|
|
|
|
return true; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
@ -161,10 +172,13 @@ export class FileCategoryComponent implements OnInit {
|
|
|
|
|
this.message.create('warning', '该证照请编辑保存后再提交审核!'); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
return new Promise((resolve, reject)=>{ |
|
|
|
|
let params = { id: item.id } |
|
|
|
|
this.http.post('/api/services/app/StationFileLicense/Commit', {}, { params }).subscribe(data => { |
|
|
|
|
this.message.create('success', '提交审核成功!'); |
|
|
|
|
this.getStationList(); |
|
|
|
|
resolve('success'); |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|