|
|
@ -14,11 +14,14 @@
|
|
|
|
{{ name }} <i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
{{ name }} <i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
|
<div style="height: 300px;overflow: auto">
|
|
|
|
<div class="topNavScroll" style="height: 300px;overflow: auto;background-color: #053563;padding: 0;border: none;">
|
|
|
|
<el-dropdown-item v-for="i in selectSecnesList" :key="i.sceneId"
|
|
|
|
<el-dropdown-item v-for="i in selectSecnesList" :key="i.sceneId"
|
|
|
|
:command="{router:i.router,name:i.sceneName,sceneId:i.sceneId}">{{
|
|
|
|
:command="{router:i.router,name:i.sceneName,sceneId:i.sceneId}">
|
|
|
|
|
|
|
|
<span style="color: #f8fefd">
|
|
|
|
|
|
|
|
{{
|
|
|
|
i.sceneName
|
|
|
|
i.sceneName
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</el-dropdown-item>
|
|
|
|
</el-dropdown-item>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dropdown-menu>
|
|
|
|
</el-dropdown-menu>
|
|
|
@ -72,6 +75,9 @@ export default {
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
async mounted() {
|
|
|
|
async mounted() {
|
|
|
|
|
|
|
|
if (!this.$store.getters.sceneId) {
|
|
|
|
|
|
|
|
this.$router.replace({path: "/board/index"})
|
|
|
|
|
|
|
|
}
|
|
|
|
if (this.$route.name === 'SmartScene' || this.$route.name === 'GPS' || this.$route.name === 'index' || this.$store.getters.sceneId) {
|
|
|
|
if (this.$route.name === 'SmartScene' || this.$route.name === 'GPS' || this.$route.name === 'index' || this.$store.getters.sceneId) {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (this.$store.state.user.permissions.includes('business:monitor:index') || this.$store.state.user.permissions.includes('*:*:*')) {
|
|
|
|
if (this.$store.state.user.permissions.includes('business:monitor:index') || this.$store.state.user.permissions.includes('*:*:*')) {
|
|
|
@ -192,4 +198,16 @@ export default {
|
|
|
|
color: #d4d4d4;
|
|
|
|
color: #d4d4d4;
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.el-dropdown-menu {
|
|
|
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
|
|
|
border: none !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.topNavScroll::-webkit-scrollbar {
|
|
|
|
|
|
|
|
width: 0px;
|
|
|
|
|
|
|
|
height: 0px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-dropdown-menu__item:not(.is-disabled):hover span {
|
|
|
|
|
|
|
|
color: #053563 !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|