@ -12,6 +12,7 @@ import 'linqjs';
import { DetailsUpdateCategoryComponent } from '../../license/update-category/details-update-category/details-update-category.component' ;
import { NzModalService } from 'ng-zorro-antd/modal' ;
import { NzMessageService } from 'ng-zorro-antd/message' ;
import { DetailsFileCategoryComponent } from '../../license/file-category/details-file-category/details-file-category.component' ;
@Component ( {
selector : 'app-file-license-list' ,
@ -50,6 +51,7 @@ export class FileLicenseListComponent implements OnInit {
ngOnDestroy ( ) : void {
this . resizeListener . unsubscribe ( )
}
//获取所有组织机构
nodes : any = [ ]
async getAllOrganization() {
@ -79,8 +81,6 @@ export class FileLicenseListComponent implements OnInit {
}
ngAfterViewInit ( ) : void {
fromEvent ( this . element . nativeElement . querySelector ( ` .ant-table-body ` ) as HTMLCanvasElement , 'scroll' ) . pipe ( debounceTime ( 100 ) ) . subscribe ( async ( event : any ) = > { //监听 DOM 滚动事件
if ( event . target . scrollHeight - ( event . target . scrollTop + event . target . clientHeight ) <= 10 ) {
@ -102,6 +102,7 @@ export class FileLicenseListComponent implements OnInit {
this . SkipCount = '0'
this . getStationLicenses ( )
}
resetForm ( e : MouseEvent ) : void {
e . preventDefault ( ) ;
this . validateForm . reset ( ) ;
@ -192,6 +193,40 @@ export class FileLicenseListComponent implements OnInit {
this . getStationLicenses ( )
}
lookDetails ( i ) {
console . log ( i )
let params = {
Id : i.licenseId
}
this . http . get ( '/api/services/app/StationFileLicense/Get' , { params : params } ) . subscribe ( ( data : any ) = > {
console . log ( '证照信息' , data )
const modal = this . modal . create ( {
nzContent : DetailsFileCategoryComponent ,
nzViewContainerRef : this.viewContainerRef ,
nzWidth : 450 ,
nzBodyStyle : {
'border' : '1px solid #91CCFF' ,
'border-radius' : '0px' ,
'padding' : '7px' ,
'box-shadow' : '0 0 8px 0 #fff' ,
'background-image' : 'linear-gradient(#003665, #000f25)'
} ,
nzComponentParams : {
data : data.result
} ,
nzFooter : null ,
nzClosable : false ,
nzOnOk : async ( ) = > {
}
} ) ;
const instance = modal . getContentComponent ( ) ;
modal . afterClose . subscribe ( result = > { } ) ;
} )
}
exportExcel() {
// console.log(this.validateForm)