CN113885985A - Page rendering method, device, equipment and medium based on dynamic authority control - Google Patents

Page rendering method, device, equipment and medium based on dynamic authority control Download PDF

Info

Publication number
CN113885985A
CN113885985A CN202111151937.5A CN202111151937A CN113885985A CN 113885985 A CN113885985 A CN 113885985A CN 202111151937 A CN202111151937 A CN 202111151937A CN 113885985 A CN113885985 A CN 113885985A
Authority
CN
China
Prior art keywords
page
menu
authority
route
configuration
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.)
Pending
Application number
CN202111151937.5A
Other languages
Chinese (zh)
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.)
Ping An International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City 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 Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202111151937.5A priority Critical patent/CN113885985A/en
Publication of CN113885985A publication Critical patent/CN113885985A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • 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/45Structures or tools for the administration of 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • User Interface Of Digital Computer (AREA)
  • Storage Device Security (AREA)

Abstract

The application relates to the technical field of front-end development and discloses a page rendering method, a device, equipment and a medium based on dynamic authority control, wherein the method comprises the following steps: opening a target page according to the received page opening request and acquiring a target page address; carrying out route matching on the target page address according to the route matching rule; carrying out menu authority matching on the routes in the route matching result according to a menu authority table to obtain menu authorities corresponding to the routes; and analyzing and matching the menu authority corresponding to the route, and rendering the target page in sequence according to the obtained page operation configuration and page menu configuration corresponding to the route to finish the rendering of the target page. The method and the device can respond quickly according to the authority configuration proposed by the user, have the authority processing function with higher fineness, improve the development efficiency and operability of the system, complete correct page rendering, prevent data unauthorized and data leakage and guarantee data safety.

Description

Page rendering method, device, equipment and medium based on dynamic authority control
Technical Field
The present application relates to the field of front-end development technologies, and in particular, to a method, an apparatus, a device, and a medium for rendering a page based on dynamic permission control.
Background
The authority management is an important component which is usually involved in all systems, the main purpose is to control the authority of the whole system, and the target is a user, so that the risk problems such as operation errors, data leakage, data safety and the like caused by the lack of authority control or improper operation are avoided. Currently, the common definition of the permissions can be mainly divided into three types, including page permissions, operation permissions and data permissions.
At present, the traditional authority control generally only supports a page level, and cannot realize more precise authority control, while a more precise and complex authority control system needs to invest a large amount of manpower and resources, and the authority control is realized by combining a service scene, but after the service changes, the current authority control method cannot be changed rapidly along with the change of the requirement, so that the subsequent authority is difficult to control, the rendering and configuration of the page are influenced, and the interactive operation of subsequent users is not facilitated.
Disclosure of Invention
The main purpose of the present application is to provide a page rendering method, device, equipment and medium based on dynamic authority control, and the method, device, equipment and medium are used for solving the problems that in the prior art, the precision of authority control is not sufficient, a large amount of resources need to be invested, and after a service change, the authority cannot be changed rapidly along with the change of a demand, so that the subsequent authority is difficult to control and the page rendering is influenced.
In order to achieve the above object, a first aspect of an embodiment of the present application provides a page rendering method based on dynamic permission control, where the method includes:
receiving a page opening request, opening a target page according to the page opening request and acquiring a target page address;
carrying out route matching on the target page address according to a preset route matching rule to obtain a route matching result;
carrying out menu authority matching on the routes in the route matching result according to a menu authority table to obtain menu authorities corresponding to the routes;
and analyzing and matching the menu authority corresponding to the route to obtain the page operation configuration and the page menu configuration corresponding to the route, and rendering the target page according to the page operation configuration and the page menu configuration in sequence to finish the rendering of the target page.
Further, after the steps of analyzing and matching the menu authority corresponding to the route to obtain the page operation configuration and the page menu configuration corresponding to the route, rendering the target page according to the page operation configuration and the page menu configuration in sequence, and finishing the rendering of the target page, the method further includes:
receiving an operation instruction triggered when a user uses a page function, calling a corresponding interface according to the operation instruction, verifying whether the corresponding interface has a corresponding data authority, and after the verification is passed, returning a corresponding data result according to the corresponding interface to complete the operation instruction.
Further, before the steps of receiving a page open request, opening a target page according to the page open request and obtaining the address of the target page, the method further includes:
and receiving a page menu configuration instruction, and binding the user authority and the service menus of all levels of the page correspondingly layer by layer according to the page menu configuration instruction to obtain the page menu configuration.
Further, in the step of receiving the page menu configuration instruction, and performing corresponding layer-by-layer binding on the user right and the service menu of each level of the page according to the page menu configuration instruction to obtain the page menu configuration, the method further includes:
splitting corresponding service function authority according to user requirements, and performing page operation configuration and page menu configuration on a page according to the service function authority;
binding the service function authority with the corresponding service interface, and then binding the corresponding service interface with the data authority;
and binding the data authority and the related associated page to the corresponding operation, and then binding the corresponding operation to the menu navigation of the page.
Further, in the step of receiving the page menu configuration instruction, and performing corresponding layer-by-layer binding on the user right and the service menu of each level of the page according to the page menu configuration instruction to obtain the page menu configuration, the method further includes:
when receiving a role creating instruction or a role modifying instruction sent by a user, acquiring option information of the role selected by the user, which needs to be operated, and completing the authority configuration of the role.
Further, in the step of receiving the page menu configuration instruction, and performing corresponding layer-by-layer binding on the user right and the service menu of each level of the page according to the page menu configuration instruction to obtain the page menu configuration, the method further includes:
the method comprises the steps of carrying out function classification on page operation to generate a corresponding classification result, and leading in and leading out operation configuration according to the classification result, wherein the operation configuration comprises menu information and interface authority information corresponding to the operation of each page.
Further, after the step of performing menu authority matching on the route in the route matching result according to the menu authority table to obtain the menu authority corresponding to the route, the method further includes:
judging whether a sub-route is associated according to the route matching result; if so, rendering the page corresponding to each sub-route after analyzing and matching the menu authority corresponding to the plurality of associated sub-routes.
A second aspect of the embodiments of the present application further provides a page rendering apparatus based on dynamic authority control, including:
the page starting module is used for receiving a page starting request, starting a target page according to the page starting request and acquiring a target page address;
the route matching module is used for carrying out route matching on the target page address according to a preset route matching rule to obtain a route matching result;
the menu authority matching module is used for carrying out menu authority matching on the route in the route matching result according to a menu authority table to obtain the menu authority corresponding to the route;
and the page rendering module is used for analyzing and matching the menu authority corresponding to the route to obtain the page operation configuration and the page menu configuration corresponding to the route, rendering the target page according to the page operation configuration and the page menu configuration in sequence, and finishing the rendering of the target page.
The third aspect of the embodiments of the present application also provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
The fourth aspect of the embodiments of the present application also proposes a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method of any one of the above.
According to the page rendering method, the page rendering device, the page rendering equipment and the page rendering medium based on dynamic authority control, the page opening request is analyzed to obtain the relevant page address information corresponding to the page request instruction, so that the corresponding relevant page is opened according to the page address information, the page is analyzed in real time after the corresponding page is opened, and the specific page address of the opened page is obtained; the page address is subjected to route matching according to a preset route matching rule to obtain a route matching result, and the page address can be matched with an optimal route to forward the page address by performing route matching on the page address, so that the response speed of subsequent page rendering is improved; before rendering the page, sequentially matching the page address with the route and matching the menu authority with the route, so that the accuracy of subsequent menu authority analysis is improved, and the subsequent page can be correctly rendered; the menu authority corresponding to the route in the route matching result is analyzed, so that the operation configuration and the menu configuration of the currently opened target page are obtained, and the currently opened target page is correctly rendered by combining the operation configuration and the menu configuration.
Drawings
Fig. 1 is a schematic flowchart of a page rendering method based on dynamic permission control according to an embodiment of the present application;
FIG. 2 is a block diagram illustrating a structure of a page rendering apparatus based on dynamic permission control according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, in order to achieve the above object, an embodiment of the present application provides a page rendering method based on dynamic permission control, where the method includes:
s1, receiving a page opening request, opening a target page according to the page opening request and acquiring the target page address;
s2, performing route matching on the target page address according to a preset route matching rule to obtain a route matching result;
s3, carrying out menu authority matching on the routes in the route matching result according to a menu authority table to obtain menu authorities corresponding to the routes;
s4, analyzing and matching the menu authority corresponding to the route to obtain the page operation configuration and the page menu configuration corresponding to the route, rendering the target page according to the page operation configuration and the page menu configuration in sequence, and finishing the rendering of the target page.
In the aspect of management of a front-end designed page authority system, the existing authority control only supports control to a page level, for example, related operation control on the whole page, but cannot realize fine authority control under the page, for example, authority control on an interface corresponding to a certain operation under the page, and the like. In this embodiment, the page opening request is analyzed to obtain the relevant page address information corresponding to the page request instruction, so as to open the corresponding relevant page according to the page address information, analyze the page in real time after opening the corresponding page, and obtain the specific page address of the opened page; the page address is subjected to route matching according to a preset route matching rule to obtain a route matching result, and the page address can be matched with an optimal route to forward the page address by performing route matching on the page address, so that the response speed of subsequent page rendering is improved; before rendering the page, sequentially matching the page address with the route and matching the menu authority with the route, so that the accuracy of subsequent menu authority analysis is improved, and the subsequent page can be correctly rendered; the menu authority corresponding to the route in the route matching result is analyzed, so that the operation configuration and the menu configuration of the currently opened target page are obtained, and the currently opened target page is correctly rendered by combining the operation configuration and the menu configuration.
For step S1, after receiving a page opening request initiated by a user, the page opening request is analyzed to obtain related page address information corresponding to the page request instruction, so as to open a corresponding related page according to the page address information, analyze the page in real time after opening the corresponding page, and obtain a specific page address of the opened page.
For step S2, after acquiring a specific page address of a page corresponding to a page opened according to a page opening request initiated by a user, first, route matching is performed on the page address according to a preset route matching rule, where the purpose of route matching is to find a matching route from a routing table of a router so as to enable the router to perform route selection and forward traffic, after the router receives a data packet, an optimal path is selected according to an IP address of a destination in the data packet, and the data packet is forwarded to a next router, and a last router on the path is responsible for forwarding the data packet to a destination host, where the preset route matching rule includes a longest matching rule, a route priority rule, and a route metric rule. By carrying out route matching on the page address, the optimal route can be matched to forward the page address, and the response speed of subsequent page rendering is improved.
For step S3, after completing route matching, automatically matching the page menu permission for the route in the route matching result according to the menu permission table generated by preloading, where the menu permission table records the menu permission corresponding to each page address, and matching the route of the route matching result with each page address in the menu permission table, so as to automatically match the menu permission corresponding to the route of the route matching result, and obtain the menu permission corresponding to the route, where the menu permission table is generated in a manner of collecting the menu permission for each page address preset by the user, and summarizing the menu permission into a page address-menu permission relationship table. In the embodiment, before the page is rendered, the accuracy of subsequent menu permission analysis is improved by sequentially performing route matching on the page address and menu permission matching on the route, and the subsequent page can be rendered correctly.
For step S4, after obtaining the menu permission corresponding to the route by matching, analyzing the menu permission, disassembling the menu permission including the operation configuration including the sub-route and the related code logic, and performing page rendering by combining the page operation configuration and the related code logic to obtain a corresponding basic page; and matching the relevant page configuration of the menu authority to obtain the page menu configuration corresponding to the route so as to perform secondary page rendering on the basic page according to the page menu configuration and render the page function and page operation corresponding to the basic page. The invention analyzes the menu authority corresponding to the route in the route matching result so as to obtain the operation configuration and the menu configuration of the currently opened target page, and correctly renders the currently opened target page by combining the operation configuration and the menu configuration. In the process of page development, the system can quickly respond according to the authority configuration proposed by the user, and meanwhile, the authority function is processed in a finer granularity and a multi-dimension mode, so that the page development efficiency and operability are improved, and the customer satisfaction is improved.
In an embodiment, after the step S4 of performing parsing and matching processing on the menu permission corresponding to the route to obtain a page operation configuration and a page menu configuration corresponding to the route, rendering the target page according to the page operation configuration and the page menu configuration in sequence, and completing the rendering of the target page, the method further includes:
receiving an operation instruction triggered when a user uses a page function, calling a corresponding interface according to the operation instruction, verifying whether the corresponding interface has a corresponding data authority, and after the verification is passed, returning a corresponding data result according to the corresponding interface to complete the operation instruction.
In a specific embodiment, when a user uses a function on a page, related operations are triggered, after the page receives the operation instruction, when a corresponding interface is called according to the operation instruction, whether the corresponding interface is allocated with a corresponding data authority is verified, and if so, a data packet is returned through the corresponding interface to complete the related operations corresponding to the operation instruction; if not, an error is directly reported to prompt that the operation cannot be carried out. According to the invention, when the user operates the page, whether the operation has the authority is verified according to the authority configuration, so that the page can quickly respond according to the authority configuration proposed by the user, the operability of the page is provided, data unauthorized and data leakage are prevented, and the data safety is ensured.
In an embodiment, before the step S1 of receiving a page open request, opening a target page according to the page open request, and acquiring the page address, the method further includes:
s11, receiving a page menu configuration instruction, and binding the user authority and the service menus of each hierarchy of the page layer by layer correspondingly according to the page menu configuration instruction to obtain the page menu configuration.
In a specific embodiment, the authority of the user is bound with a navigation menu, after a page configuration menu instruction sent by the user is received, an interface and operation related to page related energy are bound, and the authority configuration is performed on a role created by the user, so that the menu configuration of the page is completed, whether the corresponding authority exists is verified by combining the page menu configuration when the corresponding interface is called according to the operation instruction in the following process, the page can quickly respond according to the authority configuration proposed by the user, and data unauthorized access and data leakage are prevented.
In an embodiment, in step S11, where the receiving the page menu configuration instruction, and performing corresponding layer-by-layer binding on the user right and the service menu of each level of the page according to the page menu configuration instruction to obtain a page menu configuration, the method further includes:
splitting corresponding service function authority according to user requirements, and performing page operation configuration and page menu configuration on a page according to the service function authority;
binding the service function authority with the corresponding service interface, and then binding the corresponding service interface with the data authority;
and binding the data authority and the related associated page to the corresponding operation, and then binding the corresponding operation to the menu navigation of the page.
In a specific embodiment, firstly, according to the product requirements of developers, relevant service function authorities are split, and relevant operation and navigation menus are configured on pages provided by corresponding basic platforms; when writing a service code, introducing a permission system, realizing related service functions by combining an interface provided by a permission module, and simultaneously inputting a related service interface on a basic platform to bind the service interface with the operation; and related operations are bound to the menu navigation in the basic platform, so that the binding of the user permission and the navigation menu is completed, and the permission owned by the user can be conveniently and intuitively displayed.
In an embodiment, in step S11, where the receiving the page menu configuration instruction, and performing corresponding layer-by-layer binding on the user right and the service menu of each level of the page according to the page menu configuration instruction to obtain a page menu configuration, the method further includes:
when receiving a role creating instruction or a role modifying instruction sent by a user, acquiring option information of the role selected by the user, which needs to be operated, and completing the authority configuration of the role.
In a specific embodiment, the configuration of the authority system is displayed in the role, and when a user creates the role or modifies the role, the user can rapidly complete dynamic control authority allocation on the role by directly checking the operation function required to be used by the role, so that the flexibility of control authority allocation is improved.
In an embodiment, in step S11, where the receiving the page menu configuration instruction, and performing corresponding layer-by-layer binding on the user right and the service menu of each level of the page according to the page menu configuration instruction to obtain a page menu configuration, the method further includes:
the method comprises the steps of carrying out function classification on page operation to generate a corresponding classification result, and leading in and leading out operation configuration according to the classification result, wherein the operation configuration comprises menu information and interface authority information corresponding to the operation of each page.
In a specific embodiment, firstly, the operations supported by the page are functionally classified, after a classification result is obtained, one-key import and export are performed on the configuration of each operation according to the classification result, including menu information and interface authority information corresponding to each operation, and iterative use and update of the related operation functions of the page are facilitated by importing and exporting according to the functions of the operation.
In an embodiment, after the step of performing menu authority matching on the route in the route matching result according to a menu authority table to obtain the menu authority corresponding to the route, the method further includes:
judging whether a sub-route is associated according to the route matching result; if so, rendering the page corresponding to each sub-route after analyzing and matching the menu authority corresponding to the plurality of associated sub-routes.
In a specific embodiment, after the step of performing menu authority matching on the routes in the route matching result and obtaining the menu authority corresponding to the routes through matching, the route matching result is firstly disassembled to judge whether other sub-routes exist except the route, if so, analyzing and matching the menu authority corresponding to the associated sub-route to obtain the page operation configuration and the page menu configuration corresponding to the sub-route, rendering the target page of the sub-route in sequence according to the page operation configuration and the page menu configuration, and the invention can greatly improve the page rendering efficiency by simultaneously rendering the target page of the route and the page of the associated sub-route, meanwhile, the page relation between the page and the related page can be effectively analyzed, and the development efficiency and operability of the system are further improved.
Referring to fig. 2, the present application further provides a page rendering apparatus based on dynamic authority control, including:
the page starting module is used for receiving a page starting request, starting a target page according to the page starting request and acquiring a target page address;
the route matching module is used for carrying out route matching on the target page address according to a preset route matching rule to obtain a route matching result;
the menu authority matching module is used for carrying out menu authority matching on the route in the route matching result according to a menu authority table to obtain the menu authority corresponding to the route;
and the page rendering module is used for analyzing and matching the menu authority corresponding to the route to obtain the page operation configuration and the page menu configuration corresponding to the route, rendering the target page according to the page operation configuration and the page menu configuration in sequence, and finishing the rendering of the target page.
In this embodiment, the page opening request is analyzed to obtain the relevant page address information corresponding to the page request instruction, so as to open the corresponding relevant page according to the page address information, analyze the page in real time after opening the corresponding page, and obtain the specific page address of the opened page; the page address is subjected to route matching according to a preset route matching rule to obtain a route matching result, and the page address can be matched with an optimal route to forward the page address by performing route matching on the page address, so that the response speed of subsequent page rendering is improved; before rendering the page, sequentially matching the page address with the route and matching the menu authority with the route, so that the accuracy of subsequent menu authority analysis is improved, and the subsequent page can be correctly rendered; the menu authority corresponding to the route in the route matching result is analyzed, so that the operation configuration and the menu configuration of the currently opened target page are obtained, and the currently opened target page is correctly rendered by combining the operation configuration and the menu configuration.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing data such as a page rendering method based on dynamic authority control. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of page rendering based on dynamic permission control. The page rendering method based on dynamic authority control comprises the following steps: receiving a page opening request, opening a target page according to the page opening request and acquiring a target page address; carrying out route matching on the target page address according to a preset route matching rule to obtain a route matching result; carrying out menu authority matching on the routes in the route matching result according to a menu authority table to obtain menu authorities corresponding to the routes; and analyzing and matching the menu authority corresponding to the route to obtain the page operation configuration and the page menu configuration corresponding to the route, and rendering the target page according to the page operation configuration and the page menu configuration in sequence to finish the rendering of the target page.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements a method for rendering a page based on dynamic permission control, including the steps of: receiving a page opening request, opening a target page according to the page opening request and acquiring a target page address; performing route matching on the page address according to a preset route matching rule to obtain a route matching result; carrying out menu authority matching on the routes in the route matching result according to a menu authority table to obtain menu authorities corresponding to the routes; and analyzing and matching the menu authority corresponding to the route to obtain the page operation configuration and the page menu configuration corresponding to the route, and rendering the target page according to the page operation configuration and the page menu configuration in sequence to finish the rendering of the target page.
In the above-described executed page rendering method based on dynamic permission control, in this embodiment, the page opening request is analyzed to obtain the relevant page address information corresponding to the page request instruction, so as to open the corresponding relevant page according to the page address information, and after the corresponding page is opened, the page is analyzed in real time to obtain the specific page address of the opened page; the page address is subjected to route matching according to a preset route matching rule to obtain a route matching result, and the page address can be matched with an optimal route to forward the page address by performing route matching on the page address, so that the response speed of subsequent page rendering is improved; before rendering the page, sequentially matching the page address with the route and matching the menu authority with the route, so that the accuracy of subsequent menu authority analysis is improved, and the subsequent page can be correctly rendered; the menu authority corresponding to the route in the route matching result is analyzed, so that the operation configuration and the menu configuration of the currently opened target page are obtained, and the currently opened target page is correctly rendered by combining the operation configuration and the menu configuration.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A page rendering method based on dynamic authority control is characterized by comprising the following steps:
receiving a page opening request, opening a target page according to the page opening request and acquiring a target page address;
carrying out route matching on the target page address according to a preset route matching rule to obtain a route matching result;
carrying out menu authority matching on the routes in the route matching result according to a menu authority table to obtain menu authorities corresponding to the routes;
and analyzing and matching the menu authority corresponding to the route to obtain the page operation configuration and the page menu configuration corresponding to the route, and rendering the target page according to the page operation configuration and the page menu configuration in sequence to finish the rendering of the target page.
2. The page rendering method based on dynamic permission control according to claim 1, wherein after the steps of performing parsing matching processing on the menu permission corresponding to the route to obtain a page operation configuration and a page menu configuration corresponding to the route, rendering the target page according to the page operation configuration and the page menu configuration in sequence, and completing the rendering of the target page, the method further comprises:
receiving an operation instruction triggered when a user uses a page function, calling a corresponding interface according to the operation instruction, verifying whether the corresponding interface has a corresponding data authority, and after the verification is passed, returning a corresponding data result according to the corresponding interface to complete the operation instruction.
3. The method for rendering a page based on dynamic permission control according to claim 1, wherein before the steps of receiving a page open request, opening a target page according to the page open request and obtaining an address of the target page, the method further comprises:
and receiving a page menu configuration instruction, and binding the user authority and the service menus of all levels of the page correspondingly layer by layer according to the page menu configuration instruction to obtain the page menu configuration.
4. The method for page rendering based on dynamic permission control according to claim 3, wherein in the step of receiving the page menu configuration instruction, and performing corresponding layer-by-layer binding on the user permission and the service menu of each level of the page according to the page menu configuration instruction to obtain the page menu configuration, the method further comprises:
splitting corresponding service function authority according to user requirements, and performing page operation configuration and page menu configuration on a page according to the service function authority;
binding the service function authority with the corresponding service interface, and then binding the corresponding service interface with the data authority;
and binding the data authority and the related associated page to the corresponding operation, and then binding the corresponding operation to the menu navigation of the page.
5. The method for page rendering based on dynamic permission control according to claim 3, wherein in the step of receiving the page menu configuration instruction, and performing corresponding layer-by-layer binding on the user permission and the service menu of each level of the page according to the page menu configuration instruction to obtain the page menu configuration, the method further comprises:
when receiving a role creating instruction or a role modifying instruction sent by a user, acquiring option information of the role selected by the user, which needs to be operated, and completing the authority configuration of the role.
6. The method for page rendering based on dynamic permission control according to claim 3, wherein in the step of receiving the page menu configuration instruction, and performing corresponding layer-by-layer binding on the user permission and the service menu of each level of the page according to the page menu configuration instruction to obtain the page menu configuration, the method further comprises:
the method comprises the steps of carrying out function classification on page operation to generate a corresponding classification result, and leading in and leading out operation configuration according to the classification result, wherein the operation configuration comprises menu information and interface authority information corresponding to the operation of each page.
7. The page rendering method based on dynamic authority control according to claim 1, wherein after the step of performing menu authority matching on the route in the route matching result according to a menu authority table to obtain the menu authority corresponding to the route, the method further comprises:
judging whether a sub-route is associated according to the route matching result;
if so, rendering the page corresponding to each sub-route after analyzing and matching the menu authority corresponding to the plurality of associated sub-routes.
8. A page rendering apparatus based on dynamic permission control, comprising:
the page starting module is used for receiving a page starting request, starting a target page according to the page starting request and acquiring a target page address;
the route matching module is used for carrying out route matching on the target page address according to a preset route matching rule to obtain a route matching result;
the menu authority matching module is used for carrying out menu authority matching on the route in the route matching result according to a menu authority table to obtain the menu authority corresponding to the route;
and the page rendering module is used for analyzing and matching the menu authority corresponding to the route to obtain the page operation configuration and the page menu configuration corresponding to the route, rendering the target page according to the page operation configuration and the page menu configuration in sequence, and finishing the rendering of the target page.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202111151937.5A 2021-09-29 2021-09-29 Page rendering method, device, equipment and medium based on dynamic authority control Pending CN113885985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111151937.5A CN113885985A (en) 2021-09-29 2021-09-29 Page rendering method, device, equipment and medium based on dynamic authority control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111151937.5A CN113885985A (en) 2021-09-29 2021-09-29 Page rendering method, device, equipment and medium based on dynamic authority control

Publications (1)

Publication Number Publication Date
CN113885985A true CN113885985A (en) 2022-01-04

Family

ID=79008073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111151937.5A Pending CN113885985A (en) 2021-09-29 2021-09-29 Page rendering method, device, equipment and medium based on dynamic authority control

Country Status (1)

Country Link
CN (1) CN113885985A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114860356A (en) * 2022-02-24 2022-08-05 山东浪潮科学研究院有限公司 Menu management method and device based on routing lazy loading
CN116521488A (en) * 2023-07-03 2023-08-01 杭州新中大科技股份有限公司 Metadata-based self-defined document tracing method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109784033A (en) * 2018-12-13 2019-05-21 平安科技(深圳)有限公司 Operating right Dynamic Configuration and relevant device based on page menus
WO2020233306A1 (en) * 2019-05-22 2020-11-26 深圳壹账通智能科技有限公司 Dynamic page generation method and apparatus, and computer device and storage medium
CN112487407A (en) * 2020-12-01 2021-03-12 广州奇享科技有限公司 Authority control method, device, medium and electronic equipment
CN113158217A (en) * 2021-05-20 2021-07-23 湖南快乐阳光互动娱乐传媒有限公司 Authority verification method and device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109784033A (en) * 2018-12-13 2019-05-21 平安科技(深圳)有限公司 Operating right Dynamic Configuration and relevant device based on page menus
WO2020233306A1 (en) * 2019-05-22 2020-11-26 深圳壹账通智能科技有限公司 Dynamic page generation method and apparatus, and computer device and storage medium
CN112487407A (en) * 2020-12-01 2021-03-12 广州奇享科技有限公司 Authority control method, device, medium and electronic equipment
CN113158217A (en) * 2021-05-20 2021-07-23 湖南快乐阳光互动娱乐传媒有限公司 Authority verification method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
小飞侠-4: "手摸手,带你用vue撸后台 系列二(登录权限篇)", pages 1 - 7, Retrieved from the Internet <URL:https://blog.csdn.net/qq_26562641/article/details/78291956> *
梦想的星空: "大家心心念念的权限管理功能,这次安排上了", pages 1 - 7, Retrieved from the Internet <URL:https://mp.weixin.qq.com/s?__biz=MzU1Nzg4NjgyMw==&mid=2247484487&idx=1&sn=0e735cc58ac8d1bd6914afe4c417d5ef&scene=21#wechat_redirect> *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114860356A (en) * 2022-02-24 2022-08-05 山东浪潮科学研究院有限公司 Menu management method and device based on routing lazy loading
CN114860356B (en) * 2022-02-24 2023-06-13 山东浪潮科学研究院有限公司 Menu management method and device based on routing lazy loading
CN116521488A (en) * 2023-07-03 2023-08-01 杭州新中大科技股份有限公司 Metadata-based self-defined document tracing method, device, equipment and medium
CN116521488B (en) * 2023-07-03 2024-03-26 杭州新中大科技股份有限公司 Metadata-based self-defined document tracing method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN110297813B (en) Data migration method and device, computer equipment and storage medium
CN110730107B (en) Test data generation method and device, computer equipment and storage medium
CN113885985A (en) Page rendering method, device, equipment and medium based on dynamic authority control
CN108427613B (en) Abnormal interface positioning method and device, computer equipment and storage medium
CN110224855B (en) Registration method and device of micro service instance, computer equipment and storage medium
CN110008266A (en) Data interchange file analysis method and device
CN109582583B (en) Software testing method, device, computer equipment and storage medium
CN110532025B (en) Data processing method, device and equipment based on micro-service architecture and storage medium
CN110287102A (en) Core data detection processing method, apparatus, computer equipment and storage medium
CN110297761A (en) Acquisition methods, device, computer equipment and the storage medium of returned data
CN110334303A (en) Form validation method, device, computer equipment and storage medium
CN109361628A (en) Message assemble method, device, computer equipment and storage medium
CN111541546A (en) Multi-platform login method, device, equipment and readable medium
CN110493064A (en) Firewall management method, apparatus, computer equipment and storage medium
CN114510536A (en) Data verification method and device, computer equipment and storage medium
CN112511384B (en) Flow data processing method and device, computer equipment and storage medium
CN112579997B (en) User permission configuration method and device, computer equipment and storage medium
CN117055903A (en) Front-end analog data deployment method, front-end analog data deployment device, computer equipment and storage medium
CN111797005A (en) Gateway interface analysis method and device, computer equipment and storage medium
CN112215015A (en) Translation text revision method, translation text revision device, computer equipment and storage medium
CN109783377A (en) Test data acquisition methods, tool, computer equipment and storage medium
CN112737942B (en) Service route switching method, device, equipment and medium
CN110572285B (en) Device code writing method, device code writing device and readable storage medium
CN114238273A (en) Database management method, device, equipment and storage medium
CN114237931A (en) Configuration method and device for interface call, computer equipment and storage medium

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