|
|
|
@ -48,11 +48,20 @@ export class OrganizationComponent implements OnInit {
|
|
|
|
|
refresh() { |
|
|
|
|
this.http.put('/api/Organizations/SyncAllOrganizations', null).subscribe({ |
|
|
|
|
next: (data) => { |
|
|
|
|
this.message.success('同步成功'); |
|
|
|
|
this.message.success('同步组织机构成功'); |
|
|
|
|
this.getAllOrganization(); |
|
|
|
|
}, |
|
|
|
|
error: (err) => { |
|
|
|
|
this.message.error('同步失败'); |
|
|
|
|
this.message.error('同步组织机构失败'); |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
this.http.put('/api/GasStations/SyncAllGasStations', null).subscribe({ |
|
|
|
|
next: (data) => { |
|
|
|
|
this.message.success('同步油站成功'); |
|
|
|
|
this.getAllOrganization(); |
|
|
|
|
}, |
|
|
|
|
error: (err) => { |
|
|
|
|
this.message.error('同步油站失败'); |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|