当前位置:网站首页>Activeindex selection and redirection in the menu bar on the right of easycvs
Activeindex selection and redirection in the menu bar on the right of easycvs
2022-06-24 16:38:00 【Tsingsee green rhino video】
Last time we solved EasyCVS Video management platform in small screen state menu bar problem ( Video management platform menu bar small screen adaptive optimization recording ). But in practice ,EasyCVS When the right menu bar switches to the top menu bar , Menu bar activeindex Will change , here , If you open the right menu bar , Correspondingly, you also need to switch to the corresponding menu bar item, At the same time, when the page is refreshed, it also needs to be redirected to the corresponding activeIndex.
First of all, the menu bar on the right is to use elementUi Of el-menu Components , The component comes with it default-active attribute , When the top navigation bar switches, his activeIndex Value to the navigation bar on the right default-active value .
Redirection is to detect the routing address , To get pre-determined information for each navigation bar item The corresponding routing address , And then we put each route's activeInde The value given to the navigation bar default-active Assignment can .
The reference codes are as follows :
<el-menu :default-active="activeIndexRight" class="el-menu-vertical-demo" @open="handleOpen" @select="select" background-color="#292C33" text-color="#fff" @close="handleClose" :router="true" > <el-menu-item index="0" :route="'/scrren'"> <span slot="title"> Real-time Preview </span> </el-menu-item> <el-menu-item index="1" :route="'/live/lis'"> <span slot="title"> Live video </span> </el-menu-item> <el-menu-item index="2" :route="'/user/list'"> <span slot="title"> User management </span> </el-menu-item> <el-menu-item index="3" :route="'/space/list'"> <span slot="title"> Space management </span> </el-menu-item> <el-menu-item index="4" :route="'/bucket/list'"> <span slot="title"> Object storage </span> </el-menu-item> </el-menu> // Navigation bar redirection RouteRedirection() { var path = this.$route.path; let paths = [ { path: "/scrren", type: 0 }, { path: "/live/list", type: 1 }, { path: "/user", type: 2 }, { path: "/space", type: 3 }, { path: "/bucket", type: 4 }, { path: "/oss/list", type: 5 }, ]; for (const i in paths) { if (path.indexOf(paths[i].path) != -1) { this.activeIndex = paths[i].type; this.activeIndexRight = JSON.stringify(this.activeIndex); console.log(this.activeIndex, " route "); return; } } },
EasyCVS Although it is not open to the outside world at present , But interested users can learn about EasyCVR.EasyCVR Currently supported RTSP、GB28181、Ehome、 The sea, SDK、 Dahua SDK Access of protocol equipment , Private agreements of other mainstream manufacturers are expanding . So in the long run ,EasyCVR It has high use value and adaptability .
边栏推荐
- Embedded Software Engineer written interview guide arm system and architecture
- Customized Tile Map cut - based on Tencent map
- Fastjson vulnerability utilization techniques
- 国泰君安期货安全么?期货开户怎么开?期货手续费怎么降低?
- Pytorch 转置卷积
- Tencent on the other hand, I was puzzled by the "horse race" problem
- Recent progress of ffmpeg go
- The mystery of redis data migration capacity
- Is Shanjin futures safe? What are the procedures for opening futures accounts? How to reduce the futures commission?
- Istio FAQ: virtualservice route matching sequence
猜你喜欢
Problems encountered in the work of product manager
Applet - use of template
Advanced programmers must know and master. This article explains in detail the principle of MySQL master-slave synchronization
Ps\ai and other design software pondering notes
MySQL進階系列:鎖-InnoDB中鎖的情况
There are potential safety hazards Land Rover recalls some hybrid vehicles
A survey of training on graphs: taxonomy, methods, and Applications
B. Terry sequence (thinking + greed) codeforces round 665 (Div. 2)
Ui- first lesson
A survey on dynamic neural networks for natural language processing, University of California
随机推荐
A survey on model compression for natural language processing (NLP model compression overview)
Load MySQL table data consumption quick installation configuration through kafka/flink
AI video structured intelligent security platform easycvr realizes intelligent security monitoring scheme for procuratorate building
Cognition and difference of service number, subscription number, applet and enterprise number (enterprise wechat)
A memory leak caused by timeout scheduling of context and goroutine implementation
Some adventurer hybrid versions with potential safety hazards will be recalled
What is a reptile
What is thermal data detection?
[tke] nodelocaldnschache is used in IPVS forwarding mode
mysql时间戳格式转换日期格式字符串
The mystery of redis data migration capacity
Coding's first closed door meeting on financial technology exchange was successfully held
Kubernetes popular series: getting started with container Foundation
What is Ethernet
MySQL InnoDB and MyISAM
Batch BOM Bapi test
Istio FAQ: sidecar startup sequence
Transpose convolution explanation
Istio FAQ: virtualservice route matching sequence
Heavy release! Tencent cloud ASW workflow, visual orchestration cloud service