From 01f43d0bdb7040220c9a9fcccbf749d97c74a4c2 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Fri, 29 Apr 2022 15:48:05 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E8=AF=81=E4=BB=B6-?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E7=BA=AA=E5=BD=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../histories/histories.component.html | 41 ++++++++++++++++++- .../histories/histories.component.scss | 15 +++++++ .../license/histories/histories.component.ts | 19 ++++++++- src/theme.less | 3 +- 4 files changed, 75 insertions(+), 3 deletions(-) diff --git a/src/app/pages/license/histories/histories.component.html b/src/app/pages/license/histories/histories.component.html index 13a7fe8..5f8b95f 100644 --- a/src/app/pages/license/histories/histories.component.html +++ b/src/app/pages/license/histories/histories.component.html @@ -1 +1,40 @@ -

histories works!

+
+
+ + + + + 证件名称 + + 证件编号 + 证件有效期 + 有效期类型 + 办理类型 + 通知内容 + 通知状态 + 处置状态 + 操作 + + + + + + 证件名称 + + 证件编号 + 证件有效期 + 有效期类型 + 办理类型 + 通知内容 + 通知状态 + 处置状态 + + 详情 + + + + + +
+
\ No newline at end of file diff --git a/src/app/pages/license/histories/histories.component.scss b/src/app/pages/license/histories/histories.component.scss index e69de29..aaca580 100644 --- a/src/app/pages/license/histories/histories.component.scss +++ b/src/app/pages/license/histories/histories.component.scss @@ -0,0 +1,15 @@ +.box { + width: 100%; + height: 100%; +} + +.tablebox { + width: 100%; + height: 100%; + + .operation { + span { + margin-right: 6px; + } + } +} diff --git a/src/app/pages/license/histories/histories.component.ts b/src/app/pages/license/histories/histories.component.ts index 9881665..48dffe3 100644 --- a/src/app/pages/license/histories/histories.component.ts +++ b/src/app/pages/license/histories/histories.component.ts @@ -1,5 +1,6 @@ import { Component, OnInit } from '@angular/core'; - +import { Observable, fromEvent } from 'rxjs'; +import { debounceTime } from 'rxjs/operators'; @Component({ selector: 'app-histories', templateUrl: './histories.component.html', @@ -8,8 +9,24 @@ import { Component, OnInit } from '@angular/core'; export class HistoriesComponent implements OnInit { constructor() { } + tableSpin = false + list = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] + tableScrollHeight ngOnInit(): void { + this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - 42) + 'px' + // 页面监听 + fromEvent(window, 'resize').pipe(debounceTime(100)).subscribe((event) => { + this.tableScrollHeight = (document.getElementById('tablebox').clientHeight - 42) + 'px' + }); } + + + + + + dispose() { + console.log('处置') + } } diff --git a/src/theme.less b/src/theme.less index 885e0f5..0c3320b 100644 --- a/src/theme.less +++ b/src/theme.less @@ -351,7 +351,8 @@ #stationPlanBox, #inform, #updateLicense, -#fileLicense { +#fileLicense, +#histories { ::-webkit-input-placeholder { /* WebKit browsers */ color: #345d85;