当前位置:网站首页>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 :
边栏推荐
- How to restart the server through the fortress machine how to log in to the fortress machine
- Moment. JS how to use epoch time to construct objects
- How to use voice synthesis? Can voice synthesis modify the voice?
- How to handle the loading exception in easynvr sharing video playback through iframe?
- Tke cluster setup linkerd2
- DCOM horizontal movement of Intranet penetration
- Oracle sqlldr quick import and sqluldr2 quick export
- Research Report on global and Chinese titanium concentrate market scale and investment prospects 2022-2028
- Typescript is a weak type
- Tcapulusdb Jun · industry news collection
猜你喜欢

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 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)

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

I, a 27 year old female programmer, feel that life is meaningless, not counting the accumulation fund deposit of 430000

layer 3 switch

Stm32g474 infrared receiving based on irtim peripherals
![[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)
随机推荐
Web user experience design promotion practice
Analysis report on development trends and prospects of China's pyrolytic boron nitride (PBN) component industry 2022-2028
Logistics industry supplier collaborative management platform supplier life cycle management to optimize logistics costs
[tcapulusdb knowledge base] how to rebuild tables in tcapulusdb table management?
[SQL injection 12] user agent injection foundation and Practice (based on burpsuite tool and sqli labs LESS18 target machine platform)
Tcapulusdb Jun · industry news collection
[dry goods] configure failover active/acitve in transparent mode on Cisco ASA firewall
5、 Array base
Tke cluster setup linkerd2
Interviewer: let's talk about the snowflake algorithm. The more detailed, the better
[software cost consulting] information project bidding process and precautions
[tcapulusdb knowledge base] how to clean up tables in tcapulusdb table management?
In only three steps, this large manufacturing enterprise has achieved full operational improvement with data
Build your own DSL with go and HCl
SAP mm Migo 411k error - correct the customizing settings for the unique
A review of Nature Neuroscience: dynamic representation in networked nervous system
Application of "popular science" UAV and video technology in fire scene
Can the server be restarted through the fortress machine? How are the fortress machines connected to the server
Ppt layout design how to make pages not messy
Railway patrol system - Railway Intelligent Patrol communication system