| | |
| | | <template> |
| | | <div class="navbar"> |
| | | <hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" |
| | | @toggleClick="toggleSideBar" /> |
| | | @toggleClick="toggleSideBar" /> |
| | | |
| | | <breadcrumb id="breadcrumb-container" class="breadcrumb-container" v-if="!topNav" /> |
| | | <top-nav id="topmenu-container" class="topmenu-container" v-if="topNav" /> |
| | |
| | | |
| | | </div> |
| | | <div class="button-container"> |
| | | <el-button type="primary" @click="toScreen">可视化大屏</el-button> |
| | | <el-button v-if="roles.includes('admin') || roles.includes('county_leader') || roles.includes('city_leader')" type="primary" @click="toScreen" size="small">可视化大屏</el-button> |
| | | </div> |
| | | <div class="button-container"> |
| | | <el-button type="primary" @click="toSystemB">跳转B系统</el-button> |
| | | <el-button type="primary" @click="toSystemB" size="small">跳转B系统</el-button> |
| | | </div> |
| | | <div class="button-container"> |
| | | <el-button type="primary" @click="toSystemA">跳转A系统</el-button> |
| | | <el-button type="primary" @click="toSystemA" size="small">跳转A系统</el-button> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | ...mapGetters([ |
| | | 'sidebar', |
| | | 'avatar', |
| | | 'device' |
| | | 'device', |
| | | 'roles' |
| | | ]), |
| | | setting: { |
| | | get() { |
| | |
| | | path: '/screen' |
| | | }) |
| | | }, |
| | | |
| | | toSystemA() { |
| | | this.$router.push({ |
| | | path: '/screen' |
| | | }) |
| | | window.open('https://www.baidu.com/') |
| | | }, |
| | | toSystemB() { |
| | | this.$router.push({ |
| | | path: '/screen' |
| | | }) |
| | | window.open('https://www.baidu.com/') |
| | | } |
| | | } |
| | | } |