|
|
|
@ -2,6 +2,7 @@ import { HttpClient } from '@angular/common/http';
|
|
|
|
|
import { Component, OnInit, Input } from '@angular/core'; |
|
|
|
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms'; |
|
|
|
|
import { DomSanitizer } from '@angular/platform-browser'; |
|
|
|
|
import { Console } from 'console'; |
|
|
|
|
import { NzMessageService } from 'ng-zorro-antd/message'; |
|
|
|
|
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal'; |
|
|
|
|
@Component({ |
|
|
|
@ -30,7 +31,7 @@ export class GetOutOfLineDetailsComponent implements OnInit {
|
|
|
|
|
isLicenseWarning = false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isOilStationUser |
|
|
|
|
isSubmit |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
|
|
|
|
|
if (this.data.violation.violationType == '证照资质') { |
|
|
|
@ -64,15 +65,22 @@ export class GetOutOfLineDetailsComponent implements OnInit {
|
|
|
|
|
let loginUserInfo |
|
|
|
|
if (sessionStorage.getItem('isGasStation') == 'true') { |
|
|
|
|
loginUserInfo = JSON.parse(sessionStorage.getItem('userdataOfgasstation')) |
|
|
|
|
this.isOilStationUser = true |
|
|
|
|
} else { |
|
|
|
|
loginUserInfo = JSON.parse(sessionStorage.getItem('userdata')) |
|
|
|
|
this.isOilStationUser = false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (loginUserInfo.userName == 'admin' || sessionStorage.getItem('isGasStation') == 'true') { |
|
|
|
|
this.isSubmit = true |
|
|
|
|
} else { |
|
|
|
|
this.isSubmit = false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log('this.isSubmit', this.isSubmit) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (loginUserInfo.permissions.find((item) => { |
|
|
|
|
return item.name == 'Data.Violation.Positive.Censor' |
|
|
|
|
}) && this.data.violation.eventSystemName.indexOf("证照有效期") ==-1) { |
|
|
|
|
}) && this.data.violation.eventSystemName.indexOf("证照有效期") == -1) { |
|
|
|
|
this.isMisinformation = true |
|
|
|
|
} else { |
|
|
|
|
this.isMisinformation = false |
|
|
|
|