|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | created () { | 
|---|
|  |  |  | document.title=this.systemTitle | 
|---|
|  |  |  | this.setFindByCompanyId(this.userInfo.companyId) | 
|---|
|  |  |  | if (this.userInfo.companyId) { | 
|---|
|  |  |  | this.setFindByCompanyId(this.userInfo.companyId) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | computed: { | 
|---|
|  |  |  | ...mapState(['menuData', 'userInfo']), | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | setFindByCompanyId(companyId) { | 
|---|
|  |  |  | if (this.userInfo.type !== 1) return | 
|---|
|  |  |  | findByCompanyId(companyId) | 
|---|
|  |  |  | .then(res => { | 
|---|
|  |  |  | console.log(res) | 
|---|
|  |  |  | this.info = res | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <style> | 
|---|
|  |  |  | .el-dropdown-menu { | 
|---|
|  |  |  | width: 240px !important; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | </style> | 
|---|
|  |  |  | <style scoped lang="scss"> | 
|---|
|  |  |  | @import "@/assets/style/variables.scss"; | 
|---|
|  |  |  | .common-header { | 
|---|