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;