Browse Source

[完善]支队字体变大

非煤矿山灾害智能感知和预警系统
邵佳豪 3 years ago
parent
commit
a97b4d137c
  1. 2
      src/app/home/basic-info/basic-info.component.html
  2. 2
      src/app/home/basic-info/unit/unit.component.html
  3. 2
      src/app/home/nav/nav.component.html
  4. 4
      src/app/home/nav/nav.component.ts
  5. 51
      src/theme.less

2
src/app/home/basic-info/basic-info.component.html

@ -1,4 +1,4 @@
<div class="box"> <div class="box ">
<div class="nav"> <div class="nav">
<ul> <ul>
<li [routerLink]="['/basicInfo/unit']" routerLinkActive="router-link-active"> <li [routerLink]="['/basicInfo/unit']" routerLinkActive="router-link-active">

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

@ -33,7 +33,7 @@
<!-- <button nz-button nzType="primary"><i nz-icon nzType="edit" nzTheme="outline"></i>修改</button> <!-- <button nz-button nzType="primary"><i nz-icon nzType="edit" nzTheme="outline"></i>修改</button>
<button nz-button nzType="primary" nzDanger><i nz-icon nzType="delete" nzTheme="outline"></i>删除</button> --> <button nz-button nzType="primary" nzDanger><i nz-icon nzType="delete" nzTheme="outline"></i>删除</button> -->
</div> </div>
<nz-table [nzLoading]="nzLoading" [nzBordered]="true" #basicTable [nzData]="listOfData" [nzShowPagination]='false'> <nz-table style="font-size: 18px!important;" [nzLoading]="nzLoading" [nzBordered]="true" #basicTable [nzData]="listOfData" [nzShowPagination]='false'>
<thead> <thead>
<tr> <tr>
<th nzWidth="17%">单位名称</th> <th nzWidth="17%">单位名称</th>

2
src/app/home/nav/nav.component.html

@ -1,4 +1,4 @@
<nz-layout> <nz-layout [ngClass]="{'bigfontpattern': isZhidui}">
<nz-header> <nz-header>
<div class="logobox"> <div class="logobox">
<img src="../../../assets/images/logo/logo.png" alt=""> <img src="../../../assets/images/logo/logo.png" alt="">

4
src/app/home/nav/nav.component.ts

@ -17,6 +17,8 @@ export class NavComponent implements OnInit {
constructor(private modal: NzModalService, private http: HttpClient, private message: NzMessageService, private viewContainerRef: ViewContainerRef, private router: Router, public token: CacheTokenService) { } constructor(private modal: NzModalService, private http: HttpClient, private message: NzMessageService, private viewContainerRef: ViewContainerRef, private router: Router, public token: CacheTokenService) { }
user = null user = null
isSuperAdmin isSuperAdmin
isZhidui = false
ngOnInit(): void { ngOnInit(): void {
//调用服务中的function刷新token //调用服务中的function刷新token
this.token.startUp() this.token.startUp()
@ -27,6 +29,8 @@ export class NavComponent implements OnInit {
}) })
isTrue ? this.isSuperAdmin = true : this.isSuperAdmin = false isTrue ? this.isSuperAdmin = true : this.isSuperAdmin = false
let organizationLevel = JSON.parse(sessionStorage.getItem('userData')).organizationLevel
organizationLevel == 'brigade' ? this.isZhidui = true : this.isZhidui = false
signalR.initSR(); signalR.initSR();
// 接收来自中心的消息 // 接收来自中心的消息

51
src/theme.less

@ -84,10 +84,57 @@
.maxHeightTreeSelect { .maxHeightTreeSelect {
max-height: 280px; max-height: 280px;
} }
.ant-checkbox-group{
.ant-checkbox-group {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
label{
label {
margin-bottom: 6px; margin-bottom: 6px;
} }
} }
.bigfontpattern {
.logobox {
width: 255px !important;
font-size: 20px !important;
}
font-size: 16px !important;
th,
tr,
button,
input,
nz-select,
nz-tree-select {
font-size: 16px !important;
padding-top: 0;
padding-bottom: 0;
}
}
// 适配125%
@media screen and (max-height: 750px) {
.bigfontpattern {
.logobox {
width: 240px !important;
font-size: 16px !important;
}
font-size: 14px !important;
th,
tr,
button,
input,
nz-select,
nz-tree-select {
font-size: 14px !important;
padding-top: 0;
padding-bottom: 0;
}
}
}

Loading…
Cancel
Save