This commit is contained in:
parent
886272123d
commit
578498a4c7
|
|
@ -19,9 +19,12 @@ export default {
|
|||
}
|
||||
},
|
||||
created() {
|
||||
const deptName = sessionStorage.getItem('deptName')
|
||||
// 如果 deptName 包含 省公司 则显示ProvincialChart 否则 显示 MunicipalChart
|
||||
this.isShowComponent = deptName.includes('省公司') ? 'ProvincialChart' : 'MunicipalChart'
|
||||
// const deptName = sessionStorage.getItem('deptName')
|
||||
// this.isShowComponent = deptName.includes('省公司') ? 'ProvincialChart' : 'MunicipalChart'
|
||||
|
||||
const deptId = sessionStorage.getItem('companyId')
|
||||
this.isShowComponent = deptId == 243 ? 'ProvincialChart' : 'MunicipalChart'
|
||||
},
|
||||
methods: {},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue