邵佳豪
3 years ago
21 changed files with 384 additions and 91 deletions
@ -0,0 +1,24 @@
|
||||
<div class="box"> |
||||
<div class="title"> |
||||
<div class="titlecontent"> |
||||
详情 |
||||
</div> |
||||
<i nz-icon nzType="close" nzTheme="outline" (click)="destroyModal()"></i> |
||||
</div> |
||||
|
||||
<div class="content"> |
||||
<p>预警事件: {{data.auditTitle}}</p> |
||||
<div class="cutoffrule"></div> |
||||
<p>预警时间: {{data.itemData.ViolateTime | date:"yyyy-MM-dd HH:mm:ss"}}</p> |
||||
<div class="cutoffrule"></div> |
||||
<p>预警图片:</p> |
||||
<img (click)="viewImg(data.itemData.ViolateImage)" style="width: 100%;height: auto;" |
||||
[src]="data.itemData.ViolateImage" alt=""> |
||||
<div class="cutoffrule"></div> |
||||
<p>申诉原因: {{data.commitReason}}</p> |
||||
<div class="cutoffrule"></div> |
||||
<p>审核状态: {{data.auditStatusDesc}}</p> |
||||
<div class="cutoffrule"></div> |
||||
<p>审核说明: {{data.rejectReason || ''}}</p> |
||||
</div> |
||||
</div> |
@ -0,0 +1,66 @@
|
||||
.box { |
||||
.title { |
||||
font-family: sybold; |
||||
width: 100%; |
||||
height: 48px; |
||||
background: linear-gradient(270deg, rgba(35, 153, 255, 0) 0%, rgba(35, 153, 255, 0.57) 50%, rgba(35, 153, 255, 0) 100%); |
||||
display: flex; |
||||
align-items: center; |
||||
position: relative; |
||||
|
||||
.titlecontent { |
||||
width: 100%; |
||||
height: 32px; |
||||
line-height: 32px; |
||||
background: linear-gradient(270deg, rgba(35, 153, 255, 0) 0%, rgba(35, 153, 255, 0.57) 50%, rgba(35, 153, 255, 0) 100%); |
||||
text-align: center; |
||||
color: #91CCFF; |
||||
font-size: 16px; |
||||
} |
||||
|
||||
i { |
||||
position: absolute; |
||||
right: 12px; |
||||
color: #fff; |
||||
font-size: 18px; |
||||
cursor: pointer; |
||||
} |
||||
} |
||||
|
||||
.content { |
||||
box-sizing: border-box; |
||||
padding: 0 15px; |
||||
max-height: 580px; |
||||
overflow-y: auto; |
||||
|
||||
.circle { |
||||
width: 8px; |
||||
height: 8px; |
||||
background: linear-gradient(180deg, #36A2FF 0%, #FFFFFF 100%); |
||||
opacity: 1; |
||||
} |
||||
|
||||
.recordP { |
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
} |
||||
} |
||||
|
||||
p { |
||||
margin-bottom: 0; |
||||
color: #C4E2FC; |
||||
margin: 12px 0; |
||||
|
||||
img { |
||||
width: 88px; |
||||
height: 56px; |
||||
cursor: pointer; |
||||
} |
||||
} |
||||
|
||||
.flexp { |
||||
display: flex; |
||||
justify-content: space-between; |
||||
} |
||||
} |
@ -0,0 +1,42 @@
|
||||
import { Component, Input, OnInit } from '@angular/core'; |
||||
import { NzModalRef } from 'ng-zorro-antd/modal'; |
||||
import Viewer from 'viewerjs'; |
||||
@Component({ |
||||
selector: 'app-appeal-details', |
||||
templateUrl: './appeal-details.component.html', |
||||
styleUrls: ['./appeal-details.component.scss'] |
||||
}) |
||||
export class AppealDetailsComponent implements OnInit { |
||||
|
||||
@Input() data?: any; |
||||
constructor(private modal: NzModalRef) { } |
||||
|
||||
|
||||
organizationName |
||||
ngOnInit(): void { |
||||
console.log('申诉详情', this.data) |
||||
// this.data.itemDataObj = JSON.parse(this.data.itemData)
|
||||
} |
||||
destroyModal() { |
||||
this.modal.destroy({ data: 'this the result data' }); |
||||
} |
||||
//查看图片
|
||||
viewImg(url) { |
||||
let dom = document.getElementById(`viewerjs`) |
||||
let pObjs = dom.childNodes; |
||||
let node = document.createElement("img") |
||||
node.style.display = "none"; |
||||
node.src = url; |
||||
node.id = 'img' |
||||
dom.appendChild(node) |
||||
setTimeout(() => { |
||||
let viewer = new Viewer(document.getElementById(`viewerjs`), { |
||||
hidden: () => { |
||||
dom.removeChild(pObjs[0]); |
||||
viewer.destroy(); |
||||
} |
||||
}); |
||||
node.click(); |
||||
}, 0); |
||||
} |
||||
} |
@ -1,25 +0,0 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
||||
import { RecordsNavComponent } from './records-nav.component'; |
||||
|
||||
describe('RecordsNavComponent', () => { |
||||
let component: RecordsNavComponent; |
||||
let fixture: ComponentFixture<RecordsNavComponent>; |
||||
|
||||
beforeEach(async(() => { |
||||
TestBed.configureTestingModule({ |
||||
declarations: [ RecordsNavComponent ] |
||||
}) |
||||
.compileComponents(); |
||||
})); |
||||
|
||||
beforeEach(() => { |
||||
fixture = TestBed.createComponent(RecordsNavComponent); |
||||
component = fixture.componentInstance; |
||||
fixture.detectChanges(); |
||||
}); |
||||
|
||||
it('should create', () => { |
||||
expect(component).toBeTruthy(); |
||||
}); |
||||
}); |
Loading…
Reference in new issue