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 @@ -
+
处置内容 diff --git a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts index fd5fe13..b0d4cb8 100644 --- a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts +++ b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts @@ -26,8 +26,17 @@ export class GetOutOfLineDetailsComponent implements OnInit { isImage = true//传过来的文件是否是图片 fileUrl + + isLicenseWarning = false ngOnInit(): void { - console.log(this.data) + + if (this.data.violation.eventSystemName == '证照预警') { + this.isLicenseWarning = true + } else { + this.isLicenseWarning = false + } + + this.details = this.data.content1 this.vedioUrl = this.data.violateVideo this.content = this.data.handleRecord