Page creation method and device, equipment and storage medium
By decoupling the front-end UI and back-end business logic in a low-code development platform, and providing configurable views and business logic components, the problem of poor scalability of page components in the existing technology is solved, and operation and development efficiency is improved.
Patent Information
- Application Number
- CN202410785691.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing low-code development platform, the front-end UI of the page component is deeply coupled with the back-end business logic, resulting in poor scalability of the page component and affecting operational efficiency and development efficiency.
By dividing application pages into pages with different data formats, the front-end UI and back-end business logic are decoupled, and candidate view components and business logic components are provided. Operators can select and configure components according to needs to create target pages.
It improves the scalability of page components, reduces the development workload of developers, enables rapid creation of application pages, and improves the operational efficiency of the service platform and the development efficiency of the page.
Smart Images

Figure CN118760429A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a page creation method, device, equipment and storage medium. Background Art
[0002] At present, in order to adapt to the frequent business change requirements of service platforms (for example, government service platforms), low-code development platforms have emerged. In low-code development platforms, a series of pre-configured page components can be provided to the operators of the service platform. When the operators need to create application pages for the service platform, they can select the required page components from these pre-configured page components according to business needs and assemble the corresponding application pages.
[0003] However, in the existing way of creating application pages, the front-end user interface (UI) of the page components provided by the low-code development platform is deeply coupled with the back-end business logic, resulting in poor scalability of the page components. In the process of creating application pages, developers are often required to reconfigure a large number of page components, affecting operational efficiency. Summary of the invention
[0004] The present application provides a page creation method, apparatus, device and storage medium, which can improve the scalability of page components, thereby reducing the development workload of developers, and further improving the operational efficiency of the service platform and the development efficiency of the page.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, the present application provides a page creation method, comprising: in response to a selection operation on a target creation control among candidate creation controls displayed on a page creation interface, presenting a target configuration interface corresponding to the target creation control; wherein different candidate creation controls are used to create pages in different data formats; in response to a configuration operation on at least one target view component among the candidate view components displayed in the target configuration interface, obtaining a view configuration parameter group corresponding to each target view component; in response to a configuration operation on at least one target business logic component among the candidate business logic components displayed in the target configuration interface, obtaining a business logic configuration parameter group corresponding to each target business logic component; and creating a target page based on each target view component, the view configuration parameter group corresponding to each target view component, each target business logic component, and the business logic configuration parameter group corresponding to each target business logic component.
[0007] In the technical solution provided by the present application, each candidate view component and each candidate business logic component can be configured in advance for pages of different data formats, wherein each candidate view component is a front-end component and each candidate business logic component is a back-end component, that is, the present application realizes the decoupling of the front-end UI and the back-end business logic of the application page by dividing the application page into pages of different data formats. Specifically, when the operator has the need to create a page of a certain data format, the target creation control corresponding to the required data format can be selected from the candidate creation controls displayed in the page creation interface, and the target configuration interface corresponding to the target creation control can be triggered; in the target configuration interface, the candidate view components and each candidate business logic components configured in advance for the required data format are displayed; thereafter, the operator can select each target view component from each candidate view component and each target business logic component from each candidate business logic component according to the specific page creation requirements, and then the specific parameters of each selected target view component and each target business logic component can be configured in detail according to the specific business requirements, and the corresponding target page can be automatically created according to the specific parameters configured by the operator. It can be seen that in this application, the application page can be divided into pages of different data formats, and for pages of different data formats, the corresponding front-end components (i.e., each candidate view component) and back-end components (i.e., each candidate business logic component) are abstracted from the page components that constitute the page of the data format. Therefore, this application can achieve the decoupling of the front-end UI and the back-end business logic of the application page. Therefore, the scalability of the page components (including the front-end view components and the back-end business logic components) can be improved, thereby reducing the development workload of developers in the process of creating application pages, and then achieving rapid creation of application pages, improving the operational efficiency of the service platform and the development efficiency of the pages.
[0008] In a second aspect, the present application provides a page creation device, comprising: a display module, an acquisition module, and a creation module;
[0009] Specifically, the display module is used to present a target configuration interface corresponding to the target creation control in response to a selection operation of a target creation control among the candidate creation controls displayed on the page creation interface; wherein different candidate creation controls are used to create pages with different data formats;
[0010] An acquisition module, configured to acquire view configuration parameter groups corresponding to each target view component in response to a configuration operation on at least one target view component among each candidate view component displayed in the target configuration interface;
[0011] The acquisition module is further used to obtain the business logic configuration parameter groups corresponding to the target business logic components in response to the configuration operation of at least one target business logic component among the candidate business logic components displayed in the target configuration interface;
[0012] A creation module is used to create a target page based on each target view component, the view configuration parameter group corresponding to each target view component, each target business logic component, and the business logic configuration parameter group corresponding to each target business logic component.
[0013] In a third aspect, the present application provides a page creation device, including a memory, a processor, a bus and a communication interface; the memory is used to store computer execution instructions, and the processor is connected to the memory through a bus; when the page creation device is running, the processor executes the computer execution instructions stored in the memory, so that the page creation device executes the page creation method provided in the first aspect above.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes the page creation method provided in the first aspect.
[0015] In a fifth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on a computer, the computer executes the page creation method provided in the first aspect.
[0016] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the page creation device, or may be packaged separately from the processor of the page creation device, which is not limited in this application.
[0017] The description of the second, third, fourth and fifth aspects of the present application can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second, third, fourth and fifth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.
[0018] In this application, the names of the above-mentioned devices or functional modules are not limited. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they are within the scope of this application and its equivalent technologies.
[0019] These and other aspects of the present application will become more apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A schematic diagram of a page creation method provided in an embodiment of the present application;
[0021] Figure 2 A display schematic diagram of a target configuration interface provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of another target configuration interface provided in an embodiment of the present application;
[0023] Figure 4 A schematic diagram of the structure of a page creation device provided in an embodiment of the present application;
[0024] Figure 5 A schematic diagram of the structure of a page creation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The page creation method, apparatus, device and storage medium provided in the embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0026] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0027] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0028] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0029] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0030] In the description of the present application, unless otherwise specified, “plurality” means two or more.
[0031] In addition, the acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0032] At present, in order to adapt to the frequent business changes of service platforms, low-code development platforms have emerged. In low-code development platforms, a series of pre-configured page components can be provided to the operators of the service platform. When the operators need to create application pages for the service platform, they can select the required page components from these pre-configured page components according to business needs and assemble the corresponding application pages.
[0033] However, in the existing way of creating application pages, the front-end UI of the page components provided by the low-code development platform is deeply coupled with the back-end business logic, resulting in poor scalability of the page components. In the process of creating application pages, developers are often required to reconfigure a large number of page components, affecting operational efficiency.
[0034] In response to the problems existing in the above-mentioned prior art, an embodiment of the present application provides a page creation method, which can decouple the front-end UI and back-end business logic of the application page, improve the scalability of page components (including front-end view components and back-end business logic components), thereby reducing the development workload of developers in the process of creating application pages, and further realizing the rapid creation of application pages, thereby improving the operational efficiency of the service platform and the development efficiency of the pages.
[0035] The page creation method provided in the embodiment of the present application can be executed by the page creation device provided in the embodiment of the present application, which can be implemented by software and / or hardware and integrated in the page creation device that executes the method. The page creation device can be an electronic device including a display screen, for example, the page creation device can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a notebook computer, and other different types of user terminals.
[0036] The page creation method provided in the embodiment of the present application is described below with reference to the accompanying drawings.
[0037] Reference Figure 1 , the page creation method provided in the embodiment of the present application includes S101-S104:
[0038] S101 . In response to a selection operation on a target creation control among candidate creation controls displayed on a page creation interface, presenting a target configuration interface corresponding to the target creation control.
[0039] The page creation method provided in the embodiment of the present application can be applied to a page creation platform, which can be a fusion processing engine pre-developed by developers (which can realize the configuration of front-end components and back-end components, as well as the fusion of front-end components and back-end components). In the page creation platform, various candidate view components and candidate business logic components for pages of different data formats are provided. The operator of the service platform can complete the formation of the application page of the service platform through the candidate view components and candidate business logic components provided by the page creation platform. Exemplarily, the service platform can be a government service platform, for example, it can be a government service platform for handling petition affairs. The operator can complete the formation of application pages for registration services, processing services, statistical services and other services provided by the government service platform based on the components provided by the page creation platform.
[0040] In the page creation platform, a page creation interface can be provided to operators. For example, the default display homepage of the page creation platform is the page creation interface. The page creation interface displays various candidate creation controls, and different candidate creation controls are used to create pages in different data formats. Exemplarily, each candidate creation control includes a form creation control and a business process creation control. Among them, the form creation control is used to create a page in a form format, and the business process creation control is used to create a page in a business process format (i.e., a process composed of multiple business nodes arranged and combined according to certain rules).
[0041] In one possible implementation, different candidate creation controls are used to trigger different configuration interfaces, the candidate view components displayed in different configuration interfaces are different, and the candidate business logic components displayed in different configuration interfaces are different, and different configuration interfaces are used to configure pages of different data formats. Exemplarily, when an operator has a need to create a page of a certain data format, he can select a target creation control corresponding to the currently required data format from the candidate creation controls displayed in the page creation interface, and then the page creation device can be triggered to present a target configuration interface corresponding to the target creation control; in the target configuration interface, the candidate view components and candidate business logic components that are pre-configured for the required data format are displayed, and the operator can complete the assembly of the page based on the selection and configuration operations of the candidate view components and candidate business logic components.
[0042] Optionally, in response to a selection operation on a target creation control from among the candidate creation controls displayed on the page creation interface, a target configuration interface corresponding to the target creation control is presented, including: in response to a selection operation on the target creation control in the page creation interface and a selection operation on a target function control from among the candidate function controls corresponding to the target creation control, a target configuration interface corresponding to the target creation control and the target function control is presented.
[0043] Different candidate function controls are used to create pages with different business functions, and one candidate creation control can correspond to multiple candidate function controls. For example, taking the candidate creation control as a form creation control, the candidate function controls corresponding to the form creation control can be query function controls, information collection function controls, statistical analysis functions, etc.
[0044] In a possible implementation, different candidate creation controls are used to trigger different configuration interfaces, and different candidate function controls are used to trigger different configuration interfaces, and different configuration interfaces are used to configure pages with different data formats or different business functions.
[0045] Exemplarily, when an operator needs to create a page, he or she can select a target creation control corresponding to the data format currently required from the candidate creation controls displayed on the page creation interface, and can select the required target function control from the candidate function controls corresponding to the target creation control according to business function requirements. The page creation device can then be triggered to present a target configuration interface corresponding to the target creation control and the target function control.
[0046] In the embodiment of the present application, each candidate view component and each candidate business logic component can be configured in advance for pages with different data formats and different business functions corresponding to different data formats. That is, by dividing the application page into pages with different data formats and different business functions, the front-end UI of the application page and the back-end business logic are decoupled. In this way, the scalability of the page component can be further improved, thereby further improving the efficiency of creating the application page, so as to further improve the operation efficiency of the service platform and the development efficiency of the page.
[0047] S102. In response to a configuration operation on at least one target view component among the candidate view components displayed in the target configuration interface, obtain view configuration parameter groups corresponding to the target view components.
[0048] Each candidate view component is a pre-configured front-end component. After being selected, the candidate view component needs to be rendered in the front-end page, so when configuring the candidate view component, the developer needs to configure the display style of the candidate view component.
[0049] For example, taking the target configuration interface as the configuration interface corresponding to the form creation control, each candidate view component may include each layout component and each basic component. Each layout component may be a component corresponding to the grid layout, card layout, chapter navigation layout, etc., and each basic component may be a component corresponding to the button, single-line input, multi-line input, title text, multiple-selection box, single-selection drop-down box, multi-selection drop-down box, etc. Taking the target configuration interface as the configuration interface corresponding to the business process creation control, each candidate view component may include basic components such as the start node, manual task node, exclusive gateway, inclusive gateway, parallel gateway, end node, etc., and may also include advanced components such as foldable sub-processes.
[0050] Optionally, in the embodiment of the present application, each candidate view component may include not only an independent view component (e.g., the basic component described above), but also a combined view component composed of multiple independent view components. By providing a combined view component, the efficiency of creating pages can be further improved, that is, the efficiency of page development and the efficiency of operating the service platform can be improved.
[0051] After the page creation device presents the target configuration interface corresponding to the target creation control, the operator can select the required target view components from the candidate view components according to the specific page creation requirements. In addition, when the developer pre-configures the candidate view components, he only configures the basic properties of the candidate view components (for example, the display style of the component, the functions implemented after the component is triggered, etc.), but does not configure the specific view parameters of the candidate view components. Exemplarily, taking the candidate view component as a radio drop-down box as an example, when the developer pre-configures the radio drop-down box, he can pre-configure the display style of the radio drop-down box, the number of drop-down options corresponding to the radio drop-down box by default, etc., but does not configure the specific drop-down options of the radio drop-down box. Based on this, in the embodiment of the present application, the operator also needs to customize the view parameters of each target view component respectively. Then, the page creation device can obtain the configuration parameter value selected / input by the operator during the process of the operator performing the custom configuration operation, and obtain the view configuration parameter group.
[0052] Taking a radio drop-down box as an example, which is a drop-down box used for visiting users to select the type of certificate, the operator can configure the view attribute field of the radio drop-down box, for example, configure the field value of the view attribute field of the radio drop-down box to "certificate type"; the optional items of the radio drop-down box can also be configured, for example, configure the optional items of the radio drop-down box to "resident identity card", "passport", etc.
[0053] Optionally, the target configuration interface includes a first component selection area, a first component configuration area, and a page preview area; in response to a configuration operation on at least one target view component among the candidate view components displayed in the target configuration interface, a view configuration parameter group corresponding to each target view component is obtained, including: for each target view component, in response to a drag operation on the current target view component among the candidate view components displayed in the first component selection area, a current view sample corresponding to the current target view component is displayed in the page preview area; in response to a selection operation on the current view sample, each view configuration item corresponding to the current target view component is displayed in the first component configuration area; in response to a configuration operation on each view configuration item, a view configuration parameter group corresponding to the current target view component is obtained.
[0054] Among them, the current view sample of the current target view component displayed in the page preview area can be the same as the current target view component displayed in the first component selection area; or, the size of the current view sample of the current target view component displayed in the page preview area is slightly larger than the current target view component displayed in the first component selection area; or, the current target view component displayed in the first component selection area is just a thumbnail, while the current view sample of the current target view component displayed in the page preview area is a complete illustration of the thumbnail.
[0055] Reference Figure 2 , is a display schematic diagram of a target configuration interface provided in an embodiment of the present application, such as Figure 2 As shown, the target configuration interface includes a first component selection area, a first component configuration area, and a page preview area. The first component selection area displays various candidate view components (e.g., Figure 2 For example, if the page to be created includes a radio-select drop-down box as a target view component, the operator can drag the radio-select drop-down box in the first component selection area to the page preview area, and the current view sample corresponding to the radio-select drop-down box will be displayed in the page preview area; then, the operator can select the current view sample displayed in the page preview area, and the first component configuration area will display the view configuration items corresponding to the radio-select drop-down box (for example, Figure 2 The operator can perform input / selection and other configuration operations on each view configuration item according to actual business needs (for example, enter "document type" in the input box corresponding to the drop-down box attribute). The page creation device can respond to the operator's configuration operation and obtain the view configuration parameter group corresponding to the single-select drop-down box (including the view configuration parameters corresponding to the drop-down box attributes, drop-down box options, default display samples and other view configuration items. Taking the drop-down box attributes as an example, the corresponding view configuration parameter is "document type").
[0056] In a possible implementation, after completing the configuration operation of the radio-select drop-down box, the target view component, the operator can select the confirmation control in the first component configuration area. Then, the page creation device can respond to the operation and render the radio-select drop-down box in real time in the page preview area based on the view configuration parameter group corresponding to the radio-select drop-down box, so that the operator can instantly preview the page effect. For example, the rendering result can be as follows: Figure 2 The content presented in the page preview area is shown.
[0057] In an embodiment of the present application, by dividing the target configuration interface into a first component selection area, a first component configuration area, and a page preview area, it is convenient for operators to accurately and quickly implement configuration operations on the target view component.
[0058] S103: In response to a configuration operation on at least one target business logic component among the candidate business logic components displayed in the target configuration interface, obtain business logic configuration parameter groups corresponding to the target business logic components.
[0059] Among them, each candidate business logic component is a pre-configured back-end component, which is used to perform business logic processing on the data obtained from the front-end at the back-end.
[0060] Exemplarily, taking the target configuration interface as the configuration interface corresponding to the form creation control as an example, each candidate business logic component may include an application programming interface (Application Programming Interface, API) call component, a rule component, and the like.
[0061] The API call component is used to call the functions of an API, which may include query, modify, delete, store, etc. For example, calling an API with storage function can save the specified data to a specified database. The rule component is used to implement logical processing (query processing, calculation processing, etc.) of specified data fields. For example, the required data can be found from the specified data field through custom configured conditional screening rules.
[0062] After the page creation device presents the target configuration interface corresponding to the target creation control, the operator can select the required target business logic components from the candidate business logic components according to the specific page creation requirements. Similarly, the operator also needs to customize the business logic parameters of each target business logic component. In this case, the page creation device can obtain the configuration parameter values selected / input by the operator during the operator's custom configuration operation and obtain the business logic configuration parameter group.
[0063] For example, if the API call component to be configured is a component with storage function, the operator can customize the interface name of the API call component, trigger event (indicating the timing of calling the API call component when the user browses the page), the path to access the database, the access method, the data storage method, etc. For example, if the rule component to be configured is a component with query processing function, the operator can customize the condition field (specified data field), condition screening rules, trigger events, etc. of the rule component.
[0064] Optionally, the target configuration interface includes a second component selection area and a second component configuration area; in response to a configuration operation on at least one target business logic component among the candidate business logic components displayed in the target configuration interface, obtaining a business logic configuration parameter group corresponding to each target business logic component, including: for each target business logic component, in response to a selection operation on the current target business logic component among the candidate business logic components displayed in the second component selection area, displaying each business logic configuration item corresponding to the current target business logic component in the second component configuration area; in response to the configuration operation on each business logic configuration item, obtaining the business logic configuration parameter group corresponding to the current target business logic component.
[0065] In one possible implementation, the developer configures a display style for the target configuration interface, in which a first component selection area, a first component configuration area, a page preview area, a second component selection area, and a second component configuration area are displayed; the operator can complete the configuration of the target view component in the first component selection area, the first component configuration area, and the page preview area, and complete the configuration of the target business logic component in the second component selection area and the second component configuration area.
[0066] In another possible implementation, the developer configures two display styles for the target configuration interface, including a first display style and a second display style; wherein the first display style displays a first component selection area, a first component configuration area, and a page preview area; and the second display style displays a second component selection area and a second component configuration area. The target configuration interface includes two style controls, namely a first style control and a second style control, wherein the first style control is used to switch the target configuration interface to the first display style, and the second style control is used to switch the target configuration interface to the second display style; when the operator triggers the display of the target configuration interface by selecting the target creation control, the target configuration interface may display the first display style by default, or may display the second display style by default.
[0067] For example, the developer pre-configures two display styles for the target configuration interface, and the current display style of the target configuration interface is the second display style. Figure 3, is a display schematic diagram of a target configuration interface provided in an embodiment of the present application, such as Figure 3 As shown, the target configuration interface includes a second component selection area and a second component configuration area. The second component selection area displays various candidate business logic components (for example, Figure 2 For example, if a business function of the page to be created is to call an API to save the table data of the current page to the database, the operator can drag the API call component 1 in the second component selection area to the second component configuration area, and the second component configuration area will display the business logic configuration items corresponding to the API call component 1 (for example, Figure 3 The operator can input / select and perform other configuration operations on each business logic configuration item according to actual business needs. The page creation device can respond to the configuration operation of the operator and obtain the business logic configuration parameter group corresponding to the API call component 1 (including the business logic configuration parameters corresponding to the business logic configuration items such as interface name, trigger event, path to access database, access method, data storage method, etc.).
[0068] S104: Create a target page based on each target view component, the view configuration parameter group corresponding to each target view component, each target business logic component, and the business logic configuration parameter group corresponding to each target business logic component.
[0069] Exemplarily, after completing the configuration operations on each target view component and each target business logic component, the operator can select the confirmation control in the target configuration interface, and the page creation device can respond to the operation by specifically configuring each target view component based on the view configuration parameter group corresponding to each target view component, and specifically configuring each target business logic component based on the business logic configuration parameter group corresponding to each target business logic component, to obtain the target page.
[0070] In a possible implementation, a target page is created based on each target view component, the view configuration parameter group corresponding to each target view component, each target business logic component, and the business logic configuration parameter group corresponding to each target business logic component, including: for each target view component, rendering the current target view component based on the view configuration parameter group corresponding to the current target view component to obtain a rendered current target view component; for each target business logic component, initializing the current target business logic component based on the business logic configuration parameter group corresponding to the current target business logic component to obtain an initialized current target business logic component; creating a target page based on each rendered target view component and each initialized target business logic component.
[0071] Optionally, the target configuration interface also includes a page attribute configuration area; based on each target view component, the view configuration parameter group corresponding to each target view component, each target business logic component, and the business logic configuration parameter group corresponding to each target business logic component, after creating the target page, the page creation method provided in the embodiment of the present application also includes: in response to the configuration operation of each candidate page attribute configuration item in the page attribute configuration area, obtaining a page attribute configuration parameter group for the target page; based on the page attribute configuration parameter group and a predetermined page encapsulation rule, encapsulating the target page to obtain an API corresponding to the target page.
[0072] Among them, each candidate page attribute configuration item may include configuration items corresponding to page attributes such as page name, page icon, and business type to which the page belongs. The page attribute configuration parameter group is the configuration parameters corresponding to page attributes such as page name, page icon, and business type to which the page belongs.
[0073] In a possible implementation, after encapsulating the target page, the target page can be published, and the page creation device can automatically generate an access address corresponding to the target page. The access address can be used to render and display the front-end component of the target page through a page rendering tool, and execute the corresponding business processing logic based on the business logic configuration parameter group corresponding to the back-end component.
[0074] In actual applications, there will be associations between the various application pages of the service platform. For example, a certain application page will jump to another application page after triggering a certain event, or a certain application page needs to call the data of another application page in the business processing logic. Based on this, in the embodiment of the present application, after creating the target page, the target page can also be encapsulated as an API, so that it is easy to build the association relationship between the various application pages (for example, a certain application page calls another application page by calling another application page API), so as to realize rapid business development or business modification of the service platform.
[0075] Optionally, in the technical solution provided in the embodiment of the present application, when the operator creates multiple application pages of a service platform, the operator can first decouple the business of the service platform, and then create corresponding application pages according to the decoupling results, and establish an association relationship between the application pages.
[0076] For example, taking the service platform as a government service platform for handling letters and visits, the service platform's business can be divided into registration business (used to register the basic information of letters and visits cases, including case number, letter and visit information, letter and visit content, etc.), processing business (handling of letters and visits cases and execution of related processes, including case allocation, government review, investigation and evidence collection, convening of hearings, etc.), statistical business (used to count relevant data of letters and visits cases, including the number of cases, processing time, processing results, etc.), reporting business (used to generate reports on letters and visits cases, including summaries, analyses and suggestions, etc.), verification business (used to verify whether the input information complies with the specified format and requirements), and other businesses (such as document receipt business, message notification business), etc.
[0077] Optionally, in the technical solution provided in the embodiment of the present application, when the operator creates multiple application pages of a service platform, the operator can first abstract the business logic of the service platform's business, and create an API for the abstracted business processing logic accordingly.
[0078] For example, taking the service platform as a government service platform for handling letters and visits, the business logic of the service platform's business can be divided into: registration business logic (used to verify and save the basic information of letters and visits cases), processing business logic (used to handle letters and visits cases, including assigning cases to relevant personnel and following up on case progress), statistical business logic (used to count the relevant data of letters and visits cases and generate reports), reporting business logic (used to generate reports on letters and visits cases and provide relevant analysis and suggestions), circulation business logic (used to transfer letters and visits to corresponding handlers), etc.
[0079] Optionally, in the case where the target creation control is a form creation control, in response to a selection operation on the target creation control among the candidate creation controls displayed on the page creation interface, after presenting the target configuration interface corresponding to the target creation control, based on each target view component, the view configuration parameter group corresponding to each target view component, each target business logic component, and the business logic configuration parameter group corresponding to each target business logic component, before creating the target page, the page creation method provided in the embodiment of the present application also includes: in response to an upload operation on a physical table of a target database in the target configuration interface, parsing each metadata and the descriptive information corresponding to each metadata from the physical table of the target database; for each metadata, determining, based on the descriptive information corresponding to the current metadata, the target view component matching the current metadata and the view configuration parameter group corresponding to the target view component of the current metadata.
[0080] Each metadata is a data element in a physical table of a database, and the description information corresponding to the metadata records the field name, field attribute, field type, data type, etc. of the data element. In the embodiment of the present application, different view components can be matched in advance for different data types. For example, the view component matched for the character data type can be a text input box, and the view component matched for the character data type can be a single-select drop-down box.
[0081] In one possible implementation, a data-driven model tool can be called to automatically convert the physical table of the target database uploaded by the operator (it can be directly uploading a specific physical table of the target database, or uploading a link address of the physical table of the target database) into a metadata model, which includes each metadata parsed from the physical table of the target database, and the descriptive information corresponding to each metadata. The page creation device can automatically match the target view component for each metadata based on the descriptive information corresponding to each metadata, and automatically determine the corresponding view configuration parameter group. Of course, in actual applications, it can also support operators to adjust the target view component matched by a certain metadata, or fine-tune the view configuration parameter group.
[0082] Since the display style of form-type pages is relatively fixed, and the specific display style is related to the fields in the form, based on this, in the embodiment of the present application, when the target creation control is a form creation control, the front-end rendering of the form-type page can be automatically realized through the metadata of the physical table of the target database and the description information corresponding to each metadata. In this way, the operating efficiency of the service platform and the development efficiency of the page can be further improved.
[0083] Based on the above description, in the page creation method provided by the embodiment of the present application, each candidate view component and each candidate business logic component can be configured in advance for pages of different data formats, wherein each candidate view component is a front-end component and each candidate business logic component is a back-end component, that is, the present application realizes the decoupling of the front-end UI and the back-end business logic of the application page by dividing the application page into pages of different data formats. Specifically, when the operator has the need to create a page of a certain data format, the target creation control corresponding to the required data format can be selected from the candidate creation controls displayed on the page creation interface, and then the target configuration interface corresponding to the target creation control can be triggered; in the target configuration interface, each candidate view component and each candidate business logic component configured in advance for the required data format are displayed; thereafter, the operator can select each target view component from each candidate view component according to the specific page creation requirements, and select each target business logic component from each candidate business logic component, and then the specific parameters of each selected target view component and each target business logic component can be configured in detail according to the specific business requirements, and then the background can create the corresponding target page according to the specific parameters configured by the operator. It can be seen that in this application, the application page can be divided into pages of different data formats, and for pages of different data formats, the corresponding front-end components (i.e., each candidate view component) and back-end components (i.e., each candidate business logic component) are abstracted from the page components that constitute the page of the data format. Therefore, this application can achieve the decoupling of the front-end UI and the back-end business logic of the application page. Therefore, the scalability of the page components (including the front-end view components and the back-end business logic components) can be improved, thereby reducing the development workload of developers in the process of creating application pages, and then achieving rapid creation of application pages, improving the operational efficiency of the service platform and the development efficiency of the pages.
[0084] like Figure 4 As shown, an embodiment of the present application further provides a page creation device, which may include: a display module 11 , an acquisition module 21 and a creation module 31 .
[0085] The display module 11 executes S101 in the above method embodiment, the acquisition module 21 executes S102 and S103 in the above method embodiment, and the creation module 31 executes S104 in the above method embodiment.
[0086] Specifically, the display module 11 is used to present a target configuration interface corresponding to the target creation control in response to a selection operation of a target creation control among the candidate creation controls displayed on the page creation interface; wherein different candidate creation controls are used to create pages of different data formats;
[0087] An acquisition module 21, configured to acquire view configuration parameter groups corresponding to each target view component in response to a configuration operation on at least one target view component among each candidate view component displayed in the target configuration interface;
[0088] The acquisition module 21 is further used to obtain the business logic configuration parameter groups corresponding to the target business logic components in response to the configuration operation of at least one target business logic component among the candidate business logic components displayed in the target configuration interface;
[0089] The creation module 31 is used to create a target page based on each target view component, the view configuration parameter group corresponding to each target view component, each target business logic component, and the business logic configuration parameter group corresponding to each target business logic component.
[0090] Optionally, the display module 11 is specifically used for:
[0091] In response to the selection operation of the target creation control in the page creation interface and the selection operation of the target function control in each candidate function control corresponding to the target creation control, the target configuration interface corresponding to the target creation control and the target function control is presented; wherein different candidate function controls are used to create pages with different business functions.
[0092] Optionally, the target configuration interface includes a first component selection area, a first component configuration area, and a page preview area; the acquisition module 21 is specifically used for:
[0093] For each target view component, in response to the drag operation of the current target view component among the candidate view components displayed in the first component selection area, the current view sample corresponding to the current target view component is displayed in the page preview area; in response to the selection operation of the current view sample, the view configuration items corresponding to the current target view component are displayed in the first component configuration area; in response to the configuration operation of each view configuration item, the view configuration parameter group corresponding to the current target view component is obtained.
[0094] Optionally, the target configuration interface includes a second component selection area and a second component configuration area; the acquisition module 21 is specifically used for:
[0095] For each target business logic component, in response to the selection operation of the current target business logic component among the candidate business logic components displayed in the second component selection area, each business logic configuration item corresponding to the current target business logic component is displayed in the second component configuration area; in response to the configuration operation of each business logic configuration item, the business logic configuration parameter group corresponding to the current target business logic component is obtained.
[0096] Optionally, the page creation device further includes a parsing module and a determination module;
[0097] The parsing module is used for: when the target creation control is a form creation control, after presenting a target configuration interface corresponding to the target creation control in response to a selection operation of the target creation control among the candidate creation controls displayed on the page creation interface, before creating the target page, based on each target view component, the view configuration parameter group corresponding to each target view component, each target business logic component, and the business logic configuration parameter group corresponding to each target business logic component, in response to an upload operation on a physical table of a target database in the target configuration interface, parsing each metadata and the description information corresponding to each metadata from the physical table of the target database;
[0098] The determination module is used to determine, for each metadata, a target view component matching the current metadata and a view configuration parameter group corresponding to the target view component of the current metadata based on the description information corresponding to the current metadata.
[0099] Optionally, the target configuration interface includes a page attribute configuration area; the page creation device also includes a packaging module;
[0100] The acquisition module 21 is further used to acquire the page attribute configuration parameter group for the target page in response to the configuration operation of each candidate page attribute configuration item in the page attribute configuration area after creating the target page based on each target view component, the view configuration parameter group corresponding to each target view component, each target business logic component, and the business logic configuration parameter group corresponding to each target business logic component;
[0101] The encapsulation module is used to encapsulate the target page based on the page attribute configuration parameter group and the predetermined page encapsulation rule to obtain the API corresponding to the target page.
[0102] Optionally, the creation module 31 is specifically used for:
[0103] For each target view component, the current target view component is rendered based on the view configuration parameter group corresponding to the current target view component to obtain the rendered current target view component; for each target business logic component, the current target business logic component is initialized based on the business logic configuration parameter group corresponding to the current target business logic component to obtain the initialized current target business logic component; based on each rendered target view component and each initialized target business logic component, a target page is created.
[0104] Optionally, the page creation device may further include a storage module, and the storage module is used to store program codes of the page creation device, etc.
[0105] like Figure 5As shown, the embodiment of the present application also provides a page creation device, including a memory 41, a processor (such as Figure 5 42-1 and 42-2), bus 43 and communication interface 44; memory 41 is used to store computer execution instructions, and the processor is connected to the memory 41 through bus 43; when the page creation device is running, the processor executes the computer execution instructions stored in the memory 41, so that the page creation device executes the page creation method provided in the above embodiment.
[0106] In a specific implementation, as an embodiment, the processor may include one or more central processing units (CPUs), such as Figure 5 As an embodiment, the page creation device may include multiple processors, such as CPU0 and CPU1. Figure 5 4 and 5. The processors 42-1 and 42-2 shown in FIG. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0107] The memory 41 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 41 may exist independently and be connected to the processor via a bus 43. The memory 41 may also be integrated with the processor.
[0108] In a specific implementation, the memory 41 is used to store the data in the present application and the computer execution instructions corresponding to the software program for executing the present application. The processor can create various functions of the device by running or executing the software program stored in the memory 41 and calling the data stored in the memory 41.
[0109] The communication interface 44 uses any transceiver-like device for communicating with other devices or communication networks, such as a control system, a radio access network (RAN), a wireless local area network (WLAN), etc. The communication interface 44 may include a receiving unit to implement a receiving function, and a sending unit to implement a sending function.
[0110] The bus 43 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus 43 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0111] As an example, combining Figure 4 , the functions implemented by the acquisition module in the page creation device are similar to Figure 5 The functions implemented by the receiving unit in the page creation device are the same as those implemented by the creation module in the page creation device. Figure 5 When the page creation device includes a storage module, the function implemented by the storage module is the same as Figure 5 The memory in implements the same function.
[0112] The explanation of the relevant contents in this embodiment can refer to the above method embodiment, which will not be repeated here.
[0113] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0114] The embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes the page creation method provided in the above embodiment.
[0115] Among them, the computer-readable storage medium, for example, can be but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, RAM, ROM, an erasable programmable read only memory (EPROM), a register, a hard disk, an optical fiber, a CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In an embodiment of the present application, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, device or device.
[0116] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application 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.
Claims
1. A page creation method, It is characterized in that include: In response to a selection operation of a target creation control among candidate creation controls displayed on the page creation interface, a target configuration interface corresponding to the target creation control is presented; wherein different candidate creation controls are used to create pages with different data formats; In response to a configuration operation on at least one target view component among the candidate view components displayed in the target configuration interface, obtaining view configuration parameter groups respectively corresponding to the target view components; In response to a configuration operation on at least one target business logic component among the candidate business logic components displayed in the target configuration interface, obtaining business logic configuration parameter groups respectively corresponding to the target business logic components; A target page is created based on each of the target view components, the view configuration parameter groups corresponding to each of the target view components, each of the target business logic components, and the business logic configuration parameter groups corresponding to each of the target business logic components.
2. The page creation method according to claim 1, It is characterized in that The method of presenting a target configuration interface corresponding to the target creation control in response to a selection operation of the target creation control among the candidate creation controls displayed on the page creation interface includes: In response to the selection operation of the target creation control in the page creation interface and the selection operation of the target function control in each candidate function control corresponding to the target creation control, the target configuration interface corresponding to the target creation control and the target function control is presented; wherein different candidate function controls are used to create pages with different business functions.
3. The page creation method according to claim 1, It is characterized in that The target configuration interface includes a first component selection area, a first component configuration area, and a page preview area; the step of obtaining a view configuration parameter group corresponding to each of the target view components in response to a configuration operation on at least one of the candidate view components displayed in the target configuration interface includes: For each of the target view components, in response to a drag operation on a current target view component among the candidate view components displayed in the first component selection area, a current view sample corresponding to the current target view component is displayed in the page preview area; In response to a selection operation on the current view sample, displaying each view configuration item corresponding to the current target view component in the first component configuration area; In response to the configuration operations on the view configuration items, a view configuration parameter group corresponding to the current target view component is obtained.
4. The page creation method according to claim 1, It is characterized in that The target configuration interface includes a second component selection area and a second component configuration area; the response to the configuration operation of at least one target business logic component among the candidate business logic components displayed in the target configuration interface, obtaining the business logic configuration parameter groups corresponding to the target business logic components respectively, including: For each of the target business logic components, in response to a selection operation on a current target business logic component among the candidate business logic components displayed in the second component selection area, displaying each business logic configuration item corresponding to the current target business logic component in the second component configuration area; In response to the configuration operation on each of the business logic configuration items, a business logic configuration parameter group corresponding to the current target business logic component is obtained.
5. The page creation method according to claim 1, It is characterized in that In the case where the target creation control is a form creation control, after presenting a target configuration interface corresponding to the target creation control in response to a selection operation on the target creation control among the candidate creation controls displayed on the page creation interface, before creating a target page based on the target view components, the view configuration parameter groups respectively corresponding to the target view components, the target business logic components, and the business logic configuration parameter groups respectively corresponding to the target business logic components, the method further includes: In response to an upload operation on a physical table of a target database in the target configuration interface, each metadata and description information corresponding to each metadata are parsed from the physical table of the target database; For each metadata, based on the description information corresponding to the current metadata, a target view component matching the current metadata and a view configuration parameter group corresponding to the target view component of the current metadata are determined.
6. The page creation method according to claim 1, It is characterized in that The target configuration interface includes a page attribute configuration area; after creating a target page based on each of the target view components, the view configuration parameter groups corresponding to each of the target view components, each of the target business logic components, and the business logic configuration parameter groups corresponding to each of the target business logic components, the method further includes: In response to a configuration operation on each candidate page attribute configuration item in the page attribute configuration area, obtaining a page attribute configuration parameter group for the target page; Based on the page attribute configuration parameter group and a predetermined page encapsulation rule, the target page is encapsulated to obtain an application programming interface API corresponding to the target page.
7. The page creation method according to any one of claims 1 to 6, It is characterized in that The step of creating a target page based on each of the target view components, the view configuration parameter groups corresponding to each of the target view components, each of the target business logic components, and the business logic configuration parameter groups corresponding to each of the target business logic components includes: For each of the target view components, the current target view component is rendered based on the view configuration parameter group corresponding to the current target view component to obtain a rendered current target view component; For each of the target business logic components, initializing the current target business logic component based on the business logic configuration parameter group corresponding to the current target business logic component to obtain an initialized current target business logic component; The target page is created based on the target view components that have been rendered and the target business logic components that have been initialized.
8. A page creation device, It is characterized in that include: A display module, configured to present a target configuration interface corresponding to the target creation control in response to a selection operation of a target creation control among the candidate creation controls displayed on the page creation interface; wherein different candidate creation controls are used to create pages with different data formats; An acquisition module, configured to, in response to a configuration operation on at least one target view component among the candidate view components displayed in the target configuration interface, acquire a view configuration parameter group corresponding to each of the target view components; The acquisition module is further configured to, in response to a configuration operation on at least one target business logic component among the candidate business logic components displayed in the target configuration interface, acquire the business logic configuration parameter groups respectively corresponding to the target business logic components; A creation module is used to create a target page based on each of the target view components, the view configuration parameter groups corresponding to each of the target view components, each of the target business logic components, and the business logic configuration parameter groups corresponding to each of the target business logic components.
9. A page creation device, It is characterized in that It includes a memory, a processor, a bus and a communication interface; the memory is used to store computer-executable instructions, and the processor is connected to the memory via the bus; When the page creation device is running, the processor executes the computer-executable instructions stored in the memory, so that the page creation device executes the page creation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, and when a computer executes the instructions, the computer executes the page creation method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Active page configuration method and device, equipment and storage medium
CN112947904A
Low-code componentized software development method and system for financial reimbursement receipt machine
CN115373640A
Intellectual property flow form generation method and device
CN116204267A
Form page generation method and device, equipment and storage medium
CN118069128A
Page generation method and apparatus
WO2023016264A1
