|
|
|
@ -94,9 +94,9 @@ export class OilStationInfoComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
if (this.httpBody.licenses.length == 0) { |
|
|
|
|
this.httpBody.licenses = [ |
|
|
|
|
{ name: '营业执照', startTime: '', endTime: '', firstWarnTime: '', secondWarnTime: '', imageUrl: '', annualInspectionTime: '', annualInspectionWarnTime: '', type: 1, hasAnnualInspection: true }, |
|
|
|
|
{ name: '危险化学品', startTime: '', endTime: '', firstWarnTime: '', secondWarnTime: '', imageUrl: '', annualInspectionTime: '', annualInspectionWarnTime: '', type: 3, hasAnnualInspection: false }, |
|
|
|
|
{ name: '成品油零售', startTime: '', endTime: '', firstWarnTime: '', secondWarnTime: '', imageUrl: '', annualInspectionTime: '', annualInspectionWarnTime: '', type: 2, hasAnnualInspection: true } |
|
|
|
|
{ name: '营业执照', startTime: '', endTime: '', firstWarnTime: '', secondWarnTime: '', imageUrl: '', annualInspectionTime: '', annualInspectionWarnTime: '', annualInspectionOrganizationName: '', type: 1, hasAnnualInspection: true }, |
|
|
|
|
{ name: '危险化学品', startTime: '', endTime: '', firstWarnTime: '', secondWarnTime: '', imageUrl: '', annualInspectionTime: '', annualInspectionWarnTime: '', annualInspectionOrganizationName: '', type: 3, hasAnnualInspection: false }, |
|
|
|
|
{ name: '成品油零售', startTime: '', endTime: '', firstWarnTime: '', secondWarnTime: '', imageUrl: '', annualInspectionTime: '', annualInspectionWarnTime: '', annualInspectionOrganizationName: '', type: 2, hasAnnualInspection: true } |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
this.httpBody.stationType ? this.httpBody.stationType = String(this.httpBody.stationType) : null |
|
|
|
@ -193,7 +193,7 @@ export class OilStationInfoComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
handleOk(): void { |
|
|
|
|
this.isVisible = false; |
|
|
|
|
if(this.addName){ |
|
|
|
|
if (this.addName) { |
|
|
|
|
this.addTr() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -204,15 +204,15 @@ export class OilStationInfoComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
addTr() { |
|
|
|
|
this.httpBody.licenses.push( |
|
|
|
|
{ name: this.addName, startTime: '', endTime: '', firstWarnTime: '', secondWarnTime: '', imageUrl: '', annualInspectionTime: '', annualInspectionWarnTime: '', type: -1, hasAnnualInspection: false }, |
|
|
|
|
{ name: this.addName, startTime: '', endTime: '', firstWarnTime: '', secondWarnTime: '', imageUrl: '', annualInspectionTime: '', annualInspectionWarnTime: '', annualInspectionOrganizationName: '', type: -1, hasAnnualInspection: false }, |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
deleteTrConfirm(key){ |
|
|
|
|
deleteTrConfirm(key) { |
|
|
|
|
console.log(key) |
|
|
|
|
this.httpBody.licenses.splice(key, 1);
|
|
|
|
|
this.httpBody.licenses.splice(key, 1); |
|
|
|
|
} |
|
|
|
|
goback() { |
|
|
|
|
this.router.navigate(['/warning/petrolStation']) |
|
|
|
|
this.router.navigate(['/todaywarning/petrolStation']) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
submitForm() { |
|
|
|
|