|
|
@@ -7,7 +7,7 @@
|
|
|
<!--集团、分公司级页面模块-->
|
|
|
<GroupPageModules :show="showGroupPage" />
|
|
|
<!--项目级页面模块-->
|
|
|
- <DistrictPageModules :show="showDistrictPage" />
|
|
|
+ <DistrictPageModules :show="!showGroupPage" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -30,10 +30,13 @@ export default {
|
|
|
GroupPageModules,
|
|
|
DistrictPageModules
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ showGroupPage() {
|
|
|
+ return this.$store.state.bigScreen.isShowGroupPage
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
- showGroupPage: false,
|
|
|
- showDistrictPage: false,
|
|
|
flexibleObject: null,
|
|
|
//角色
|
|
|
roc: Symbol('公司级用户'),
|
|
|
@@ -55,16 +58,17 @@ export default {
|
|
|
// console.log(res.result.records[0].roleName)
|
|
|
let roleArr = res.result.records[0].roleName.split(',')
|
|
|
if (!roleArr.includes(this.roc.description) && !roleArr.includes(this.robc.description)) {
|
|
|
- this.showDistrictPage = true
|
|
|
+ this.$store.state.bigScreen.isShowGroupPage = false
|
|
|
this.$store.dispatch('bigScreen/setProjectTreeData', [
|
|
|
{
|
|
|
name: '宜昌两网二期',
|
|
|
value: 'HB06',
|
|
|
- pid: 2
|
|
|
+ pid: 2,
|
|
|
+ children: []
|
|
|
}
|
|
|
])
|
|
|
} else {
|
|
|
- this.showGroupPage = true
|
|
|
+ this.$store.state.bigScreen.isShowGroupPage = true
|
|
|
this.$store.dispatch('bigScreen/setProjectTreeData', [
|
|
|
{
|
|
|
name: '三峡发展',
|
|
|
@@ -79,7 +83,8 @@ export default {
|
|
|
{
|
|
|
name: '宜昌两网二期',
|
|
|
value: 'HB06',
|
|
|
- pid: 2
|
|
|
+ pid: 2,
|
|
|
+ children: []
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
@@ -88,7 +93,7 @@ export default {
|
|
|
])
|
|
|
}
|
|
|
if (roleArr.includes(this.roc.description) && !roleArr.includes(this.robc.description)) {
|
|
|
- this.showGroupPage = true
|
|
|
+ this.$store.state.bigScreen.isShowGroupPage = true
|
|
|
this.$store.dispatch('bigScreen/setProjectTreeData', [
|
|
|
{
|
|
|
name: '三峡发展',
|
|
|
@@ -98,14 +103,15 @@ export default {
|
|
|
{
|
|
|
name: '宜昌两网二期',
|
|
|
value: 'HB06',
|
|
|
- pid: 2
|
|
|
+ pid: 2,
|
|
|
+ children: []
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
])
|
|
|
}
|
|
|
if (!roleArr.includes(this.roc.description) && roleArr.includes(this.robc.description)) {
|
|
|
- this.showGroupPage = true
|
|
|
+ this.$store.state.bigScreen.isShowGroupPage = true
|
|
|
this.$store.dispatch('bigScreen/setProjectTreeData', [
|
|
|
{
|
|
|
name: '三峡分公司',
|
|
|
@@ -115,7 +121,8 @@ export default {
|
|
|
{
|
|
|
name: '宜昌两网二期',
|
|
|
value: 'HB06',
|
|
|
- pid: 2
|
|
|
+ pid: 2,
|
|
|
+ children: []
|
|
|
}
|
|
|
]
|
|
|
}
|