|
|
|
@ -15,11 +15,13 @@ export class TaskComponent implements OnInit {
|
|
|
|
|
console.log(JSON.parse(sessionStorage.getItem('userData'))); |
|
|
|
|
|
|
|
|
|
this.level=JSON.parse(sessionStorage.getItem('userData')).organizationLevel |
|
|
|
|
let user=JSON.parse(sessionStorage.getItem('userData')).roles[0].name |
|
|
|
|
if(user.indexOf('检查') != -1){ |
|
|
|
|
this.user=true |
|
|
|
|
console.log(1); |
|
|
|
|
let user=JSON.parse(sessionStorage.getItem('userData')).roles |
|
|
|
|
|
|
|
|
|
for (let index = 0; index < user.length; index++) { |
|
|
|
|
const element = user[index].name; |
|
|
|
|
if(element.indexOf('检查') != -1){ |
|
|
|
|
this.user=true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(this.router.url=="/task"){ |
|
|
|
|
if(this.level=="brigade"){ |
|
|
|
@ -34,5 +36,4 @@ export class TaskComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|