View control method and device and storage medium

By dynamically obtaining and managing the permissions of views and menus, the problem of insufficient flexibility in view permission management in the prior art is solved, and flexible response to changes in business demands and improved permission management is achieved.

CN118897708AActive Publication Date: 2024-11-05SHENZHEN SMARTCITY TECH DEV GRP CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411390821.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2024-11-05
Estimated Expiration
2044-10-08

AI Technical Summary

Technical Problem

In the prior art, the flexibility of view permission management is low, resulting in frequent modification and update of permission settings when business needs change, and the inability to effectively respond to dynamic changes.

Method used

By detecting user access requests, obtaining isolation type values ​​and determining matching isolation type, obtaining target views and menus associated with this type, dynamically manage permissions, and realizing division by business module and dynamic permission management.

Benefits of technology

It improves the system's flexibility in view permission management, can dynamically adjust permissions, adapt to changes in business needs, and enhances the flexibility and efficiency of permission management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897708A_ABST
    Figure CN118897708A_ABST
Patent Text Reader

Abstract

The invention discloses a view control method and device and a storage medium, and relates to the technical field of data processing.The method comprises the steps that when an access request of a user is detected, an isolation type value corresponding to the user is obtained, a matched isolation type is determined according to the isolation type value, and a target view associated with the isolation type is obtained; the method comprises the steps of obtaining a target view, obtaining a target menu associated with the target view, determining a display mode of the target menu in the target view, and displaying the target view in an interface when it is detected that a corresponding control in the target view is triggered. According to the method, by establishing the dynamic association between the menu and the view, the capability of dividing and dynamically managing the authority according to the service module is realized, so that the flexibility of managing the view authority by the system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a view control method, device and storage medium. Background Art

[0002] A view is a part of the user interface that is responsible for displaying data and receiving user input. Currently, in related solutions, the permissions of views in the system are usually statically bound to specific roles or users. When business requirements change, permission settings need to be frequently modified and updated, which results in low flexibility in view permission management in related solutions.

[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The present application provides a view control method, device and storage medium, aiming to solve the problem of low flexibility in view authority management in related solutions.

[0005] To achieve the above object, the present application provides a view control method, which includes the following steps: When detecting an access request from a user, obtaining an isolation type value corresponding to the user; Determine a matching isolation type according to the isolation type value, and obtain a target view associated with the isolation type, wherein the target view is at least one; Acquire a target menu associated with the target view, and determine a display mode of the target menu in the target view; When it is detected that the corresponding control in the target view is triggered, the target view is displayed in the interface, wherein the target menu is arranged in the target view in the display manner.

[0006] In one embodiment, after the step of displaying the target view in the interface when detecting that the control corresponding to the target view is triggered, the method further includes: When detecting that the target menu is triggered, obtaining the role information of the logged-in user; If the role information matches the target menu, determining and displaying a page associated with the target menu; Otherwise, a prompt message indicating insufficient permissions is displayed.

[0007] In one embodiment, before the step of acquiring the role information of the logged-in user when detecting that the target menu is triggered, the method further includes: Create role information and configure the target menu that the role information has permission to access; The role information is associated with the target menu and saved so that a user who has the role information has the authority to access the target menu.

[0008] In one embodiment, before the step of obtaining the isolation type value corresponding to the user, the method further includes: When an access request from a target user is detected, obtaining user information in the access request; If the user information is a new user account, query the target role and the target isolation type value corresponding to the target user in the database according to the user information, and feed back the target role and the target isolation type value to the user terminal corresponding to the target user, so that the user terminal generates an access request carrying the target role and the target isolation type value when accessing; Otherwise, execute the step of obtaining the isolation type value corresponding to the target user.

[0009] In one embodiment, before the step of obtaining the isolation type value corresponding to the user when the user's access request is detected, the method further includes: Obtaining configuration information of a view, and creating a view according to the configuration information, wherein the configuration information includes a view ID, a view name, and a dimension type; Configuring a menu list displayed in the view, wherein the menu list includes at least one menu, and the menu is displayed in the view in a preset display mode; Determine an isolation type according to the configuration information of the view, and associate the isolation type with the configured view and save it; When an access request of a user is detected, a step of obtaining an isolation type value corresponding to the user is performed to determine a matching isolation type through the isolation type value, and obtain a view associated with the isolation type.

[0010] In one embodiment, after the step of displaying the target view in the interface, the method further includes: When detecting that the user clicks on the first menu, verifying whether the user's role has the authority to access the first menu; If the permission is granted, the user will be redirected to the corresponding page. If the permission is not granted, the user will be prohibited from accessing the page and a corresponding prompt will be given.

[0011] In one embodiment, after the step of displaying the target view in the interface when detecting that the control corresponding to the target view is triggered, the method further includes: After detecting that the user enters the target view, recording the number of clicks on each of the target menus in the target view; The target menus are sorted according to the number of clicks, and the sorted target menus are displayed in the target view.

[0012] In one embodiment, before the step of obtaining the isolation type value corresponding to the user when the user's access request is detected, the method further includes: Get the created role information and the second menu; A corresponding function mapping is established according to the relationship between the role information and the second menu, and the role information, the second menu and the function mapping are saved in a database.

[0013] To achieve the above objectives, the present application also provides a view control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the view control method described above.

[0014] To achieve the above objectives, the present application also provides a storage medium, which is a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps of the view control method described above are implemented.

[0015] The present application provides a view control method, a view control device and a storage medium. When a user's access request is detected, an isolation type value corresponding to the user is obtained, and then a matching isolation type is determined according to the isolation type value, and a target view associated with the isolation type is obtained, wherein the target view is at least one, and a target menu associated with the target view is obtained, and a display method of the target menu in the target view is determined. Finally, when it is detected that the corresponding control in the target view is triggered, the target view is displayed in an interface, wherein the target menu is arranged in the target view in the display method. By establishing a dynamic association between a menu and a view, the ability to divide and dynamically manage permissions by business modules is achieved, thereby improving the flexibility of the system in view permission management. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0018] Figure 1 This is a flow chart of the first embodiment of the view control method of the present application; Figure 2 This is a module structure diagram of a view control system involved in an embodiment of the present application; Figure 3 This is a flowchart of the authority determination involved in the embodiment of the present application; Figure 4 This is an interactive flow chart of each module involved in the embodiment of the present application; Figure 5 This is a flow chart of a second embodiment of the view control method of the present application; Figure 6 This is a flow chart of a third embodiment of the view control method of the present application; Figure 7 This is a flow chart of a fourth embodiment of the view control method of the present application; Figure 8 This is a schematic diagram of the architecture of the hardware operating environment of the view control device involved in the embodiment of the present application.

[0019] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0020] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0021] In order to better understand the above technical solution, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0022] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0023] The main solution of the present application is: when a user's access request is detected, the isolation type value corresponding to the user is obtained; according to the isolation type value, a matching isolation type is determined, and a target view associated with the isolation type is obtained, wherein the target view is at least one; a target menu associated with the target view is obtained, and a display method of the target menu in the target view is determined; when it is detected that a corresponding control in the target view is triggered, the target view is displayed in the interface, wherein the target menu is arranged in the target view in the display method.

[0024] Currently, in related solutions, the permissions of views in the system are usually statically bound to specific roles or users. When business requirements change, permission settings need to be frequently modified and updated, which results in low flexibility in view permission management in related solutions.

[0025] When a user's access request is detected, the isolation type value corresponding to the user is obtained, and then the matching isolation type is determined according to the isolation type value, and the target view associated with the isolation type is obtained, wherein the target view is at least one, and the target menu associated with the target view is obtained, and the display method of the target menu in the target view is determined. Finally, when it is detected that the corresponding control in the target view is triggered, the target view is displayed in the interface, wherein the target menu is arranged in the target view in the display method. By establishing a dynamic association between menus and views, the ability to divide and dynamically manage permissions by business modules is achieved, thereby improving the flexibility of the system in view permission management.

[0026] It should be noted that the execution subject of this embodiment may be a view control system, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a view control device capable of realizing the above functions, etc., and this embodiment does not specifically limit this. The following takes the view control system as the execution subject as an example to illustrate this embodiment and the following embodiments.

[0027] Embodiment 1 Please refer to Figure 1 In a first embodiment, the view control method comprises the following steps: Step S10: When a user's access request is detected, an isolation type value corresponding to the user is obtained.

[0028] In this embodiment, the view control system performs processing actions, such as Figure 2 As shown, Figure 2The module structure diagram of the view control system involved in the embodiment of the present application, the view control system includes a view module, a menu module, a menu permission module, a role module, a user module, a data dimension module and a data permission module. When it is detected that a user accesses the view control system through the interface of the user terminal, the user terminal generates an access request and sends the access request to the view control system, wherein the access request carries the user information corresponding to the user. When the view control system detects the user's access request, the isolation type value and role information corresponding to the user are obtained from the access request, wherein the isolation type value can be in the form of a string in the access request, and the role information can be stored in the access request in the form of a tag. It should be understood that after the user registers, the view control system will assign the corresponding isolation type value and role information to the registered user terminal. When the user terminal needs to access the view control system, the user terminal will feed back the isolation type value and role information assigned by the view control system to the view control system, so that the view control system opens the corresponding permissions to the user terminal according to the isolation type value and role information.

[0029] Optionally, create multiple modules in the view. First, determine the goals and functions of the view and the role of the modules. According to the location and size of each module, choose a suitable front-end framework or library (such as React, Vue.js, Angular, etc.), where each module is an independent and reusable component. Define the modules and define each module as a reusable component. Then define the input and output interfaces of the component, such as properties (props), state (state), events, etc., and then write the HTML structure, CSS style and JavaScript logic of the module to ensure that the module can adapt to different screen sizes and devices. Then unit test each module to ensure that it works as expected, specifically to test whether the module interacts normally with other modules or external systems. Then integrate the module container component, organize all submodules by creating a container component, and set up the mechanism for data transmission, such as using props to pass data down or using context (Context) or state management libraries (such as Redux) to share state. For large applications, you can use lazy loading techniques to delay the loading of non-critical modules, and use build tools such as Webpack to split the code, reduce the initial loading time, and finally deploy the views to the production environment, using tools to monitor application performance and user experience issues.

[0030] Optionally, in this embodiment, before the step of obtaining the role information corresponding to the user, the step further includes: When an access request from a target user is detected, the user information in the access request is obtained; if the user information is a new user account, the target role and the target isolation type value corresponding to the target user are queried in the database based on the user information, and the target role and the target isolation type value are fed back to the user terminal corresponding to the target user, so that the user terminal generates an access request carrying the target role and the target isolation type value when accessing; otherwise, the step of obtaining the isolation type value corresponding to the target user is executed.

[0031] Specifically, the user module in the view control system performs the processing action. When the target user wants to log in to the view control system, the user name and password will be entered in the login interface. After the login is successful, the user module will determine whether it is a new user account based on the user information of the user. If so, the corresponding authorized view and the authorized menu under the view will be provided to the user according to the user information, and the target role and the target isolation type value will be fed back to the user terminal corresponding to the target user, so that the user terminal generates an access request carrying the target role and the target isolation type value when accessing. If not, the isolation type value and role information in the user information are obtained. In addition, after the user enters the user name and password in the login interface, the user module will verify the user name and password to determine whether the user name and password are correct.

[0032] Step S20: determining a matching isolation type according to the isolation type value, and acquiring a target view associated with the isolation type, wherein there is at least one target view.

[0033] In this embodiment, the processing action is performed by the data permission module, and the data permission module determines whether the user has the right to access specific data according to the isolation type value. When the isolation type value is queried to be associated with a corresponding target view, the target view is used as the specific data that the user has the right to access. And the menu permission module determines whether the user has the right to access a specific menu according to the association relationship between the user and the role associated with the view, and determines the target menu that the user can access. The data permission module determines whether the user has the right to access the data of the target view according to the isolation type value of the user's data dimension and the isolation type of the accessed view. When the user accesses a view that requires data isolation or performs a corresponding operation, the system will determine whether the user has the right to access specific data according to the isolation type value of the user and the isolation type of the view. In addition, a data mapping relationship can be set for the associated isolation type value and the isolation type first, and the isolation type value and the isolation type are matched in the table through table mapping, so that when the isolation type corresponding to the isolation type value is determined, it can be directly queried from the mapping table to improve the confirmation efficiency of the view.

[0034] For example, user A is associated with the isolation type value of "Sales Department", while the "Sales Report" view is associated with the isolation type of "Organization". When user A accesses the "Sales Report" view, the system will judge based on the isolation type value of user A and the isolation type of the view. If the isolation type value of user A matches the isolation type of the "Sales Report" view, then user A has the authority to access the data related to the "Sales Department" under the view.

[0035] Furthermore, in this embodiment, before the step of obtaining the isolation type value and role information corresponding to the user when the user's access request is detected, the method further includes: Acquire the created role information and the second menu; establish a corresponding function mapping according to the relationship between the role information and the second menu, and save the role information, the second menu and the function mapping into a database.

[0036] Specifically, all created role information and second menus are obtained from the data, one role information can match multiple second menus, and a mapping relationship between one role information and the corresponding multiple second menus is set as a functional relationship, and the functional relationship can query and output the matching second menu according to the input role information. Finally, the role information, the second menu and the functional mapping are saved in a database.

[0037] In addition, you can also create a data dimension module to implement the creation and management functions of data dimensions, including the definition of isolation types and isolation type values. You can create different isolation types, such as "institution", "region", etc., and corresponding isolation type values, such as "Province A", "City B", etc. Users can associate with the isolation type value of the data dimension to achieve isolated access to specific data. Common isolation type values ​​and isolation type associations are saved, where the data structure storing data dimension information includes dimension ID, dimension type name, and value data contained in the dimension type.

[0038] For example, create an isolation type of "Organization" and define multiple isolation type values, such as "Sales Department" and "Marketing Department". Users can associate themselves with the isolation type value of "Sales Department" to gain access to the data of "Sales Department". Views can be associated with a data dimension type to isolate different data dimensions in different views. When entering the "Sales Report" view, users can switch between the isolation type values ​​"Sales Department" and "Marketing Department" associated with them.

[0039] Step S30: Acquire a target menu associated with the target view, and determine a display mode of the target menu in the target view.

[0040] In this embodiment, after determining the target view, it is also necessary to obtain the target menu included in the target view, that is, all target menus associated with the target view. The target menu has a preset display mode. By determining the target menu, the display mode of the target menu in the target view can be determined. It can be understood that the display mode of the target menu in the target view is the display mode of the control of the target menu in the target view.

[0041] Step S40: when it is detected that the corresponding control in the target view is triggered, the target view is displayed in the interface, wherein the target menu is arranged in the target view in the display manner.

[0042] In this embodiment, after determining the target view and target menu that the user has access rights to, the user's selection operation based on the selection device in the front-end interface of the view control system is detected, and after the user clicks the target view based on the selection device, the controls of the target menu and the target view are displayed in the interface, and the target menu is arranged in the target view in the display manner. It can be understood that a user can have multiple or one target views with access rights, and a target view contains multiple target menus, and a target menu is associated with a corresponding displayable data page and is displayed after the target menu is triggered.

[0043] Optionally, in this embodiment, after the step of displaying the target view and the target menu in the interface based on the user's selection operation, the method further includes: When it is detected that the user clicks on the first menu, it is verified whether the user's role has the authority to access the first menu; if the user has the authority, the user is redirected to the corresponding page; if the user does not have the authority, the user is prohibited from accessing and a corresponding prompt is fed back.

[0044] Specifically, when a user obtains a menu and clicks on it, the system will verify whether the user's role has the permission to access the menu. If the user has the permission, the system will jump to the corresponding page; if the user does not have the permission, the system will give a corresponding prompt or prohibit the user from accessing the menu. For example, user A has the role of "sales manager", and the role of "sales manager" is configured to have access to the menu "monthly sales report" under the "sales report" view. When user A clicks on the menu "monthly sales report" under the "sales report" view, the system will verify the role permissions of user A. If the user has the permission, the system will jump to the page showing the "monthly sales report"; if the user does not have the permission, the system will give a prompt to inform the user that the user does not have access rights.

[0045] Optionally, the view control system may display the menu after the user logs into the view control system, such as Figure 3 As shown, Figure 3This is a permission judgment flow chart involved in the implementation scheme of the present application. After the user requests to access a view, the data permission module determines whether the user's role can access the view. If so, it continues to determine whether the corresponding menu is included in these views. If so, access is allowed; if not, access is denied.

[0046] In addition, the menu module included in the view control system can realize the creation and management functions of the menu, which is used to display the content in the menu area on the left side of the system. Each view has its own menu definition, and a multi-level menu structure can be configured. Users can switch to the corresponding page by clicking the menu. For example, in the "Sales Report" view, multiple menu items can be created, such as "Monthly Sales Report", "Quarterly Sales Report", etc. The user clicks the "Monthly Sales Report" menu in the menu area on the left side of the system, and the system will switch to the corresponding page to display the monthly sales report data.

[0047] For example, Figure 4 As shown, Figure 4 The interactive flow chart of each module involved in the embodiment scheme of the present application. First, the user completes the registration through the user module, and the view module assigns the corresponding view authority to the user. After the user logs in through the user module, the view module displays the corresponding view to the user end, and the user can also manage personal information in the user module. The menu module is used to implement the creation and management functions of the menu, as well as the switching function of the menu. After the view module displays the view on the user end, the menu authority of the user is verified through the menu module, and when the user has the menu authority, it jumps to the corresponding page. The data dimension module is used to implement the creation and management functions of the data dimension, including the definition of the isolation type and the isolation type value, and the association and preservation of the isolation type and the isolation type value. The data permission module can determine whether the user has the authority to access certain data based on the isolation type value of the user's data dimension and the isolation type of the accessed view. The role module can implement the creation and management functions of the role, including the definition of the role and the maintenance of the relationship between the role and the view.

[0048] In the technical solution provided in this embodiment, when a user's access request is detected, the isolation type value corresponding to the user is obtained, and then the matching isolation type is determined according to the isolation type value, and the target view associated with the isolation type is obtained, wherein the target view is at least one, and the target menu associated with the target view is obtained, and the display method of the target menu in the target view is determined. Finally, when it is detected that the corresponding control in the target view is triggered, the target view is displayed in the interface, wherein the target menu is arranged in the target view in the display method. By establishing a dynamic association between the menu and the view, the ability to divide and dynamically manage permissions by business modules is achieved, thereby improving the flexibility of the system in view permission management.

[0049] Embodiment 2 Please refer to Figure 5 In the second embodiment, before step S10, the following steps are further included: Step S50: Obtain configuration information of the view, and create a view according to the configuration information, wherein the configuration information includes a view ID, a view name, and a dimension type.

[0050] Step S60: configuring a menu list displayed in the view, wherein the menu list includes at least one menu, and the menu is displayed in the view in a preset display mode.

[0051] In this embodiment, the view module executes to obtain the configuration information of the view. The configuration information can be input into the view control system by the administrator through the interface, and fed back to the view module by the view control system. After the view module obtains the configuration information, it first parses the configuration information, and then generates the view according to the parsed configuration information. Specifically, the view can be generated using a template engine or a front-end framework technology. After the view is generated, the preset menu configuration information is obtained, and the menu list displayed in the view is determined according to the menu configuration information, wherein the menu list is a group of arranged menus, including at least one menu, and the menu is displayed in the view in a preset display mode.

[0052] Step S70: determining an isolation type according to the configuration information of the view, and associating the isolation type with the configured view and saving the isolation type.

[0053] Step S80: When a user's access request is detected, the step of obtaining an isolation type value corresponding to the user is executed to determine a matching isolation type through the isolation type value, and obtain a view associated with the isolation type.

[0054] In this embodiment, after the view is created, the isolation type preset in the configuration information of the view is obtained, the isolation type is associated with the configured view, and is saved in the database. In addition, the isolation type is associated with a corresponding isolation type value, and when a user's access request is detected, the user's isolation type value is obtained, so that the matching isolation type is determined through the isolation type value, and the view associated with the isolation type is obtained.

[0055] In the technical solution provided in this embodiment, by acquiring the configuration information of the view, a view is created according to the configuration information, wherein the configuration information includes a view ID, a view name and a dimension type, and then a menu list displayed in the view is configured, wherein the menu list includes at least one menu, and the menu is displayed in the view in a preset display mode, and then the isolation type is determined according to the configuration information of the view, and the isolation type is associated with the configured view and saved, and when a user's access request is detected, the step of acquiring the isolation type value corresponding to the user is executed to determine the matching isolation type through the isolation type value, and acquire the view associated with the isolation type, and by configuring the dynamic view, the control effect of the view is improved.

[0056] Embodiment 3 Please refer to Figure 6 In the third embodiment, after step S10, the method further includes: Step S90: when it is detected that the target menu is triggered, obtaining the role information of the logged-in user; Step S100: if the role information matches the target menu, determining and displaying a page associated with the target menu; Step S110: Otherwise, display a prompt message indicating insufficient authority.

[0057] In this embodiment, after the target view is displayed in the interface, the user can click on the target menu that he wants to view in the interface based on the selection device. After the user clicks on the target menu, the view control system will detect that the target menu is triggered. At this time, the role information of the user is obtained. It is determined whether the role information matches the target menu, that is, it is determined whether the value in the role information matches the value of the target menu. If they match, the page associated with the target menu is displayed in the user terminal interface of the user. Otherwise, a prompt message of insufficient authority is fed back to the user terminal interface.

[0058] Optionally, in this embodiment, before step S90, the following steps are further included: Create role information, and configure a target menu that the role information has the right to access; associate the role information with the target menu and save it so that a user who has the role information has the right to access the target menu.

[0059] Specifically, the role module implements the creation and management functions of role information, including the definition of role information and the maintenance of the relationship between role information, views and menus. By creating role information and configuring the target menu that the role information has the authority to access, the role information is associated with the target menu and saved to ensure that only users with the corresponding role can access the corresponding view. Among them, role information can be associated with multiple users, and only users with role information associated with the menu can access the data under the menu. For example, create a "sales manager" role and associate it with the "sales report" view. Only users with the "sales manager" role can access the "sales report" view.

[0060] In the technical solution provided by this embodiment, when it is detected that the target menu is triggered, the role information of the logged-in user is obtained. If the role information matches the target menu, the page associated with the target menu is determined and displayed, otherwise, a prompt message of insufficient authority is displayed. The menu-associated data that the user can access is authorized through the user's role information, thereby improving the management effect of the menu in the view.

[0061] Embodiment 4 Please refer to Figure 7 In the third embodiment, after the step S30, the method further includes: Step S120: after detecting that the user enters the target view, recording the number of clicks on each of the target menus in the target view.

[0062] Step S130: sorting the target menus according to the number of clicks, and displaying the sorted target menus in the target view.

[0063] In this embodiment, after the user enters the account password and the verification is successful, the user enters the target view. At this time, the view control system will detect that the user has entered the target view. Then the monitoring tool in the view control system will record the number of clicks on each target menu in the target view in real time, and automatically sort the target menus according to the number of clicks on each target menu, and finally display the sorted target menus in the target view. It can be understood that the method of displaying the sorted target menu in the target view can be to set a timer in the view control system and set a preset time in the timer. When the preset time is reached, the target view is automatically refreshed, so that the sorted target menu is displayed in the target view. It can also be that when the user exits or switches views and re-enters the target view, the sorted target menu is displayed in the target view.

[0064] In the technical solution provided in this embodiment, after detecting that the user enters the target view, the number of clicks on each target menu in the target view is recorded, and then the target menus are sorted according to the number of clicks, and the sorted target menus are displayed in the target view. The layout of the menus in the target view can be adjusted according to the number of clicks of the user, thereby improving the user experience.

[0065] Since the system introduced in the embodiment of the present application is a system used to implement the method of the embodiment of the present application, based on the method introduced in the embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the embodiment of the present application belong to the scope of protection of this application.

[0066] The present application provides a view control device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the view control method in the above-mentioned embodiment 1.

[0067] Reference below Figure 8 , which shows a schematic diagram of the structure of a view control device suitable for implementing the embodiment of the present application. The view control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The view control device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0068] like Figure 8As shown, the view control device may include a processing device 1001 (e.g., a core processor, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the view control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the view control device to communicate with other devices wirelessly or by wire to exchange data. Although the view control device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0069] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0070] The view control device provided by the present application adopts the view control method in the above embodiment, which can solve the technical problem that the relevant scheme has low flexibility in view authority management. Compared with the prior art, the beneficial effects of the view control device provided by the present application are the same as the beneficial effects of the view control method provided by the above embodiment, and the other technical features in the view control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0071] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0072] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0073] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the view control method in the above-mentioned embodiment.

[0074] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0075] The computer-readable storage medium may be included in the view control device; or may exist independently without being assembled into the view control device.

[0076] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the view control device, the view control device: when detecting a user's access request, obtains the isolation type value corresponding to the user; determines the matching isolation type according to the isolation type value, and obtains the target view associated with the isolation type, wherein the target view is at least one; obtains the target menu associated with the target view, and determines the display method of the target menu in the target view; when detecting that the corresponding control in the target view is triggered, displays the target view in the interface, wherein the target menu is arranged in the target view in the display method.

[0077] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0078] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0079] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0080] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned view control method, and can solve the technical problem that the relevant solutions have low flexibility in view authority management. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the view control method provided in the above-mentioned embodiment, and will not be described in detail here.

[0081] An embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the view control method described above are implemented.

[0082] The computer program product provided by this application can solve the technical problem that the relevant solutions have low flexibility in view authority management. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of this application are the same as the beneficial effects of the view control method provided by the above embodiment, which will not be repeated here.

[0083] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A view control method, characterized in that: The method comprises the following steps: When detecting an access request from a user, obtaining an isolation type value corresponding to the user; Determine a matching isolation type according to the isolation type value, and obtain a target view associated with the isolation type, wherein the target view is at least one; Acquire a target menu associated with the target view, and determine a display mode of the target menu in the target view; When it is detected that the corresponding control in the target view is triggered, the target view is displayed in the interface, wherein the target menu is arranged in the target view in the display manner.

2. The method according to claim 1, characterized in that After the step of displaying the target view in the interface when detecting that the control corresponding to the target view is triggered, the method further includes: When detecting that the target menu is triggered, obtaining the role information of the logged-in user; If the role information matches the target menu, determining and displaying a page associated with the target menu; Otherwise, a prompt message indicating insufficient permissions is displayed.

3. The method according to claim 2, characterized in that Before the step of acquiring the role information of the logged-in user when detecting that the target menu is triggered, the step further includes: Create role information and configure the target menu that the role information has permission to access; The role information is associated with the target menu and saved so that a user who has the role information has the authority to access the target menu.

4. The method according to claim 1, characterized in that Before the step of obtaining the isolation type value corresponding to the user, the method further includes: When an access request from a target user is detected, obtaining user information in the access request; If the user information is a new user account, query the target role and the target isolation type value corresponding to the target user in the database according to the user information, and feed back the target role and the target isolation type value to the user terminal corresponding to the target user, so that the user terminal generates an access request carrying the target role and the target isolation type value when accessing; Otherwise, execute the step of obtaining the isolation type value corresponding to the target user.

5. The method according to claim 1, characterized in that Before the step of obtaining the isolation type value corresponding to the user when the user's access request is detected, the method further includes: Obtaining configuration information of a view, and creating a view according to the configuration information, wherein the configuration information includes a view ID, a view name, and a dimension type; Configuring a menu list displayed in the view, wherein the menu list includes at least one menu, and the menu is displayed in the view in a preset display mode; Determine an isolation type according to the configuration information of the view, and associate the isolation type with the configured view and save it; When an access request of a user is detected, a step of obtaining an isolation type value corresponding to the user is performed to determine a matching isolation type through the isolation type value, and obtain a view associated with the isolation type.

6. The method according to claim 1, characterized in that After the step of displaying the target view in the interface, the method further includes: When detecting that the user clicks on the first menu, verifying whether the user's role has the authority to access the first menu; If the permission is granted, the user will be redirected to the corresponding page. If the permission is not granted, the user will be prohibited from accessing the page and a corresponding prompt will be given.

7. The method according to claim 1, characterized in that After the step of displaying the target view in the interface when detecting that the control corresponding to the target view is triggered, the method further includes: After detecting that the user enters the target view, recording the number of clicks on each of the target menus in the target view; The target menus are sorted according to the number of clicks, and the sorted target menus are displayed in the target view.

8. The method according to claim 1, characterized in that Before the step of obtaining the isolation type value corresponding to the user when the user's access request is detected, the method further includes: Get the created role information and the second menu; A corresponding function mapping is established according to the relationship between the role information and the second menu, and the role information, the second menu and the function mapping are saved in a database.

9. A view control device, characterized in that: The view control device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the view control method according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the view control method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • A right management method of a multi-programming project and an electronic device

    CN109145539A

  • Menu display method and device, client equipment and storage medium

    CN112835490A

  • Page display method and device of mobile client, equipment and storage medium

    CN114518924A

  • Page permission control method and device, storage medium and equipment

    CN114969834A

  • Database system and method for access control and workflow routing

    US20070067334A1