You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.1 KiB
64 lines
2.1 KiB
4 years ago
|
/*
|
||
|
* @Descripttion:
|
||
|
* @version:
|
||
|
* @Author: sueRimn
|
||
|
* @Date: 2021-03-15 11:32:30
|
||
|
* @LastEditors: sueRimn
|
||
|
* @LastEditTime: 2021-03-15 13:51:48
|
||
|
*/
|
||
|
import { Component, OnInit, ViewChild, Inject } from '@angular/core';
|
||
|
import { HttpClient } from '@angular/common/http'
|
||
|
import { MatTreeFlatDataSource, MatTreeFlattener } from '@angular/material/tree';
|
||
|
import { MatPaginator } from '@angular/material/paginator';
|
||
|
import { FlatTreeControl } from '@angular/cdk/tree';
|
||
|
import { FormControl } from '@angular/forms';
|
||
|
import { Router,ActivatedRoute } from '@angular/router'
|
||
|
import { PageEvent } from '@angular/material/paginator';
|
||
|
import { MatDialogRef, MatDialog, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||
|
import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar';
|
||
|
import { TreeService } from '../../http-interceptors/tree.service'
|
||
|
import { MatTableDataSource } from '@angular/material/table';
|
||
|
declare var CryptoJS
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-all-plan',
|
||
|
templateUrl: './all-plan.component.html',
|
||
|
styleUrls: ['./all-plan.component.scss']
|
||
|
})
|
||
|
export class AllPlanComponent implements OnInit {
|
||
|
|
||
|
constructor(private http: HttpClient,public snackBar: MatSnackBar,public route: ActivatedRoute,private router: Router) { }
|
||
|
|
||
|
ngOnInit(): void {
|
||
|
this.route.queryParams.subscribe(params => {
|
||
|
this.titlename = params['name'];
|
||
|
this.type = params['type'];
|
||
|
this.jsId=params['jsid']
|
||
|
});
|
||
|
}
|
||
|
displayedColumns: string[] = ['unitname','modifiedTime','organizationName','buildingTypes','operation'];
|
||
|
tabledataSource
|
||
|
titlename //上个页面传过来的名称
|
||
|
type //上个页面传过来:1重点单位 2预案
|
||
|
jsId //组织机构id
|
||
|
//分页
|
||
|
@ViewChild(MatPaginator, {static: true})
|
||
|
pageEvent: PageEvent;
|
||
|
paginator: MatPaginator;
|
||
|
length:any; //共多少条数据
|
||
|
pageSize:any; //每页条数
|
||
|
pageSizeOptions: number[] = [10] //设置每页条数
|
||
|
PageNumber:any; //第几页
|
||
|
//分页事件
|
||
|
changePage(e){
|
||
|
this.PageNumber = e.pageIndex+1
|
||
|
//this.getAlltabledate()
|
||
|
}
|
||
|
//返回
|
||
|
goBack () {
|
||
|
history.go(-1)
|
||
|
//this.echartsData.statefulInspectionToggle = true
|
||
|
}
|
||
|
|
||
|
}
|