|
@ -350,8 +350,9 @@ import request,{host} from '@/common/request' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed:{ |
|
|
computed:{ |
|
|
|
|
|
//是否可以切换基地 |
|
|
isAdmin(){ |
|
|
isAdmin(){ |
|
|
return this.$store.getters.userInfo.roleCode=='company_admin' |
|
|
return /^company_admin$|^base_admin$|^ware_admin$/.test(this.$store.getters.userInfo.roleCode) |
|
|
}, |
|
|
}, |
|
|
isEmpty(){ |
|
|
isEmpty(){ |
|
|
if(!this.baseIndex)return (this.baseInfo.farmWork||[]).length+(this.baseInfo.farmingInput||[]).length<=0 |
|
|
if(!this.baseIndex)return (this.baseInfo.farmWork||[]).length+(this.baseInfo.farmingInput||[]).length<=0 |
|
|