|
|
@ -9,11 +9,11 @@ export class AuditNavComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
constructor() { } |
|
|
|
constructor() { } |
|
|
|
|
|
|
|
|
|
|
|
tap=[] |
|
|
|
tap = [] |
|
|
|
userMenu = [] |
|
|
|
userMenu = [] |
|
|
|
menu=[] |
|
|
|
menu = [] |
|
|
|
navList = ['经营类证照', '资产类证照','待办', '审批记录'] |
|
|
|
navList = ['经营类证照', '资产类证照', '待办', '审批记录'] |
|
|
|
selectedItem
|
|
|
|
selectedItem |
|
|
|
selectNav(item) { |
|
|
|
selectNav(item) { |
|
|
|
this.selectedItem = item |
|
|
|
this.selectedItem = item |
|
|
|
} |
|
|
|
} |
|
|
@ -21,29 +21,29 @@ export class AuditNavComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
isLevel |
|
|
|
isLevel |
|
|
|
ngOnInit(): void { |
|
|
|
ngOnInit(): void { |
|
|
|
let a= sessionStorage.getItem('userdata') |
|
|
|
let a = sessionStorage.getItem('userdata') |
|
|
|
this.userMenu=JSON.parse(a).menus |
|
|
|
this.userMenu = JSON.parse(a).menus |
|
|
|
console.log(this.userMenu); |
|
|
|
console.log(this.userMenu); |
|
|
|
for (let index = 0; index < this.userMenu.length; index++) { |
|
|
|
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) |
|
|
|
this.tap.push(a) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
console.log(this.tap); |
|
|
|
console.log(this.tap); |
|
|
|
|
|
|
|
|
|
|
|
if (this.userMenu.length==0) { |
|
|
|
if (this.userMenu.length == 0) { |
|
|
|
this.menu=this.navList |
|
|
|
this.menu = this.navList |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
for (let index = 0; index < this.navList.length; index++) { |
|
|
|
for (let index = 0; index < this.navList.length; index++) { |
|
|
|
|
|
|
|
|
|
|
|
for (let k = 0; k < this.tap.length; k++) { |
|
|
|
for (let k = 0; k < this.tap.length; k++) { |
|
|
|
if (this.tap[k]==this.navList[index]) { |
|
|
|
if (this.tap[k] == this.navList[index]) { |
|
|
|
this.menu.push(this.tap[k])
|
|
|
|
this.menu.push(this.tap[k]) |
|
|
|
console.log( this.menu); |
|
|
|
console.log(this.menu); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.selectedItem = this.menu[0] |
|
|
|
this.selectedItem = this.menu[0] |
|
|
|