|
@@ -255,10 +255,10 @@ import {
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
|
- this.roleList=this.jphelp.getPersonInfoPlus().roleList
|
|
|
+ // this.roleList=
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.roleList=this.jphelp.getPersonInfoPlus().roleList
|
|
|
+ // this.roleList=this.jphelp.getPersonInfoPlus().roleList
|
|
|
if(this.isReadyfloorStatus){
|
|
|
this.getfloorStatus()
|
|
|
}
|
|
@@ -269,15 +269,11 @@ import {
|
|
|
},
|
|
|
computed:{
|
|
|
isAdmin(){
|
|
|
- if(this.roleList){
|
|
|
- var i =this.roleList.findIndex(item=>{
|
|
|
- return item.name=='XJADMIN'
|
|
|
- })
|
|
|
- if(i!=-1){
|
|
|
- return true
|
|
|
- }
|
|
|
+ console.log(this.jphelp.getPersonInfo().role)
|
|
|
+ if(this.jphelp.getPersonInfo().role=='1'){
|
|
|
+ return true
|
|
|
}
|
|
|
- return true
|
|
|
+ return false
|
|
|
}
|
|
|
},
|
|
|
onReady() {
|