Browse Source

基本信息

非煤矿山灾害智能感知和预警系统
jingbowen 3 years ago
parent
commit
14db34867c
  1. 20
      src/app/home/basic-info/unit/unit.component.html
  2. 13
      src/app/home/basic-info/unit/unit.component.scss
  3. 2
      src/app/home/basic-info/unit/unit.component.ts
  4. 4
      src/app/home/home.module.ts
  5. 3
      src/styles.scss

20
src/app/home/basic-info/unit/unit.component.html

@ -49,15 +49,17 @@
</thead> </thead>
<tbody> <tbody>
<tr *ngFor="let data of basicTable.data"> <tr *ngFor="let data of basicTable.data">
<td class="td">{{ data.name }}</td> <td >{{ data.name }}</td>
<td class="td">{{ data.integrity }}</td> <td ><div style="height: 20px; background: #eee; border-radius: 4px;">
<td class="td">{{ data.organization }}</td> <div [ngStyle]="{'width':data.integrity+'%'}" style=" height: 100%; background: #46B783; border-radius: 4px; text-align: center; color: #fff;">{{data.integrity}}%</div>
<td class="td">{{ data.level }}</td> </div></td>
<td class="td">{{ data.nature }}</td> <td >{{ data.organization }}</td>
<td class="td">{{ data.time }}</td> <td >{{ data.level }}</td>
<td class="td">{{ data.addr }}</td> <td >{{ data.nature }}</td>
<td class="td">{{ data.state }}</td> <td >{{ data.time }}</td>
<td class="td"> <td >{{ data.addr }}</td>
<td >{{ data.state }}</td>
<td >
<a>查看详情</a> <a>查看详情</a>
&nbsp; &nbsp;
<a>关闭</a> <a>关闭</a>

13
src/app/home/basic-info/unit/unit.component.scss

@ -76,7 +76,16 @@
.grey{ .grey{
color: rgba(0, 13, 33, 0.48)!important; color: rgba(0, 13, 33, 0.48)!important;
} }
.progress{
width: 100%;
height: 20px;
background: #eee;
border-radius: 2px;
.bg{
width: 32%;
height: 100%;
background: #46B783;
} }
.td{
border-style: 1px solid red;
} }
}

2
src/app/home/basic-info/unit/unit.component.ts

@ -21,7 +21,7 @@ export class UnitComponent implements OnInit {
{ {
id: '1', id: '1',
name: 'John Brown', name: 'John Brown',
integrity: 32, integrity: 20,
organization: 'New York No. 1 Lake Park', organization: 'New York No. 1 Lake Park',
level:'重点单位', level:'重点单位',
nature:'会议中心', nature:'会议中心',

4
src/app/home/home.module.ts

@ -24,6 +24,7 @@ import { DaOneselfPlanComponent } from './task/da-oneself-plan/da-oneself-plan.c
import { StationTaskExecutionComponent } from './task/station-task-execution/station-task-execution.component'; import { StationTaskExecutionComponent } from './task/station-task-execution/station-task-execution.component';
import { StationTaskApplyComponent } from './task/station-task-apply/station-task-apply.component'; import { StationTaskApplyComponent } from './task/station-task-apply/station-task-apply.component';
import { StationWeeklyPlanComponent } from './task/station-weekly-plan/station-weekly-plan.component'; import { StationWeeklyPlanComponent } from './task/station-weekly-plan/station-weekly-plan.component';
import { NzProgressModule } from 'ng-zorro-antd/progress';
@NgModule({ @NgModule({
declarations: [ declarations: [
NavComponent, NavComponent,
@ -52,7 +53,8 @@ import { StationWeeklyPlanComponent } from './task/station-weekly-plan/station-w
NzDropDownModule, NzDropDownModule,
NzInputModule, NzInputModule,
NzTableModule, NzTableModule,
NzIconModule NzIconModule,
NzProgressModule
] ]
}) })
export class HomeModule { } export class HomeModule { }

3
src/styles.scss

@ -155,6 +155,3 @@ app-root {
.maxHeightTreeSelect { .maxHeightTreeSelect {
max-height: 280px; max-height: 280px;
} }
button{
background: #2D4CC1;
}
Loading…
Cancel
Save