Page generation method, platform, device, storage medium and program product
Through front-end collaboration in the page generation platform, the configuration of the target function module and component library components is achieved, which solves the problem of inefficient page generation and improves the efficiency and maintainability of page generation.
Patent Information
- Application Number
- CN202411602516.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-04-01
AI Technical Summary
When developing an application system, developers need to write code from scratch to build each page, resulting in increased difficulty and reduced efficiency of page generation.
A page generation method is proposed, which sends a configuration request to the backend in response to the configuration operations of the target component in the target function module and/or the component library at the front end of the page generation platform. The backend executes preset business logic code and returns the execution result. The frontend generates the target page based on this result.
Through componentization and modularization ideas, as well as front-end collaboration, we realize the general configuration of target functional modules and/or target components in component libraries, reducing the difficulty of page generation and improving page generation efficiency.
Smart Images

Figure CN119739382A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a page generation method, platform, device, storage medium and program product. Background Art
[0002] Currently, in the process of developing an application system, developers usually need to write code from scratch to build each page in the application system, which increases the difficulty of page generation and reduces the efficiency of page generation. Summary of the invention
[0003] The main purpose of this application is to provide a page generation method, platform, device, storage medium and program product, aiming to solve the technical problem of low efficiency of page generation.
[0004] To achieve the above purpose, the present application proposes a page generation method, which includes:
[0005] Applied to the front end of a page generation platform, the method includes:
[0006] In response to a configuration operation on a target functional module and / or a target component in a component library, a configuration request is sent to a backend, so that the backend responds to the configuration request, executes a preset business logic code, and returns an execution result, wherein the target functional module is composed based on components;
[0007] Based on the execution result, a target page is generated.
[0008] In one embodiment, the configuration operation includes at least one of a property configuration operation, a position arrangement operation, and a function customization operation for a target component in a target functional module and / or a component library;
[0009] Wherein, the function customization operation is triggered by the function customization option in the front-end interactive interface.
[0010] The present application also proposes a page generation method, which is applied to the back end of a page generation platform, and the method includes:
[0011] In response to the configuration request, the preset business logic code is executed, and the execution result is returned to the front end, so that the front end can generate a target page based on the execution result;
[0012] The configuration request is sent locally by the front end in response to a configuration operation on a target functional module and / or a target component in a component library.
[0013] In one embodiment, the step of executing the preset business logic code in response to the configuration request and returning the execution result to the front end includes:
[0014] In response to the configuration request, based on the business requirements in the configuration request, calling the corresponding preset business logic code through the preset DAO interface;
[0015] By executing the preset business logic code, CRUD operations are performed on the preset database to obtain execution results, and the execution results are returned to the front end.
[0016] In one embodiment, the preset business logic code is generated based on table structure information of a preset database, wherein the preset business logic code is used to implement CRUD operations, and the preset database is defined based on functions required for page creation.
[0017] In one embodiment, the preset business logic code is generated based on the table structure information and page creation information of the preset database;
[0018] Among them, the page creation information is obtained by the backend in response to a page setting request triggered through the background management interface, and the page creation information includes the unique identifier of the page, the loading path of the page, the corresponding permissions of the page, the corresponding permissions of the functional modules in the page, and at least one of the custom conditions.
[0019] In addition, to achieve the above-mentioned purpose, the present application also proposes a page generation platform, which includes a front end and a back end;
[0020] The front end is used to send a configuration request to the back end in response to a configuration operation on a target functional module and / or a target component in a component library; and is also used to generate a target page based on an execution result returned by the back end, wherein the target functional module is composed based on components;
[0021] The backend is used to respond to the configuration request, execute the preset business logic code, and return the execution result.
[0022] In addition, to achieve the above objectives, the present application also proposes a page generation device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the page generation method described above.
[0023] In addition, to achieve the above purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the page generation method described above are implemented.
[0024] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the page generation method described above are implemented.
[0025] One or more technical solutions proposed in this application have at least the following technical effects:
[0026] The front end of the page generation platform of the present application responds to the configuration operation for the target functional module and / or the target component in the component library, and sends a configuration request to the back end, wherein the target functional module is composed based on components; the back end of the page generation platform responds to the configuration request, executes the preset business logic code, and returns the execution result; the front end generates the target page based on the execution result; it can be understood that based on the ideas of componentization and modularization, as well as the collaboration between the front end and the back end in the page generation platform, it is possible to realize the universal configuration of the target functional module and / or the target component in the component library, without the need for developers to write code from scratch, thereby reducing the difficulty of page generation and improving the efficiency of page generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary developers in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0029] Figure 1 A flowchart of the first embodiment of the method for generating a page in this application is provided;
[0030] Figure 2 A flow chart of the second embodiment of the method for generating a page in this application;
[0031] Figure 3 A schematic diagram of the first scenario provided in Example 2 of the page generation method of this application;
[0032] Figure 4 A schematic diagram of a second scenario provided for Embodiment 2 of the page generation method of this application;
[0033] Figure 5 A schematic diagram of the third scenario provided in Example 2 of the page generation method of this application;
[0034] Figure 6 A schematic diagram of the module structure of the page generation platform of the embodiment of the present application;
[0035] Figure 7 This is a schematic diagram of the device structure of the hardware operating environment involved in the page generation method in the embodiment of the present application.
[0036] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0037] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0038] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0039] Based on this, the present application embodiment provides a page generation method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the page generation method of this application.
[0040] In this embodiment, the page generation method includes steps S10 to S20:
[0041] Step S10, in response to a configuration operation on a target functional module and / or a target component in a component library, a configuration request is sent to a backend, so that the backend responds to the configuration request, executes a preset business logic code, and returns an execution result, wherein the target functional module is composed based on components;
[0042] It should be noted that in the process of developing an application system, developers usually need to write codes from scratch to build each page in the application system, which increases the difficulty of page generation and reduces the efficiency of page generation.
[0043] In order to solve the above problems, this embodiment provides the above page generation platform, which includes a front end and a back end. The execution subject of this embodiment is the front end in the page generation platform.
[0044] Among them, the front end is used to send a configuration request to the back end in response to the configuration operation on the target functional module and / or the target component in the component library; the back end responds to the configuration request, executes the preset business logic code, and returns the execution result.
[0045] It can be understood that the developer only needs to trigger the configuration operation of the target functional module and / or the target component in the component library through the front end of the page generation platform, and the back end will automatically respond to the configuration request, execute the preset business logic code, and return the execution result, thereby realizing the configuration of the target functional module and / or the target component in the component library.
[0046] Specifically, for the configuration of the target functional module and / or the target component in the component library, the components in the component library can be encapsulated based on the page function, and the developers can use modern front-end frameworks such as BootStrap UI and EasyUI to extract the commonly used page functions or UI elements to form independent components (as shown in Table 1 below), that is, to achieve independent development, testing and maintenance; these independent components can be reused in multiple pages or projects, thereby avoiding rewriting the same code and improving development efficiency and code maintainability.
[0047] Table 1, Component Types
[0048]
[0049] It can be understood that by encapsulating page functions into components, a complex page can be decomposed into multiple simple, independent parts; each component is only responsible for implementing a specific function or rendering a specific UI, which can make the page structure clearer and the logic more explicit.
[0050] After encapsulating the page functions into components, developers can combine multiple small components into functional modules, or expand and modify the provided component library to meet more complex needs, making the component library customizable.
[0051] Therefore, developers trigger configuration operations for target functional modules and / or target components in component libraries through the front end. In response to the configuration operations, the front end sends a configuration request to the back end. In response to the configuration request, the back end automatically executes the preset business logic code and returns the execution result. Developers do not need to repeatedly write the same code, which improves page generation efficiency. That is, business data flows (configuration requests) are processed asynchronously to ensure system response speed and user experience.
[0052] Among them, the configuration operation includes at least one of a property configuration operation, a location arrangement operation, and a function customization operation for the target functional module and / or the target component in the component library; the function customization operation is triggered by a function customization option in the front-end interactive interface.
[0053] The attribute configuration operation is used to configure the component attributes or the attributes of the functional module; the attributes of the functional module include the name, business table, product authority and other functional modules, as shown in Table 2 below:
[0054] Table 2, properties of functional modules
[0055]
[0056] The properties of the component include name, component width, component layout, etc., as shown in Table 3 below:
[0057] Table 3, Component properties
[0058]
[0059]
[0060]
[0061] Among them, the location arrangement operation is used to realize the dynamic arrangement of components or functional modules. Developers can flexibly combine and configure components or functional modules according to business needs to quickly build different interfaces and realize dynamic generation and customization of interfaces.
[0062] Specifically, a function customization option is provided in the front-end interactive interface, which is used to provide an API (function) or configuration option, allowing developers to expand or adjust the function of the component according to business needs.
[0063] The functions that can be customized through the function customization option include at least one of the following:
[0064] Generate components and interface layout through configuration;
[0065] Whether the compatibility view of the front-end components is normal;
[0066] Element input submission verification;
[0067] Dynamic content display in drop-down box, drop-down box linkage;
[0068] The interface is dynamically displayed and hidden according to conditions;
[0069] Duplicate submission;
[0070] Print, export to excel, pdf;
[0071] Tabular data display, you can hide columns or hide columns based on conditions;
[0072] Product code input control optimization;
[0073] Amount formatting.
[0074] Step S20: generating a target page based on the execution result.
[0075] After the front end receives the execution result from the back end, it updates the configuration of the front end components or functional modules based on the execution result, thereby generating the target page and achieving efficient page generation.
[0076] The above approach solves the problems of cumbersome development process, high development cost, high skill requirements for developers, the need to code from scratch for different projects, and the need to redevelop to add functions. Developers do not need to build the style and interaction of each page from scratch. Developers do not need to have front-end and back-end skills, and existing solutions can be reused for the same design requirements of different projects. The approach lowers the threshold for program development and design, and reduces the development dependency of front-end and back-end personnel during development. Applications and business processes can be easily changed without spending a lot of time writing code, reducing duplication of work and improving development efficiency.
[0077] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated hereafter. In this embodiment, the page generation method further includes step A10:
[0078] Step A10: In response to the configuration request, execute the preset business logic code and return the execution result to the front end so that the front end can generate the target page based on the execution result; wherein, the configuration request is sent to the local by the front end in response to the configuration operation on the target functional module and / or the target component in the component library.
[0079] It should be noted that the execution entity of this embodiment is the backend in the above-mentioned page generation platform.
[0080] When the backend receives a configuration request sent locally by the frontend in response to a configuration operation on a target functional module and / or a target component in a component library, the backend executes a preset business logic code in response to the configuration request and returns the execution result to the frontend so that the frontend can generate a target page based on the execution result.
[0081] In the process of developing the above-mentioned page generation platform, in order to ensure the collaborative work of the front-end and back-end, the front-end and back-end need to jointly define the interface contract; specifically, it includes determining the API URL, request method (GET, POST, etc.), request parameters, response data format, and possible error status codes.
[0082] In this embodiment, JSON is used as the data transmission message format. The JSON data format is a flexible and changeable data structure, which is easy to parse data during the front-end and back-end data transmission process, and there is no need to define the interface content and length.
[0083] Developers need to use HTML, CSS, JavaScript and other technologies to build the front-end interactive interface according to the interface contract; write code to interact with the back-end API, send configuration requests to the back-end through Ajax, Fetch or other HTTP client libraries, and process the execution results returned by the back-end; implement the back-end API interface according to the interface contract, including: writing controllers, service layers, and data access layers (DAO, Data Access Object) to process requests from the front-end, execute business logic, and interact with the database. This ensures the consistency of front-end and back-end collaborative development and data transmission.
[0084] Therefore, when the front end of the page generation platform responds to the configuration operation for the target functional module and / or the target component in the component library and sends it to the back end, the back end can accurately parse the configuration request, execute the preset business logic code, and return the execution result to the front end. The front end can then generate the target page based on the execution result to achieve collaborative work between the front and back ends.
[0085] Specifically, the implementation method of executing the preset business logic code in response to the configuration request and returning the execution result to the front end may be: in response to the configuration request, based on the business requirements in the configuration request, calling the corresponding preset business logic code through the preset DAO interface; by executing the preset business logic code, performing CRUD (create, read, update, delete) operations on the preset database to obtain the execution result, and returning the execution result to the front end.
[0086] It can be understood that different configuration requests require different objects to be configured. Therefore, there are different business requirements. The preset DAO interface is used to call different business logic codes according to different business requirements, thereby performing different CRUD operations on the preset database and obtaining different execution results.
[0087] DAO is used to abstract and encapsulate the access method to the data source; by defining the DAO interface and its implementation class, the data access logic can be separated from the business logic, thereby improving the maintainability and reusability of the code. Figure 3 ; When CRUD operations are required on the database, the corresponding business logic code can be called directly through the DAO interface, through the class AbstractPage implemented by the developer during development <t>, implement CRUD operations, refer to Figure 4 , there is no need to write the same code repeatedly; this not only improves development efficiency, but also reduces the risk of errors caused by repeated coding.
[0088] The backend executes the preset business logic code, performs CRUD operations on the preset database, obtains execution results, and returns the execution results to the frontend, wherein the execution results returned to the frontend are a complex including data entities, operation status, error information and / or metadata; the execution results are used to provide the required data to the frontend and instruct the frontend how to generate pages according to the execution results.
[0089] The preset business logic code is generated based on the table structure information of the preset database, and the preset business logic code is used to implement CRUD operations.
[0090] It should be noted that the preset database is defined based on the functions required for page creation. For example, the functions required for page creation include component property configuration, component layout, etc.; the table structure information of the preset database includes name, field, primary key, foreign key, etc.
[0091] Based on the table structure information of the preset database, a DAO interface for defining the CRUD operation method is generated; specific implementation classes are generated according to the DAO interface; these implementation classes will contain the actual database operation logic (preset business logic code); by integrating the DAO interface into the back end, the back end can execute the preset business logic code by calling the DAO interface to implement CRUD operations on the preset database.
[0092] Furthermore, the preset business logic code may also be generated based on table structure information and page creation information of a preset database.
[0093] It should be noted that the page creation information is obtained by the backend in response to a page setting request triggered through the background management interface. The page creation information includes the unique identifier of the page, the loading path of the page, the corresponding permissions of the page, the corresponding permissions of the functional modules in the page, and at least one of the custom conditions.
[0094] Specifically, the development tool can automatically generate a backend management interface (UI) based on the table structure information in the preset database. This method can simplify the development process of the backend management interface, and developers do not need to manually write a large number of form and list display codes. It can be understood that the backend management interface displays interface elements for operating data, such as tables, forms, and buttons. Developers can manage and view data through the backend management interface to achieve add, modify, delete, and query operations. This reduces the need for manual code writing and improves development efficiency.
[0095] It can be understood that a user can trigger a page setting request through the background management interface, and the backend responds to the page setting request, parses the page setting request, and obtains the page creation information.
[0096] The page creation information includes at least one of the unique identifier of the page, the loading path of the page, the corresponding authority of the page, the corresponding authority of the function module in the page, and the custom condition. Figure 5 You can generate the corresponding business processing code by defining the unique identifier of the page, the loading path of the page, and configuring permissions through the background management interface, or upload a custom js file through the background management interface to generate the corresponding business processing code based on the table structure information of the preset database and the hook function in the custom js file.
[0097] Therefore, the preset business logic code is generated based on the table structure information and page creation information of the preset database to ensure that when the developer loads and views the page with a unique identifier through the front end, or changes the functional modules in the page, or customizes the display conditions of the components, the back end can respond correctly and automatically convert the Json message into a ModelBean object to execute the preset business logic code, thereby performing the corresponding CRUD operations on the preset database.
[0098] In this embodiment, in the process of developing the pages of the application system, many CRUD operations are involved and the development process is relatively complicated. For this reason, the universal module processing of the page generation platform of this embodiment is encapsulated, and the business logic code for implementing the CRUD operation is quickly generated through the database table structure, and the interface interaction specifications and interface contracts are established between the front and back ends; thereby, an efficient, flexible and scalable front-end and back-end separation architecture is constructed, and the development of application programs is assisted based on the page generation platform, which can simplify the development process.
[0099] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the page generation method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0100] This application also provides a page generation platform, please refer to Figure 6 , the platform includes a front end 10 and a back end 20;
[0101] The front end 10 is used to send a configuration request to the back end in response to a configuration operation on a target functional module and / or a target component in a component library; and is also used to generate a target page based on an execution result returned by the back end, wherein the target functional module is composed based on components;
[0102] The backend 20 is used to respond to the configuration request, execute the preset business logic code, and return the execution result.
[0103] The page generation platform provided by the present application adopts the page generation method in the above embodiment, which can solve the technical problem of low efficiency of page generation. Compared with the prior art, the beneficial effects of the page generation platform provided by the present application are the same as the beneficial effects of the page generation method provided by the above embodiment, and other technical features in the page generation platform are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0104] The present application provides a page generation device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the page generation method in the above-mentioned embodiment 1.
[0105] Reference below Figure 7 , which shows a schematic diagram of the structure of a page generation device suitable for implementing the embodiment of the present application. The page generation device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, tablet computers, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The page generation device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0106] like Figure 7 As shown, the page generating device may include a processing platform 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage platform 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the page generating device are also stored. The processing platform 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input platform 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output platform 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage platform 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication platform 1009. The communication platform 1009 can allow the page generating device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a page generating device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0107] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication platform, or installed from a storage platform 1003, or installed from ROM 1002. When the computer program is executed by the processing platform 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0108] The page generation device provided by the present application adopts the page generation method in the above embodiment, which can solve the technical problem of low efficiency of page generation. Compared with the prior art, the beneficial effects of the page generation device provided by the present application are the same as the beneficial effects of the page generation method provided by the above embodiment, and other technical features in the page generation device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0109] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0110] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any developer familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0111] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the page generation method in the above-mentioned embodiment.
[0112] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0113] The computer-readable storage medium may be included in the page generating device; or may exist independently without being assembled into the page generating device.
[0114] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the page generating device, the page generating device is enabled to: execute the page generating method.
[0115] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0116] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to each embodiment of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0117] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0118] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned page generation method, and can solve the technical problem of low efficiency of page generation. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the page generation method provided by the above-mentioned embodiment, and will not be repeated here.
[0119] The present application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the page generation method as described above are implemented.
[0120] The computer program product provided by the present application can solve the technical problem of low efficiency in page generation. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as those of the page generation method provided by the above embodiment, which will not be described in detail here.
[0121] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.< / t>
Claims
1. A page generation method, characterized in that: Applied to the front end of a page generation platform, the method includes: In response to a configuration operation on a target functional module and / or a target component in a component library, a configuration request is sent to a backend, so that the backend responds to the configuration request, executes a preset business logic code, and returns an execution result, wherein the target functional module is composed based on components; Based on the execution result, a target page is generated.
2. The method according to claim 1, characterized in that The configuration operation includes at least one of a property configuration operation for a target functional module and / or a target component in a component library, a position arrangement operation, and a function customization operation for a target component; Wherein, the function customization operation is triggered by the function customization option in the front-end interactive interface.
3. A page generation method, characterized in that: Applied to the back end of a page generation platform, the method includes: In response to the configuration request, the preset business logic code is executed, and the execution result is returned to the front end, so that the front end can generate a target page based on the execution result; The configuration request is sent locally by the front end in response to a configuration operation on a target functional module and / or a target component in a component library.
4. The method according to claim 3, characterized in that The step of executing the preset business logic code in response to the configuration request and returning the execution result to the front end includes: In response to the configuration request, based on the business requirements in the configuration request, calling the corresponding preset business logic code through the preset DAO interface; By executing the preset business logic code, CRUD operations are performed on the preset database to obtain execution results, and the execution results are returned to the front end.
5. The method according to claim 4, characterized in that The preset business logic code is generated based on the table structure information of the preset database, wherein the preset business logic code is used to implement CRUD operations, and the preset database is defined based on the functions required for page creation.
6. The method according to claim 5, characterized in that The preset business logic code is generated based on the table structure information and page creation information of the preset database; Among them, the page creation information is obtained by the backend in response to a page setting request triggered through the background management interface, and the page creation information includes the unique identifier of the page, the loading path of the page, the corresponding permissions of the page, the corresponding permissions of the functional modules in the page, and at least one of the custom conditions.
7. A page generation platform, characterized in that: The platform includes a front end and a back end; The front end is used to send a configuration request to the back end in response to a configuration operation on a target functional module and / or a target component in a component library; and is also used to generate a target page based on an execution result returned by the back end, wherein the target functional module is composed based on components; The backend is used to respond to the configuration request, execute the preset business logic code, and return the execution result.
8. A page generating device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the page generation method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the page generation method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the page generation method according to any one of claims 1 to 6 are implemented.