From 85b2c5957d70c6739fda399746f5a6899cfd5c61 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Wed, 8 Jun 2022 11:05:06 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E8=B5=84=E4=BA=A7=E7=B1=BB?= =?UTF-8?q?=E8=AF=81=E7=85=A7=E8=A1=A8=E6=A0=BC=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../criminal-records-admin.component.ts | 2 +- .../criminal-records.component.ts | 2 +- .../file-license-list.component.html | 26 ++++++++++--------- .../file-license-list.component.ts | 3 +++ .../update-license-list.component.html | 10 +++---- .../update-license-list.component.ts | 2 +- 6 files changed, 25 insertions(+), 20 deletions(-) diff --git a/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts b/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts index 43a8407..36cb11d 100644 --- a/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts +++ b/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts @@ -24,7 +24,7 @@ export class CriminalRecordsAdminComponent implements OnInit { //饼图 myChart option = { - color: ['#FF4B65', '#23D9FF', '#608AFF', '#B2FF6D', '#FFFF99', '#C4E2FC', '#FF7F00', '#0090FF', '#FFD634', '#105597', '#FF4B65', '#23D9FF', '#71FFF5', '#B2FF6D'], + color: ['#91CCFF', '#46DFFF', '#36A2FF', '#FF6181', '#B4C3FF', '#FF9963', '#5A9CFF', '#4BFFD4', '#46DFFF', '#91CCFF'], tooltip: { trigger: 'item'//触发类型 }, diff --git a/src/app/pages/criminal-records/criminal-records.component.ts b/src/app/pages/criminal-records/criminal-records.component.ts index 6bb0763..73decb9 100644 --- a/src/app/pages/criminal-records/criminal-records.component.ts +++ b/src/app/pages/criminal-records/criminal-records.component.ts @@ -22,7 +22,7 @@ export class CriminalRecordsComponent implements OnInit { myChart: any //左侧饼图 option = { - color: ['#FF4B65', '#23D9FF', '#608AFF', '#B2FF6D', '#FFFF99', '#C4E2FC', '#FF7F00', '#0090FF', '#FFD634', '#105597', '#FF4B65', '#23D9FF', '#71FFF5', '#B2FF6D'], + color: ['#91CCFF', '#46DFFF', '#36A2FF', '#FF6181', '#B4C3FF', '#FF9963', '#5A9CFF', '#4BFFD4', '#46DFFF', '#91CCFF'], tooltip: { trigger: 'item'//触发类型 }, diff --git a/src/app/pages/plan-admin/file-license-list/file-license-list.component.html b/src/app/pages/plan-admin/file-license-list/file-license-list.component.html index 7433900..bf4770a 100644 --- a/src/app/pages/plan-admin/file-license-list/file-license-list.component.html +++ b/src/app/pages/plan-admin/file-license-list/file-license-list.component.html @@ -1,4 +1,4 @@ -
+
- + - 序号 - + 序号 + {{item.name}} @@ -60,9 +62,9 @@ - {{key + 1}} - - + {{key + 1}} + @@ -70,7 +72,7 @@ - {{i.value}} + {{i.value}} diff --git a/src/app/pages/plan-admin/file-license-list/file-license-list.component.ts b/src/app/pages/plan-admin/file-license-list/file-license-list.component.ts index 516452a..5be13a4 100644 --- a/src/app/pages/plan-admin/file-license-list/file-license-list.component.ts +++ b/src/app/pages/plan-admin/file-license-list/file-license-list.component.ts @@ -24,9 +24,11 @@ export class FileLicenseListComponent implements OnInit { constructor(private modal: NzModalService, private viewContainerRef: ViewContainerRef, private element: ElementRef, private navChangeService: NavChangeService, private http: HttpClient, private toTree: TreeService, private fb: FormBuilder, private nzContextMenuService: NzContextMenuService, private router: Router, private message: NzMessageService) { } tableScrollHeight + tableScrollWeight resizeListener async ngOnInit(): Promise { this.tableScrollHeight = '100px' + this.tableScrollWeight = '100px' // 页面监听 this.resizeListener = fromEvent(window, 'resize').pipe(debounceTime(100)).subscribe((event) => { let tableHeader = this.element.nativeElement.querySelector(`.ant-table-header`).clientHeight @@ -171,6 +173,7 @@ export class FileLicenseListComponent implements OnInit { setTimeout(() => { let tableHeader = this.element.nativeElement.querySelector(`.ant-table-header`).clientHeight this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - tableHeader - 10) + 'px' + this.tableScrollWeight = (this.list[0].length + 1) * 100 + 'px' }, 0); diff --git a/src/app/pages/plan-admin/update-license-list/update-license-list.component.html b/src/app/pages/plan-admin/update-license-list/update-license-list.component.html index 2b86619..a1b4c24 100644 --- a/src/app/pages/plan-admin/update-license-list/update-license-list.component.html +++ b/src/app/pages/plan-admin/update-license-list/update-license-list.component.html @@ -63,9 +63,9 @@ [nzScroll]="{ x: tableScrollWeight,y:tableScrollHeight}" [nzNoResult]='null' nzTableLayout="fixed"> - 序号 + 序号 + [nzLeft]=" k <=2 ? (k*120 + 60)+'px' : false" [nzWidth]="k <= 2 ? '120px' : '180px'"> {{item.name}} @@ -75,7 +75,8 @@ {{key + 1}} - + - {{i.value}} + {{i.value}} @@ -96,6 +97,5 @@ -
\ No newline at end of file diff --git a/src/app/pages/plan-admin/update-license-list/update-license-list.component.ts b/src/app/pages/plan-admin/update-license-list/update-license-list.component.ts index c4dfb6e..e42402c 100644 --- a/src/app/pages/plan-admin/update-license-list/update-license-list.component.ts +++ b/src/app/pages/plan-admin/update-license-list/update-license-list.component.ts @@ -169,7 +169,7 @@ export class UpdateLicenseListComponent implements OnInit { setTimeout(() => { let tableHeader = this.element.nativeElement.querySelector(`.ant-table-header`).clientHeight this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - tableHeader - 10) + 'px' - this.tableScrollWeight = (this.list[0].length+1)*100 +'px' + this.tableScrollWeight = (this.list[0].length + 1) * 100 + 'px' }, 0); this.list = this.list.concat(arr);