| | |
| | | <el-menu router :default-active="activeIndex" menu-trigger="click" background-color="#001529" text-color="#fff" |
| | | active-text-color="#1890ff" mode="horizontal"> |
| | | |
| | | <el-menu-item index="/control">控制台</el-menu-item> |
| | | <el-menu-item index="/console">控制台</el-menu-item> |
| | | <el-menu-item index="/live">分屏监控</el-menu-item> |
| | | <el-menu-item index="/deviceList">国标设备</el-menu-item> |
| | | <el-menu-item index="/map">电子地图</el-menu-item> |
| | |
| | | <el-menu-item index="/cloudRecord">云端录像</el-menu-item> |
| | | <el-menu-item index="/mediaServerManger">节点管理</el-menu-item> |
| | | <el-menu-item index="/parentPlatformList/15/1">国标级联</el-menu-item> |
| | | <el-menu-item v-if="editUser" index="/userManager">用户管理</el-menu-item> |
| | | |
| | | <!-- <el-submenu index="/setting">--> |
| | | <!-- <template slot="title">系统设置</template>--> |
| | |
| | | alarmNotify: false, |
| | | sseSource: null, |
| | | activeIndex: this.$route.path, |
| | | editUser: this.$cookies.get("session").roleId==1 |
| | | }; |
| | | }, |
| | | created() { |
| | | console.log(this.$cookies.get("session")) |
| | | if (this.$route.path.startsWith("/channelList")) { |
| | | this.activeIndex = "/deviceList" |
| | | } |