From ee159f6249f3b750823626b86b196b84fa34ea90 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Thu, 9 Jul 2020 14:00:17 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E7=94=A8=E6=88=B7=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/navigation/navigation.component.html | 11 +++- src/app/navigation/navigation.component.ts | 12 +++- src/app/ui/all-file/all-file.component.ts | 3 +- .../enterpriseuser.component.html | 55 +++++++------------ .../enterpriseuser.component.scss | 10 +++- .../enterpriseuser.component.ts | 22 +++++--- src/app/ui/ui-routing.module.ts | 4 +- 7 files changed, 66 insertions(+), 51 deletions(-) diff --git a/src/app/navigation/navigation.component.html b/src/app/navigation/navigation.component.html index 9258602..126b0ba 100644 --- a/src/app/navigation/navigation.component.html +++ b/src/app/navigation/navigation.component.html @@ -56,7 +56,16 @@
  • {{item.name}}
  • - + + + + 系统管理 + + + + diff --git a/src/app/navigation/navigation.component.ts b/src/app/navigation/navigation.component.ts index 1315752..0e16f62 100644 --- a/src/app/navigation/navigation.component.ts +++ b/src/app/navigation/navigation.component.ts @@ -32,7 +32,7 @@ export class NavigationComponent implements OnInit { { id:"支队级-政工岗位", name:"政工岗位" }, { id:"支队级-后勤与保障岗位", name:"后勤与保障岗位" }, { id:"支队级-防火监督岗位", name:"防火监督岗位" }, - { id:"支队级-指挥岗位", name:"指挥岗位" }, + { id:"支队级-指挥中心", name:"指挥中心" }, { id:"支队级-安全员", name:"安全员" }, ] //大队级菜单 @@ -58,6 +58,10 @@ export class NavigationComponent implements OnInit { { id:"消防救援站-装备技师", name:"装备技师" } ] + //系统管理菜单 + systemManagement:any = [ + { id:"用户管理", name:"用户管理" }, + ] ngOnInit() { @@ -84,6 +88,12 @@ export class NavigationComponent implements OnInit { } + //点击用户管理 + clickUser(item){ + this.selectedDataBank = item.id + this.router.navigate([`/home/userManagement`]) + } + //新增资料库 // addDataBank(){ // const dialogRef = this.dialog.open(AddDataBank, {//调用open方法打开对话框并且携带参数过去 diff --git a/src/app/ui/all-file/all-file.component.ts b/src/app/ui/all-file/all-file.component.ts index 1f52c50..4cc2e2e 100644 --- a/src/app/ui/all-file/all-file.component.ts +++ b/src/app/ui/all-file/all-file.component.ts @@ -38,7 +38,6 @@ export class AllFileComponent { //表头排序 sortData (e) { let data = this.oldDataSource.concat(); - // console.log(123,data) data.forEach(element => { if(element.key.indexOf(".") != -1){ let typeArr = element.key.split('.') @@ -47,7 +46,7 @@ export class AllFileComponent { } }); - // console.log(666,e) + if( e.direction=='asc' ) { //从小到大排序 data.sort( function(a,b) { return a.newTime - b.newTime diff --git a/src/app/ui/enterpriseuser/enterpriseuser.component.html b/src/app/ui/enterpriseuser/enterpriseuser.component.html index af329b3..5cf8322 100644 --- a/src/app/ui/enterpriseuser/enterpriseuser.component.html +++ b/src/app/ui/enterpriseuser/enterpriseuser.component.html @@ -2,67 +2,54 @@
    -
    - -
    - -
    - - +
    +
    - - + +
    - - + +
    - -
    -
    +
    - + +
    +
    - - - + + + - - + + - - + + - - - - - - diff --git a/src/app/ui/enterpriseuser/enterpriseuser.component.scss b/src/app/ui/enterpriseuser/enterpriseuser.component.scss index 6171aff..458e252 100644 --- a/src/app/ui/enterpriseuser/enterpriseuser.component.scss +++ b/src/app/ui/enterpriseuser/enterpriseuser.component.scss @@ -16,7 +16,6 @@ table { padding: 10px; margin-bottom: 10px; box-sizing: border-box; - border-bottom: 1px solid rgba(0,0,0,0.12); .queryBox { box-sizing: border-box; padding: 5px 15px; @@ -27,11 +26,16 @@ table { justify-content:center; .queryField { margin: 0 15px; + font-size: 14px; input { - width: 180px; + width: 280px; height: 22px; line-height: 22px; - border-radius: 3px;} + // border-radius: 3px; + } + } + .btnbox{ + float: right; } } //queryBox diff --git a/src/app/ui/enterpriseuser/enterpriseuser.component.ts b/src/app/ui/enterpriseuser/enterpriseuser.component.ts index 08603ed..3ef43ff 100644 --- a/src/app/ui/enterpriseuser/enterpriseuser.component.ts +++ b/src/app/ui/enterpriseuser/enterpriseuser.component.ts @@ -22,12 +22,16 @@ export class EnterpriseuserComponent implements OnInit { this.initData() } - displayedColumns: string[] = ['loginName', 'unitName', 'creditcode','time', 'operation']; + displayedColumns: string[] = ['name', 'identitycard', 'post', 'operation',]; dataSource:any; //所有企业用户 userLogin:string; //搜索账号 userName:string; //搜索名称 creditcode:string//统一社会信用代码 + + name:any //姓名 + identityCard:any //身份证 + //分页 @ViewChild(MatPaginator, {static: true}) pageEvent: PageEvent; @@ -41,9 +45,9 @@ export class EnterpriseuserComponent implements OnInit { chagePage (e) { this.pageNumber = e.pageIndex+1 let data= { - Name: this.userLogin || '', - CompanyName: this.userName || '', - USCI: this.creditcode || '', + Name: this.identityCard || '', + RealName: this.name || '', + RoleType: '2', PageNumber: String(this.pageNumber), } this.http.get('/api/CompanyUsers',{params:data}).subscribe((data:any)=>{ @@ -56,12 +60,12 @@ export class EnterpriseuserComponent implements OnInit { //页面初始化 + 查询 + 重置 initData () { let data= { - Name: this.userLogin || '', - CompanyName: this.userName || '', - USCI: this.creditcode || '', - PageNumber: '1', + Name: this.identityCard || '', + RealName: this.name || '', + RoleType: '2', } - this.http.get('/api/CompanyUsers',{params:data}).subscribe((data:any)=>{ + this.http.get('/api/Users',{params:data}).subscribe((data:any)=>{ + console.log(666,data) this.length = data.totalCount this.pageSize = data.pageSize this.pageEvent.pageIndex = 0 diff --git a/src/app/ui/ui-routing.module.ts b/src/app/ui/ui-routing.module.ts index eca5c9e..535cdab 100644 --- a/src/app/ui/ui-routing.module.ts +++ b/src/app/ui/ui-routing.module.ts @@ -1,8 +1,10 @@ import { Routes, RouterModule } from '@angular/router'; import { NgModule } from '@angular/core'; import { AllFileComponent } from './all-file/all-file.component'; +import { EnterpriseuserComponent } from './enterpriseuser/enterpriseuser.component'; const routes: Routes = [ - { path: '', component:AllFileComponent } + { path: '', component:AllFileComponent }, + { path: 'userManagement', component:EnterpriseuserComponent } ]; @NgModule({
    登录账号{{element.name}}(该账号已被注销)姓名{{element.name}} 单位名称身份证号 {{element.companyName}} 统一社会信用代码职务 {{element.usci}} 创建时间 - {{element.creationTime|date:'yyyy-MM-dd'}} - 操作 + - - - + + - +