Browse Source

[完善]今日预警列表申诉隐藏

beijing
邵佳豪 3 years ago
parent
commit
3bcaf49b90
  1. 10
      src/app/pages/today-warning-admin/today-warning-admin.component.html
  2. 17
      src/app/pages/today-warning-admin/today-warning-admin.component.ts
  3. 10
      src/app/pages/today-warning/today-warning.component.html
  4. 17
      src/app/pages/today-warning/today-warning.component.ts

10
src/app/pages/today-warning-admin/today-warning-admin.component.html

@ -81,7 +81,7 @@
</nz-form-control>
</nz-form-item>
<nz-form-item class="searchParams">
<nz-form-item class="searchParams" [hidden]="!isMisinformation">
<nz-form-control>
<nz-select nzAllowClear formControlName="appealState" nzPlaceHolder="请选择申诉状态">
<nz-option nzValue="0" nzLabel="未申诉"></nz-option>
@ -149,13 +149,13 @@
<div nz-col nzSpan="2">
摄像头名称
</div>
<div nz-col nzSpan="3">
<div nz-col [nzSpan]="isMisinformation ? '3' : '4'">
预警时间
</div>
<div nz-col nzSpan="1">
处置状态
</div>
<div nz-col nzSpan="1">
<div nz-col nzSpan="1" *ngIf="isMisinformation">
申诉状态
</div>
<div nz-col nzSpan="1">
@ -212,7 +212,7 @@
<div nz-col nzSpan="2" [title]="item.cameraNo">
{{item.cameraNo}}
</div>
<div nz-col nzSpan="3">
<div nz-col [nzSpan]="isMisinformation ? '3' : '4'">
{{item.violateTime | date:"yyyy-MM-dd HH:mm:ss"}}
</div>
<div nz-col nzSpan="1">
@ -223,7 +223,7 @@
<span style="color: #23D9FF;">已处置</span>
</ng-template>
</div>
<div nz-col nzSpan="1">
<div nz-col nzSpan="1" *ngIf="isMisinformation">
<span
[ngClass]="{'greenColor': item.appealStatus==1,'yellowColor': item.appealStatus==4,'redColor': item.appealStatus==3}">
{{item.appealStatus == 0 ? '未申诉': item.appealStatus == 1 ? '申诉中': item.appealStatus == 3 ? '申诉驳回' :

17
src/app/pages/today-warning-admin/today-warning-admin.component.ts

@ -22,6 +22,8 @@ export class TodayWarningAdminComponent implements OnInit {
validateForm!: FormGroup;
constructor(private listRefreshService: listRefreshService, private http: HttpClient, private fb: FormBuilder, private router: Router, private toTree: TreeService, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private navChangeService: NavChangeService, private message: NzMessageService) { }
isSpin: boolean = false
isMisinformation: boolean = false//误报按钮的显隐
ngOnInit(): void {
this.validateForm = this.fb.group({
level: [null],
@ -63,6 +65,21 @@ export class TodayWarningAdminComponent implements OnInit {
// console.log('新获取一条', data.result)
// })
});
let loginUserInfo
if (sessionStorage.getItem('isGasStation') == 'true') {
loginUserInfo = JSON.parse(sessionStorage.getItem('userdataOfgasstation'))
} else {
loginUserInfo = JSON.parse(sessionStorage.getItem('userdata'))
}
if (loginUserInfo.permissions.find((item) => {
return item.name == 'Data.Violation.Positive.Censor'
})) {
this.isMisinformation = true
} else {
this.isMisinformation = false
}
}
//预警类型接口

10
src/app/pages/today-warning/today-warning.component.html

@ -62,7 +62,7 @@
</nz-select>
</nz-form-control>
</nz-form-item>
<nz-form-item class="searchParams">
<nz-form-item class="searchParams" [hidden]="!isMisinformation">
<nz-form-control>
<nz-select nzAllowClear formControlName="appealState" nzPlaceHolder="请选择申诉状态">
<nz-option nzValue="0" nzLabel="未申诉"></nz-option>
@ -119,13 +119,13 @@
<div nz-col nzSpan="3">
摄像头名称
</div>
<div nz-col nzSpan="3">
<div nz-col [nzSpan]="isMisinformation ? '3' : '5'">
预警时间
</div>
<div nz-col nzSpan="2">
状态
</div>
<div nz-col nzSpan="2">
<div nz-col nzSpan="2" *ngIf="isMisinformation">
申诉状态
</div>
<div nz-col nzSpan="2">
@ -172,7 +172,7 @@
<div nz-col nzSpan="3">
{{item.cameraNo ? item.cameraNo : '/'}}
</div>
<div nz-col nzSpan="3">
<div nz-col [nzSpan]="isMisinformation ? '3' : '5'">
{{item.violateTime | date:"yyyy-MM-dd HH:mm:ss"}}
</div>
<div nz-col nzSpan="2">
@ -183,7 +183,7 @@
<span style="color: #23D9FF;">已处置</span>
</ng-template>
</div>
<div nz-col nzSpan="2">
<div nz-col nzSpan="2" *ngIf="isMisinformation">
<span
[ngClass]="{'greenColor': item.appealStatus==1,'yellowColor': item.appealStatus==4,'redColor': item.appealStatus==3}">
{{item.appealStatus == 0 ? '未申诉': item.appealStatus == 1 ? '申诉中': item.appealStatus == 3 ? '申诉驳回' :

17
src/app/pages/today-warning/today-warning.component.ts

@ -20,7 +20,7 @@ import { DisposeequipmentComponent } from '../records/warning-statistics-list/di
export class TodayWarningComponent implements OnInit {
validateForm!: FormGroup;
constructor(private listRefreshService: listRefreshService, private http: HttpClient, private fb: FormBuilder, private toTree: TreeService, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private navChangeService: NavChangeService, private message: NzMessageService) { }
isMisinformation: boolean = false//误报按钮的显隐
ngOnInit(): void {
this.validateForm = this.fb.group({
level: [null],
@ -59,6 +59,21 @@ export class TodayWarningComponent implements OnInit {
// console.log('新获取一条', data.result)
// })
});
let loginUserInfo
if (sessionStorage.getItem('isGasStation') == 'true') {
loginUserInfo = JSON.parse(sessionStorage.getItem('userdataOfgasstation'))
} else {
loginUserInfo = JSON.parse(sessionStorage.getItem('userdata'))
}
if (loginUserInfo.permissions.find((item) => {
return item.name == 'Data.Violation.Positive.Censor'
})) {
this.isMisinformation = true
} else {
this.isMisinformation = false
}
}
//预警类型接口

Loading…
Cancel
Save