邵佳豪
3 months ago
9 changed files with 139 additions and 15 deletions
@ -0,0 +1,54 @@
|
||||
<div> |
||||
<div class="rowItem"> |
||||
<span>单位名称:</span><span>{{data.company?.companyName}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>单位管理人:</span><span>{{data.company?.directorName}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>联系方式:</span><span>{{data.company?.directorPhone}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>单位地址:</span><span>{{data.company?.address}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>建筑结构:</span><span>{{data.company?.datas?.basicInfo.structure}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>建筑高度:</span><span>{{data.company?.datas?.basicInfo.height}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>建筑层数:</span><span>{{data.company?.datas?.basicInfo.layer}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>控制室位置:</span><span>{{data.company?.datas?.facilities.controlPosition}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>安全重点部位:</span><span>{{data.company?.useNature}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>单位性质:</span><span>{{data.company?.datas?.basicInfo.nature}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>消防设施及器材:</span><span>{{data.company?.datas?.facilities.fireFightingFacilities.title}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>单位主要消防设施:</span><span>{{data.company?.zhuyaosheshi?.title}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>位置:</span><span>{{data.position.name}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>姓名:</span><span>{{data.name}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>职务:</span><span>{{data.post}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>备注:</span><span>{{data.remarks}}</span> |
||||
</div> |
||||
<div class="rowItem"> |
||||
<span>图片列表:</span> |
||||
<img *ngFor="let item of data.imgShow2" [src]="item" alt="" width="100" height="100"> |
||||
</div> |
||||
</div> |
@ -0,0 +1,25 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
||||
import { LookShuangsjComponent } from './look-shuangsj.component'; |
||||
|
||||
describe('LookShuangsjComponent', () => { |
||||
let component: LookShuangsjComponent; |
||||
let fixture: ComponentFixture<LookShuangsjComponent>; |
||||
|
||||
beforeEach(async () => { |
||||
await TestBed.configureTestingModule({ |
||||
declarations: [ LookShuangsjComponent ] |
||||
}) |
||||
.compileComponents(); |
||||
}); |
||||
|
||||
beforeEach(() => { |
||||
fixture = TestBed.createComponent(LookShuangsjComponent); |
||||
component = fixture.componentInstance; |
||||
fixture.detectChanges(); |
||||
}); |
||||
|
||||
it('should create', () => { |
||||
expect(component).toBeTruthy(); |
||||
}); |
||||
}); |
@ -0,0 +1,15 @@
|
||||
import { Component, Input, OnInit } from '@angular/core'; |
||||
|
||||
@Component({ |
||||
selector: 'app-look-shuangsj', |
||||
templateUrl: './look-shuangsj.component.html', |
||||
styleUrls: ['./look-shuangsj.component.scss'], |
||||
}) |
||||
export class LookShuangsjComponent implements OnInit { |
||||
@Input() data?: any; |
||||
constructor() {} |
||||
|
||||
ngOnInit(): void { |
||||
console.log(this.data); |
||||
} |
||||
} |
Loading…
Reference in new issue