邵佳豪
4 years ago
7 changed files with 143 additions and 9 deletions
@ -0,0 +1,62 @@
|
||||
<div class="bigbox"> |
||||
<div class="title"> |
||||
<app-title [title]="title"></app-title> |
||||
</div> |
||||
|
||||
<div class="content"> |
||||
<div class="cardbox"> |
||||
<mat-tab-group style="height: 97%;" [selectedIndex]="tabsSelectedIndex" (selectedTabChange)="selectedtab($event)"> |
||||
|
||||
<mat-tab label="演练信息"> |
||||
<ng-template matTabContent> |
||||
|
||||
</ng-template> |
||||
|
||||
</mat-tab> |
||||
<mat-tab label="灾情设定"> |
||||
<ng-template matTabContent> |
||||
|
||||
</ng-template> |
||||
|
||||
</mat-tab> |
||||
<mat-tab label="组织指挥情况"> |
||||
<ng-template matTabContent> |
||||
|
||||
</ng-template> |
||||
|
||||
</mat-tab> |
||||
<mat-tab label="作战行动情况"> |
||||
<ng-template matTabContent> |
||||
|
||||
</ng-template> |
||||
|
||||
</mat-tab> |
||||
<mat-tab label="单位内部消防设施使用情况"> |
||||
<ng-template matTabContent> |
||||
|
||||
</ng-template> |
||||
</mat-tab> |
||||
<mat-tab label="好的方面"> |
||||
<ng-template matTabContent> |
||||
|
||||
</ng-template> |
||||
</mat-tab> |
||||
<mat-tab label="存在问题及改进措施"> |
||||
<ng-template matTabContent> |
||||
|
||||
</ng-template> |
||||
</mat-tab> |
||||
<mat-tab label="备注"> |
||||
<ng-template matTabContent> |
||||
|
||||
</ng-template> |
||||
</mat-tab> |
||||
<mat-tab label="现场照片"> |
||||
<ng-template matTabContent> |
||||
|
||||
</ng-template> |
||||
</mat-tab> |
||||
</mat-tab-group> |
||||
</div> |
||||
</div> |
||||
</div> |
@ -0,0 +1,28 @@
|
||||
.bigbox{ |
||||
width: 100%; |
||||
height: 100%; |
||||
background: #F4F5F9; |
||||
display: flex; |
||||
flex-direction: column; |
||||
overflow: hidden; |
||||
.title{ |
||||
width: 100%; |
||||
height: 0.585938rem; |
||||
} |
||||
.content{ |
||||
flex: 1; |
||||
overflow: hidden; |
||||
.cardbox{ |
||||
margin: 0 auto; |
||||
margin-top:0.195313rem; |
||||
background-color: #fff; |
||||
border-radius: 0.048828rem; |
||||
width:100%; |
||||
height: 100%; |
||||
} |
||||
} |
||||
} |
||||
.mat-tab-body-wrapper { |
||||
height: 100%; |
||||
overflow: hidden; |
||||
} |
@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
||||
import { RehearsalRecordinfoComponent } from './rehearsal-recordinfo.component'; |
||||
|
||||
describe('RehearsalRecordinfoComponent', () => { |
||||
let component: RehearsalRecordinfoComponent; |
||||
let fixture: ComponentFixture<RehearsalRecordinfoComponent>; |
||||
|
||||
beforeEach(async(() => { |
||||
TestBed.configureTestingModule({ |
||||
declarations: [ RehearsalRecordinfoComponent ] |
||||
}) |
||||
.compileComponents(); |
||||
})); |
||||
|
||||
beforeEach(() => { |
||||
fixture = TestBed.createComponent(RehearsalRecordinfoComponent); |
||||
component = fixture.componentInstance; |
||||
fixture.detectChanges(); |
||||
}); |
||||
|
||||
it('should create', () => { |
||||
expect(component).toBeTruthy(); |
||||
}); |
||||
}); |
@ -0,0 +1,23 @@
|
||||
import { Component, OnInit } from '@angular/core'; |
||||
|
||||
@Component({ |
||||
selector: 'app-rehearsal-recordinfo', |
||||
templateUrl: './rehearsal-recordinfo.component.html', |
||||
styleUrls: ['./rehearsal-recordinfo.component.scss'] |
||||
}) |
||||
export class RehearsalRecordinfoComponent implements OnInit { |
||||
tabsSelectedIndex:any = 0//当前选项卡值
|
||||
title:any = "演练记录信息" |
||||
constructor() { } |
||||
|
||||
ngOnInit(): void { |
||||
} |
||||
onCustom($event){ |
||||
console.log($event);//data from child
|
||||
this.tabsSelectedIndex = 1 |
||||
} |
||||
selectedtab(e){ |
||||
sessionStorage.setItem("tabsindex",e.index) |
||||
// console.log(e.index)
|
||||
} |
||||
} |
Loading…
Reference in new issue