当前位置:网站首页>What is the reason why the switching page group disappears after easycvr establishes a multi-level group?
What is the reason why the switching page group disappears after easycvr establishes a multi-level group?
2022-06-24 01:53:00 【Tsingsee green rhino video】
TSINGSEE Green rhino video cloud side architecture platform when accessing multi-level channels , In the video access sidebar, a column menu will be displayed , The purpose is to make the distinction between channels clearer . At present, we have successfully added the multi-level grouping function to EasyCVR Inside .
In a certain EasyCVR On site , An error occurred while testing the multi-level grouping function bug, When the user establishes many levels of grouping in the grouping interface , Switch to the video square page , Multi level grouping content disappeared .
actually , The interface called by the device grouping interface and the video Plaza interface is not the same interface , Find the calling interface , Then get the corresponding top-level group , Temporarily on the outermost side , When the user clicks , Load the subgroups in one time .
So we need to make changes at the code level , When the user calls the interface of the video square interface , First, determine the user role , Then bind to find the corresponding group , Show the top-level groups , The rest show the subgroups at once . The reference codes are as follows :
// The child groups included in the group
lowerlabels, err := cvrservice.GetDeviceService().GetLowerLabels(labelid)
if err != nil {
c.AbortWithStatusJSON(400, err.Error())
return
}
// The group contains subordinate devices
devices, err := cvrservice.GetDeviceService().GetDevicesByLabelID(labelid)
if err != nil {
c.AbortWithStatusJSON(400, err.Error())
return
}After adding, deploy the effect on the customer's site , Be able to show the group correctly :
边栏推荐
- Stm32g474 infrared receiving based on irtim peripherals
- Why promote steam education?
- Global and Chinese dealox industry development status and demand trend forecast report 2022-2028
- The core battlefield of China US AI arms race: trillion level pre training model
- What does fortress server mean? What are the benefits of Fortress server installation
- 8、 Pipeline pipeline construction project
- Make standardized tools in the cloud native era to realize efficient cloud R & D workflow
- What is "data" in data analysis- Cassie Kozyrkov
- Netease Shufan: Data productivity platform 2.0 promotes "everyone uses data and always uses data"
- SAP mm UB type sto cannot be transferred to vendor consignment inventory?
猜你喜欢

Review of AI hotspots this week: the Gan compression method consumes less than 1/9 of the computing power, and the open source generator turns your photos into hand drawn photos

It's too difficult for me. Ali has had 7 rounds of interviews (5 years of experience and won the offer of P7 post)
![[SQL injection 12] user agent injection foundation and Practice (based on burpsuite tool and sqli labs LESS18 target machine platform)](/img/c8/f6c2a62b8ab8fa88bd2b3d8f35f592.jpg)
[SQL injection 12] user agent injection foundation and Practice (based on burpsuite tool and sqli labs LESS18 target machine platform)

Stm32g474 infrared receiving based on irtim peripherals

layer 3 switch

I, a 27 year old female programmer, feel that life is meaningless, not counting the accumulation fund deposit of 430000
![[SQL injection 13] referer injection foundation and Practice (based on burpseuite tool and sqli labs less19 target platform)](/img/b5/a8c4bbaf868dd20b7dc9449d2a4378.jpg)
[SQL injection 13] referer injection foundation and Practice (based on burpseuite tool and sqli labs less19 target platform)
随机推荐
I, a 27 year old female programmer, feel that life is meaningless, not counting the accumulation fund deposit of 430000
Analysis report on development trends and prospects of China's pyrolytic boron nitride (PBN) component industry 2022-2028
Grpc: implement grpc proxy
layer 3 switch
Why promote steam education?
Build a smart pole visual intercom system through an intelligent gateway
6、 Symbols and commands for numerical calculation of variables
"Cross border" layout photovoltaic circle Green Island wind invested 4.6 million to layout distributed photovoltaic power generation
Global and Chinese alumina nanoparticle market scale and Development Trend Outlook report 2022-2028
Login server in VNC mode
Implementation of asynchronous notification and event callback based on guava API
[tcapulusdb knowledge base] tcapulusdb introduction Questions Summary
Grp: implement GRP timeout interceptor
[technical grass planting] look what I did with my server!
What does fortress server mean? What are the benefits of Fortress server installation
Ppt layout design how to make pages not messy
2021-11-14:Fizz Buzz。 I'll give you an integer n and find the number from 1 to n
How about speech synthesis? Is speech synthesis effective?
Moment. JS how to use epoch time to construct objects
Tcapulusdb Jun · industry news collection