WO2020233306A1 - Dynamic page generation method and apparatus, and computer device and storage medium - Google Patents

Dynamic page generation method and apparatus, and computer device and storage medium Download PDF

Info

Publication number
WO2020233306A1
WO2020233306A1 PCT/CN2020/085574 CN2020085574W WO2020233306A1 WO 2020233306 A1 WO2020233306 A1 WO 2020233306A1 CN 2020085574 W CN2020085574 W CN 2020085574W WO 2020233306 A1 WO2020233306 A1 WO 2020233306A1
Authority
WO
WIPO (PCT)
Prior art keywords
dedicated
page
function module
general
rendering
Prior art date
Application number
PCT/CN2020/085574
Other languages
French (fr)
Chinese (zh)
Inventor
梁炳强
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2020233306A1 publication Critical patent/WO2020233306A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/51Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
    • 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/44505Configuring for program initiating, e.g. using registry, configuration files

Definitions

  • This application relates to the field of data display technology, and in particular to a method, device, computer equipment and storage medium for dynamic page generation.
  • the embodiments of the present application provide a method, device, computer equipment, and storage medium for dynamically generating a page to solve the problem that the intelligent APP cannot flexibly configure corresponding functional modules.
  • a method for dynamically generating pages including:
  • Obtaining a user login request where the user login request includes a login account and an identification password;
  • the general style data and general layout data corresponding to the general function module are obtained, and the general style data and the general layout data are rendered once using a rendering tool to obtain the initial Render the page and display it;
  • a page nesting tool is used to nest the dedicated rendering page into the initial rendering page to generate a target rendering page, and displaying the target rendering page on a display interface.
  • a dynamic page generation device including:
  • the login request obtaining module is configured to obtain a user login request, and the user login request includes a login account and identification password;
  • the initial rendering page acquisition module is configured to, if the login is successful based on the login account and the identification password, acquire the general style data and general layout data corresponding to the general function module, and use a rendering tool to compare the general style data and the general
  • the layout data is rendered once, and the initial rendering page is obtained and displayed;
  • the target user role acquisition module is configured to determine the target user role corresponding to the login account according to the login account;
  • a dedicated function module obtaining module configured to call the authority management module according to the target user role, and obtain the dedicated function module corresponding to the target user role;
  • the dedicated rendering page acquisition module is used to acquire corresponding dedicated style data and dedicated layout data according to the dedicated function module, and use the rendering tool to perform secondary rendering on the dedicated style data and the dedicated layout data to obtain dedicated rendering page;
  • the target rendering page display module is configured to use a page nesting tool to nest the dedicated rendering page into the initial rendering page to generate a target rendering page, and to display the target rendering page on a display interface.
  • a computer device includes a memory, a processor, and a computer program that is stored in the memory and can run on the processor, and the processor implements the above-mentioned page dynamic generation method when the computer program is executed.
  • a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned page dynamic generation method is realized.
  • the above provides a method, device, computer equipment, and storage medium for dynamically generating a page.
  • Log in according to the login account and identification password in the user login request. If the login is successful based on the login account and identification password, obtain the generic style data corresponding to the generic function module And general layout data, using rendering tools to render the general style data and general layout data once, get the initial rendering page and display it, reduce the time for subsequent rendering of general function modules, avoid long waiting time for users, and improve page display speed .
  • the login account determine the target user role corresponding to the login account, so that the corresponding special function module can be determined later, and the target user role of the login account can be changed to achieve the purpose of changing the authority of the login account.
  • the target rendering page is generated based on the initial rendering page and the dedicated rendering page, and the target rendering page is displayed on the display interface, so that different login accounts have different permissions and different functional modules displayed on the display interface.
  • FIG. 1 is a schematic diagram of an application environment of a method for dynamically generating a page in an embodiment of the present application
  • FIG. 2 is a flowchart of a method for dynamically generating a page in an embodiment of the present application
  • FIG. 3 is a flowchart of a method for dynamically generating a page in an embodiment of the present application
  • FIG. 4 is a flowchart of a method for dynamically generating a page in an embodiment of the present application
  • FIG. 5 is a flowchart of a method for dynamically generating a page in an embodiment of the present application
  • Fig. 6 is a flowchart of a method for dynamically generating a page in an embodiment of the present application
  • FIG. 7 is a flowchart of a method for dynamically generating a page in an embodiment of the present application.
  • FIG. 8 is a functional block diagram of a page dynamic generation device in an embodiment of the present application.
  • Fig. 9 is a schematic diagram of a computer device in an embodiment of the present application.
  • the dynamic page generation method provided by the embodiment of this application can be applied in the application environment as shown in Figure 1.
  • the dynamic page generation method is applied to the server side of the intelligent APP, determined by the login account and the target user role corresponding to the login account
  • the function modules that need to be displayed can realize the intelligent APP to be able to flexibly configure the corresponding function modules.
  • the user terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the server can be implemented as an independent server or a server cluster composed of multiple servers.
  • a method for dynamically generating a page is provided.
  • the method is applied to the server in FIG. 1 as an example for description, which specifically includes the following steps:
  • the user login request includes a login account and identification password.
  • the user login request refers to a request sent by the user to the intelligent APP server based on the user to log in to the intelligent APP.
  • the login account refers to the account that the user sends to the smart APP based on the client to log in to the smart APP, and the login account is the same as the account when pre-registered.
  • the identification password refers to the password corresponding to the login account when the user logs in to the intelligent APP based on the client terminal, specifically the password set during pre-registration.
  • the server controls the client to display the login page.
  • the user logs in to the intelligent APP based on the login page displayed on the client side.
  • the server side obtains the user login request sent by the user side.
  • the user login request includes the login account and identification password entered through the login page, so as to proceed according to the login account and identification password.
  • Login operation, and according to the login account, the function module corresponding to the login account that can be displayed on the user terminal can be determined, wherein the function module includes a general function module and a special function module.
  • the general function module refers to the function module corresponding to each login account when logging in to the intelligent APP through each login account, that is, the general function module corresponding to each login account is the same.
  • General style data refers to the appearance data when displaying general function modules, such as font settings and text color settings.
  • General layout data refers to the layout data on the page when displaying general function modules, such as length, width, and height.
  • the initial rendering page refers to the rendering page obtained after rendering the general function module.
  • a rendering tool is used to render the general style data and general layout data once to obtain the initial rendering page.
  • the rendering tools can specifically use existing rendering tools, such as JavaScript rendering tools, also known as JavaScript engines.
  • the JavaScript engine parses general style data and general layout data to generate a rendering tree, and display the initial rendering page on the front end according to the rendering tree. .
  • the display page of the intelligent APP is composed of general function modules and special function modules.
  • the target user role refers to the corresponding user role determined according to the login account.
  • the corresponding relationship between the login account and the target user role is many-to-one, that is, the target user role corresponding to multiple login accounts may be the same.
  • the authority management module of the database stores the corresponding relationship between each login account and the target user role.
  • the corresponding relationship between the target user role and the login account is stored in advance, so that the corresponding target user role can be quickly found through the login account.
  • the server searches the database according to the login account to obtain the target user role corresponding to the login account, so as to quickly determine the special function module displayed on the user side according to the target user role, realize that the corresponding authority of each target user role is different, and realize the user authority It is limited to display all function modules but some function modules are forbidden to use.
  • configuring the target user role corresponding to the login account provides convenience for subsequent changes to the permissions of the login account. If the corresponding target user role is not configured for the login account, and the requirement is to change the authority corresponding to the login account, you need to adjust the dedicated function module of the login account to realize the change of the authority corresponding to the login account. Modify the authority by this method, resulting in the modification time Too long; if the corresponding target user role is configured for the login account, and the requirement is to change the permissions corresponding to the login account, you only need to change the target user role corresponding to the login account to change the permissions corresponding to the login account, reduce the time for modifying permissions, and modify The permission method is simple and fast.
  • S40 Invoke the authority management module according to the role of the target user, and obtain a dedicated function module corresponding to the role of the target user.
  • the authority management module refers to the preset authority for determining the corresponding authority of each target user role, that is, the corresponding special function module can be determined according to the target user role, and the authority management module also contains style data and layout data, etc. .
  • the dedicated function module refers to the preset function module corresponding to each user role, where the correspondence between the user role and the dedicated function module is one-to-many, and the dedicated function modules included in each user role can be the same or different , That is, part of the special function modules included in a certain user role are the same as the special function modules of other user roles, or all special function modules included in a certain user role are different from the special function modules of other user roles.
  • the special function module of one user role is CDE; the special function module of another user role is BDE; DE is the same special function module, and C and B are two special function modules with different user roles.
  • the corresponding special function modules are configured, and each user role and the corresponding special function module Stored in the authority management module of the database.
  • the server calls the authority management module according to the target user role to obtain the special function module corresponding to the target user role. If there are at least two special function modules corresponding to the same target user role, it obtains each special function module, and then displays it on the display interface. Each dedicated function module.
  • the target user role corresponding to the login account is used to determine the corresponding special function module, avoiding the configuration of the corresponding special function module for each login account. In the early stage, only the corresponding special function module needs to be configured for each target user role, which reduces the initial configuration time , The authority corresponding to each target role is different.
  • S50 Obtain the corresponding dedicated style data and dedicated layout data according to the dedicated function module, and use a rendering tool to perform secondary rendering on the dedicated style data and dedicated layout data to obtain a dedicated rendering page.
  • the special style data refers to the data of the appearance when the special function module is displayed, such as the font setting of the character and the character color setting.
  • the dedicated layout data refers to the layout data on the page when the general function module is displayed, such as length, width, and height.
  • the dedicated rendering page refers to the rendering page obtained after rendering the dedicated function module. Secondary rendering refers to the rendering of dedicated functions to modules.
  • the server first obtains each dedicated function module corresponding to the login account, and then obtains the corresponding dedicated style data and dedicated layout data according to each dedicated function module, and uses rendering tools to perform secondary operations on the dedicated style data and dedicated layout data. Render to obtain a dedicated rendering page, where the used rendering tool is the same as the rendering tool used in step S20.
  • S60 Use the page nesting tool to nest the dedicated rendering page into the initial rendering page to generate the target rendering page, and display the target rendering page on the display interface.
  • the target rendering page refers to the finally displayed display page corresponding to the login account, that is, the target user role corresponding to the login account is different, and the displayed page is different.
  • the page nesting tool may specifically use tags for nesting, for example, using ⁇ IFRAME> to start nesting and ⁇ /IFRAME> to end nesting.
  • a tag is used to nest the dedicated rendering page into the initial rendering page to obtain the target rendering page.
  • the target rendering page includes all general function modules and special function modules.
  • the target rendering interface is displayed on the user terminal display interface corresponding to the login account. Understandably, when the display interface displays the initial rendering page, it only contains general function modules, leaving the display area of the dedicated function module. After obtaining the dedicated rendering page, nest the dedicated rendering page into the empty space dedicated function in the initial rendering page The module display area is used to obtain a complete target rendering page, in which the layout and style of the display page of the general function module and the special function module are preset.
  • steps S10-S60 log in according to the login account and identification password in the user login request. If the login is successful based on the login account and identification password, obtain the general style data and general layout data corresponding to the general function module, and use the rendering tool to compare the general style The data and general layout data are rendered once, the initial rendered page is obtained and displayed, which reduces the time for subsequent rendering of general function modules, avoids long waiting time for users, and improves page display speed. According to the login account, determine the target user role corresponding to the login account to facilitate subsequent determination of the corresponding dedicated function module and change the target user role of the login account to achieve the purpose of changing the permissions corresponding to the login account.
  • the method for dynamically generating a page further specifically includes the following steps:
  • the account application request includes a login account and a login password.
  • the account application request refers to a request sent by the user based on the user terminal to apply for a login account.
  • the login password refers to the password set when applying for a login account. You can log in to the intelligent APP through the login account and login password later.
  • the intelligent APP provides an account application page.
  • the user sends an account application request based on the account application page based on the user terminal.
  • the account application request includes a login account and a login password.
  • S112 Create an account based on the login account and login password, and display all candidate user roles.
  • the server obtains the login account and login password, it creates an account based on the login account and login password, and displays all candidate user roles on the intelligent APP display page, where the candidate user role refers to a pre-configured user role Contains user roles corresponding to functional modules.
  • the server determines the user role corresponding to the login account, so that the functional modules corresponding to the user role will be displayed later to realize the authority control of the login account.
  • S113 Obtain the selected user role determined based on all candidate user roles sent by the user terminal, look up the user information list according to the login account, and obtain the selected user role corresponding to the login account.
  • the selected user role refers to the role corresponding to the login account sent by the user based on all candidate user roles displayed on the user side when the account is created.
  • the user information list refers to a list of user information stored for each registered account and each unregistered account.
  • the user information can determine the user role and user level that should be selected. For example, if the user information contains the words of business department, you can Determine the corresponding user role as a salesperson, and determine the user level through other job names, etc.
  • the login account is associated with the user information, and the login account may specifically be the user ID in the user information.
  • the user role to be selected refers to the correct user role corresponding to the login account determined according to the user information list.
  • the user can select the corresponding selected user role from all the candidate user roles according to all the candidate user roles displayed on the display page of the intelligent APP, and the server can obtain the selected user role sent by the user and log in according to The account searches the user information list, and obtains the selected user role corresponding to the login account.
  • the server can obtain the selected user role sent by the user and log in according to The account searches the user information list, and obtains the selected user role corresponding to the login account.
  • a keyword matching algorithm can be used to match the selected user role and the user role to be selected to obtain the matching result.
  • the matching result is divided into two types. One is that the matching result is a successful match, that is, based on the user-side sending The selected user role matches the selected user role; the other is that the matching result is a matching failure, that is, based on the mismatch between the selected user role and the selected user role sent by the client, a reminder message is generated, and the reminder information Feedback to the user terminal so that the user can resend the selected user role based on the reminder information.
  • keyword matching algorithms include but are not limited to DFA algorithm and KMP (Knuth-Morris-Pratt, Nut-Morris-Pratt) algorithm.
  • the algorithm selected for keyword matching is the Knuth-Morris-Pratt algorithm (Knuth-Morris-Pratt, KMP for short).
  • the KMP algorithm is an improved string matching algorithm. The key is to use the information after the matching failure to minimize the matching times between the pattern string and the main string to achieve the purpose of fast matching.
  • the KMP algorithm is selected for keyword matching, which saves time and improves matching efficiency.
  • the obtained matching result is a successful match, it means that based on the match between the selected user role sent by the user terminal and the selected user role, the selected user role is associated with the login account and stored in the authority management module of the database. In order to subsequently determine the corresponding target user role according to the login account, and display the corresponding function module.
  • steps S111-S115 an account application request is obtained, an account is created according to the login account and the login password, and all candidate user roles are displayed to realize the process of account creation.
  • Obtain the selected user role based on all candidate user roles sent by the client look up the user information list according to the login account, obtain the candidate user role corresponding to the login account, and match the selected user role with the candidate user role, It is possible to determine whether the selected user role sent by the user terminal matches the selected role corresponding to the login account, avoid subsequent errors in the function module displayed according to the login account, and improve the accuracy of determining the authority based on the login account. If the matching result is a successful match, the selected user role is associated with the login account and stored in the authority management module, so that the corresponding target user role can be determined according to the login account later to achieve effective restriction of user authority.
  • the method for dynamically generating a page further specifically includes the following steps:
  • S121 Obtain a user role configuration request, where the user role configuration request includes at least one candidate user role.
  • the authority corresponding to each candidate user role is predetermined, and the corresponding function module is configured according to the authority.
  • a user role configuration request is sent based on the user side, and the server side obtains the candidate user role configuration request.
  • the user role configuration request includes at least one candidate user role. Understandably, each candidate user role has different permissions and corresponding functional modules. Therefore, it is necessary to determine the general function module and the special function module corresponding to each candidate user role.
  • S122 Configure corresponding general function modules according to the permissions corresponding to all candidate user roles, and provide general function module interfaces corresponding to the general function modules.
  • S123 Determine the authority corresponding to each candidate user role, configure the corresponding special function module according to the authority corresponding to each candidate user role, and provide a special function module interface corresponding to the special function module.
  • the authority corresponding to each candidate user role can be determined according to the user level and user position; according to the authority corresponding to the candidate user role, the need corresponding to the candidate user role is determined Displayed special function modules; developers write special module codes according to the functions required by the special function modules, and provide special function module interfaces corresponding to the special function modules.
  • Each special function module interface corresponds to a special function module identification. For example, if the candidate user role 1 has the highest user authority, then the candidate user role 1 has the authority of ABCDE, and the special function module corresponding to ABCDE is configured for the candidate user role 1.
  • the candidate user role 2 has the BDE authority, it is waiting Select user role 2 to configure the candidate function module corresponding to the BDE.
  • each department corresponds to different businesses, such as the human resources department and the sales department
  • the special function modules that need to be displayed are different; the authority corresponding to each user level is different, such as the general manager of the sales department, the manager
  • the content that can be viewed or edited by the group leader and staff is different. It is understandable that the higher the level, the greater the corresponding authority, and vice versa, the lower the level, the smaller the corresponding authority, and the special display that needs to be displayed
  • the functional modules are different. Therefore, the corresponding dedicated functional modules can be determined according to the user position and user level.
  • S124 Based on the general function module and the special function module corresponding to each candidate user role, determine the style data and layout data corresponding to each candidate user role.
  • the style data refers to the data of the form presented on the page by the general function module and the special function module.
  • Layout data refers to the data on the position of the content of the general function module and the special function module on the page.
  • the corresponding dedicated function module is different. Therefore, after determining the general function module corresponding to each candidate user role, obtain all the corresponding user roles for each candidate user role.
  • General function modules and special function modules according to all general function modules and special function modules of each candidate user role, configure the corresponding style data and layout data, that is, configure the general style data and general rendering corresponding to the general function modules Data, configure the special style data and special layout data corresponding to the special function module, so that the subsequent display page layout is different according to the different user roles to be selected.
  • S125 Save the special function module, general function module, style data and layout data corresponding to each candidate user role in the authority management module.
  • the user role configuration request is obtained, and the corresponding general function modules are configured according to the permissions corresponding to all the user roles to be selected, so as to realize the configuration of the general function modules and facilitate subsequent calls.
  • Determine the authority corresponding to each candidate user role configure the corresponding dedicated function module according to the authority corresponding to each candidate user role, and realize the configuration of the dedicated function module, which is convenient for subsequent calls.
  • the style data and layout data corresponding to each candidate user role are determined to facilitate subsequent page rendering. Save the special function module, general function module, style data and layout data corresponding to each candidate user role in the authority management module, and realize the flexible configuration of user function modules in the intelligent APP.
  • the general function module corresponds to a general function module identifier, where the general function module identifier refers to a pre-configured identifier corresponding to the general function module, and the general function module and the general function module can be determined by the general function module identifier. Corresponding general function module interface.
  • step S20 the general style data and general layout data corresponding to the general function module are obtained, and the general style data and general layout data are rendered once using a rendering tool, and the initial rendering page is obtained and displayed, which specifically includes The following steps:
  • the general function module interface refers to the interface for processing the general function module of the page.
  • the authority management module of the database stores the corresponding relationship between each general function module identifier and the general function module interface.
  • the authority management module in the database is searched through the general function module identifier to obtain the corresponding general function module interface.
  • the function module identifier corresponds to a general function module interface. If there are at least two general function modules, the general function module interface corresponding to each general function module identifier is acquired. For example, if the general function module identifier corresponding to a certain general function module is A, the corresponding general function module interface can be determined through the general function module identifier.
  • the general function module interface includes function codes, general style data, general layout data, etc. that implement functions corresponding to the general function modules.
  • the general function module interface is pre-encapsulated with general style data and general layout data corresponding to the general function module.
  • the general style data and general layout data may specifically include the native bottom interface, where the native bottom interface refers to calling The related interface thus indirectly calls the interface of the underlying drive function.
  • the native low-level interface has the function of accessing pre-defined rendering functions of the operating system.
  • S23 Use a rendering tool to render the general style data and general layout data, and obtain and display an initial rendered page.
  • a rendering tool is used to render the page with general style data and general layout data.
  • the general style data and general layout data are analyzed by the rendering tool. If the general style data, general layout data, and general module code contain
  • the native bottom interface is called for page rendering, that is, the rendering function corresponding to the native bottom interface is called for page rendering to obtain the initial rendering page, and the page to be initially rendered is displayed on the display interface.
  • the general function module interface contains function codes for realizing the functions of the general function modules.
  • the function codes are executed in the background to perform corresponding jump operations.
  • the general function module is the personal information management module, which first generates the initial rendering page based on the general style data and general layout data.
  • the background performs the corresponding jump by executing the function code. Transfer operation.
  • the server obtains the general function module interface through the general function module identifier, and obtains the general style data and general layout data corresponding to the general function module through the general function module interface, and uses the rendering tool to compare the general style data and general layout
  • the data is rendered, the initial rendered page is obtained and displayed, to avoid blank pages, improve performance, and reduce user waiting time.
  • the dedicated function module corresponds to the dedicated function module identifier.
  • the special function module identifier refers to the pre-configured identifier corresponding to the special function module.
  • the special function module identifier can determine the special function module and the special function module interface corresponding to the special function module.
  • step S50 the dedicated function module is rendered and nested into the initial rendering page to generate the target rendering page, which specifically includes the following steps:
  • S51 Search the authority management module according to the special function module identifier, and obtain the corresponding special function module interface.
  • the special function module interface refers to the interface for processing the special function module of the page.
  • the authority management module stores the corresponding relationship between each special function module identifier and the interface of the special function module.
  • the authority management module is first searched for according to the special function module identifier.
  • the keyword query is performed according to the special function module identifier to obtain the corresponding relationship.
  • Each special function module identifier corresponds to a special function module interface. If there are at least two special function module identifiers corresponding to the target user role, the special function module interface corresponding to each special function module identifier is obtained.
  • the special function module interface includes function codes, special style data and special layout data for realizing the special function module.
  • the dedicated function module interface is pre-encapsulated with dedicated style data and dedicated layout data corresponding to the dedicated function module.
  • the dedicated style data and dedicated layout data may specifically include the native bottom interface, which can be accessed by calling the native bottom interface.
  • the function of the pre-defined rendering function of the operating system By acquiring the special style data and special layout data, each special function module can be rendered subsequently, and the function module corresponding to the target user role can be flexibly displayed in the intelligent APP.
  • S53 Use a rendering tool to render the special style data and special layout data, and obtain a special rendering page corresponding to the target user role.
  • the dedicated function module corresponding to each target user role can be different, it is first necessary to obtain the dedicated style data and dedicated layout data of the dedicated function module corresponding to the target user role, and use the rendering tool to compare the dedicated style data and dedicated layout data.
  • the data is rendered to obtain the target rendering page corresponding to the target user role.
  • a native bottom interface is encapsulated in the dedicated style data and dedicated layout data, the native bottom interface is called for page rendering, that is, the rendering function corresponding to the native bottom interface is called for page rendering, and the target rendering page is obtained.
  • the dedicated function module interface also contains the function code for realizing the function of the dedicated function module.
  • the function code is automatically executed for the corresponding jump operation .
  • the dedicated function module is the marketing management module.
  • a dedicated rendering page is generated based on the dedicated style data and dedicated layout data.
  • the background will perform the corresponding jump by executing the function code. operating.
  • the server determines the dedicated style data and dedicated layout data through the dedicated function module interface, and obtains the dedicated rendering page by rendering the dedicated style data and dedicated layout data to achieve different target user roles and displayed styles And the layout is different.
  • the function module of each target role can be flexibly configured.
  • a page nesting tool is used to nest the dedicated rendering page into the initial rendering page to generate a target rendering page, and display it on the display interface After the target page is rendered, the method for dynamically generating the page further specifically includes the following steps:
  • the user role change request includes the account to be modified, the login account, and the modified data.
  • the user role change request refers to a request to change the user role (authority) of the login account based on the request sent by the user terminal.
  • the administrator account refers to an account that can change the user role corresponding to each login account, that is, an account that manages the authority corresponding to each login account full-time.
  • the account to be modified refers to the login account that needs to change the user role.
  • Changed data refers to the user role whose account is to be changed.
  • the intelligent APP provides a change module for changing the user role corresponding to the account to be modified.
  • the user role change request is first sent to the server, where the user role change request includes the administrator account, the account to be modified, and the change data.
  • the server logs in to the intelligent APP according to the administrator account. If the login is successful, it can change the user role corresponding to the account to be modified based on the changed data through the change module in the intelligent APP, and obtain the changed and to-be-modified account numbers The corresponding user role; if the login fails, the user role corresponding to the account to be modified cannot be changed to avoid malicious or arbitrary tampering of the user role.
  • S603 Associate and store the changed user role with the account to be modified in the authority management module.
  • the changed user role corresponding to the account to be modified is associated with the account to be modified and stored in the authority management module, so that when the user login request corresponding to the account to be modified is subsequently obtained, it is determined according to the changed user role
  • the dedicated function module corresponding to the account to be modified realizes the modification of authority, and the front end dynamically realizes the modification of authority.
  • a user role change request is obtained, so as to subsequently modify corresponding permissions according to the user role request. If the login is successful according to the administrator account, the user role corresponding to the account to be modified will be changed according to the changed data to achieve dynamic control of permissions, and the permission modification method is simple and fast.
  • the changed user role is associated with the account to be modified and stored in the permission management module, so that the subsequent front-end can dynamically implement permission changes, and the display interface displays the target rendering page corresponding to the changed user role.
  • a dynamic page generation device is provided, and the dynamic page generation device corresponds to the dynamic page generation method in the above-mentioned embodiment one-to-one.
  • the page dynamic generation device includes a login request acquisition module 10, an initial rendering page acquisition module 20, a target user role acquisition module 30, a dedicated function module acquisition module 40, a dedicated rendering page acquisition module 50, and a target rendering page display Module 60.
  • the detailed description of each functional module is as follows:
  • the login request obtaining module 10 is used to obtain a user login request, and the user login request includes a login account number and an identification password.
  • the initial rendering page acquisition module 20 is configured to, if the login is successful based on the login account and identification password, acquire the general function module, render the general function module, and obtain the initial rendering page and display it.
  • the target user role obtaining module 30 is configured to determine the target user role corresponding to the login account according to the login account.
  • the special function module acquisition module 40 is used to call the authority management module according to the target user role to acquire the special function module corresponding to the target user role.
  • the dedicated rendering page acquisition module 50 is configured to acquire corresponding dedicated style data and dedicated layout data according to the dedicated function module, and use a rendering tool to perform secondary rendering on the dedicated style data and dedicated layout data to obtain the dedicated rendering page.
  • the target rendering page display module 60 is configured to use a page nesting tool to nest the dedicated rendering page into the initial rendering page to generate the target rendering page, and to display the target rendering page on the display interface.
  • the page dynamic generation device before the login request obtaining module 10, the page dynamic generation device further includes an account application request obtaining unit, a candidate user role display unit, a candidate user role obtaining unit, a matching result obtaining unit, and a first storage unit.
  • the account application request obtaining unit is used to obtain the account application request, and the account application request includes the login account number and the login password.
  • the candidate user role display unit is used to create an account based on the login account and login password, and display all candidate user roles.
  • the selectable user role obtaining unit is used to obtain the selected user role determined based on all candidate user roles sent by the client, search the user information list according to the login account, and obtain the selectable user role corresponding to the login account.
  • the matching result obtaining unit is used to match the selected user role with the selected user role to obtain the matching result.
  • the first storage unit is configured to associate the selected user role with the login account in the authority management module if the matching result is a successful match.
  • the page dynamic generation device before the login request obtaining module 10, the page dynamic generation device further includes a role configuration request obtaining unit, a general function module interface configuration unit, a special function module interface configuration unit, a rendering data configuration unit, and a second storage unit.
  • the role configuration request obtaining unit is configured to obtain a user role configuration request, and the user role configuration request includes at least one candidate user role.
  • the general function module interface configuration unit is used to configure corresponding general function modules according to the permissions corresponding to all candidate user roles, and provide general function module interfaces corresponding to the general function modules.
  • the dedicated function module interface configuration unit is used to determine the authority corresponding to each candidate user role, configure the corresponding dedicated function module according to the authority corresponding to each candidate user role, and provide a dedicated function module interface corresponding to the dedicated function module.
  • the rendering data configuration unit is used to determine the style data and layout data corresponding to each candidate user role based on the general function module and the special function module corresponding to each candidate user role.
  • the second storage unit is used to save the dedicated function module, general function module, style data and layout data corresponding to each candidate user role into the authority management module.
  • the general function module corresponds to a general function module identifier.
  • the initial rendering page acquisition module 20 includes a general function module interface acquisition unit, a general rendering data acquisition unit, and an initial rendering page display unit.
  • the universal function module interface acquisition unit is used to search for the authority management module according to the universal function module identifier, and obtain the corresponding universal function module interface.
  • the general rendering data acquisition unit is used to acquire general style data and general layout data corresponding to the general function module according to the general function module interface.
  • the initial rendering page display unit is used to render the general style data and general layout data by using a rendering tool, and obtain and display the initial rendering page.
  • the dedicated function module corresponds to a dedicated function module identifier.
  • the dedicated rendering page acquiring module 50 includes a dedicated function module interface acquiring unit 51, a dedicated rendering data acquiring unit 52 and a dedicated rendering page acquiring unit 53.
  • the special function module interface acquiring unit 51 is configured to search for the authority management module according to the special function module identifier, and obtain the corresponding special function module interface.
  • the dedicated rendering data acquiring unit 52 is configured to acquire the dedicated style data and dedicated layout data corresponding to the dedicated function module according to the dedicated function module interface.
  • the dedicated rendering page obtaining unit 53 is configured to use a rendering tool to render the dedicated style data and the dedicated layout data, and obtain a dedicated rendering page corresponding to the target user role.
  • the page dynamic generation device after the target rendering page display module 60, the page dynamic generation device further includes a role change request acquisition unit, a role modification unit, and a third storage unit.
  • the role change request obtaining unit is used to obtain the user role change request.
  • the user role change request includes the administrator account, the account to be modified, and the change data.
  • the role modification unit is configured to, if the login is successful according to the administrator account, change the user role corresponding to the account to be modified according to the change data, and obtain the changed user role.
  • the third storage unit is used to store the changed user role and the account to be modified in the authority management module in association with each other.
  • the page dynamic generation device For the specific limitation of the page dynamic generation device, please refer to the above limitation on the page dynamic generation method, which will not be repeated here.
  • the various modules in the above-mentioned page dynamic generation device can be implemented in whole or in part by software, hardware and their combination.
  • the above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the corresponding operations of the above-mentioned modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 9.
  • the computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, a computer program, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the database of the computer equipment is used to store the authority management module and so on.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer program is executed by the processor to realize a dynamic page generation method.
  • a computer device including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor executes the computer program to implement the dynamic page generation method in the above embodiment. Steps, for example, steps S10 to S60 shown in FIG. 2 or steps shown in FIG. 3 to FIG. 7. Or, when the processor executes the computer program, the function of each module/unit in the page dynamic generation device in the above embodiment is realized, for example, the function of the module 10 to the module 60 shown in FIG. 8. To avoid repetition, I won’t repeat them here.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the page dynamic generation method in the above method embodiment is implemented, for example, step S10 shown in FIG. 2 Go to step S60, or the steps shown in FIGS. 3 to 7.
  • the function of each module in the page dynamic generation device in the above embodiment is realized, for example, the function of the module 10 to the module 60 shown in FIG. 8. To avoid repetition, I won’t repeat them here.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (RambuS) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Channel
  • SLDRAM synchronous chain Channel
  • RDRAM direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Document Processing Apparatus (AREA)
  • Information Transfer Between Computers (AREA)
  • Storage Device Security (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A dynamic page generation method and apparatus, and a computer device and a storage medium. The method comprises: if login based on a login account and an identification password in a user login request is successful, obtaining general style data and general layout data corresponding to a general function module, performing primary rendering on the general style data and the general layout data by using a rendering tool, obtaining an initial rendering page, and displaying the initial rendering page; determining a corresponding target user role according to the login account; calling an authority management module according to the target user role, and obtaining a corresponding special function module; obtaining corresponding special style data and special layout data according to the special function module, carrying out secondary rendering on the special style data and the special layout data by using the rendering tool to obtain a special rendering page; and embedding the special rendering page into the initial rendering page by using a page embedding tool to generate a target rendering page, so as to solve the problem that the APP cannot flexibly configure a corresponding function module.

Description

页面动态生成方法、装置、计算机设备及存储介质Dynamic page generation method, device, computer equipment and storage medium
本申请要求于2019年5月22日提交中国专利局、申请号为201910430169.3,发明名称为“页面动态生成方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 22, 2019, the application number is 201910430169.3, and the invention title is "page dynamic generation method, device, computer equipment and storage medium", the entire content of which is incorporated by reference Incorporated in this application.
技术领域Technical field
本申请涉及数据展示技术领域,尤其涉及一种页面动态生成方法、装置、计算机设备及存储介质。This application relates to the field of data display technology, and in particular to a method, device, computer equipment and storage medium for dynamic page generation.
背景技术Background technique
随着科技发展,各大公司争相推出智能化APP,公司职员通过智能化APP进行相关操作和管理。发明人意识到,通过传统的智能化APP进行使用时,每一职员的用户端会显示所有的功能模块,导致不能根据职员等级和职员职位等显示相应的功能模块,或者根据登录账号对应的等级不同,智能化APP的部分功能模块会被禁止使用。例如,某些智能化APP中会存在普通用户、会员和高级VIP的等级区别,而根据等级区别显示与等级不符的限制使用的功能模块,不能灵活配置权限,会存在较大的局限性,从而导致智能化APP不能灵活配置相应的功能模块的问题。With the development of science and technology, major companies are vying to launch intelligent APPs, and company employees carry out related operations and management through intelligent APPs. The inventor realized that when using the traditional intelligent APP, the user terminal of each employee will display all the functional modules, which makes it impossible to display the corresponding functional modules according to the employee level and employee position, or according to the level corresponding to the login account. Differently, some functional modules of the intelligent APP will be forbidden to use. For example, in some intelligent APPs, there will be differences in the levels of ordinary users, members, and premium VIPs. However, according to the level differences, the restricted function modules that do not match the level are displayed. The permissions cannot be flexibly configured, and there will be greater limitations. This leads to the problem that the intelligent APP cannot flexibly configure the corresponding function modules.
发明内容Summary of the invention
本申请实施例提供一种页面动态生成方法、装置、计算机设备及存储介质,以解决智能化APP不能灵活配置相应的功能模块的问题。The embodiments of the present application provide a method, device, computer equipment, and storage medium for dynamically generating a page to solve the problem that the intelligent APP cannot flexibly configure corresponding functional modules.
一种页面动态生成方法,包括:A method for dynamically generating pages, including:
获取用户登录请求,所述用户登录请求中包含登录账号和识别密码;Obtaining a user login request, where the user login request includes a login account and an identification password;
若基于所述登录账号和所述识别密码登录成功,则获取通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对所述通用样式数据和所述通用布局数据进行一次渲染,获取初始渲染页面并进行显示;If the login is successful based on the login account and the identification password, the general style data and general layout data corresponding to the general function module are obtained, and the general style data and the general layout data are rendered once using a rendering tool to obtain the initial Render the page and display it;
根据所述登录账号,确定与所述登录账号对应的目标用户角色;Determine the target user role corresponding to the login account according to the login account;
根据所述目标用户角色调用权限管理模块,获取与所述目标用户角色对应的专用功能模块;Invoking the authority management module according to the target user role to obtain the dedicated function module corresponding to the target user role;
根据所述专用功能模块获取对应的专用样式数据和专用布局数据,采用所述渲染工具对所述专用样式数据和所述专用布局数据进行二次渲染,获取专用渲染页面;Acquiring corresponding dedicated style data and dedicated layout data according to the dedicated function module, and using the rendering tool to perform secondary rendering on the dedicated style data and the dedicated layout data to obtain a dedicated rendering page;
采用页面嵌套工具将所述专用渲染页面嵌套至所述初始渲染页面中生成目标渲染页面,并在显示界面上显示所述目标渲染页面。A page nesting tool is used to nest the dedicated rendering page into the initial rendering page to generate a target rendering page, and displaying the target rendering page on a display interface.
一种页面动态生成装置,包括:A dynamic page generation device, including:
登录请求获取模块,用于获取用户登录请求,所述用户登录请求中包含登录账号和识别密码;The login request obtaining module is configured to obtain a user login request, and the user login request includes a login account and identification password;
初始渲染页面获取模块,用于若基于所述登录账号和所述识别密码登录成功,则获取通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对所述通用样式数据和所述通用布局数据进行一次渲染,获取初始渲染页面并进行显示;The initial rendering page acquisition module is configured to, if the login is successful based on the login account and the identification password, acquire the general style data and general layout data corresponding to the general function module, and use a rendering tool to compare the general style data and the general The layout data is rendered once, and the initial rendering page is obtained and displayed;
目标用户角色获取模块,用于根据所述登录账号,确定与所述登录账号对应的目标用户角色;The target user role acquisition module is configured to determine the target user role corresponding to the login account according to the login account;
专用功能模块获取模块,用于根据所述目标用户角色调用权限管理模块,获取与所述目标用户角色对应的专用功能模块;A dedicated function module obtaining module, configured to call the authority management module according to the target user role, and obtain the dedicated function module corresponding to the target user role;
专用渲染页面获取模块,用于根据所述专用功能模块获取对应的专用样式数据和专用 布局数据,采用所述渲染工具对所述专用样式数据和所述专用布局数据进行二次渲染,获取专用渲染页面;The dedicated rendering page acquisition module is used to acquire corresponding dedicated style data and dedicated layout data according to the dedicated function module, and use the rendering tool to perform secondary rendering on the dedicated style data and the dedicated layout data to obtain dedicated rendering page;
目标渲染页面显示模块,用于采用页面嵌套工具将所述专用渲染页面嵌套至所述初始渲染页面中生成目标渲染页面,并在显示界面上显示所述目标渲染页面。The target rendering page display module is configured to use a page nesting tool to nest the dedicated rendering page into the initial rendering page to generate a target rendering page, and to display the target rendering page on a display interface.
一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述页面动态生成方法。A computer device includes a memory, a processor, and a computer program that is stored in the memory and can run on the processor, and the processor implements the above-mentioned page dynamic generation method when the computer program is executed.
一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述页面动态生成方法。A computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned page dynamic generation method is realized.
上述提供一种页面动态生成方法、装置、计算机设备和存储介质,根据用户登录请求中登录账号和识别密码进行登录,若基于登录账号和识别密码登录成功,则获取通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对通用样式数据和通用布局数据进行一次渲染,获取初始渲染页面并进行显示,减少后续对通用功能模块进行渲染的时间,避免用户等待时间过长,提高页面显示速度。根据登录账号,确定与登录账号对应的目标用户角色,便于后续确定对应的专用功能模块,并更改登录账号的目标用户角色,可达到更改登录账号的权限的目的。根据目标用户角色调用权限管理模块,获取与目标用户角色对应的专用功能模块,根据专用功能模块获取对应的专用样式数据和专用布局数据,进行渲染,获取与目标用户角色对应的专用渲染页面,实现对每一目标用户角色的权限进行有效的控制。基于初始渲染页面和专用渲染页面生成目标渲染页面,并在显示界面上显示目标渲染页面,实现不同登录账号对应的权限不同,显示界面所显示的功能模块不同。The above provides a method, device, computer equipment, and storage medium for dynamically generating a page. Log in according to the login account and identification password in the user login request. If the login is successful based on the login account and identification password, obtain the generic style data corresponding to the generic function module And general layout data, using rendering tools to render the general style data and general layout data once, get the initial rendering page and display it, reduce the time for subsequent rendering of general function modules, avoid long waiting time for users, and improve page display speed . According to the login account, determine the target user role corresponding to the login account, so that the corresponding special function module can be determined later, and the target user role of the login account can be changed to achieve the purpose of changing the authority of the login account. Call the authority management module according to the target user role, obtain the special function module corresponding to the target user role, obtain the corresponding special style data and special layout data according to the special function module, perform rendering, and obtain the special rendering page corresponding to the target user role to achieve Effectively control the permissions of each target user role. The target rendering page is generated based on the initial rendering page and the dedicated rendering page, and the target rendering page is displayed on the display interface, so that different login accounts have different permissions and different functional modules displayed on the display interface.
附图说明Description of the drawings
图1是本申请一实施例中页面动态生成方法的应用环境示意图;FIG. 1 is a schematic diagram of an application environment of a method for dynamically generating a page in an embodiment of the present application;
图2是本申请一实施例中页面动态生成方法的流程图;2 is a flowchart of a method for dynamically generating a page in an embodiment of the present application;
图3是本申请一实施例中页面动态生成方法的流程图;FIG. 3 is a flowchart of a method for dynamically generating a page in an embodiment of the present application;
图4是本申请一实施例中页面动态生成方法的流程图;4 is a flowchart of a method for dynamically generating a page in an embodiment of the present application;
图5是本申请一实施例中页面动态生成方法的流程图;FIG. 5 is a flowchart of a method for dynamically generating a page in an embodiment of the present application;
图6是本申请一实施例中页面动态生成方法的流程图;Fig. 6 is a flowchart of a method for dynamically generating a page in an embodiment of the present application;
图7是本申请一实施例中页面动态生成方法的流程图;FIG. 7 is a flowchart of a method for dynamically generating a page in an embodiment of the present application;
图8是本申请一实施例中页面动态生成装置的原理框图;FIG. 8 is a functional block diagram of a page dynamic generation device in an embodiment of the present application;
图9是本申请一实施例中计算机设备的一示意图。Fig. 9 is a schematic diagram of a computer device in an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供的页面动态生成方法,可应用在如图1的应用环境中,该页面动态生成方法应用在智能化APP的服务端中,通过登录账号和与登录账号对应的目标用户角色确定所需要显示的功能模块,实现智能化APP能够灵活配置相应的功能模块。其中,用户端可以但不限于各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。服务端可以用独立的服务端或者是多个服务端组成的服务端集群来实现。The dynamic page generation method provided by the embodiment of this application can be applied in the application environment as shown in Figure 1. The dynamic page generation method is applied to the server side of the intelligent APP, determined by the login account and the target user role corresponding to the login account The function modules that need to be displayed can realize the intelligent APP to be able to flexibly configure the corresponding function modules. Among them, the user terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server can be implemented as an independent server or a server cluster composed of multiple servers.
在一实施例中,如图2所示,提供一种页面动态生成方法,以该方法应用在图1中的服务端为例进行说明,具体包括如下步骤:In an embodiment, as shown in FIG. 2, a method for dynamically generating a page is provided. The method is applied to the server in FIG. 1 as an example for description, which specifically includes the following steps:
S10:获取用户登录请求,用户登录请求中包含登录账号和识别密码。S10: Obtain a user login request. The user login request includes a login account and identification password.
其中,用户登录请求是指用户基于用户端向智能化APP的服务端发送的以登录智能化APP的请求。登录账号是指用户基于用户端向智能化APP发送的以登录智能化APP的账号,该登录账号与预先注册时的账号相同。识别密码是指用户基于用户端登录智能化APP时,与登录账号对应的密码,具体为预先注册时所设定的密码。Among them, the user login request refers to a request sent by the user to the intelligent APP server based on the user to log in to the intelligent APP. The login account refers to the account that the user sends to the smart APP based on the client to log in to the smart APP, and the login account is the same as the account when pre-registered. The identification password refers to the password corresponding to the login account when the user logs in to the intelligent APP based on the client terminal, specifically the password set during pre-registration.
具体地,当用户基于用户端登录智能化APP时,服务端控制用户端显示登录页面。用 户基于用户端显示的登录页面,以登录智能化APP,服务端获取用户端发送的用户登录请求,用户登录请求中包含通过登录页面输入的登录账号和识别密码,以便根据登录账号和识别密码进行登录操作,并可根据登录账号确定该用户端可显示的与登录账号相应的功能模块,其中,功能模块包含通用功能模块和专用功能模块。Specifically, when the user logs in to the intelligent APP based on the client, the server controls the client to display the login page. The user logs in to the intelligent APP based on the login page displayed on the client side. The server side obtains the user login request sent by the user side. The user login request includes the login account and identification password entered through the login page, so as to proceed according to the login account and identification password. Login operation, and according to the login account, the function module corresponding to the login account that can be displayed on the user terminal can be determined, wherein the function module includes a general function module and a special function module.
S20:若基于登录账号和识别密码登录成功,则获取通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对通用样式数据和通用布局数据进行一次渲染,获取初始渲染页面并进行显示。S20: If the login is successful based on the login account and the identification password, obtain the general style data and general layout data corresponding to the general function module, use a rendering tool to render the general style data and general layout data once, and obtain the initial rendering page and display it.
其中,通用功能模块是指通过每一登录账号登录智能化APP时,每一登录账号对应的均包含的功能模块,即每一登录账号对应的通用功能模块相同。通用样式数据是指显示通用功能模块时的外观的数据,如字的字体设定,文字颜色设定等。通用布局数据是指显示通用功能模块时,在页面上的布局数据,如长宽高等。初始渲染页面是指对通用功能模块进行渲染后,所获取到的渲染页面。Among them, the general function module refers to the function module corresponding to each login account when logging in to the intelligent APP through each login account, that is, the general function module corresponding to each login account is the same. General style data refers to the appearance data when displaying general function modules, such as font settings and text color settings. General layout data refers to the layout data on the page when displaying general function modules, such as length, width, and height. The initial rendering page refers to the rendering page obtained after rendering the general function module.
具体地,先通过登录账号和识别密码进行登录,若通过登录账号和识别密码登录成功时,服务端先获取与登录账号对应的通用功能模块,根据通用功能模块获取对应的通用样式数据和通用布局数据,采用渲染工具对通用样式数据和通用布局数据进行一次渲染,以获取到初始渲染页面。其中,一次渲染是指只对通用功能模块进行渲染。渲染工具具体可采用现有的渲染工具,如JavaScript渲染工具,也被称为JavaScript引擎,通过JavaScript引擎对通用样式数据和通用布局数据进行解析,生成渲染树,根据渲染树在前端显示初始渲染页面。其中,智能化APP的显示页面由通用功能模块和专用功能模块构成,通过先对通用功能模块进行渲染,减少后续渲染通用功能模块的时间,提高页面跳转速度,避免页面出现空白的情况,减少用户等待时间。Specifically, first log in through the login account and identification password. If the login is successful through the login account and identification password, the server first obtains the general function module corresponding to the login account, and obtains the corresponding general style data and general layout according to the general function module Data, a rendering tool is used to render the general style data and general layout data once to obtain the initial rendering page. Among them, one rendering refers to rendering only the general function modules. The rendering tools can specifically use existing rendering tools, such as JavaScript rendering tools, also known as JavaScript engines. The JavaScript engine parses general style data and general layout data to generate a rendering tree, and display the initial rendering page on the front end according to the rendering tree. . Among them, the display page of the intelligent APP is composed of general function modules and special function modules. By rendering the general function modules first, the time for subsequent rendering of the general function modules is reduced, the page jump speed is increased, and the page blanking is avoided. User wait time.
S30:根据登录账号,确定与登录账号对应的目标用户角色。S30: According to the login account, determine the target user role corresponding to the login account.
其中,目标用户角色是指根据登录账号确定的对应的用户角色。其中,登录账号与目标用户角色的对应关系是多对一,即多个登录账号对应的目标用户角色可能相同。Among them, the target user role refers to the corresponding user role determined according to the login account. The corresponding relationship between the login account and the target user role is many-to-one, that is, the target user role corresponding to multiple login accounts may be the same.
具体地,数据库的权限管理模块中存储有每一登录账号与目标用户角色的对应关系。通过预先存储目标用户角色与登录账号的对应关系,以便通过登录账号快速查找到对应的目标用户角色。服务端根据登录账号查找数据库,以获取与登录账号对应的目标用户角色,以便后续快速根据目标用户角色确定在用户端显示的专用功能模块,实现每一目标用户角色对应的权限不同,实现用户权限的限定,且避免显示所有功能模块但部分功能模块被禁止使用的情况。Specifically, the authority management module of the database stores the corresponding relationship between each login account and the target user role. The corresponding relationship between the target user role and the login account is stored in advance, so that the corresponding target user role can be quickly found through the login account. The server searches the database according to the login account to obtain the target user role corresponding to the login account, so as to quickly determine the special function module displayed on the user side according to the target user role, realize that the corresponding authority of each target user role is different, and realize the user authority It is limited to display all function modules but some function modules are forbidden to use.
进一步地,配置登录账号对应的目标用户角色,为后续更改登录账号的权限提供便利。若未对登录账号配置对应的目标用户角色,需求为更改登录账号对应的权限时,则需要调整该登录账号的专用功能模块以实现更改登录账号对应的权限,通过该方法修改权限,导致修改时间过长;若为登录账号配置对应的目标用户角色,需求为更改登录账号对应的权限时,只需更改登录账号对应的目标用户角色以实现更改登录账号对应的权限,减少修改权限时间,且修改权限方法简单快速。Furthermore, configuring the target user role corresponding to the login account provides convenience for subsequent changes to the permissions of the login account. If the corresponding target user role is not configured for the login account, and the requirement is to change the authority corresponding to the login account, you need to adjust the dedicated function module of the login account to realize the change of the authority corresponding to the login account. Modify the authority by this method, resulting in the modification time Too long; if the corresponding target user role is configured for the login account, and the requirement is to change the permissions corresponding to the login account, you only need to change the target user role corresponding to the login account to change the permissions corresponding to the login account, reduce the time for modifying permissions, and modify The permission method is simple and fast.
S40:根据目标用户角色调用权限管理模块,获取与目标用户角色对应的专用功能模块。S40: Invoke the authority management module according to the role of the target user, and obtain a dedicated function module corresponding to the role of the target user.
其中,权限管理模块是指预先设定的用于确定每一目标用户角色对应的权限,即根据目标用户角色可确定对应的专用功能模块,其中,权限管理模块中还包含样式数据和布局数据等。专用功能模块是指预先设定与每一用户角色对应的功能模块,其中,用户角色与专用功能模块的对应的为一对多,且每一用户角色所包含的专用功能模块可相同也可不同,即某一用户角色所包含的部分专用功能模块与其他用户角色的专用功能模块相同,或者,某一用户角色所包含的所有专用功能模块与其他用户角色的专用功能模块不同。某一用户角色的专用功能模块为CDE;另一用户角色的专用功能模块为BDE;则DE为相同的专 用功能模块,而C和B作为两个用户角色不同的专用功能模块。Among them, the authority management module refers to the preset authority for determining the corresponding authority of each target user role, that is, the corresponding special function module can be determined according to the target user role, and the authority management module also contains style data and layout data, etc. . The dedicated function module refers to the preset function module corresponding to each user role, where the correspondence between the user role and the dedicated function module is one-to-many, and the dedicated function modules included in each user role can be the same or different , That is, part of the special function modules included in a certain user role are the same as the special function modules of other user roles, or all special function modules included in a certain user role are different from the special function modules of other user roles. The special function module of one user role is CDE; the special function module of another user role is BDE; DE is the same special function module, and C and B are two special function modules with different user roles.
具体地,由于不同的用户角色,所对应的权限不同,所需显示的功能模块不同,因此,根据不同的用户角色,配置对应的专用功能模块,并将每一用户角色和对应的专用功能模块存储在数据库的权限管理模块中。服务端根据目标用户角色调用权限管理模块,获取与目标用户角色对应的专用功能模块,若同一目标用户角色对应的专用功能模块为至少两个,则获取每一专用功能模块,后续在显示界面显示每一专用功能模块。通过登录账号对应的目标用户角色,以确定对应的专用功能模块,避免为每一登录账号配置对应的专用功能模块,前期只需为每一目标用户角色配置对应的专用功能模块,减少前期配置时间,实现每一目标角色所对应的权限不同。Specifically, due to different user roles, the corresponding permissions are different, and the function modules that need to be displayed are different. Therefore, according to different user roles, the corresponding special function modules are configured, and each user role and the corresponding special function module Stored in the authority management module of the database. The server calls the authority management module according to the target user role to obtain the special function module corresponding to the target user role. If there are at least two special function modules corresponding to the same target user role, it obtains each special function module, and then displays it on the display interface. Each dedicated function module. The target user role corresponding to the login account is used to determine the corresponding special function module, avoiding the configuration of the corresponding special function module for each login account. In the early stage, only the corresponding special function module needs to be configured for each target user role, which reduces the initial configuration time , The authority corresponding to each target role is different.
S50:根据专用功能模块获取对应的专用样式数据和专用布局数据,采用渲染工具对专用样式数据和专用布局数据进行二次渲染,获取专用渲染页面。S50: Obtain the corresponding dedicated style data and dedicated layout data according to the dedicated function module, and use a rendering tool to perform secondary rendering on the dedicated style data and dedicated layout data to obtain a dedicated rendering page.
其中,专用样式数据是指显示专用功能模块时的外观的数据,如字的字体设定,文字颜色设定等。专用布局数据是指显示通用功能模块时,在页面上的布局数据,如长宽高等。专用渲染页面是指对专用功能模块进行渲染后,所获取到的渲染页面。二次渲染是指对专用功能让模块进行渲染。Among them, the special style data refers to the data of the appearance when the special function module is displayed, such as the font setting of the character and the character color setting. The dedicated layout data refers to the layout data on the page when the general function module is displayed, such as length, width, and height. The dedicated rendering page refers to the rendering page obtained after rendering the dedicated function module. Secondary rendering refers to the rendering of dedicated functions to modules.
具体地,服务端先获取与登录账号对应的每一专用功能模块,再根据每一专用功能模块获取对应的专用样式数据和专用布局数据,采用渲染工具对专用样式数据和专用布局数据进行二次渲染,以获取到专用渲染页面,其中,采用的渲染工具与步骤S20中所采用的渲染工具相同。Specifically, the server first obtains each dedicated function module corresponding to the login account, and then obtains the corresponding dedicated style data and dedicated layout data according to each dedicated function module, and uses rendering tools to perform secondary operations on the dedicated style data and dedicated layout data. Render to obtain a dedicated rendering page, where the used rendering tool is the same as the rendering tool used in step S20.
S60:采用页面嵌套工具将专用渲染页面嵌套至初始渲染页面中生成目标渲染页面,并在显示界面上显示目标渲染页面。S60: Use the page nesting tool to nest the dedicated rendering page into the initial rendering page to generate the target rendering page, and display the target rendering page on the display interface.
其中,目标渲染页面是指最终显示的与登录账号相对应的显示页面,即登录账号对应的目标用户角色不同,所显示的页面不同。Among them, the target rendering page refers to the finally displayed display page corresponding to the login account, that is, the target user role corresponding to the login account is different, and the displayed page is different.
具体地,页面嵌套工具具体可以是采用标签进行嵌套,例如,采用<IFRAME>开始嵌套,</IFRAME>结束嵌套。采用标签将专用渲染页面嵌套至初始渲染页面中,以获取目标渲染页面,该目标渲染页面包含了所有通用功能模块和专用功能模块,在登录账号对应的用户端显示界面显示该目标渲染界面。可以理解地,显示界面显示初始渲染页面时,只包含了通用功能模块,空留专用功能模块显示区域,获取到专用渲染页面后,将专用渲染页面嵌套至初始渲染页面中的空留专用功能模块显示区域,以获取到完整的目标渲染页面,其中,通用功能模块和专用功能模块在显示页面的布局与样式是预先设定好的。Specifically, the page nesting tool may specifically use tags for nesting, for example, using <IFRAME> to start nesting and </IFRAME> to end nesting. A tag is used to nest the dedicated rendering page into the initial rendering page to obtain the target rendering page. The target rendering page includes all general function modules and special function modules. The target rendering interface is displayed on the user terminal display interface corresponding to the login account. Understandably, when the display interface displays the initial rendering page, it only contains general function modules, leaving the display area of the dedicated function module. After obtaining the dedicated rendering page, nest the dedicated rendering page into the empty space dedicated function in the initial rendering page The module display area is used to obtain a complete target rendering page, in which the layout and style of the display page of the general function module and the special function module are preset.
步骤S10-S60中,根据用户登录请求中登录账号和识别密码进行登录,若基于登录账号和识别密码登录成功,则获取通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对通用样式数据和通用布局数据进行一次渲染,获取初始渲染页面并进行显示,减少后续对通用功能模块进行渲染的时间,避免用户等待时间过长,提高页面显示速度。根据登录账号,确定与登录账号对应的目标用户角色,便于后续确定对应的专用功能模块,并更改登录账号的目标用户角色,可达到更改登录账号对应的权限的目的。根据目标用户角色调用权限管理模块,获取与目标用户角色对应的专用功能模块,根据专用功能模块获取对应的专用样式数据和专用布局数据,采用渲染工具对专用样式数据和专用布局数据进行二次渲染,获取专用渲染页面,实现不同目标用户角色所对应的专用功能模块不同,实现对每一目标用户角色的权限进行有效的控制。将专用渲染页面嵌套至初始渲染页面中生成目标渲染页面,并在显示界面上显示目标渲染页面,实现灵活配置智能化APP的功能模块。In steps S10-S60, log in according to the login account and identification password in the user login request. If the login is successful based on the login account and identification password, obtain the general style data and general layout data corresponding to the general function module, and use the rendering tool to compare the general style The data and general layout data are rendered once, the initial rendered page is obtained and displayed, which reduces the time for subsequent rendering of general function modules, avoids long waiting time for users, and improves page display speed. According to the login account, determine the target user role corresponding to the login account to facilitate subsequent determination of the corresponding dedicated function module and change the target user role of the login account to achieve the purpose of changing the permissions corresponding to the login account. Call the authority management module according to the target user role, obtain the special function module corresponding to the target user role, obtain the corresponding special style data and special layout data according to the special function module, and use the rendering tool to perform secondary rendering of the special style data and special layout data , Obtain dedicated rendering pages, realize that the dedicated function modules corresponding to different target user roles are different, and achieve effective control of the permissions of each target user role. The dedicated rendering page is nested into the initial rendering page to generate the target rendering page, and the target rendering page is displayed on the display interface to realize the flexible configuration of the functional modules of the intelligent APP.
在一实施例中,如图3所示,在步骤S10之前,即在获取用户登录请求之前,页面动态生成方法还具体包括如下步骤:In an embodiment, as shown in FIG. 3, before step S10, that is, before obtaining a user login request, the method for dynamically generating a page further specifically includes the following steps:
S111:获取账号申请请求,账号申请请求中包括登录账号和登录密码。S111: Obtain an account application request. The account application request includes a login account and a login password.
其中,账号申请请求是指用户基于用户端发送的用于申请登录账号的请求。登录密码是指申请登录账号时,所设定的密码,后续可通过登录账号和登录密码登录智能化APP。Among them, the account application request refers to a request sent by the user based on the user terminal to apply for a login account. The login password refers to the password set when applying for a login account. You can log in to the intelligent APP through the login account and login password later.
具体地,在登录智能化APP之前,通常需要预先申请登录账号。智能化APP提供账号申请页面,用户根据账号申请页面,基于用户端发送账号申请请求,账号申请请求中包含登录账号和登录密码。Specifically, before logging in to an intelligent APP, it is usually necessary to apply for a login account in advance. The intelligent APP provides an account application page. The user sends an account application request based on the account application page based on the user terminal. The account application request includes a login account and a login password.
S112:根据登录账号和登录密码创建账号,并显示所有待选用户角色。S112: Create an account based on the login account and login password, and display all candidate user roles.
具体地,当服务端获取到登录账号和登录密码后,根据登录账号和登录密码创建账号,并在智能化APP显示页面显示所有待选用户角色,其中,待选用户角色是指预先配置好的包含有相应的功能模块的用户角色。创建账号时,确定与登录账号对应的用户角色,以便后续显示与用户角色相对应的功能模块,实现对登录账号的权限控制。Specifically, after the server obtains the login account and login password, it creates an account based on the login account and login password, and displays all candidate user roles on the intelligent APP display page, where the candidate user role refers to a pre-configured user role Contains user roles corresponding to functional modules. When creating an account, determine the user role corresponding to the login account, so that the functional modules corresponding to the user role will be displayed later to realize the authority control of the login account.
S113:获取用户端发送的基于所有待选用户角色确定的选定用户角色,根据登录账号查找用户信息列表,获取与登录账号对应的应选用户角色。S113: Obtain the selected user role determined based on all candidate user roles sent by the user terminal, look up the user information list according to the login account, and obtain the selected user role corresponding to the login account.
其中,选定用户角色是指创建账号时,用户基于用户端显示的所有待选用户角色,发送的与登录账号对应的角色。用户信息列表是指存储有每一已注册账号和每一未注册账号的用户信息的列表,通过用户信息可确定应当选择的用户角色和用户等级,例如,用户信息中包含营业部等字样,可确定对应的用户角色为营业人员,并通过其他职位名称等确定用户等级等。其中,登录账号与用户信息相关联,登录账号具体可以是用户信息中的工号等。应选用户角色是指根据用户信息列表确定的该登录账号对应的正确的用户角色。Among them, the selected user role refers to the role corresponding to the login account sent by the user based on all candidate user roles displayed on the user side when the account is created. The user information list refers to a list of user information stored for each registered account and each unregistered account. The user information can determine the user role and user level that should be selected. For example, if the user information contains the words of business department, you can Determine the corresponding user role as a salesperson, and determine the user level through other job names, etc. Among them, the login account is associated with the user information, and the login account may specifically be the user ID in the user information. The user role to be selected refers to the correct user role corresponding to the login account determined according to the user information list.
具体地,用户可根据智能化APP显示页面显示的所有待选用户角色,从所有待选用户角色中选择对应的选定用户角色,服务端以获取用户端发送的选定用户角色,并根据登录账号查找用户信息列表,获取与登录账号对应的应选用户角色。通过确定应选用户角色,避免选定用户角色与登录账号不相匹配,减少因待选用户角色名称相似或者误选等导致显示界面显示的功能模块与登录账号不相应的情况。Specifically, the user can select the corresponding selected user role from all the candidate user roles according to all the candidate user roles displayed on the display page of the intelligent APP, and the server can obtain the selected user role sent by the user and log in according to The account searches the user information list, and obtains the selected user role corresponding to the login account. By determining the user role to be selected, the mismatch between the selected user role and the login account is avoided, and the situation where the function module displayed on the display interface is not corresponding to the login account due to the similarity or misselection of the name of the candidate user role is reduced.
S114:将选定用户角色和应选用户角色进行匹配,获取匹配结果。S114: Match the selected user role with the selected user role, and obtain a matching result.
具体地,可采用关键词匹配算法将选定用户角色和应选用户角色进行匹配,获取匹配结果,其中,匹配结果分为两种,一种是匹配结果为匹配成功,即基于用户端发送的选定用户角色与应选用户角色相匹配;另一种是匹配结果为匹配失败,即基于用户端发送的与选定用户角色与应选用户角色不匹配,则生成提醒信息,将该提醒信息反馈给用户端,以便用户基于提醒信息,重新发送选定用户角色。其中,关键词匹配算法包括但不限于DFA算法和KMP(Knuth-Morris-Pratt,努特-莫里斯-普拉特)算法。本实施例中,关键词匹配所选用的算法是克努特—莫里斯—普拉特算法(Knuth-Morris-Pratt,简称KMP),KMP算法是一种改进的字符串匹配算法,KMP算法的关键是利用匹配失败后的信息,尽量减少模式串与主串的匹配次数以达到快速匹配的目的。本实施例中,选用KMP算法进行关键词匹配,节省时间,提高匹配效率。Specifically, a keyword matching algorithm can be used to match the selected user role and the user role to be selected to obtain the matching result. Among them, the matching result is divided into two types. One is that the matching result is a successful match, that is, based on the user-side sending The selected user role matches the selected user role; the other is that the matching result is a matching failure, that is, based on the mismatch between the selected user role and the selected user role sent by the client, a reminder message is generated, and the reminder information Feedback to the user terminal so that the user can resend the selected user role based on the reminder information. Among them, keyword matching algorithms include but are not limited to DFA algorithm and KMP (Knuth-Morris-Pratt, Nut-Morris-Pratt) algorithm. In this embodiment, the algorithm selected for keyword matching is the Knuth-Morris-Pratt algorithm (Knuth-Morris-Pratt, KMP for short). The KMP algorithm is an improved string matching algorithm. The key is to use the information after the matching failure to minimize the matching times between the pattern string and the main string to achieve the purpose of fast matching. In this embodiment, the KMP algorithm is selected for keyword matching, which saves time and improves matching efficiency.
S115:若匹配结果为匹配成功,则将选定用户角色与登录账号关联存储在权限管理模块中。S115: If the matching result is that the matching is successful, associate the selected user role with the login account and store it in the authority management module.
具体地,获取到的匹配结果为匹配成功,则说明基于用户端发送的选定用户角色与应选用户角色相匹配,将选定用户角色与将登录账号关联存储在数据库的权限管理模块中,以便后续根据登录账号确定对应的目标用户角色,并显示相应的功能模块。Specifically, if the obtained matching result is a successful match, it means that based on the match between the selected user role sent by the user terminal and the selected user role, the selected user role is associated with the login account and stored in the authority management module of the database. In order to subsequently determine the corresponding target user role according to the login account, and display the corresponding function module.
步骤S111-S115中,获取账号申请请求,根据登录账号和登录密码创建账号,并显示所有待选用户角色,以实现账号创建的过程。获取用户端发送的基于所有待选用户角色确定的选定用户角色,根据登录账号查找用户信息列表,获取与登录账号对应的应选用户角色,将选定用户角色和应选用户角色进行匹配,实现确定用户端发送的选定用户角色是否与登录账号对应的应选角色是否相匹配,避免后续根据登录账号显示的功能模块出错,提高根据登录账号确定权限的准确性。若匹配结果为匹配成功,则将选定用户角色与登录账 号关联存储在权限管理模块中,以便后续根据登录账号确定对应的目标用户角色,实现用户权限的有效限定。In steps S111-S115, an account application request is obtained, an account is created according to the login account and the login password, and all candidate user roles are displayed to realize the process of account creation. Obtain the selected user role based on all candidate user roles sent by the client, look up the user information list according to the login account, obtain the candidate user role corresponding to the login account, and match the selected user role with the candidate user role, It is possible to determine whether the selected user role sent by the user terminal matches the selected role corresponding to the login account, avoid subsequent errors in the function module displayed according to the login account, and improve the accuracy of determining the authority based on the login account. If the matching result is a successful match, the selected user role is associated with the login account and stored in the authority management module, so that the corresponding target user role can be determined according to the login account later to achieve effective restriction of user authority.
在一实施例中,如图4所示,在步骤S10之前,即在获取用户登录请求之前,页面动态生成方法还具体包括如下步骤:In an embodiment, as shown in FIG. 4, before step S10, that is, before obtaining a user login request, the method for dynamically generating a page further specifically includes the following steps:
S121:获取用户角色配置请求,用户角色配置请求中包括至少一个待选用户角色。S121: Obtain a user role configuration request, where the user role configuration request includes at least one candidate user role.
具体地,预先确定每一待选用户角色对应的权限,并根据权限配置对应的功能模块。先基于用户端发送用户角色配置请求,服务端以获取待选用户角色配置请求用户角色配置请求中包含至少一个待选用户角色。可以理解地,每一待选用户角色对应的权限不同,所对应的功能模块不同,因此需要确定每一待选用户角色对应的通用功能模块和专用功能模块。Specifically, the authority corresponding to each candidate user role is predetermined, and the corresponding function module is configured according to the authority. First, a user role configuration request is sent based on the user side, and the server side obtains the candidate user role configuration request. The user role configuration request includes at least one candidate user role. Understandably, each candidate user role has different permissions and corresponding functional modules. Therefore, it is necessary to determine the general function module and the special function module corresponding to each candidate user role.
S122:根据所有待选用户角色对应的权限,配置对应的通用功能模块,并提供与通用功能模块对应的通用功能模块接口。S122: Configure corresponding general function modules according to the permissions corresponding to all candidate user roles, and provide general function module interfaces corresponding to the general function modules.
具体地,先确定所有需要配置的待选用户角色,并根据所有待选用户角色对应的权限,配置对应的通用功能模块,即将每一待选用户角色均包含的功能模块作为通用功能模块,例如,个人信息管理模块等。开发人员根据通用功能模块所需实现的功能编写通用模块代码,并提供通用功能模块接口,每一通用功能模块接口对应一通用功能模块标识。Specifically, first determine all candidate user roles that need to be configured, and configure the corresponding general function modules according to the permissions corresponding to all candidate user roles, that is, function modules included in each candidate user role as general function modules, for example , Personal information management module, etc. Developers write general module codes according to the functions required by the general function modules and provide general function module interfaces. Each general function module interface corresponds to a general function module identification.
S123:确定每一待选用户角色对应的权限,根据每一待选用户角色对应的权限配置对应的专用功能模块,提供与专用功能模块对应的专用功能模块接口。S123: Determine the authority corresponding to each candidate user role, configure the corresponding special function module according to the authority corresponding to each candidate user role, and provide a special function module interface corresponding to the special function module.
具体地,先确定每一待选用户角色对应的权限,通常可根据用户等级和用户职位来确定待选用户角色对应的权限;根据待选用户角色对应的权限,确定待选用户角色对应的需要显示的专用功能模块;开发人员根据根据专用功能模块所需实现的功能编写专用模块代码,提供与专用功能模块对应的专用功能模块接口,每一专用功能模块接口对应一专用功能模块标识。例如,待选用户角色1拥有用户权限最高,则待选用户角色1拥有ABCDE的权限,则为待选用户角色1配置ABCDE对应的专用功能模块;待选用户角色2拥有BDE权限,则为待选用户角色2配置BDE对应的待选功能模块。Specifically, first determine the authority corresponding to each candidate user role. Usually, the authority corresponding to the candidate user role can be determined according to the user level and user position; according to the authority corresponding to the candidate user role, the need corresponding to the candidate user role is determined Displayed special function modules; developers write special module codes according to the functions required by the special function modules, and provide special function module interfaces corresponding to the special function modules. Each special function module interface corresponds to a special function module identification. For example, if the candidate user role 1 has the highest user authority, then the candidate user role 1 has the authority of ABCDE, and the special function module corresponding to ABCDE is configured for the candidate user role 1. The candidate user role 2 has the BDE authority, it is waiting Select user role 2 to configure the candidate function module corresponding to the BDE.
由于每一部门所对应的业务不同,如人资部和营业部等对应的业务不同,则所需显示的专用功能模块不同;每一用户等级所对应的权限不同,如营业部总经理、经理、组长和职员等所能查看或编辑的内容不同,可以理解地,等级越高,所对应的的权限越大,反之,等级越低,所对应的权限越小,则所需显示的专用功能模块不同,因此,具体可根据用户职位和用户等级来确定对应的专用功能模块。Since each department corresponds to different businesses, such as the human resources department and the sales department, the special function modules that need to be displayed are different; the authority corresponding to each user level is different, such as the general manager of the sales department, the manager The content that can be viewed or edited by the group leader and staff is different. It is understandable that the higher the level, the greater the corresponding authority, and vice versa, the lower the level, the smaller the corresponding authority, and the special display that needs to be displayed The functional modules are different. Therefore, the corresponding dedicated functional modules can be determined according to the user position and user level.
S124:基于每一待选用户角色对应的通用功能模块和专用功能模块,确定每一待选用户角色对应的样式数据和布局数据。S124: Based on the general function module and the special function module corresponding to each candidate user role, determine the style data and layout data corresponding to each candidate user role.
其中,样式数据是指通用功能模块和专用功能模块在页面上呈现的形式的数据。布局数据是指通用功能模块和专用功能模块的内容在页面上所处位置的数据。Among them, the style data refers to the data of the form presented on the page by the general function module and the special function module. Layout data refers to the data on the position of the content of the general function module and the special function module on the page.
具体地,由于每一待选用户角色所对应的权限不同,则所对应的专用功能模块不同,因此确定每一待选用户角色对应的通用功能模块后,获取每一待选用户角色对应的所有的通用功能模块和专用功能模块;根据每一待选用户角色的所有的通用功能模块和专用功能模块,配置相应的样式数据和布局数据,即配置与通用功能模块对应的通用样式数据和通用渲染数据,配置与专用功能模块对应的专用样式数据和专用布局数据,以便后续根据待选用户角色不同,显示页面布局不同。Specifically, since the authority corresponding to each candidate user role is different, the corresponding dedicated function module is different. Therefore, after determining the general function module corresponding to each candidate user role, obtain all the corresponding user roles for each candidate user role. General function modules and special function modules; according to all general function modules and special function modules of each candidate user role, configure the corresponding style data and layout data, that is, configure the general style data and general rendering corresponding to the general function modules Data, configure the special style data and special layout data corresponding to the special function module, so that the subsequent display page layout is different according to the different user roles to be selected.
S125:将每一待选用户角色对应的专用功能模块、通用功能模块、样式数据和布局数据保存至权限管理模块中。S125: Save the special function module, general function module, style data and layout data corresponding to each candidate user role in the authority management module.
具体地,配置完每一待选用户角色的样式数据和布局数据后,将每一待选用户角色对应的专用功能模块、通用功能模块、样式数据和布局数据保存至权限管理模块中,便于后续的页面渲染和展示。Specifically, after configuring the style data and layout data of each candidate user role, save the dedicated function module, general function module, style data, and layout data corresponding to each candidate user role in the authority management module for easy follow-up Page rendering and display.
步骤S121-S125中,获取用户角色配置请求,根据所有待选用户角色对应的权限,配置对应的通用功能模块,实现通用功能模块的配置,便于后续的调用。确定每一待选用户角色对应的权限,根据每一待选用户角色对应的权限配置对应的专用功能模块,实现专用功能模块的配置,便于后续的调用。基于每一待选用户角色对应的通用功能模块和专用功能模块,确定每一待选用户角色对应的样式数据和布局数据,便于后续页面渲染。将每一待选用户角色对应的专用功能模块、通用功能模块、样式数据和布局数据保存至权限管理模块中,在智能化APP中实现灵活配置用户的功能模块。In steps S121-S125, the user role configuration request is obtained, and the corresponding general function modules are configured according to the permissions corresponding to all the user roles to be selected, so as to realize the configuration of the general function modules and facilitate subsequent calls. Determine the authority corresponding to each candidate user role, configure the corresponding dedicated function module according to the authority corresponding to each candidate user role, and realize the configuration of the dedicated function module, which is convenient for subsequent calls. Based on the general function module and the special function module corresponding to each candidate user role, the style data and layout data corresponding to each candidate user role are determined to facilitate subsequent page rendering. Save the special function module, general function module, style data and layout data corresponding to each candidate user role in the authority management module, and realize the flexible configuration of user function modules in the intelligent APP.
在一实施例中,通用功能模块对应一通用功能模块标识,其中,通用功能模块标识是指预先配置的与通用功能模块对应的标识,通过通用功能模块标识可确定通用功能模块和与通用功能模块对应的通用功能模块接口。In an embodiment, the general function module corresponds to a general function module identifier, where the general function module identifier refers to a pre-configured identifier corresponding to the general function module, and the general function module and the general function module can be determined by the general function module identifier. Corresponding general function module interface.
如图5所示,步骤S20中,即获取通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对通用样式数据和通用布局数据进行一次渲染,获取初始渲染页面并进行显示,具体包括如下步骤:As shown in Figure 5, in step S20, the general style data and general layout data corresponding to the general function module are obtained, and the general style data and general layout data are rendered once using a rendering tool, and the initial rendering page is obtained and displayed, which specifically includes The following steps:
S21:根据通用功能模块标识查找权限管理模块,获取对应的通用功能模块接口。S21: Search the authority management module according to the general function module identifier, and obtain the corresponding general function module interface.
其中,通用功能模块接口是指对页面的通用功能模块进行处理的接口。Among them, the general function module interface refers to the interface for processing the general function module of the page.
具体地,数据库的权限管理模块中存储有每一通用功能模块标识和通用功能模块接口的对应关系,通过通用功能模块标识查找数据库中的权限管理模块,获取对应的通用功能模块接口,每一通用功能模块标识对应一通用功能模块接口,若通用功能模块为至少两个,则获取每一通用功能模块标识对应的通用功能模块接口。例如,某一通用功能模块对应的通用功能模块标识为A,则通过通用功能模块标识可确定对应的通用功能模块接口。其中,通用功能模块接口中包含实现通用功能模块对应的功能的功能代码、通用样式数据和通用布局数据等。Specifically, the authority management module of the database stores the corresponding relationship between each general function module identifier and the general function module interface. The authority management module in the database is searched through the general function module identifier to obtain the corresponding general function module interface. The function module identifier corresponds to a general function module interface. If there are at least two general function modules, the general function module interface corresponding to each general function module identifier is acquired. For example, if the general function module identifier corresponding to a certain general function module is A, the corresponding general function module interface can be determined through the general function module identifier. Among them, the general function module interface includes function codes, general style data, general layout data, etc. that implement functions corresponding to the general function modules.
S22:根据通用功能模块接口,获取与通用功能模块对应的对应的通用样式数据和通用布局数据。S22: Acquire corresponding general style data and general layout data corresponding to the general function module according to the general function module interface.
具体地,通用功能模块接口中预先封装有与通用功能模块对应的通用样式数据和通用布局数据,其中,通用样式数据和通用布局数据具体可包括原生底层接口,其中,原生底层接口是指通过调用相关的接口从而间接调用底层驱动功能的接口。原生底层接口具有访问操作系统的预先定义的渲染函数的功能。Specifically, the general function module interface is pre-encapsulated with general style data and general layout data corresponding to the general function module. The general style data and general layout data may specifically include the native bottom interface, where the native bottom interface refers to calling The related interface thus indirectly calls the interface of the underlying drive function. The native low-level interface has the function of accessing pre-defined rendering functions of the operating system.
S23:采用渲染工具对通用样式数据和通用布局数据进行渲染,获取初始渲染页面并进行显示。S23: Use a rendering tool to render the general style data and general layout data, and obtain and display an initial rendered page.
具体地,采用渲染工具对通用样式数据和通用布局数据对页面进行渲染,具体是通过渲染工具对通用样式数据和通用布局数据进行解析,若通用样式数据和通用布局数据和通用模块代码中包含有原生底层接口,则调用原生底层接口进行页面渲染,即调用与原生底层接口相对应的渲染函数进行页面渲染,以获取到初始渲染页面,并在显示界面显示待初始渲染页面。Specifically, a rendering tool is used to render the page with general style data and general layout data. Specifically, the general style data and general layout data are analyzed by the rendering tool. If the general style data, general layout data, and general module code contain For the native bottom interface, the native bottom interface is called for page rendering, that is, the rendering function corresponding to the native bottom interface is called for page rendering to obtain the initial rendering page, and the page to be initially rendered is displayed on the display interface.
进一步地,通用功能模块接口中包含实现通用功能模块的功能的功能代码,当用户通过初始渲染页面显示的数据对通用功能模块进行相应操作时,则后台执行功能代码进行相应的跳转操作。例如,通用功能模块为个人信息管理模块,先根据通用样式数据和通用布局数据生成初始渲染页面,当用户通过初始渲染页面进行个人信息修改或编辑时,此时后台通过执行功能代码进行相应的跳转操作。Further, the general function module interface contains function codes for realizing the functions of the general function modules. When the user performs corresponding operations on the general function modules through the data displayed on the initial rendering page, the function codes are executed in the background to perform corresponding jump operations. For example, the general function module is the personal information management module, which first generates the initial rendering page based on the general style data and general layout data. When the user modifies or edits personal information through the initial rendering page, the background performs the corresponding jump by executing the function code. Transfer operation.
步骤S21-S23中,服务端通过通用功能模块标识获取通用功能模块接口,通过通用功能模块接口,获取与通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对通用样式数据和通用布局数据进行渲染,获取初始渲染页面并进行显示,避免页面出现空白,提高性能,减少用户等待时间。In steps S21-S23, the server obtains the general function module interface through the general function module identifier, and obtains the general style data and general layout data corresponding to the general function module through the general function module interface, and uses the rendering tool to compare the general style data and general layout The data is rendered, the initial rendered page is obtained and displayed, to avoid blank pages, improve performance, and reduce user waiting time.
在一实施例中,专用功能模块对应专用功能模块标识。其中,专用功能模块标识是指 预先配置的与专用功能模块对应的标识,通过专用功能模块标识可确定专用功能模块和与专用功能模块对应的专用功能模块接口。In one embodiment, the dedicated function module corresponds to the dedicated function module identifier. Among them, the special function module identifier refers to the pre-configured identifier corresponding to the special function module. The special function module identifier can determine the special function module and the special function module interface corresponding to the special function module.
如图6所示,步骤S50中,即对专用功能模块进行渲染,并嵌套至初始渲染页面中生成目标渲染页面,具体包括如下步骤:As shown in Fig. 6, in step S50, the dedicated function module is rendered and nested into the initial rendering page to generate the target rendering page, which specifically includes the following steps:
S51:根据专用功能模块标识查找权限管理模块,获取对应的专用功能模块接口。S51: Search the authority management module according to the special function module identifier, and obtain the corresponding special function module interface.
其中,专用功能模块接口是指对页面的专用功能模块进行处理的接口。Among them, the special function module interface refers to the interface for processing the special function module of the page.
具体地,权限管理模块中存储有每一专用功能模块标识与专用功能模块接口的对应关系,先根据专用功能模块标识查找权限管理模块,具体是根据专用功能模块标识进行关键字查询,获取到对应的专用功能模块接口,每一专用功能模块标识对应一专用功能模块接口,若与目标用户角色对应专用功能模块标识为至少两个,则获取每一专用功能模块标识对应的专用功能模块接口。专用功能模块接口中包含实现专用功能模块的功能代码、专用样式数据和专用布局数据。Specifically, the authority management module stores the corresponding relationship between each special function module identifier and the interface of the special function module. The authority management module is first searched for according to the special function module identifier. Specifically, the keyword query is performed according to the special function module identifier to obtain the corresponding relationship. Each special function module identifier corresponds to a special function module interface. If there are at least two special function module identifiers corresponding to the target user role, the special function module interface corresponding to each special function module identifier is obtained. The special function module interface includes function codes, special style data and special layout data for realizing the special function module.
S52:根据专用功能模块接口,获取与专用功能模块对应的专用样式数据和专用布局数据。S52: According to the special function module interface, obtain the special style data and special layout data corresponding to the special function module.
具体地,专用功能模块接口中预先封装有与专用功能模块对应的专用样式数据和专用布局数据,其中,专用样式数据和专用布局数据具体可包括原生底层接口,通过调用原生底层接口,则可访问操作系统的预先定义的渲染函数的功能。通过获取到专用样式数据和专用布局数据,后续可对每一专用功能模块进行渲染,实现在智能化APP中灵活显示到与目标用户角色相应的功能模块。Specifically, the dedicated function module interface is pre-encapsulated with dedicated style data and dedicated layout data corresponding to the dedicated function module. The dedicated style data and dedicated layout data may specifically include the native bottom interface, which can be accessed by calling the native bottom interface. The function of the pre-defined rendering function of the operating system. By acquiring the special style data and special layout data, each special function module can be rendered subsequently, and the function module corresponding to the target user role can be flexibly displayed in the intelligent APP.
S53:采用渲染工具对专用样式数据和专用布局数据进行渲染,获取与目标用户角色对应的专用渲染页面。S53: Use a rendering tool to render the special style data and special layout data, and obtain a special rendering page corresponding to the target user role.
具体地,由于每一目标用户角色对应的专用功能模块可不同,则先需要获取到与目标用户角色对应的专用功能模块的专用样式数据和专用布局数据,采用渲染工具对专用样式数据和专用布局数据进行渲染,以获取到与目标用户角色对应的目标渲染页面。其中,若专用样式数据和专用布局数据中封装有原生底层接口,则调用原生底层接口进行页面渲染,即调用与原生底层接口相对应的渲染函数进行页面渲染,获取目标渲染页面。Specifically, since the dedicated function module corresponding to each target user role can be different, it is first necessary to obtain the dedicated style data and dedicated layout data of the dedicated function module corresponding to the target user role, and use the rendering tool to compare the dedicated style data and dedicated layout data. The data is rendered to obtain the target rendering page corresponding to the target user role. Among them, if a native bottom interface is encapsulated in the dedicated style data and dedicated layout data, the native bottom interface is called for page rendering, that is, the rendering function corresponding to the native bottom interface is called for page rendering, and the target rendering page is obtained.
进一步地,专用功能模块接口中还、包含实现专用功能模块的功能的功能代码,当用户通过专用渲染页面显示的数据对专用功能模块进行相应操作时,则自动执行功能代码进行相应的跳转操作。例如,专用功能模块为营销管理模块,先根据专用样式数据和专用布局数据生成专用渲染页面,当用户通过专用渲染页面进行业务数据修改或编辑时,此时后台通过执行功能代码进行相应的跳转操作。Further, the dedicated function module interface also contains the function code for realizing the function of the dedicated function module. When the user performs the corresponding operation on the dedicated function module through the data displayed on the dedicated rendering page, the function code is automatically executed for the corresponding jump operation . For example, the dedicated function module is the marketing management module. First, a dedicated rendering page is generated based on the dedicated style data and dedicated layout data. When the user modifies or edits business data through the dedicated rendering page, the background will perform the corresponding jump by executing the function code. operating.
步骤S51-S53中,服务端通过专用功能模块接口确定专用样式数据和专用布局数据,通过对专用样式数据和专用布局数据进行渲染,获取专用渲染页面,实现不同的目标用户角色,所显示的样式和布局不同。以便后续在显示界面显示专用功能模块与通用功能模块相结合的目标渲染页面,实现灵活配置每一目标角色的功能模块。In steps S51-S53, the server determines the dedicated style data and dedicated layout data through the dedicated function module interface, and obtains the dedicated rendering page by rendering the dedicated style data and dedicated layout data to achieve different target user roles and displayed styles And the layout is different. In order to subsequently display the target rendering page combining the dedicated function module and the general function module on the display interface, the function module of each target role can be flexibly configured.
在一实施例中,如图7所示,在步骤S60之后,即在采用页面嵌套工具将所述专用渲染页面嵌套至所述初始渲染页面中生成目标渲染页面,并在显示界面上显示所述目标渲染页面之后,页面动态生成方法还具体包括如下步骤:In one embodiment, as shown in FIG. 7, after step S60, a page nesting tool is used to nest the dedicated rendering page into the initial rendering page to generate a target rendering page, and display it on the display interface After the target page is rendered, the method for dynamically generating the page further specifically includes the following steps:
S601:获取用户角色更改请求,用户角色更改请求包括待修改账号、登录账号和更改数据。S601: Obtain a user role change request. The user role change request includes the account to be modified, the login account, and the modified data.
其中,用户角色更改请求是指基于用户端发送的对登录账号进行用户角色(权限)进行更改的请求。管理员账号是指可对每一登录账号对应的用户角色进行更改的账号,即专职管理每一登录账号对应的权限的账号。待修改账号是指需要进行用户角色更改的登录账号。更改数据是指待修改账号进行更改的用户角色。Among them, the user role change request refers to a request to change the user role (authority) of the login account based on the request sent by the user terminal. The administrator account refers to an account that can change the user role corresponding to each login account, that is, an account that manages the authority corresponding to each login account full-time. The account to be modified refers to the login account that needs to change the user role. Changed data refers to the user role whose account is to be changed.
具体地,当待修改账号对应的用户等级或者用户职位发生变更时,所对应的用户角色发生改变,该智能化APP提供对待修改账号对应的用户角色进行更改的更改模块。当需要对待修改账号对应的用户角色进行更改时,先向服务端发送用户角色更改请求,其中,用户角色更改请求中包含管理员账号、待修改账号和更改数据。Specifically, when the user level or user position corresponding to the account to be modified is changed, the corresponding user role is changed, and the intelligent APP provides a change module for changing the user role corresponding to the account to be modified. When the user role corresponding to the account to be modified needs to be changed, the user role change request is first sent to the server, where the user role change request includes the administrator account, the account to be modified, and the change data.
S602:若根据管理员账号登录成功,则根据更改数据对待修改账号对应的用户角色进行更改,获取更改后的用户角色。S602: If the login is successful according to the administrator account, change the user role corresponding to the account to be modified according to the change data, and obtain the changed user role.
具体地,服务端根据管理员账号登录智能化APP,若登录成功,则可通过智能化APP中更改模块,依据更改数据对待修改账号对应的用户角色进行更改,获取更改后的与待修改账号号对应的用户角色;若登录失败,则不可对待修改账号对应的用户角色进行更改,避免恶意或随意篡改用户角色。Specifically, the server logs in to the intelligent APP according to the administrator account. If the login is successful, it can change the user role corresponding to the account to be modified based on the changed data through the change module in the intelligent APP, and obtain the changed and to-be-modified account numbers The corresponding user role; if the login fails, the user role corresponding to the account to be modified cannot be changed to avoid malicious or arbitrary tampering of the user role.
S603:将更改后的用户角色与待修改账号关联存储至权限管理模块中。S603: Associate and store the changed user role with the account to be modified in the authority management module.
具体地,将更改后的与待修改账号对应的用户角色与该待修改账号关联存储至权限管理模块中,以便后续获取到该待修改账号对应的用户登录请求时,根据更改后的用户角色确定与待修改账号对应的专用功能模块,实现权限的修改,前端则动态地实现权限变更。Specifically, the changed user role corresponding to the account to be modified is associated with the account to be modified and stored in the authority management module, so that when the user login request corresponding to the account to be modified is subsequently obtained, it is determined according to the changed user role The dedicated function module corresponding to the account to be modified realizes the modification of authority, and the front end dynamically realizes the modification of authority.
步骤S601-S603中,获取用户角色更改请求,以便后续根据用户角色请求进行相应的权限修改。若根据管理员账号登录成功,则根据更改数据对待修改账号对应的用户角色进行更改,实现动态控制权限,且权限修改方式简单快速。将更改后的用户角色与待修改账号关联存储至权限管理模块中,便于后续前端动态实现权限变更,显示界面显示更改后的用户角色对应的目标渲染页面。In steps S601-S603, a user role change request is obtained, so as to subsequently modify corresponding permissions according to the user role request. If the login is successful according to the administrator account, the user role corresponding to the account to be modified will be changed according to the changed data to achieve dynamic control of permissions, and the permission modification method is simple and fast. The changed user role is associated with the account to be modified and stored in the permission management module, so that the subsequent front-end can dynamically implement permission changes, and the display interface displays the target rendering page corresponding to the changed user role.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
在一实施例中,提供一种页面动态生成装置,该页面动态生成装置与上述实施例中页面动态生成方法一一对应。如图8所示,该页面动态生成装置包括登录请求获取模块10、初始渲染页面获取模块20、目标用户角色获取模块30、专用功能模块获取模块40、专用渲染页面获取模块50和目标渲染页面显示模块60。各功能模块详细说明如下:In one embodiment, a dynamic page generation device is provided, and the dynamic page generation device corresponds to the dynamic page generation method in the above-mentioned embodiment one-to-one. As shown in FIG. 8, the page dynamic generation device includes a login request acquisition module 10, an initial rendering page acquisition module 20, a target user role acquisition module 30, a dedicated function module acquisition module 40, a dedicated rendering page acquisition module 50, and a target rendering page display Module 60. The detailed description of each functional module is as follows:
登录请求获取模块10,用于获取用户登录请求,用户登录请求中包含登录账号和识别密码。The login request obtaining module 10 is used to obtain a user login request, and the user login request includes a login account number and an identification password.
初始渲染页面获取模块20,用于若基于登录账号和识别密码登录成功,则获取通用功能模块,对通用功能模块进行渲染,获取初始渲染页面并进行显示。The initial rendering page acquisition module 20 is configured to, if the login is successful based on the login account and identification password, acquire the general function module, render the general function module, and obtain the initial rendering page and display it.
目标用户角色获取模块30,用于根据登录账号,确定与登录账号对应的目标用户角色。The target user role obtaining module 30 is configured to determine the target user role corresponding to the login account according to the login account.
专用功能模块获取模块40,用于根据目标用户角色调用权限管理模块,获取与目标用户角色对应的专用功能模块。The special function module acquisition module 40 is used to call the authority management module according to the target user role to acquire the special function module corresponding to the target user role.
专用渲染页面获取模块50,用于根据专用功能模块获取对应的专用样式数据和专用布局数据,采用渲染工具对专用样式数据和专用布局数据进行二次渲染,获取专用渲染页面。The dedicated rendering page acquisition module 50 is configured to acquire corresponding dedicated style data and dedicated layout data according to the dedicated function module, and use a rendering tool to perform secondary rendering on the dedicated style data and dedicated layout data to obtain the dedicated rendering page.
目标渲染页面显示模块60,用于采用页面嵌套工具将专用渲染页面嵌套至初始渲染页面中生成目标渲染页面,并在显示界面上显示目标渲染页面。The target rendering page display module 60 is configured to use a page nesting tool to nest the dedicated rendering page into the initial rendering page to generate the target rendering page, and to display the target rendering page on the display interface.
在一实施例中,在登录请求获取模块10之前,页面动态生成装置还包括账号申请请求获取单元、待选用户角色显示单元、应选用户角色获取单元、匹配结果获取单元和第一存储单元。In one embodiment, before the login request obtaining module 10, the page dynamic generation device further includes an account application request obtaining unit, a candidate user role display unit, a candidate user role obtaining unit, a matching result obtaining unit, and a first storage unit.
账号申请请求获取单元,用于获取账号申请请求,账号申请请求中包括登录账号和登录密码。The account application request obtaining unit is used to obtain the account application request, and the account application request includes the login account number and the login password.
待选用户角色显示单元,用于根据登录账号和登录密码创建账号,并显示所有待选用户角色。The candidate user role display unit is used to create an account based on the login account and login password, and display all candidate user roles.
应选用户角色获取单元,用于获取用户端发送的基于所有待选用户角色确定的选定用户角色,根据登录账号查找用户信息列表,获取与登录账号对应的应选用户角色。The selectable user role obtaining unit is used to obtain the selected user role determined based on all candidate user roles sent by the client, search the user information list according to the login account, and obtain the selectable user role corresponding to the login account.
匹配结果获取单元,用于将选定用户角色和应选用户角色进行匹配,获取匹配结果。The matching result obtaining unit is used to match the selected user role with the selected user role to obtain the matching result.
第一存储单元,用于若匹配结果为匹配成功,则将选定用户角色与登录账号关联存储在权限管理模块中。The first storage unit is configured to associate the selected user role with the login account in the authority management module if the matching result is a successful match.
在一实施例中,在登录请求获取模块10之前,页面动态生成装置还包括角色配置请求获取单元、通用功能模块接口配置单元、专用功能模块接口配置单元、渲染数据配置单元和第二存储单元。In one embodiment, before the login request obtaining module 10, the page dynamic generation device further includes a role configuration request obtaining unit, a general function module interface configuration unit, a special function module interface configuration unit, a rendering data configuration unit, and a second storage unit.
角色配置请求获取单元,用于获取用户角色配置请求,用户角色配置请求中包括至少一个待选用户角色。The role configuration request obtaining unit is configured to obtain a user role configuration request, and the user role configuration request includes at least one candidate user role.
通用功能模块接口配置单元,用于根据所有待选用户角色对应的权限,配置对应的通用功能模块,并提供与通用功能模块对应的通用功能模块接口。The general function module interface configuration unit is used to configure corresponding general function modules according to the permissions corresponding to all candidate user roles, and provide general function module interfaces corresponding to the general function modules.
专用功能模块接口配置单元,用于确定每一待选用户角色对应的权限,根据每一待选用户角色对应的权限配置对应的专用功能模块,提供与专用功能模块对应的专用功能模块接口。The dedicated function module interface configuration unit is used to determine the authority corresponding to each candidate user role, configure the corresponding dedicated function module according to the authority corresponding to each candidate user role, and provide a dedicated function module interface corresponding to the dedicated function module.
渲染数据配置单元,用于基于每一待选用户角色对应的通用功能模块和专用功能模块,确定每一待选用户角色对应的样式数据和布局数据。The rendering data configuration unit is used to determine the style data and layout data corresponding to each candidate user role based on the general function module and the special function module corresponding to each candidate user role.
第二存储单元,用于将每一待选用户角色对应的专用功能模块、通用功能模块、样式数据和布局数据保存至权限管理模块中。The second storage unit is used to save the dedicated function module, general function module, style data and layout data corresponding to each candidate user role into the authority management module.
在一实施例中,通用功能模块对应一通用功能模块标识。In an embodiment, the general function module corresponds to a general function module identifier.
初始渲染页面获取模块20包括通用功能模块接口获取单元、通用渲染数据获取单元和初始渲染页面显示单元。The initial rendering page acquisition module 20 includes a general function module interface acquisition unit, a general rendering data acquisition unit, and an initial rendering page display unit.
通用功能模块接口获取单元,用于根据通用功能模块标识查找权限管理模块,获取对应的通用功能模块接口。The universal function module interface acquisition unit is used to search for the authority management module according to the universal function module identifier, and obtain the corresponding universal function module interface.
通用渲染数据获取单元,用于根据通用功能模块接口,获取与通用功能模块对应的通用样式数据和通用布局数据。The general rendering data acquisition unit is used to acquire general style data and general layout data corresponding to the general function module according to the general function module interface.
初始渲染页面显示单元,用于采用渲染工具对通用样式数据和通用布局数据进行渲染,获取初始渲染页面并进行显示。The initial rendering page display unit is used to render the general style data and general layout data by using a rendering tool, and obtain and display the initial rendering page.
在一实施例中,专用功能模块对应一专用功能模块标识。In one embodiment, the dedicated function module corresponds to a dedicated function module identifier.
专用渲染页面获取模块50包括专用功能模块接口获取单元51、专用渲染数据获取单元52和专用渲染页面获取单元53。The dedicated rendering page acquiring module 50 includes a dedicated function module interface acquiring unit 51, a dedicated rendering data acquiring unit 52 and a dedicated rendering page acquiring unit 53.
专用功能模块接口获取单元51,用于根据专用功能模块标识查找权限管理模块,获取对应的专用功能模块接口。The special function module interface acquiring unit 51 is configured to search for the authority management module according to the special function module identifier, and obtain the corresponding special function module interface.
专用渲染数据获取单元52,用于根据专用功能模块接口,获取与专用功能模块对应的专用样式数据和专用布局数据。The dedicated rendering data acquiring unit 52 is configured to acquire the dedicated style data and dedicated layout data corresponding to the dedicated function module according to the dedicated function module interface.
专用渲染页面获取单元53,用于采用渲染工具对专用样式数据和专用布局数据进行渲染,获取与目标用户角色对应的专用渲染页面。The dedicated rendering page obtaining unit 53 is configured to use a rendering tool to render the dedicated style data and the dedicated layout data, and obtain a dedicated rendering page corresponding to the target user role.
在一实施例中,在目标渲染页面显示模块60之后,页面动态生成装置还包括角色更改请求获取单元、角色修改单元和第三存储单元。In an embodiment, after the target rendering page display module 60, the page dynamic generation device further includes a role change request acquisition unit, a role modification unit, and a third storage unit.
角色更改请求获取单元,用于获取用户角色更改请求,用户角色更改请求包括管理员账号、待修改账号和更改数据。The role change request obtaining unit is used to obtain the user role change request. The user role change request includes the administrator account, the account to be modified, and the change data.
角色修改单元,用于若根据管理员账号登录成功,则根据更改数据对待修改账号对应的用户角色进行更改,获取更改后的用户角色。The role modification unit is configured to, if the login is successful according to the administrator account, change the user role corresponding to the account to be modified according to the change data, and obtain the changed user role.
第三存储单元,用于将更改后的用户角色与待修改账号关联存储至权限管理模块中。The third storage unit is used to store the changed user role and the account to be modified in the authority management module in association with each other.
关于页面动态生成装置的具体限定可以参见上文中对于页面动态生成方法的限定,在此不再赘述。上述页面动态生成装置中的各个模块可全部或部分通过软件、硬件及其组和来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软 件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the page dynamic generation device, please refer to the above limitation on the page dynamic generation method, which will not be repeated here. The various modules in the above-mentioned page dynamic generation device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the corresponding operations of the above-mentioned modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务端,其内部结构图可以如图9所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储权限管理模块等。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种页面动态生成方法。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. 9. The computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used to store the authority management module and so on. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program is executed by the processor to realize a dynamic page generation method.
在一实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述实施例中页面动态生成方法的步骤,例如,图2所示的步骤S10至步骤S60,或者,图3至图7所示的步骤。或者,处理器执行计算机程序时实现上述实施例中页面动态生成装置中的各模块/单元的功能,例如,图8所示模块10至模块60的功能。为避免重复,此处不再赘述。In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. The processor executes the computer program to implement the dynamic page generation method in the above embodiment. Steps, for example, steps S10 to S60 shown in FIG. 2 or steps shown in FIG. 3 to FIG. 7. Or, when the processor executes the computer program, the function of each module/unit in the page dynamic generation device in the above embodiment is realized, for example, the function of the module 10 to the module 60 shown in FIG. 8. To avoid repetition, I won’t repeat them here.
在一实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述方法实施例中页面动态生成方法,例如,图2所示的步骤S10至步骤S60,或者,图3至图7所示的步骤。或者,该计算机程序被处理器执行时实现上述实施例中页面动态生成装置中各模块的功能,例如,图8所示模块10至模块60的功能。为避免重复,此处不再赘述。In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the page dynamic generation method in the above method embodiment is implemented, for example, step S10 shown in FIG. 2 Go to step S60, or the steps shown in FIGS. 3 to 7. Or, when the computer program is executed by the processor, the function of each module in the page dynamic generation device in the above embodiment is realized, for example, the function of the module 10 to the module 60 shown in FIG. 8. To avoid repetition, I won’t repeat them here.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(RambuS)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program, which can be stored in a non-volatile computer readable storage medium. When the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (RambuS) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Claims (20)

  1. 一种页面动态生成方法,其中,包括:A method for dynamically generating pages, which includes:
    获取用户登录请求,所述用户登录请求中包含登录账号和识别密码;Obtaining a user login request, where the user login request includes a login account and an identification password;
    若基于所述登录账号和所述识别密码登录成功,则获取通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对所述通用样式数据和所述通用布局数据进行一次渲染,获取初始渲染页面并进行显示;If the login is successful based on the login account and the identification password, the general style data and general layout data corresponding to the general function module are obtained, and the general style data and the general layout data are rendered once using a rendering tool to obtain the initial Render the page and display it;
    根据所述登录账号,确定与所述登录账号对应的目标用户角色;Determine the target user role corresponding to the login account according to the login account;
    根据所述目标用户角色调用权限管理模块,获取与所述目标用户角色对应的专用功能模块;Invoking the authority management module according to the target user role to obtain the dedicated function module corresponding to the target user role;
    根据所述专用功能模块获取对应的专用样式数据和专用布局数据,采用所述渲染工具对所述专用样式数据和所述专用布局数据进行二次渲染,获取专用渲染页面;Acquiring corresponding dedicated style data and dedicated layout data according to the dedicated function module, and using the rendering tool to perform secondary rendering on the dedicated style data and the dedicated layout data to obtain a dedicated rendering page;
    采用页面嵌套工具将所述专用渲染页面嵌套至所述初始渲染页面中生成目标渲染页面,并在显示界面上显示所述目标渲染页面。A page nesting tool is used to nest the dedicated rendering page into the initial rendering page to generate a target rendering page, and displaying the target rendering page on a display interface.
  2. 如权利要求1所述的页面动态生成方法,其中,在所述获取用户登录请求之前,所述页面动态生成方法还包括:The method for dynamically generating a page according to claim 1, wherein, before said obtaining the user login request, the method for dynamically generating a page further comprises:
    获取账号申请请求,所述账号申请请求中包括登录账号和登录密码;Acquiring an account application request, where the account application request includes a login account and a login password;
    根据所述登录账号和所述登录密码创建账号,并显示所有待选用户角色;Create an account according to the login account and the login password, and display all candidate user roles;
    获取用户端发送的基于所有所述待选用户角色确定的选定用户角色,根据所述登录账号查找用户信息列表,获取与所述登录账号对应的应选用户角色;Acquiring the selected user role determined based on all the candidate user roles sent by the user terminal, searching the user information list according to the login account, and acquiring the candidate user role corresponding to the login account;
    将所述选定用户角色和所述应选用户角色进行匹配,获取匹配结果;Matching the selected user role with the selected user role to obtain a matching result;
    若所述匹配结果为匹配成功,则将所述选定用户角色与所述登录账号关联存储在权限管理模块中。If the matching result is that the matching is successful, the selected user role is associated with the login account and stored in the authority management module.
  3. 如权利要求1所述的页面动态生成方法,其中,在所述获取用户登录请求之前,所述页面动态生成方法还包括:The method for dynamically generating a page according to claim 1, wherein, before said obtaining the user login request, the method for dynamically generating a page further comprises:
    获取用户角色配置请求,所述用户角色配置请求中包括至少一个待选用户角色;Acquiring a user role configuration request, where the user role configuration request includes at least one candidate user role;
    根据所有所述待选用户角色对应的权限,配置对应的通用功能模块,并提供与所述通用功能模块对应的通用功能模块接口;Configure corresponding general function modules according to the permissions corresponding to all the candidate user roles, and provide general function module interfaces corresponding to the general function modules;
    确定每一所述待选用户角色对应的权限,根据每一所述待选用户角色对应的权限配置对应的专用功能模块,提供与所述专用功能模块对应的专用功能模块接口;Determine the authority corresponding to each candidate user role, configure the corresponding dedicated function module according to the authority corresponding to each candidate user role, and provide a dedicated function module interface corresponding to the dedicated function module;
    基于每一所述待选用户角色对应的通用功能模块和专用功能模块,确定每一所述待选用户角色对应的样式数据和布局数据;Determine the style data and layout data corresponding to each candidate user role based on the general functional module and the dedicated functional module corresponding to each candidate user role;
    将每一所述待选用户角色对应的所述专用功能模块、所述通用功能模块、所述样式数据和所述布局数据保存至权限管理模块中。The dedicated function module, the general function module, the style data, and the layout data corresponding to each of the candidate user roles are stored in the authority management module.
  4. 如权利要求1所述的页面动态生成方法,其中,所述通用功能模块对应一通用功能模块标识;3. The method for dynamically generating a page according to claim 1, wherein the general function module corresponds to a general function module identifier;
    所述获取通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对所述通用样式数据和所述通用布局数据进行一次渲染,获取初始渲染页面并进行显示,包括:The obtaining the general style data and the general layout data corresponding to the general function module, using a rendering tool to render the general style data and the general layout data once, and obtaining and displaying the initial rendering page includes:
    根据所述通用功能模块标识查找权限管理模块,获取对应的通用功能模块接口;Find the authority management module according to the general function module identifier, and obtain the corresponding general function module interface;
    根据所述通用功能模块接口,获取与所述通用功能模块对应的通用样式数据和通用布局数据;Acquiring, according to the general function module interface, general style data and general layout data corresponding to the general function module;
    采用所述渲染工具对所述通用样式数据和所述通用布局数据进行渲染,获取初始渲染页面并进行显示。The rendering tool is used to render the general style data and the general layout data, and an initial rendered page is obtained and displayed.
  5. 如权利要求1所述的页面动态生成方法,其中,所述专用功能模块对应一专用功能模块标识;3. The method for dynamically generating a page according to claim 1, wherein the dedicated function module corresponds to a dedicated function module identifier;
    所述根据所述专用功能模块获取对应的专用样式数据和专用布局数据,采用所述渲染工具对所述专用样式数据和所述专用布局数据进行二次渲染,获取专用渲染页面,包括:The obtaining the corresponding dedicated style data and dedicated layout data according to the dedicated function module, and using the rendering tool to perform secondary rendering on the dedicated style data and the dedicated layout data to obtain a dedicated rendering page includes:
    根据所述专用功能模块标识查找权限管理模块,获取对应的专用功能模块接口;Find the authority management module according to the special function module identifier, and obtain the corresponding special function module interface;
    根据所述专用功能模块接口,获取与所述专用功能模块对应的专用样式数据和专用布局数据;Acquiring, according to the dedicated function module interface, dedicated style data and dedicated layout data corresponding to the dedicated function module;
    采用所述渲染工具对所述专用样式数据和所述专用布局数据进行渲染,获取与所述目标用户角色对应的专用渲染页面。Use the rendering tool to render the dedicated style data and the dedicated layout data, and obtain a dedicated rendering page corresponding to the target user role.
  6. 如权利要求1所述的页面动态生成方法,其中,在所述采用页面嵌套工具将所述专用渲染页面嵌套至所述初始渲染页面中生成目标渲染页面,并在显示界面上显示所述目标渲染页面之后,所述页面动态生成方法还包括:The method for dynamically generating a page according to claim 1, wherein the target rendering page is generated by using the page nesting tool to nest the dedicated rendering page into the initial rendering page, and displaying the target rendering page on the display interface. After the target renders the page, the method for dynamically generating the page further includes:
    获取用户角色更改请求,所述用户角色更改请求包括管理员账号、待修改账号和更改数据;Obtain a user role change request, where the user role change request includes an administrator account, an account to be modified, and change data;
    若根据所述管理员账号登录成功,则根据所述更改数据对待修改账号对应的用户角色进行更改,获取更改后的用户角色;If the login is successful according to the administrator account, the user role corresponding to the account to be modified is changed according to the change data, and the changed user role is obtained;
    将所述更改后的用户角色与所述待修改账号关联存储至权限管理模块中。The changed user role and the account to be modified are associated and stored in the authority management module.
  7. 一种页面动态生成装置,其中,包括:A dynamic page generation device, which includes:
    登录请求获取模块,用于获取用户登录请求,所述用户登录请求中包含登录账号和识别密码;The login request obtaining module is configured to obtain a user login request, and the user login request includes a login account and identification password;
    初始渲染页面获取模块,用于若基于所述登录账号和所述识别密码登录成功,则获取通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对所述通用样式数据和所述通用布局数据进行一次渲染,获取初始渲染页面并进行显示;The initial rendering page acquisition module is configured to, if the login is successful based on the login account and the identification password, acquire the general style data and general layout data corresponding to the general function module, and use a rendering tool to compare the general style data and the general The layout data is rendered once, and the initial rendering page is obtained and displayed;
    目标用户角色获取模块,用于根据所述登录账号,确定与所述登录账号对应的目标用户角色;The target user role acquisition module is configured to determine the target user role corresponding to the login account according to the login account;
    专用功能模块获取模块,用于根据所述目标用户角色调用权限管理模块,获取与所述目标用户角色对应的专用功能模块;A dedicated function module obtaining module, configured to call the authority management module according to the target user role, and obtain the dedicated function module corresponding to the target user role;
    专用渲染页面获取模块,用于根据所述专用功能模块获取对应的专用样式数据和专用布局数据,采用所述渲染工具对所述专用样式数据和所述专用布局数据进行二次渲染,获取专用渲染页面;The dedicated rendering page acquisition module is used to acquire corresponding dedicated style data and dedicated layout data according to the dedicated function module, and use the rendering tool to perform secondary rendering on the dedicated style data and the dedicated layout data to obtain dedicated rendering page;
    目标渲染页面显示模块,用于采用页面嵌套工具将所述专用渲染页面嵌套至所述初始渲染页面中生成目标渲染页面,并在显示界面上显示所述目标渲染页面。The target rendering page display module is configured to use a page nesting tool to nest the dedicated rendering page into the initial rendering page to generate a target rendering page, and to display the target rendering page on a display interface.
  8. 如权利要求7所述的页面动态生成装置,其中,所述专用功能模块对应一专用功能模块标识;8. The page dynamic generation device according to claim 7, wherein the dedicated function module corresponds to a dedicated function module identifier;
    所述专用渲染页面获取模块,包括:The dedicated rendering page acquisition module includes:
    专用功能模块接口获取单元,用于根据所述专用功能模块标识查找权限管理模块,获取对应的专用功能模块接口;The dedicated function module interface acquiring unit is configured to search for the authority management module according to the dedicated function module identifier, and obtain the corresponding dedicated function module interface;
    专用渲染数据获取单元,用于根据所述专用功能模块接口,获取与所述专用功能模块对应的专用样式数据和专用布局数据;A dedicated rendering data acquiring unit, configured to acquire dedicated style data and dedicated layout data corresponding to the dedicated function module according to the dedicated function module interface;
    专用渲染页面获取单元,用于采用所述渲染工具对所述专用样式数据和所述专用布局数据进行渲染,获取与所述目标用户角色对应的专用渲染页面。The dedicated rendering page acquisition unit is configured to use the rendering tool to render the dedicated style data and the dedicated layout data, and acquire a dedicated rendering page corresponding to the target user role.
  9. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现页面动态生成方法,所述页面动态生成方法,具体包括如下步骤:A computer device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements a method for dynamically generating a page when the computer program is executed. The dynamic page generation method includes the following steps:
    获取用户登录请求,所述用户登录请求中包含登录账号和识别密码;Obtaining a user login request, where the user login request includes a login account and an identification password;
    若基于所述登录账号和所述识别密码登录成功,则获取通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对所述通用样式数据和所述通用布局数据进行一次渲 染,获取初始渲染页面并进行显示;If the login is successful based on the login account and the identification password, the general style data and general layout data corresponding to the general function module are obtained, and the general style data and the general layout data are rendered once using a rendering tool to obtain the initial Render the page and display it;
    根据所述登录账号,确定与所述登录账号对应的目标用户角色;Determine the target user role corresponding to the login account according to the login account;
    根据所述目标用户角色调用权限管理模块,获取与所述目标用户角色对应的专用功能模块;Invoking the authority management module according to the target user role to obtain the dedicated function module corresponding to the target user role;
    根据所述专用功能模块获取对应的专用样式数据和专用布局数据,采用所述渲染工具对所述专用样式数据和所述专用布局数据进行二次渲染,获取专用渲染页面;Acquiring corresponding dedicated style data and dedicated layout data according to the dedicated function module, and using the rendering tool to perform secondary rendering on the dedicated style data and the dedicated layout data to obtain a dedicated rendering page;
    采用页面嵌套工具将所述专用渲染页面嵌套至所述初始渲染页面中生成目标渲染页面,并在显示界面上显示所述目标渲染页面。A page nesting tool is used to nest the dedicated rendering page into the initial rendering page to generate a target rendering page, and displaying the target rendering page on a display interface.
  10. 如权利要求9所述的计算机设备,其中,在所述获取用户登录请求之前,所述页面动态生成方法还包括:9. The computer device according to claim 9, wherein, before said obtaining the user login request, the method for dynamically generating a page further comprises:
    获取账号申请请求,所述账号申请请求中包括登录账号和登录密码;Acquiring an account application request, where the account application request includes a login account and a login password;
    根据所述登录账号和所述登录密码创建账号,并显示所有待选用户角色;Create an account according to the login account and the login password, and display all candidate user roles;
    获取用户端发送的基于所有所述待选用户角色确定的选定用户角色,根据所述登录账号查找用户信息列表,获取与所述登录账号对应的应选用户角色;Acquiring the selected user role determined based on all the candidate user roles sent by the user terminal, searching the user information list according to the login account, and acquiring the candidate user role corresponding to the login account;
    将所述选定用户角色和所述应选用户角色进行匹配,获取匹配结果;Matching the selected user role with the selected user role to obtain a matching result;
    若所述匹配结果为匹配成功,则将所述选定用户角色与所述登录账号关联存储在权限管理模块中。If the matching result is that the matching is successful, the selected user role is associated with the login account and stored in the authority management module.
  11. 如权利要求9所述的计算机设备,其中,在所述获取用户登录请求之前,所述页面动态生成方法还包括:9. The computer device according to claim 9, wherein, before said obtaining the user login request, the method for dynamically generating a page further comprises:
    获取用户角色配置请求,所述用户角色配置请求中包括至少一个待选用户角色;Acquiring a user role configuration request, where the user role configuration request includes at least one candidate user role;
    根据所有所述待选用户角色对应的权限,配置对应的通用功能模块,并提供与所述通用功能模块对应的通用功能模块接口;Configure corresponding general function modules according to the permissions corresponding to all the candidate user roles, and provide general function module interfaces corresponding to the general function modules;
    确定每一所述待选用户角色对应的权限,根据每一所述待选用户角色对应的权限配置对应的专用功能模块,提供与所述专用功能模块对应的专用功能模块接口;Determine the authority corresponding to each candidate user role, configure the corresponding dedicated function module according to the authority corresponding to each candidate user role, and provide a dedicated function module interface corresponding to the dedicated function module;
    基于每一所述待选用户角色对应的通用功能模块和专用功能模块,确定每一所述待选用户角色对应的样式数据和布局数据;Determine the style data and layout data corresponding to each candidate user role based on the general functional module and the dedicated functional module corresponding to each candidate user role;
    将每一所述待选用户角色对应的所述专用功能模块、所述通用功能模块、所述样式数据和所述布局数据保存至权限管理模块中。The dedicated function module, the general function module, the style data, and the layout data corresponding to each of the candidate user roles are stored in the authority management module.
  12. 如权利要求9所述的计算机设备,其中,所述通用功能模块对应一通用功能模块标识;8. The computer device of claim 9, wherein the general function module corresponds to a general function module identifier;
    所述获取通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对所述通用样式数据和所述通用布局数据进行一次渲染,获取初始渲染页面并进行显示,包括:The obtaining the general style data and the general layout data corresponding to the general function module, using a rendering tool to render the general style data and the general layout data once, and obtaining and displaying the initial rendering page includes:
    根据所述通用功能模块标识查找权限管理模块,获取对应的通用功能模块接口;Find the authority management module according to the general function module identifier, and obtain the corresponding general function module interface;
    根据所述通用功能模块接口,获取与所述通用功能模块对应的通用样式数据和通用布局数据;Acquiring, according to the general function module interface, general style data and general layout data corresponding to the general function module;
    采用所述渲染工具对所述通用样式数据和所述通用布局数据进行渲染,获取初始渲染页面并进行显示。The rendering tool is used to render the general style data and the general layout data, and an initial rendered page is obtained and displayed.
  13. 如权利要求9所述的计算机设备,其中,所述专用功能模块对应一专用功能模块标识;9. The computer equipment of claim 9, wherein the dedicated function module corresponds to a dedicated function module identifier;
    所述根据所述专用功能模块获取对应的专用样式数据和专用布局数据,采用所述渲染工具对所述专用样式数据和所述专用布局数据进行二次渲染,获取专用渲染页面,包括:The obtaining the corresponding dedicated style data and dedicated layout data according to the dedicated function module, and using the rendering tool to perform secondary rendering on the dedicated style data and the dedicated layout data to obtain a dedicated rendering page includes:
    根据所述专用功能模块标识查找权限管理模块,获取对应的专用功能模块接口;Find the authority management module according to the special function module identifier, and obtain the corresponding special function module interface;
    根据所述专用功能模块接口,获取与所述专用功能模块对应的专用样式数据和专用布局数据;Acquiring, according to the dedicated function module interface, dedicated style data and dedicated layout data corresponding to the dedicated function module;
    采用所述渲染工具对所述专用样式数据和所述专用布局数据进行渲染,获取与所述目 标用户角色对应的专用渲染页面。Use the rendering tool to render the dedicated style data and the dedicated layout data, and obtain a dedicated rendering page corresponding to the target user role.
  14. 如权利要求9所述的计算机设备,其中,在所述采用页面嵌套工具将所述专用渲染页面嵌套至所述初始渲染页面中生成目标渲染页面,并在显示界面上显示所述目标渲染页面之后,所述页面动态生成方法还包括:The computer device according to claim 9, wherein the target rendering page is generated by using the page nesting tool to nest the dedicated rendering page into the initial rendering page, and displaying the target rendering on a display interface After the page, the method for dynamically generating the page further includes:
    获取用户角色更改请求,所述用户角色更改请求包括管理员账号、待修改账号和更改数据;Obtain a user role change request, where the user role change request includes an administrator account, an account to be modified, and change data;
    若根据所述管理员账号登录成功,则根据所述更改数据对待修改账号对应的用户角色进行更改,获取更改后的用户角色;If the login is successful according to the administrator account, the user role corresponding to the account to be modified is changed according to the change data, and the changed user role is obtained;
    将所述更改后的用户角色与所述待修改账号关联存储至权限管理模块中。The changed user role and the account to be modified are associated and stored in the authority management module.
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其中,所述计算机程序被处理器执行时实现页面动态生成方法,所述页面动态生成方法,具体包括如下步骤:A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement a method for dynamically generating a page, and the method for dynamically generating a page specifically includes the following steps:
    获取用户登录请求,所述用户登录请求中包含登录账号和识别密码;Obtaining a user login request, where the user login request includes a login account and an identification password;
    若基于所述登录账号和所述识别密码登录成功,则获取通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对所述通用样式数据和所述通用布局数据进行一次渲染,获取初始渲染页面并进行显示;If the login is successful based on the login account and the identification password, the general style data and general layout data corresponding to the general function module are obtained, and the general style data and the general layout data are rendered once using a rendering tool to obtain the initial Render the page and display it;
    根据所述登录账号,确定与所述登录账号对应的目标用户角色;Determine the target user role corresponding to the login account according to the login account;
    根据所述目标用户角色调用权限管理模块,获取与所述目标用户角色对应的专用功能模块;Invoking the authority management module according to the target user role to obtain the dedicated function module corresponding to the target user role;
    根据所述专用功能模块获取对应的专用样式数据和专用布局数据,采用所述渲染工具对所述专用样式数据和所述专用布局数据进行二次渲染,获取专用渲染页面;Acquiring corresponding dedicated style data and dedicated layout data according to the dedicated function module, and using the rendering tool to perform secondary rendering on the dedicated style data and the dedicated layout data to obtain a dedicated rendering page;
    采用页面嵌套工具将所述专用渲染页面嵌套至所述初始渲染页面中生成目标渲染页面,并在显示界面上显示所述目标渲染页面。A page nesting tool is used to nest the dedicated rendering page into the initial rendering page to generate a target rendering page, and displaying the target rendering page on a display interface.
  16. 如权利要求15所述的计算机可读存储介质,其中,在所述获取用户登录请求之前,所述页面动态生成方法还包括:15. The computer-readable storage medium according to claim 15, wherein, before said obtaining the user login request, the method for dynamically generating a page further comprises:
    获取账号申请请求,所述账号申请请求中包括登录账号和登录密码;Acquiring an account application request, where the account application request includes a login account and a login password;
    根据所述登录账号和所述登录密码创建账号,并显示所有待选用户角色;Create an account according to the login account and the login password, and display all candidate user roles;
    获取用户端发送的基于所有所述待选用户角色确定的选定用户角色,根据所述登录账号查找用户信息列表,获取与所述登录账号对应的应选用户角色;Acquiring the selected user role determined based on all the candidate user roles sent by the user terminal, searching the user information list according to the login account, and acquiring the candidate user role corresponding to the login account;
    将所述选定用户角色和所述应选用户角色进行匹配,获取匹配结果;Matching the selected user role with the selected user role to obtain a matching result;
    若所述匹配结果为匹配成功,则将所述选定用户角色与所述登录账号关联存储在权限管理模块中。If the matching result is that the matching is successful, the selected user role is associated with the login account and stored in the authority management module.
  17. 如权利要求15所述的计算机可读存储介质,其中,在所述获取用户登录请求之前,所述页面动态生成方法还包括:15. The computer-readable storage medium according to claim 15, wherein, before said obtaining the user login request, the method for dynamically generating a page further comprises:
    获取用户角色配置请求,所述用户角色配置请求中包括至少一个待选用户角色;Acquiring a user role configuration request, where the user role configuration request includes at least one candidate user role;
    根据所有所述待选用户角色对应的权限,配置对应的通用功能模块,并提供与所述通用功能模块对应的通用功能模块接口;Configure corresponding general function modules according to the permissions corresponding to all the candidate user roles, and provide general function module interfaces corresponding to the general function modules;
    确定每一所述待选用户角色对应的权限,根据每一所述待选用户角色对应的权限配置对应的专用功能模块,提供与所述专用功能模块对应的专用功能模块接口;Determine the authority corresponding to each candidate user role, configure the corresponding dedicated function module according to the authority corresponding to each candidate user role, and provide a dedicated function module interface corresponding to the dedicated function module;
    基于每一所述待选用户角色对应的通用功能模块和专用功能模块,确定每一所述待选用户角色对应的样式数据和布局数据;Determine the style data and layout data corresponding to each candidate user role based on the general functional module and the dedicated functional module corresponding to each candidate user role;
    将每一所述待选用户角色对应的所述专用功能模块、所述通用功能模块、所述样式数据和所述布局数据保存至权限管理模块中。The dedicated function module, the general function module, the style data, and the layout data corresponding to each of the candidate user roles are stored in the authority management module.
  18. 如权利要求15所述的计算机可读存储介质,其中,所述通用功能模块对应一通用功能模块标识;15. The computer-readable storage medium according to claim 15, wherein the general function module corresponds to a general function module identifier;
    所述获取通用功能模块对应的通用样式数据和通用布局数据,采用渲染工具对所述通用样式数据和所述通用布局数据进行一次渲染,获取初始渲染页面并进行显示,包括:The obtaining the general style data and the general layout data corresponding to the general function module, using a rendering tool to render the general style data and the general layout data once, and obtaining and displaying the initial rendering page includes:
    根据所述通用功能模块标识查找权限管理模块,获取对应的通用功能模块接口;Find the authority management module according to the general function module identifier, and obtain the corresponding general function module interface;
    根据所述通用功能模块接口,获取与所述通用功能模块对应的通用样式数据和通用布局数据;Acquiring, according to the general function module interface, general style data and general layout data corresponding to the general function module;
    采用所述渲染工具对所述通用样式数据和所述通用布局数据进行渲染,获取初始渲染页面并进行显示。The rendering tool is used to render the general style data and the general layout data, and an initial rendered page is obtained and displayed.
  19. 如权利要求15所述的计算机可读存储介质,其中,所述专用功能模块对应一专用功能模块标识;15. The computer-readable storage medium of claim 15, wherein the dedicated function module corresponds to a dedicated function module identifier;
    所述根据所述专用功能模块获取对应的专用样式数据和专用布局数据,采用所述渲染工具对所述专用样式数据和所述专用布局数据进行二次渲染,获取专用渲染页面,包括:The obtaining the corresponding dedicated style data and dedicated layout data according to the dedicated function module, and using the rendering tool to perform secondary rendering on the dedicated style data and the dedicated layout data to obtain a dedicated rendering page includes:
    根据所述专用功能模块标识查找权限管理模块,获取对应的专用功能模块接口;Find the authority management module according to the special function module identifier, and obtain the corresponding special function module interface;
    根据所述专用功能模块接口,获取与所述专用功能模块对应的专用样式数据和专用布局数据;Acquiring, according to the dedicated function module interface, dedicated style data and dedicated layout data corresponding to the dedicated function module;
    采用所述渲染工具对所述专用样式数据和所述专用布局数据进行渲染,获取与所述目标用户角色对应的专用渲染页面。Use the rendering tool to render the dedicated style data and the dedicated layout data, and obtain a dedicated rendering page corresponding to the target user role.
  20. 如权利要求15所述的计算机可读存储介质,其中,在所述采用页面嵌套工具将所述专用渲染页面嵌套至所述初始渲染页面中生成目标渲染页面,并在显示界面上显示所述目标渲染页面之后,所述页面动态生成方法还包括:The computer-readable storage medium according to claim 15, wherein the target rendering page is generated by using the page nesting tool to nest the dedicated rendering page into the initial rendering page, and displaying all the pages on the display interface. After the target page is rendered, the method for dynamically generating the page further includes:
    获取用户角色更改请求,所述用户角色更改请求包括管理员账号、待修改账号和更改数据;Obtain a user role change request, where the user role change request includes an administrator account, an account to be modified, and change data;
    若根据所述管理员账号登录成功,则根据所述更改数据对待修改账号对应的用户角色进行更改,获取更改后的用户角色;If the login is successful according to the administrator account, the user role corresponding to the account to be modified is changed according to the change data, and the changed user role is obtained;
    将所述更改后的用户角色与所述待修改账号关联存储至权限管理模块中。The changed user role and the account to be modified are associated and stored in the authority management module.
PCT/CN2020/085574 2019-05-22 2020-04-20 Dynamic page generation method and apparatus, and computer device and storage medium WO2020233306A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910430169.3 2019-05-22
CN201910430169.3A CN110297672B (en) 2019-05-22 2019-05-22 Page dynamic generation method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2020233306A1 true WO2020233306A1 (en) 2020-11-26

Family

ID=68027060

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/085574 WO2020233306A1 (en) 2019-05-22 2020-04-20 Dynamic page generation method and apparatus, and computer device and storage medium

Country Status (2)

Country Link
CN (1) CN110297672B (en)
WO (1) WO2020233306A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113297550A (en) * 2021-06-17 2021-08-24 中国农业银行股份有限公司 Authority control method, device, equipment, storage medium and program product
CN113419728A (en) * 2021-06-22 2021-09-21 康键信息技术(深圳)有限公司 Marketing page building method, marketing page building device, marketing page building equipment and storage medium
CN113626000A (en) * 2021-08-11 2021-11-09 中国工商银行股份有限公司 Method and device for automatically switching page layout according to access mode
CN113885985A (en) * 2021-09-29 2022-01-04 平安国际智慧城市科技股份有限公司 Page rendering method, device, equipment and medium based on dynamic authority control
CN114217874A (en) * 2021-12-16 2022-03-22 中国建设银行股份有限公司 Applet generation method, device, equipment, readable storage medium and product

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297672B (en) * 2019-05-22 2022-08-16 深圳壹账通智能科技有限公司 Page dynamic generation method and device, computer equipment and storage medium
CN110704058A (en) * 2019-10-14 2020-01-17 北京代码乾坤科技有限公司 Page rendering method and device, storage medium, processor and electronic device
CN111125600A (en) * 2019-12-24 2020-05-08 珠海大横琴科技发展有限公司 Application homepage publishing method and device, electronic equipment and storage medium
CN113449228A (en) * 2020-03-24 2021-09-28 北京沃东天骏信息技术有限公司 Page rendering method and device
CN113703860A (en) * 2020-05-09 2021-11-26 中国人寿财产保险股份有限公司 System and method for dynamically configuring APP
CN113778473A (en) * 2020-06-10 2021-12-10 北京沃东天骏信息技术有限公司 Application processing method and device based on function configuration information
CN111723313A (en) * 2020-06-23 2020-09-29 中国平安财产保险股份有限公司 Page jump processing method, device, equipment and storage medium
CN112350991A (en) * 2020-09-28 2021-02-09 珠海大横琴科技发展有限公司 Login method and device of front-end system
CN112231653A (en) * 2020-10-15 2021-01-15 北京明略昭辉科技有限公司 Permission determination method and device, storage medium and electronic device
CN112434239B (en) * 2020-12-09 2024-07-16 京东科技控股股份有限公司 Configuration information determination method, page display method, device, equipment and storage medium
CN112580095B (en) * 2020-12-15 2024-07-05 文思海辉智科科技有限公司 Data display method, device, computer equipment and storage medium
CN114661388B (en) * 2020-12-23 2024-10-01 北京达佳互联信息技术有限公司 View display method, device, server and storage medium
CN113342340A (en) * 2021-05-31 2021-09-03 北京达佳互联信息技术有限公司 Component rendering method and device
CN113434122A (en) * 2021-06-29 2021-09-24 平安普惠企业管理有限公司 Multi-role page creation method and device, server and readable storage medium
CN113641360B (en) * 2021-08-31 2023-08-22 平安银行股份有限公司 Configuration method, device, equipment and storage medium of system front end
CN114443200B (en) * 2022-01-29 2024-04-09 苏州达家迎信息技术有限公司 Page display method, device and equipment of mobile client and storage medium
CN114265661B (en) * 2022-03-03 2022-06-21 苏州达家迎信息技术有限公司 Page display method, device, equipment and storage medium for mobile client
CN114978671B (en) * 2022-05-18 2024-02-13 中国平安财产保险股份有限公司 Method, device, computer equipment and storage medium for front-end resource access
CN115268734A (en) * 2022-06-09 2022-11-01 新奥数能科技有限公司 Quotation generation method, device, equipment and storage medium based on quotation tool
CN116992476B (en) * 2023-09-26 2024-01-16 深圳竹云科技股份有限公司 Control method, device, equipment and storage medium of application permission

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843814A (en) * 2015-01-14 2016-08-10 阿里巴巴集团控股有限公司 Method, device, and system for generating page
CN106202096A (en) * 2015-05-05 2016-12-07 阿里巴巴集团控股有限公司 Customer terminal webpage rendering intent and device
CN109471627A (en) * 2018-10-22 2019-03-15 大唐网络有限公司 Page presentation control method, system and device
CN109784033A (en) * 2018-12-13 2019-05-21 平安科技(深圳)有限公司 Operating right Dynamic Configuration and relevant device based on page menus
CN110297672A (en) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 Page dynamic creation method, device, computer equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682144B (en) * 2016-12-20 2018-07-13 深圳壹账通智能科技有限公司 page display method and device
CN109284463B (en) * 2018-08-15 2021-02-02 山东鲁能软件技术有限公司 Data collection method and system based on dynamic template

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843814A (en) * 2015-01-14 2016-08-10 阿里巴巴集团控股有限公司 Method, device, and system for generating page
CN106202096A (en) * 2015-05-05 2016-12-07 阿里巴巴集团控股有限公司 Customer terminal webpage rendering intent and device
CN109471627A (en) * 2018-10-22 2019-03-15 大唐网络有限公司 Page presentation control method, system and device
CN109784033A (en) * 2018-12-13 2019-05-21 平安科技(深圳)有限公司 Operating right Dynamic Configuration and relevant device based on page menus
CN110297672A (en) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 Page dynamic creation method, device, computer equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113297550A (en) * 2021-06-17 2021-08-24 中国农业银行股份有限公司 Authority control method, device, equipment, storage medium and program product
CN113419728A (en) * 2021-06-22 2021-09-21 康键信息技术(深圳)有限公司 Marketing page building method, marketing page building device, marketing page building equipment and storage medium
CN113419728B (en) * 2021-06-22 2024-05-24 康键信息技术(深圳)有限公司 Marketing page building method, device, equipment and storage medium
CN113626000A (en) * 2021-08-11 2021-11-09 中国工商银行股份有限公司 Method and device for automatically switching page layout according to access mode
CN113885985A (en) * 2021-09-29 2022-01-04 平安国际智慧城市科技股份有限公司 Page rendering method, device, equipment and medium based on dynamic authority control
CN114217874A (en) * 2021-12-16 2022-03-22 中国建设银行股份有限公司 Applet generation method, device, equipment, readable storage medium and product

Also Published As

Publication number Publication date
CN110297672B (en) 2022-08-16
CN110297672A (en) 2019-10-01

Similar Documents

Publication Publication Date Title
WO2020233306A1 (en) Dynamic page generation method and apparatus, and computer device and storage medium
US10878218B2 (en) Device fingerprinting, tracking, and management
US7752207B2 (en) Crawlable applications
US11924210B2 (en) Protected resource authorization using autogenerated aliases
US9953639B2 (en) Voice recognition system and construction method thereof
US10333918B2 (en) Automated system identification, authentication, and provisioning
CN110188573B (en) Partition authorization method, partition authorization device, partition authorization equipment and computer readable storage medium
US20110302277A1 (en) Methods and apparatus for web-based migration of data in a multi-tenant database system
US10635659B2 (en) Mobile application bundled with metadata database
US10972444B1 (en) Mapping account information
US10853440B2 (en) Displaying an object having a link to a database record in response to a user selection of a highlighted reference
US20140101528A1 (en) Automatic generation of portal themes and components
US11275806B2 (en) Dynamic materialization of feeds for enabling access of the feed in an online social network
US10810233B2 (en) Linking records between datasets to augment query results
US10089412B2 (en) Method of and system for processing a search query
US10671361B2 (en) Automatically determining data dependencies to facilitate code execution
WO2020000716A1 (en) Big data analysis system, server, data processing method, program and storage medium
CN115328569A (en) Method, system, electronic device and computer readable storage medium for processing data conflict
US11586696B2 (en) Enhanced web browsing
CN113051299A (en) Proxy information processing method, proxy information processing device, computer equipment and storage medium
CN107944288B (en) Data access control method and device
US11023426B1 (en) Method and system for detection of open source web application version
US20220277009A1 (en) Processing database queries based on external tables
CN110334063B (en) File system operation method, device, equipment and computer readable storage medium
US20220300574A1 (en) Caching for Single Page Web Applications

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20809198

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20809198

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 18/03/2022)