CN110968230A - Display method, display device and readable storage medium of control - Google Patents

Display method, display device and readable storage medium of control Download PDF

Info

Publication number
CN110968230A
CN110968230A CN201911231560.7A CN201911231560A CN110968230A CN 110968230 A CN110968230 A CN 110968230A CN 201911231560 A CN201911231560 A CN 201911231560A CN 110968230 A CN110968230 A CN 110968230A
Authority
CN
China
Prior art keywords
user
dynamic route
route
control
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911231560.7A
Other languages
Chinese (zh)
Other versions
CN110968230B (en
Inventor
于洪歌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Second Picket Network Technology Co ltd
Original Assignee
Shanghai Fengzhi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Fengzhi Technology Co Ltd filed Critical Shanghai Fengzhi Technology Co Ltd
Priority to CN201911231560.7A priority Critical patent/CN110968230B/en
Publication of CN110968230A publication Critical patent/CN110968230A/en
Application granted granted Critical
Publication of CN110968230B publication Critical patent/CN110968230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a display method, a display device and a readable storage medium of a control, wherein the display method comprises the following steps: judging whether a dynamic route corresponding to the user exists in a route list of a website foreground; if the dynamic route corresponding to the user does not exist, acquiring an initial dynamic route list corresponding to the user based on the verification information of the user; determining at least one dynamic route and a control authority corresponding to the user in each dynamic route from a database according to the initial dynamic route list; and jumping to a target display page corresponding to the target dynamic route according to the target dynamic route selected by the user and determined from the at least one dynamic route, and displaying a control with control authority by the user in the target display page. Therefore, corresponding data can be directly obtained from the database at the rear end, the information of the user stored in the website foreground does not need to be changed, the storage space of the website foreground is saved, and the maintenance difficulty of managers is reduced.

Description

Display method, display device and readable storage medium of control
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a display method, a display apparatus, and a readable storage medium for controlling a control.
Background
Many enterprises have their own background management systems, and for convenience of management, the background management systems generally allocate different control authority data to different roles, encapsulate the control authority data of users in the roles, and the users call the control authority data of users in the website foreground by being endowed with different roles.
At present, after control authority data of roles are configured in a background management system, the control authority data are synchronously stored in the website foreground according to an asynchronous request sent by the website foreground, but when roles of staff in an enterprise change, the staff manually modify code data in the background management system and modify the code data in the website foreground, but due to scattered positions of the codes, later maintenance of the staff is difficult, modification workload is large, and work efficiency is low.
Disclosure of Invention
In view of this, an object of the present application is to provide a display method, a display device, and a readable storage medium for controlling a control, in which a dynamic route that a user has a control right and a control right corresponding to each dynamic route are obtained from a database according to authentication information of the user, so that even if the control right of the user changes, corresponding data can be directly obtained from the database at the back end, and it is not necessary to change corresponding data of the user stored in a website foreground, which not only saves storage controls of the website foreground, but also helps to reduce maintenance difficulty of a manager, reduce modification workload of the manager, and improve work efficiency of the manager.
The embodiment of the application provides a display method of a control, which comprises the following steps:
when the user successfully logs in, judging whether a dynamic route corresponding to the user exists in a route list of a website foreground;
if the dynamic route corresponding to the user does not exist, acquiring an initial dynamic route list corresponding to the user based on the verification information of the user;
determining at least one dynamic route and a control authority corresponding to the user in each dynamic route from a database according to the initial dynamic route list;
and jumping to a target display page corresponding to the target dynamic route according to the target dynamic route selected by the user and determined from the at least one dynamic route, and displaying a control with control authority of the user in the target display page.
Further, the determining, according to the initial dynamic route list, at least one dynamic route from a database and a control right corresponding to the user in each dynamic route includes:
filtering at least one dynamic route corresponding to the user from a database according to the initial dynamic route list, and adding the at least one dynamic route to a route object;
and aiming at each dynamic route in the route object, acquiring the control authority corresponding to the user in the dynamic route from the database based on the verification information.
Further, before the determining whether the dynamic route corresponding to the user exists in the route list of the website foreground when the user successfully logs in, the display method further includes:
acquiring authentication information of a user according to login information input by the user on a login page;
and verifying whether the user successfully logs in or not according to the verification information of the user.
Further, after the verifying whether the user successfully logs in according to the verification information of the user, the display method further includes:
when the user does not successfully log in, detecting whether the user has a control authority or not according to the verification information;
and when the user has the control right, jumping to the login page.
Further, after the detecting whether the user has the control right according to the authentication information when the user is not successfully logged in, the display method further includes:
and when the user does not have the control right, jumping to a display page corresponding to a preset routing white list.
An embodiment of the present application further provides a display device for controlling a control, where the display device includes:
the judging module is used for judging whether a dynamic route corresponding to the user exists in a route list of a website foreground or not when the user successfully logs in;
an obtaining module, configured to obtain, if there is no dynamic route corresponding to the user, an initial dynamic route list corresponding to the user based on the verification information of the user;
a determining module, configured to determine, according to the initial dynamic route list, at least one dynamic route and a control right corresponding to the user in each dynamic route from a database;
and the display module is used for jumping to a target display page corresponding to the target dynamic route according to the target dynamic route selected by the user and determined from the at least one dynamic route, and displaying the control with the control authority of the user in the target display page.
Further, when the determining module determines at least one dynamic route from a database and the control right corresponding to the user in each dynamic route according to the initial dynamic route list, the determining module is specifically configured to:
filtering at least one dynamic route corresponding to the user from a database according to the initial dynamic route list, and adding the at least one dynamic route to a route object;
and aiming at each dynamic route in the route object, acquiring the control authority corresponding to the user in the dynamic route from the database based on the verification information.
Further, the display device further includes a login module, and the login module is configured to:
acquiring authentication information of a user according to login information input by the user on a login page;
and verifying whether the user successfully logs in or not according to the verification information of the user.
Further, the display device further includes a first skip module, where the first skip module is configured to:
when the user does not successfully log in, detecting whether the user has a control authority or not according to the verification information;
and when the user has the control right, jumping to the login page.
Further, the display device further includes a second skip module, and the second skip module is configured to:
and when the user does not have the control right, jumping to a display page corresponding to a preset routing white list.
An embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine readable instructions when executed by the processor performing the steps of the method of displaying a control as described above.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for displaying a control as described above are performed.
According to the display method, the display device and the readable storage medium of the control, when a user successfully logs in, whether a dynamic route corresponding to the user exists in a route list of a website foreground is judged; if the dynamic route corresponding to the user does not exist, acquiring an initial dynamic route list corresponding to the user based on the verification information of the user; determining at least one dynamic route and a control authority corresponding to the user in each dynamic route from a database according to the initial dynamic route list; and jumping to a target display page corresponding to the target dynamic route according to the target dynamic route selected by the user and determined from the at least one dynamic route, and displaying a control with control authority of the user in the target display page.
Therefore, the method and the device can obtain at least one dynamic route which is provided with control authority by the user and the corresponding control authority in each dynamic route from the database according to the verification information of the user, jump to the target display page corresponding to the target dynamic route according to the target dynamic route selected by the user, and display the control which is provided with the control authority by the user in the target display page. According to the method and the device, the dynamic route of which the user has the control authority and the control authority corresponding to each dynamic route can be directly obtained from the database of the background according to the verification information of the user, so that corresponding data can be directly obtained from the database of the back end even if the control authority of the user changes, the corresponding data of the user stored in the website foreground does not need to be changed, the storage control of the website foreground can be saved, the maintenance difficulty of managers can be reduced, the modification workload of the managers can be reduced, and the working efficiency of the managers can be improved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart of a display method for controlling a control according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a display method of a control according to another embodiment of the present application;
fig. 3 is a schematic structural diagram of a display device of a control provided in an embodiment of the present application;
fig. 4 is a second schematic structural diagram of a display device of a control according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. Every other embodiment that can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present application falls within the protection scope of the present application.
First, an application scenario to which the present application is applicable will be described. The method and the device can be applied to the technical field of computer application. When a user logs in successfully, judging whether a dynamic route corresponding to the user exists in a route list of a website foreground, if not, determining at least one dynamic route and a control authority corresponding to the user in each dynamic route from a database according to verification information of the user, then jumping to a target display page corresponding to the target dynamic route according to the target dynamic route selected by the user, and displaying a control which the user has the control authority in the target display page.
Research shows that at present, after control authority data of roles are configured in a background management system, the control authority data are synchronously stored in the website foreground according to an asynchronous request sent by the website foreground, but when roles of staff in an enterprise change, the staff manually modify code data in the background management system and modify the code data in the website foreground, but due to scattered positions of the codes, later maintenance of the staff is difficult, modification workload is large, and work efficiency is low.
Based on this, the embodiment of the present application provides a display method of a control, and according to the verification information of the user, the dynamic route where the user has the control authority and the control authority in each dynamic route are obtained from the database in the background, so that even if the control authority of the user changes, corresponding data can be directly obtained from the database in the back end, and corresponding data of the user stored in the website foreground does not need to be changed, which can save the storage control of the website foreground, is also helpful for reducing the maintenance difficulty of administrators, reduces the modification workload of the administrators, and improves the work efficiency of the administrators.
Referring to fig. 1, fig. 1 is a flowchart illustrating a display method of a control according to an embodiment of the present disclosure. As shown in fig. 1, a method for displaying a control provided in an embodiment of the present application includes:
step 101, when the user successfully logs in, judging whether a dynamic route corresponding to the user exists in a route list of a website foreground.
In this step, when the user logs in successfully, it is first determined whether a dynamic route corresponding to the user is stored in a route list of a website foreground, where the dynamic route is a concept that a router can automatically establish its own route table and can be adjusted in time according to changes in actual conditions, and is a concept opposite to a static route, and the router can automatically establish its own route table according to specific route information exchanged between routers and can be automatically adjusted in time according to changes in links and nodes. When nodes or links among the nodes in the network fail or other available routes exist, the dynamic route can automatically select the best available route and continuously forward the message.
The route list comprises a plurality of routes, each route is stored as a record, and the routes comprise: unique identification (id) of the route, unique code (code) of the route, route name (name), path (path), route description (desc), button authority (perms) (like: role name: button name (user: add, user: editor)), role _ ids (route corresponding role).
And 102, if the dynamic route corresponding to the user does not exist, acquiring an initial dynamic route list corresponding to the user based on the verification information of the user.
In this step, if it is determined that the dynamic route corresponding to the user does not exist in the website foreground, an initial dynamic route list corresponding to the user is obtained based on the authentication information of the user.
The initial dynamic routing list is composed of all dynamic routes which the user has control authority, and the display page corresponding to the dynamic route in the initial dynamic routing list is a display page which the user has authority to access and control.
Wherein the verification information includes: a unique identification of the user, a unique identification of the role of the user, a role name, etc.
Step 103, determining at least one dynamic route and a control authority corresponding to the user in each dynamic route from a database according to the initial dynamic route list.
In this step, according to the initial dynamic route list corresponding to the user determined in step 102, at least one dynamic route in the initial dynamic route list is called from a background database, and meanwhile, a control right corresponding to the user in each dynamic route can be obtained from the background database according to the authentication information of the user.
And 104, jumping to a target display page corresponding to the target dynamic route according to the target dynamic route selected by the user and determined from the at least one dynamic route, and displaying a control with control authority of the user in the target display page.
In this step, because there may be multiple dynamic routes corresponding to the user, a target dynamic route to which the user wants to jump is determined according to a selection operation of the user, the target dynamic route jumps to a target display page corresponding to the target dynamic route according to the determined target dynamic route, and a control of which the user has control permission is displayed in the target display page according to the acquired control permission.
Wherein, the control refers to the encapsulation of data and methods. The control can have its own attribute and method, wherein the attribute is a simple visitor of the control data, the method is some simple and visible functions and control creating process of the control, the control can comprise a window, a text box, a button, a pull-down menu and the like, and a user can control the page to jump or modify through the control in the page.
Specifically, after the target dynamic route selected by the user is determined, according to information included in the target dynamic route, first, a jump is made to a target display page corresponding to the dynamic route, and then, according to a control authority in the target dynamic route and a control type, the jump is displayed on the target display page, for example, the target dynamic route includes: button authority (perms) (user: add), an add button will appear at the corresponding location in the page (location is also included in the route, not written out in the embodiment); and if a navigation menu (ShowMenu) field appears in the route, the control is a navigation menu and is displayed according to the specific setting of the navigation menu.
It is only an exemplary indication here, and a specific implementation may be further implemented depending on the programming language.
In addition, when the user performs page jump through the control in the target display page, whether the dynamic route corresponding to the user exists in the website foreground or not needs to be judged again, and the user does not log out, so that the dynamic route corresponding to the user still exists in the route list in the website foreground at the moment, the dynamic route is not required to be obtained from the database again at the moment, and the page jump and the control display can be realized according to the route list in the website foreground.
According to the display method of the control, when a user successfully logs in, whether a dynamic route corresponding to the user exists in a route list of a website foreground is judged; if the dynamic route corresponding to the user does not exist, acquiring an initial dynamic route list corresponding to the user based on the verification information of the user; determining at least one dynamic route and a control authority corresponding to the user in each dynamic route from a database according to the initial dynamic route list; and jumping to a target display page corresponding to the target dynamic route according to the target dynamic route selected by the user and determined from the at least one dynamic route, and displaying a control with control authority of the user in the target display page.
Therefore, the method and the device can obtain at least one dynamic route which is provided with control authority by the user and the corresponding control authority in each dynamic route from the database according to the verification information of the user, jump to the target display page corresponding to the target dynamic route according to the target dynamic route selected by the user, and display the control which is provided with the control authority by the user in the target display page. According to the method and the device, the dynamic route of which the user has the control authority and the control authority corresponding to each dynamic route can be directly obtained from the database of the background according to the verification information of the user, so that corresponding data can be directly obtained from the database of the rear end even if the control authority of the user changes, the corresponding data of the user stored in the website foreground does not need to be changed, the storage control of the website foreground can be saved, the maintenance difficulty of managers can be reduced, the modification workload of the managers can be reduced, and the working efficiency of the managers can be improved.
Referring to fig. 2, fig. 2 is a flowchart of a display method of a control according to another embodiment of the present application. As shown in fig. 2, a method for displaying a control provided in an embodiment of the present application includes:
step 201, when the user successfully logs in, judging whether a dynamic route corresponding to the user exists in a route list of a website foreground.
Step 202, if there is no dynamic route corresponding to the user, acquiring an initial dynamic route list corresponding to the user based on the verification information of the user.
Step 203, filtering out at least one dynamic route corresponding to the user from a database according to the initial dynamic route list, and adding the at least one dynamic route to a route object.
In this step, at least one dynamic route having access right and corresponding to the user is filtered from a database in a background according to the obtained initial dynamic route list corresponding to the user, and the at least one dynamic route is added to a route object in a foreground of the website, so as to generate a complete route list.
And 204, aiming at each dynamic route in the route object, acquiring the control authority corresponding to the user in the dynamic route from the database based on the verification information.
In this step, for each dynamic route in the route object, based on the verification information of the user, the control right of the user in the dynamic route is obtained from a background database, that is, the control right of the user in the display page corresponding to each dynamic route is determined.
Wherein the verification information includes: a unique identification of the user, a unique identification of the role of the user, a role name, etc.
Step 205, according to the target dynamic route selected by the user and determined from the at least one dynamic route, jumping to a target display page corresponding to the target dynamic route, and displaying a control which the user has control authority in the target display page.
The descriptions of step 201, step 202, and step 205 may refer to the descriptions of step 101, step 102, and step 104, and the same technical effect can be achieved, which is not described in detail herein.
Further, before the determining whether the dynamic route corresponding to the user exists in the route list of the website foreground when the user successfully logs in, the display method further includes: acquiring authentication information of a user according to login information input by the user on a login page; and verifying whether the user successfully logs in or not according to the verification information of the user.
In this step, according to the login information input by the user on the login page, authentication information corresponding to the user is obtained, and according to the obtained authentication information corresponding to the user, whether the user can successfully log in is determined, and after the user successfully logs in, the determination of whether the dynamic route corresponding to the user exists in the route list of the website foreground in step 201 is performed.
The login information includes an account name, an account password, a verification code and the like.
Further, after the verifying whether the user successfully logs in according to the verification information of the user, the display method further includes: when the user does not successfully log in, detecting whether the user has a control authority or not according to the verification information; and when the user has the control right, jumping to the login page.
In this step, when it is determined that the user has not successfully logged in according to the authentication information of the user, it is further determined whether the user has a control right according to the authentication information of the user, and if the user has the control right, the user jumps back to the login page.
Because the user login is not successful, the first is that the user does not have the control authority, the second is that the user has the control authority but the input of the account password, the account name or the verification code is wrong, whether the user has the control authority or not is judged according to the verification information of the user, and for the user with the control authority, the user jumps back to the login page for the user to log in again.
Further, after the detecting whether the user has the control right according to the authentication information when the user is not successfully logged in, the display method further includes: and when the user does not have the control right, jumping to a display page corresponding to a preset routing white list.
In this step, if it is determined that the user does not have the control right according to the verification information of the user, jumping to a display page corresponding to a preset routing white list. The route white list is routes for which login verification is not required, such as 404 error pages, etc.
Therefore, when the user does not have the control authority, the user can jump to the routing white list page to inform that the user does not have the control authority and does not jump back to the login page, the repeated jump back to the login page does not know what to do next for the user, and the user can jump to an explanation page capable of explaining the current situation to inform the user.
According to the display method of the control, when a user successfully logs in, whether a dynamic route corresponding to the user exists in a route list of a website foreground is judged; if the dynamic route corresponding to the user does not exist, acquiring an initial dynamic route list corresponding to the user based on the verification information of the user; filtering at least one dynamic route corresponding to the user from a database according to the initial dynamic route list, and adding the at least one dynamic route to a route object; for each dynamic route in the route object, acquiring a control authority corresponding to the user in the dynamic route from the database based on the verification information; and jumping to a target display page corresponding to the target dynamic route according to the target dynamic route selected by the user and determined from the at least one dynamic route, and displaying a control with control authority of the user in the target display page.
Therefore, the method and the device can obtain at least one dynamic route which is provided with control authority by the user and the corresponding control authority in each dynamic route from the database according to the verification information of the user, jump to the target display page corresponding to the target dynamic route according to the target dynamic route selected by the user, and display the control which is provided with the control authority by the user in the target display page. According to the method and the device, the dynamic route of which the user has the control authority and the control authority corresponding to each dynamic route can be directly obtained from the database of the background according to the verification information of the user, so that corresponding data can be directly obtained from the database of the rear end even if the control authority of the user changes, the corresponding data of the user stored in the website foreground does not need to be changed, the storage control of the website foreground can be saved, the maintenance difficulty of managers can be reduced, the modification workload of the managers can be reduced, and the working efficiency of the managers can be improved.
Referring to fig. 3 and 4, fig. 3 is a first schematic structural diagram of a display device of a control provided in an embodiment of the present application, and fig. 4 is a second schematic structural diagram of a display device of a control provided in an embodiment of the present application. As shown in fig. 3, the display device 300 of the control includes:
the determining module 310 is configured to determine whether a dynamic route corresponding to the user exists in a route list of a website foreground when the user successfully logs in;
an obtaining module 320, configured to obtain, if there is no dynamic route corresponding to the user, an initial dynamic route list corresponding to the user based on the verification information of the user;
a determining module 330, configured to determine, according to the initial dynamic route list, at least one dynamic route from a database and a control right corresponding to the user in each dynamic route;
the display module 340 is configured to jump to a target display page corresponding to the target dynamic route according to the target dynamic route selected by the user and determined from the at least one dynamic route, and display a control that the user has a control right in the target display page.
Further, when the determining module 330 determines at least one dynamic route from a database and the control right corresponding to the user in each dynamic route according to the initial dynamic route list, the determining module 330 is specifically configured to:
filtering at least one dynamic route corresponding to the user from a database according to the initial dynamic route list, and adding the at least one dynamic route to a route object;
and aiming at each dynamic route in the route object, acquiring the control authority corresponding to the user in the dynamic route from the database based on the verification information.
Further, as shown in fig. 4, the display device 300 further includes a login module 350, where the login module 350 is configured to:
acquiring authentication information of a user according to login information input by the user on a login page;
and verifying whether the user successfully logs in or not according to the verification information of the user.
Further, the display device 300 further includes a first skip module 360, and the first skip module 360 is configured to:
when the user does not successfully log in, detecting whether the user has a control authority or not according to the verification information;
and when the user has the control right, jumping to the login page.
Further, the display device 300 further includes a second skip module 370, and the second skip module 370 is configured to:
and when the user does not have the control right, jumping to a display page corresponding to a preset routing white list.
According to the display device for controlling the control, when a user successfully logs in, whether a dynamic route corresponding to the user exists in a route list of a website foreground is judged; if the dynamic route corresponding to the user does not exist, acquiring an initial dynamic route list corresponding to the user based on the verification information of the user; determining at least one dynamic route and a control authority corresponding to the user in each dynamic route from a database according to the initial dynamic route list; and jumping to a target display page corresponding to the target dynamic route according to the target dynamic route selected by the user and determined from the at least one dynamic route, and displaying a control with control authority of the user in the target display page.
Therefore, the method and the device can obtain at least one dynamic route which is provided with control authority by the user and the corresponding control authority in each dynamic route from the database according to the verification information of the user, jump to the target display page corresponding to the target dynamic route according to the target dynamic route selected by the user, and display the control which is provided with the control authority by the user in the target display page. According to the method and the device, the dynamic route of which the user has the control authority and the control authority corresponding to each dynamic route can be directly obtained from the database of the background according to the verification information of the user, so that corresponding data can be directly obtained from the database of the rear end even if the control authority of the user changes, the corresponding data of the user stored in the website foreground does not need to be changed, the storage control of the website foreground can be saved, the maintenance difficulty of managers can be reduced, the modification workload of the managers can be reduced, and the working efficiency of the managers can be improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 5, the electronic device 500 includes a processor 510, a memory 520, and a bus 530.
The memory 520 stores machine-readable instructions executable by the processor 510, when the electronic device 500 runs, the processor 510 communicates with the memory 520 through the bus 530, and when the machine-readable instructions are executed by the processor 510, the steps of the method for displaying a control in the method embodiment shown in fig. 1 and fig. 2 may be performed.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for displaying a control in the method embodiments shown in fig. 1 and fig. 2 may be executed.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A display method of a control is characterized by comprising the following steps:
when the user successfully logs in, judging whether a dynamic route corresponding to the user exists in a route list of a website foreground;
if the dynamic route corresponding to the user does not exist, acquiring an initial dynamic route list corresponding to the user based on the verification information of the user;
determining at least one dynamic route and a control authority corresponding to the user in each dynamic route from a database according to the initial dynamic route list;
and jumping to a target display page corresponding to the target dynamic route according to the target dynamic route selected by the user and determined from the at least one dynamic route, and displaying a control with control authority of the user in the target display page.
2. The method according to claim 1, wherein the determining at least one dynamic route from a database and the control authority corresponding to the user in each dynamic route according to the initial dynamic route list comprises:
filtering at least one dynamic route corresponding to the user from a database according to the initial dynamic route list, and adding the at least one dynamic route to a route object;
and aiming at each dynamic route in the route object, acquiring the control authority corresponding to the user in the dynamic route from the database based on the verification information.
3. The display method according to claim 1, wherein before the determining whether the dynamic route corresponding to the user exists in the route list of the website foreground when the user successfully logs in, the display method further comprises:
acquiring authentication information of a user according to login information input by the user on a login page;
and verifying whether the user successfully logs in or not according to the verification information of the user.
4. The display method according to claim 3, wherein after the verifying whether the user has successfully logged in based on the verification information of the user, the display method further comprises:
when the user does not successfully log in, detecting whether the user has a control authority or not according to the verification information;
and when the user has the control right, jumping to the login page.
5. The display method according to claim 4, wherein after the detecting whether the user has the control right according to the authentication information when the user has not successfully logged in, the display method further comprises:
and when the user does not have the control right, jumping to a display page corresponding to a preset routing white list.
6. A display device for controlling a control, the display device comprising:
the judging module is used for judging whether a dynamic route corresponding to the user exists in a route list of a website foreground or not when the user successfully logs in;
an obtaining module, configured to obtain, if there is no dynamic route corresponding to the user, an initial dynamic route list corresponding to the user based on the verification information of the user;
a determining module, configured to determine, according to the initial dynamic route list, at least one dynamic route and a control right corresponding to the user in each dynamic route from a database;
and the display module is used for jumping to a target display page corresponding to the target dynamic route according to the target dynamic route selected by the user and determined from the at least one dynamic route, and displaying the control with the control authority of the user in the target display page.
7. The display device according to claim 6, wherein when the determining module determines at least one dynamic route from a database and the control right corresponding to the user in each dynamic route according to the initial dynamic route list, the determining module is specifically configured to:
filtering at least one dynamic route corresponding to the user from a database according to the initial dynamic route list, and adding the at least one dynamic route to a route object;
and aiming at each dynamic route in the route object, acquiring the control authority corresponding to the user in the dynamic route from the database based on the verification information.
8. The display device of claim 6, further comprising a login module to:
acquiring authentication information of a user according to login information input by the user on a login page;
and verifying whether the user successfully logs in or not according to the verification information of the user.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when an electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the method of displaying a control according to any of claims 1 to 5.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, performs the steps of the method of displaying a control according to any one of claims 1 to 5.
CN201911231560.7A 2019-12-05 2019-12-05 Display method, display device and readable storage medium of control Active CN110968230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911231560.7A CN110968230B (en) 2019-12-05 2019-12-05 Display method, display device and readable storage medium of control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911231560.7A CN110968230B (en) 2019-12-05 2019-12-05 Display method, display device and readable storage medium of control

Publications (2)

Publication Number Publication Date
CN110968230A true CN110968230A (en) 2020-04-07
CN110968230B CN110968230B (en) 2021-09-10

Family

ID=70033036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911231560.7A Active CN110968230B (en) 2019-12-05 2019-12-05 Display method, display device and readable storage medium of control

Country Status (1)

Country Link
CN (1) CN110968230B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608726A (en) * 2021-07-30 2021-11-05 三一专用汽车有限责任公司 Code generation method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100281178A1 (en) * 2009-04-29 2010-11-04 Terence Sean Sullivan Network Audio Distribution System and Method
CN108600175A (en) * 2018-03-27 2018-09-28 深圳世联松塔装饰科技有限责任公司 Control method, device and the storage medium of system operatio permission
CN109376316A (en) * 2018-11-05 2019-02-22 珠海格力电器股份有限公司 Method, system and the server of dynamically load routing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100281178A1 (en) * 2009-04-29 2010-11-04 Terence Sean Sullivan Network Audio Distribution System and Method
CN108600175A (en) * 2018-03-27 2018-09-28 深圳世联松塔装饰科技有限责任公司 Control method, device and the storage medium of system operatio permission
CN109376316A (en) * 2018-11-05 2019-02-22 珠海格力电器股份有限公司 Method, system and the server of dynamically load routing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608726A (en) * 2021-07-30 2021-11-05 三一专用汽车有限责任公司 Code generation method and device, electronic equipment and storage medium
CN113608726B (en) * 2021-07-30 2023-08-11 三一专用汽车有限责任公司 Code generation method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110968230B (en) 2021-09-10

Similar Documents

Publication Publication Date Title
US20150082016A1 (en) Methods, systems, and computer readable mediums for updating components in a converged infrastructure system
EP2989543B1 (en) Method and device for updating client
JP5018774B2 (en) Monitoring device, monitoring system, monitoring method and program
CN109388622B (en) Log information processing method, device and equipment and readable storage medium
CN111988337A (en) Authority management method and system
US20150106903A1 (en) Information processing system, information processing method, and non-transitory computer-readable medium
US20200004785A1 (en) Automatic grouping based on user behavior
CN111190823A (en) UI automation test method, electronic device and computer readable storage medium
CN110826799A (en) Service prediction method, device, server and readable storage medium
CN111481939B (en) Game account control method, device, medium and electronic equipment
CN111539775A (en) Application program management method and device
CN110941632A (en) Database auditing method, device and equipment
CN110968230B (en) Display method, display device and readable storage medium of control
CN112804330B (en) Application communication method and device
CN110049004A (en) The generation method of industry control environment flow white list baseline
CN114363334A (en) Network configuration method, device and equipment for cloud system and cloud desktop virtual machine
CN110597662A (en) Backup data automatic verification method and device, user equipment and storage medium
CN113626882A (en) Method, device and medium for generating equipment identifier
CN112714166A (en) Multi-cluster management method and device for distributed storage system
CN110134546B (en) Batch restarting windows system method, electronic device and storage medium
CN113971191A (en) Data import method and device and computer readable storage medium
CN108259214B (en) Configuration command management method, device and machine-readable storage medium
US11388239B2 (en) Previewing impacted entities in automated device definitions
US20200351259A1 (en) Runtime credential requirement identification for incident response
CN109981521B (en) Message association method, message association device and message association system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231201

Address after: 200,030 Unit 5B03, Floor 5, Building 2, No. 277, Longlan Road, Xuhui District, Shanghai

Patentee after: SHANGHAI SECOND PICKET NETWORK TECHNOLOGY CO.,LTD.

Address before: 200000 floors 4, 5 and 6, No. 3 Lane 1473, Zhenguang Road, Putuo District, Shanghai

Patentee before: Shanghai Fengzhi Technology Co.,Ltd.

TR01 Transfer of patent right