From baf89c1d5ce6e2804ca2753c1d653d3f4ea1a4be Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Fri, 24 Jun 2022 09:13:57 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E8=AF=81=E7=85=A7=E9=A2=84?= =?UTF-8?q?=E8=AD=A6=E4=B8=8D=E5=A4=84=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../audit/audit-nav/audit-nav.component.ts | 36 +++++++++---------- src/app/pages/login/login.component.ts | 3 +- .../get-out-of-line-details.component.html | 2 +- .../get-out-of-line-details.component.ts | 11 +++++- 4 files changed, 30 insertions(+), 22 deletions(-) diff --git a/src/app/pages/audit/audit-nav/audit-nav.component.ts b/src/app/pages/audit/audit-nav/audit-nav.component.ts index fc9f39e..a28bede 100644 --- a/src/app/pages/audit/audit-nav/audit-nav.component.ts +++ b/src/app/pages/audit/audit-nav/audit-nav.component.ts @@ -9,11 +9,11 @@ export class AuditNavComponent implements OnInit { constructor() { } - tap=[] + tap = [] userMenu = [] - menu=[] - navList = ['经营类证照', '资产类证照','待办', '审批记录'] - selectedItem + menu = [] + navList = ['经营类证照', '资产类证照', '待办', '审批记录'] + selectedItem selectNav(item) { this.selectedItem = item } @@ -21,29 +21,29 @@ export class AuditNavComponent implements OnInit { isLevel ngOnInit(): void { - let a= sessionStorage.getItem('userdata') - this.userMenu=JSON.parse(a).menus + let a = sessionStorage.getItem('userdata') + this.userMenu = JSON.parse(a).menus console.log(this.userMenu); for (let index = 0; index < this.userMenu.length; index++) { - let a=this.userMenu[index].name + let a = this.userMenu[index].name this.tap.push(a) - + } console.log(this.tap); - - if (this.userMenu.length==0) { - this.menu=this.navList - }else{ + + if (this.userMenu.length == 0) { + this.menu = this.navList + } else { for (let index = 0; index < this.navList.length; index++) { - + for (let k = 0; k < this.tap.length; k++) { - if (this.tap[k]==this.navList[index]) { - this.menu.push(this.tap[k]) - console.log( this.menu); + if (this.tap[k] == this.navList[index]) { + this.menu.push(this.tap[k]) + console.log(this.menu); } - + } - + } } this.selectedItem = this.menu[0] diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts index bd20bbc..1ec189e 100644 --- a/src/app/pages/login/login.component.ts +++ b/src/app/pages/login/login.component.ts @@ -14,8 +14,7 @@ declare var abp: any @Component({ selector: 'app-login', templateUrl: './login.component.html', - styleUrls: ['./login.component.scss'], - + styleUrls: ['./login.component.scss'] }) export class LoginComponent implements OnInit { diff --git a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html index b919ef6..4bb73df 100644 --- a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html +++ b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html @@ -38,7 +38,7 @@ -