Method and device for assembling front-end pages of business system products
Through automated business components and technical component models, the configuration interface is generated and the front-end page is assembled, which solves the problem of low efficiency in product front-end page development of multi-service system products, and achieves improved flexibility and improved code reuse rate.
Patent Information
- Application Number
- CN202410941810.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-11-01
AI Technical Summary
In the prior art, there is a vertical development of the product front-end page involving multiple business systems, resulting in duplicate function development, poor utilization rate, poor flexibility, and inability to respond quickly to changes in business rules. When adding new products, the front-end page needs to be developed separately. This leads to low code reuse and low development efficiency.
By pre-analyzing the historical product information in the business system, determining the business component model and technical component model, generating configuration interfaces, users input configuration information, generating front-end pages based on configuration information and technical component models, realizing automated fields and technical component assembly, reducing the The difficulty of research and development and modification efficiency of the front-end page of new products.
It avoids duplicate development, improves the research and development and modification efficiency of the front-end page of new products, realizes product standardized management, and improves development efficiency and code reuse rate.
Smart Images

Figure CN118885245A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a front-end page assembly method and device for a business system product. Background Art
[0002] In the prior art, there are products involving multiple related business systems, such as products in the field of bank supply chain finance. The application of such products involves multiple aspects of multiple links, and applications must be submitted for each aspect of each link. The front-end pages of various business systems lack a coordinated design and are all developed in a silo manner. Therefore, there are problems of repeated development and low development efficiency. At the same time, after the front-end page is generated, if you want to change it, you need to develop a new design for it. There are also problems with the poor flexibility of the front-end page and the inability to respond quickly to changes in business rules. In addition, each time a new product is connected, it is necessary to develop a separate front-end page based on business needs and business rules, which leads to low code reuse and low development delivery efficiency. Summary of the invention
[0003] The present invention is used to solve the problem in the prior art that, for scenarios involving multiple business systems, the front-end pages of each business system product are developed in a silo-style, with duplicate development of functions and poor availability. In addition, the front-end page has poor flexibility and cannot quickly respond to changes in business rules. When a new product is added, a separate form filling front-end page needs to be developed, resulting in a low code reuse rate.
[0004] In order to solve the above technical problems, the first aspect of the present invention provides a front-end page assembly method for a business system product, comprising:
[0005] Receiving configuration information input by a user through a configuration interface, wherein the configuration information includes product information, module information, unit information, and field information, wherein the configuration interface is generated according to a pre-established business component model, wherein the business component model includes a product library, a module library, a unit library, and a field library;
[0006] Generate a front-end page according to the configuration information and a pre-established technical component model, wherein the technical component model includes a technical component library of each type of unit;
[0007] The business system of the product is determined according to the product information, and the front-end page is sent to the business system of the product.
[0008] As a further embodiment of the present invention, the business component model determination process includes:
[0009] Obtain the business processes of existing products in each business system;
[0010] Classify existing products in each business system to obtain multiple product groups;
[0011] Determine the product library based on multiple product groups;
[0012] Determine the business links of each product group based on their business processes;
[0013] Generate the module library of each product according to the business links of each product group;
[0014] Classify the business information of each business link of each product group, and generate the unit library of each module according to the classification results;
[0015] Convert various types of business information of each business link of each product group into system fields, and generate field libraries of each unit based on the system fields.
[0016] As a further embodiment of the present invention, the unit information and field information are stored in a vertical table, and each row of data in the vertical table records the field information and the unit information.
[0017] As a further embodiment of the present invention, receiving configuration information input by a user through a configuration interface displayed by a business system includes:
[0018] Receive product information input by the user according to the product configuration interface;
[0019] According to the product information, query the module list under the product from the business component model, generate a module configuration interface according to the query module list and send it to the user end;
[0020] Receive module information input by the user according to the module configuration interface;
[0021] According to the product information and module information, query the unit list and the field list in the unit under the product module from the business component model, generate a field configuration interface according to the queried unit list and field list, and send it to the user end;
[0022] Receive unit information and field information input by the user according to the field configuration interface.
[0023] As a further embodiment of the present invention, a front-end page is generated according to the configuration information and the pre-established technical component model, including:
[0024] Determine the unit type according to the unit information in the configuration information;
[0025] Determine the technical component of the field from the technical component model according to the unit type and the field information included in the unit information;
[0026] Determine the title information according to the product information and module information in the configuration information;
[0027] Generate HTML code based on the technical components and field information of the field;
[0028] Generate the front-end page based on the HTML code and title information.
[0029] As a further embodiment of the present invention, the unit types include: form type and table type;
[0030] The technical component library of the form type includes: text box component, text field component, date component, drop-down box component, drop-down box multiple selection component, magnifying glass component, number box component, amount box component;
[0031] The technical component library of the table type includes: a text box component, a date component and an amount box component.
[0032] As a further embodiment of the present invention, the process of receiving the configuration information input by the user further includes:
[0033] Query the top N historical configuration information with the highest matching degree with the configuration information input by the user in real time from the historical database, where N is a positive integer;
[0034] Generate a prompt page based on the queried historical configuration information and send it to the client;
[0035] Receive historical configuration information selected by the user according to the prompt page;
[0036] An editing interface is generated based on the historical configuration information selected by the user and sent to the client for the user to modify the configuration information.
[0037] A second aspect of the present invention provides a front-end page assembly device for a business system product, comprising:
[0038] A configuration unit, used to receive configuration information input by a user through a configuration interface, wherein the configuration information includes product information, module information, unit information, and field information. The configuration interface is generated according to a pre-established business component model, wherein the business component model includes a product library, a module library, a unit library, and a field library;
[0039] A generating unit, used to generate a front-end page according to the configuration information and a pre-established technical component model, wherein the technical component model includes a technical component library of each type of unit;
[0040] A sending unit is used to determine the business system of the product according to the product information, and send the front-end page to the business system of the product.
[0041] A third aspect of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any of the foregoing embodiments when executing the computer program.
[0042] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of a computer device, the method described in any of the above embodiments is implemented.
[0043] A fifth aspect of the present invention provides a computer program product, which includes a computer program. When the computer program is executed by a processor of a computer device, the method described in any of the above embodiments is implemented.
[0044] The front-end page assembly method and device of the business system product provided by the present invention determines the business component model and the technical component model by pre-analyzing the existing historical product information in the business system. The business component model stores a product library, a module library, a unit library and a field library. The products, modules, units and fields are in a cascade relationship. The technical component model includes a technical component library of each type of unit. Each component in the component library specifies a code generation method, which can realize the business commonality abstraction of the business system product. A configuration interface is generated according to the business component model so that the user can input configuration information when the user develops a new product; a front-end page is generated according to the configuration information and the technical component model; and the front-end filled-in page is sent to the business system of the product. The present invention assembles fields and technical components in an automated manner, which can reduce the difficulty of developing the front-end page of a new product, avoid repeated development, and improve the modification and development efficiency of the front-end page of a new product. At the same time, the management of product standardization is also gradually completed.
[0045] In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 A structural diagram of a front-end page assembly system of a business system product according to an embodiment of the present invention is shown;
[0048] Figure 2 A flow chart showing a process of determining a business component model according to an embodiment of the present invention is shown;
[0049] Figure 3 A schematic diagram of a business component model according to an embodiment of the present invention is shown;
[0050] Figure 4 A schematic diagram showing a business component model and a technical component model according to an embodiment of the present invention is shown;
[0051] Figure 5 A schematic diagram of the longitudinal table structure of an embodiment of the present invention is shown;
[0052] Figure 6 A flow chart showing a method for assembling a front-end page of a business system product according to an embodiment of the present invention is shown;
[0053] Figure 7 A flow chart of a configuration information input process according to an embodiment of the present invention is shown;
[0054] Figure 8 A schematic diagram of a field configuration interface according to an embodiment of the present invention is shown;
[0055] Fig. 9 A flow chart showing a front-end page generation process according to an embodiment of the present invention is shown;
[0056] Fig.10 It shows a structural diagram of a front-end page assembly device of a business system product according to an embodiment of the present invention;
[0057] Fig.11 A structural diagram of a computer device according to an embodiment of the present invention is shown.
[0058] Description of the accompanying symbols:
[0059] 101. Client;
[0060] 102. Server;
[0061] 1001. configuration unit;
[0062] 1002. Generation unit;
[0063] 1003, sending unit;
[0064] 1102. Computer equipment;
[0065] 1104. Processor;
[0066] 1106. Memory;
[0067] 1108, driving mechanism;
[0068] 1110, input / output module;
[0069] 1112. Input device;
[0070] 1114. Output device;
[0071] 1116. Presentation equipment;
[0072] 1118. Graphical user interface;
[0073] 1120, network interface;
[0074] 1122. Communication link;
[0075] 1124. Communication bus. DETAILED DESCRIPTION
[0076] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0077] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0078] This specification provides method operation steps as described in the embodiments or flow charts, but more or fewer operation steps may be included based on routine or non-creative work. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the system or device product is executed in practice, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel.
[0079] It should be noted that the business system product business page assembly method and device of the present invention are applicable to products that require multiple business systems for multi-level review / application, such as supply chain financial products in the financial field. The business systems involved include, for example, the Puhui cloud platform, the trade and finance cloud platform, the electronic online banking platform, the bank-enterprise direct connection system, etc. Different systems serve different industry customer groups. Each product clearly involves the associated business system according to the differences in business scenarios and service customers. In specific implementation, all products that require multiple business systems for multi-level review / approval belong to the business system products described by the inventor.
[0080] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the acquisition, transmission, storage, use and processing of relevant data shall comply with the relevant laws, regulations and standards of relevant countries and regions.
[0081] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0082] In one embodiment of the present invention, a front-end page assembly system for business system products is provided to solve the problem that, in the prior art, for scenarios involving multiple business systems, the front-end pages of various business system products are developed in a silo-style, with duplicate development of functions and poor availability. In addition, the front-end pages have poor flexibility and cannot quickly respond to changes in business rules. When a new product is added, a separate form filling front-end page needs to be developed, resulting in a low code reuse rate.
[0083] Specifically, Figure 1 As shown, the front-end page assembly system of the business system product includes: a client 101 and a server 102 .
[0084] The client 101 is used to display the configuration interface provided by the server 102. In specific implementation, the client 101 can obtain the configuration interface from the server 102 according to the user request. The configuration interface is generated by the developer according to the pre-established business component model. The business component model includes a product library, a module library contained in the product library, a unit library contained in the module library, and a field library contained in the unit library.
[0085] The server 102 is used to receive configuration information input by the user through the configuration interface, wherein the configuration information includes product information, module information, unit information, and field information; generate a front-end page based on the configuration information and a pre-established technical component model, wherein the technical component model includes a technical component library for each type of unit; determine the business system of the product based on the product information, and send the front-end page to the business system of the product.
[0086] In some embodiments of this specification, the client may be a desktop computer, a tablet computer, a laptop computer, a smart phone, a digital assistant, a smart wearable device, etc. Among them, the smart wearable device may include a smart bracelet, a smart watch, smart glasses, a smart helmet, etc. Of course, the client is not limited to the above-mentioned electronic devices with a certain entity, and it can also be software running in the above-mentioned electronic devices.
[0087] Specifically, the product database records a product table, which includes the following fields: serial number, product English name, product Chinese name, product type, product business system, creation information (including creator, creation time, update time, update user name, update name), product description, product status, etc. For subsequent development needs, spare fields are also included. In specific implementation, the product table also includes the data type, key value, and comments of the field.
[0088] Each product has a module library, which records the module table of the product. The module table contains the module serial number, module code, module name, upper module code, module description, module status, module business system, creation information (including creator, creation time, update time, update user name, update name), etc. For the needs of subsequent development, spare fields are also included. Taking the field of supply chain finance as an example, the abstracted modules include business solutions, credit management, financing management, post-loan management, etc.
[0089] The unit library includes unit information, such as unit code, unit name, unit type, etc. The unit type includes form type and list type.
[0090] The field library includes field information, such as field type, field ID, field code, field name, field type reserved field, field default value, length limit (unit: number of words), number of columns occupied by the field, whether to upload attachments, etc.
[0091] Taking financing products as an example, the financing product table is mainly used to maintain the basic information of each financing product. The financing product module table mainly records the binding relationship between the product and each module. The financing unit detail information table mainly records the binding relationship between the product and the unit. The financing field information table mainly maintains the field information involved in all products. The financing field detail information table mainly records the binding relationship between the product and the field and the field extension attributes.
[0092] The common parts of the modules, units and field information that are not extracted can be standardized and reused, and the difference parts realize the interface configuration service to provide the front-end configuration page, which supports business personnel to configure the relationship between products, modules, units and fields. Specifically, the configuration interface is provided with configuration items for users to configure product, module, unit and field information. The unit type includes form type and list type. Correspondingly, the technical component library of the form type includes: text box component, text domain component, date component, drop-down box component, drop-down box multi-select component, magnifying glass component, number box component, amount box component. The technical component library of the table type includes: text box component, date component and amount box component. Each technical component in the technical component library contains component HTML code with empty parameters. When generating the front-end page, the component type in the technical component library is determined according to the unit type in the unit information, the component in the component type that matches the field type in the field information is determined, the field information is filled into the component, and the front-end page is generated according to the components of each field.
[0093] This embodiment assembles fields and technical components in an automated manner, which can reduce the difficulty of developing new product front-end pages, avoid repeated development, and improve the modification and development efficiency of new product front-end pages. At the same time, it also gradually completes the management of product standardization.
[0094] In one embodiment of the present invention, Figure 2 As shown, the business component model determination process includes:
[0095] Step 201, obtain the business process of the existing products in each business system. In detail, the business process of the product records the information of each link required for the product application.
[0096] Step 202, classify the existing products in each business system to obtain multiple product groups.
[0097] When this step is implemented, keywords in the product business process can be extracted, and the similarity between products can be calculated based on the product keywords, and the product classification can be achieved based on the product similarity. In specific implementation, the product classification can also be completed by calculating the similarity of the product names. The present invention does not limit the specific implementation steps of the classification.
[0098] Step 203: determine a product library based on the multiple product groups.
[0099] In specific implementation, each product group is a type of product, and all product groups are collected together to form a product library.
[0100] Step 204, determining the business links of each product group according to the business process of each product group.
[0101] When this step is implemented, the business processes of products in the same product group are analyzed simultaneously. In some implementations, it includes: first analyzing the business process of each product in the product group to determine the business link of the product; then counting the business links of each product in the same product group, if the proportion of a certain business link in the product group is greater than a preset value, then the business link is determined to be the business link of the product group. For example, the product group contains 10 products, and business link 1 exists in 8 products, then the proportion of business link 1 is 8 / 10=0.8, which is greater than the preset value 0.5, then business link 1 is determined to be the business link of the product group.
[0102] The business links of each product in this application refer to the different links in different application directions / products. Taking the bank supply chain product as an example, the business links involved include: plan approval, financing application, loan issuance and post-loan management, etc.
[0103] Step 205, generating a module library for each product according to the business links of each product group.
[0104] In this step, each business link of the product group is a module of the product.
[0105] Step 206, classify the business information of each business link of each product group, and generate a unit library of each module according to the classification result.
[0106] When implementing this step, the business information of each link is classified and divided. When implementing it specifically, it can be divided according to the type of business information. Taking the financing application module in the **loan product as an example, the units in the unit library obtained according to the division of business information include: business plan information, invoice information, loan information, accounts receivable information, guarantee information, supplier information, loan information, autonomous payment information and account information.
[0107] Step 207: convert various types of business information of each business link of each product group into system fields, and generate a field library of each unit according to the system fields.
[0108] When this step is implemented, the business information can be converted into system fields by extracting keywords from the business information.
[0109] In one implementation, a business component model obtained by dividing a product group is as follows: Figure 3 and Figure 4 As shown, units can be shared between different modules.
[0110] This embodiment can analyze the common information of products by analyzing the business processes of existing products in the business system, that is, the product library, module library, unit library and field library included in the business component model. Based on the business component model, the configuration interface can be designed to improve the efficiency of users developing front-end business filling pages.
[0111] In one embodiment of the present invention, the technical component model is determined by analyzing the types of fields in the field libraries of existing products. Specifically, Figure 4 As shown, the technical components include form components and table components. The technical component library of the form type includes: text box components, text field components, date components, drop-down box components, drop-down box multi-select components, magnifying glass components, number box components, and amount box components. The technical component library of the table type includes: text box components, date components, and amount box components.
[0112] In one embodiment of the present invention, the unit information and field information in the business component model are stored in a vertical table, and each row of data in the vertical table records the field information and unit information. For example, the vertical table storage format is as follows: Figure 5 As shown, multiple fields in each product involved are split up, and each field, corresponding attributes and rules are associated with the unit number and saved as a record in the library table.
[0113] Any number of products can split their fields and save them in the database table, so that they can adapt to all products and can be expanded infinitely. When adding new products, you only need to check the configured units and fields to complete the field integration of the interface. Development is implemented on the basis of standards, which greatly improves development efficiency. While achieving standardization, the number of data storage tables is greatly reduced, greatly reducing the complexity of business data.
[0114] In one embodiment of the present invention, a front-end page assembly method for a business system product is also provided. Figure 6 As shown, including:
[0115] Step 601, receiving configuration information input by the user through the configuration interface, the configuration information includes product information, module information, unit information, and field information. The configuration interface is generated according to a pre-established business component model, and the business component model includes a product library, a module library contained in the product library, a unit library contained in the module library, and a field library contained in the unit library.
[0116] Specifically, the business component model is as follows Figure 3 As shown, each type of product includes a module library, each module in the module library includes a unit library, and each unit library includes multiple fields.
[0117] Step 602: Generate a front-end page according to the configuration information and a pre-established technical component model, wherein the technical component model includes a technical component library of each type of unit.
[0118] Step 603, determining the business system of the product according to the product information, and sending the front-end page to the business system of the product.
[0119] This embodiment assembles fields and technical components in an automated manner, which can reduce the difficulty of developing new product front-end pages of various business systems, avoid repeated development, and improve the modification and development efficiency of new product front-end pages. At the same time, it also gradually completes the management of product standardization.
[0120] In one embodiment of the present invention, Figure 7 As shown, the above step 601 receives the configuration information input by the user through the configuration interface, including:
[0121] Step 701: receiving product information input by a user according to a product configuration interface.
[0122] In detail, the product configuration interface is provided with field input controls including product information for users to configure product information.
[0123] Step 702: According to the product information, query the module list under the product from the business component model, generate a module configuration interface according to the query module list and send it to the user end.
[0124] When implementing this step, you can query the list of modules included in the product from the business component model based on the product name / product number in the product information, and generate a module configuration interface based on the queried module list. The module configuration interface displays selection controls for the module list and configuration controls for other information included in the module, for users to configure the module information.
[0125] Step 703: receiving module information input by the user according to the module configuration interface.
[0126] Step 704, according to the product information and module information, query the unit list under the product module and the field list in the unit from the business component model, generate a field configuration interface according to the queried unit list and field list and send it to the user end.
[0127] In the implementation mode, the field configuration interface is as follows Figure 8 As shown, the first line of each column is a unit configuration control, and the second line is a field configuration control. Each unit can also allow users to add or edit unit field information.
[0128] Step 705: receiving unit information and field information input by the user according to the field configuration interface.
[0129] This embodiment sets the configuration interface according to the cascading relationship of the business component model, which enables the user to input configuration information step by step, thereby improving configuration efficiency.
[0130] In one embodiment of the present invention, the process of receiving configuration information input by the user further includes:
[0131] Query the top N historical configuration information with the matching degree with the configuration information input by the user in real time from the historical database, where N is a positive integer and can be set by the user according to the needs. The matching degree between the configuration information input by the user and the historical configuration information can be determined by keyword matching and scoring according to the matching results;
[0132] Generate a prompt page based on the queried historical configuration information and send it to the client;
[0133] Receive historical configuration information selected by the user according to the prompt page;
[0134] An editing interface is generated based on the historical configuration information selected by the user and sent to the client for the user to modify the configuration information.
[0135] This embodiment can simplify the user configuration steps and improve the user configuration efficiency by displaying historical configuration information to the user.
[0136] In one embodiment of the present invention, Fig. 9 As shown, the above step 602 generates a front-end page according to the configuration information and the pre-established technical component model, including:
[0137] Step 901, determining the unit type according to the unit information in the configuration information.
[0138] Step 902: Determine the technical component of the field from the technical component model according to the unit type and the field information included in the unit information. Specifically, the field information includes the type of the field, and the technical component can be determined by the field type.
[0139] When the unit type is form, the field will be rendered as a form element. All field types support field code (fieldCode), field name (fieldName), required or not (requiredFlag), number of columns occupied by the field (fieldColNum), whether to edit when adding (creditEdit), whether to edit when modifying (modifyEdit), whether to edit when accepting (acceptEdit), and whether to edit when approving (approveEdit). In addition, the type attributes supported by different fields are as follows:
[0140] a. Text box (input[type="text"]), supports the following attributes: regular check (regexCheck), field length (fieldLength), field default value (fieldDefault);
[0141] b. Textarea, supporting properties: regexCheck, fieldLength, fieldDefault
[0142] c. Date (bootstrap-datepicker), supports attributes: field default value (fieldDefault);
[0143] d. Drop-down single choice (bootstrap-selectpicker), supporting attributes: field default value (fieldDefault), drop-down list (filedSelectList);
[0144] e. Drop-down multiple selection (this type is not supported, if configured, it is the same as drop-down single selection);
[0145] f. Magnifier (input[type="text"] and button combination), supports the following attributes: regex check (regexCheck), field default value (fieldDefault), magnifier (magnifierCheck);
[0146] g. Number box (input[type="number"]), supports the following attributes: regular check (regexCheck), field length (fieldLength), field default value (fieldDefault);
[0147] h. Amount box (input[type="text"] is used to process the amount format), supporting attributes: field length (fieldLength), field default value (fieldDefault);
[0148] i. Address (this type is not supported, such as configuration in the text box);
[0149] j. Single form window (this type is not supported).
[0150] When a field is in the "non-editable" state, except for the text field, the front-end will ignore the field type (fieldType) and directly render it as a text box.
[0151] When the cell type is table, under the table type, the field type only supports three types: text box, date, and amount box. The filters for date and amount are automatically generated by the code and are displayed in the form of yyyy-MM-dd and thousand separator plus two decimal places respectively. The content of the text box is supplemented by the developer by the filter method, which will be implemented by repeatedly declaring public methods.
[0152] Step 903: determine the title information according to the product information and module information in the configuration information.
[0153] Step 904, generating HTML code according to the technical components of the field and the field information.
[0154] When step 903 and step 904 are implemented, the configuration information is first converted into two common JSON / XML structured data models, and then the structured data models are mapped to technical components.
[0155] Step 905, generating a front-end page according to the HTML code and title information.
[0156] Based on the same inventive concept, the present invention also provides a front-end page assembly device for a business system product, as described in the following embodiments. Since the principle of solving the problem by the front-end page assembly device for a business system product is similar to that of the front-end page assembly method for a business system product, the implementation of the front-end page assembly device for a business system product can refer to the front-end page assembly method for a business system product, and the repeated parts will not be repeated.
[0157] Specifically, Fig.10 As shown, the front-end page assembly device of the business system product includes:
[0158] Configuration unit 1001, used to receive configuration information input by a user through a configuration interface, wherein the configuration information includes product information, module information, unit information, and field information. The configuration interface is generated according to a pre-established business component model, wherein the business component model includes a product library, a module library, a unit library, and a field library;
[0159] A generating unit 1002 is used to generate a front-end page according to the configuration information and a pre-established technical component model, wherein the technical component model includes a technical component library of each type of unit;
[0160] The sending unit 1003 is used to determine the business system of the product according to the product information, and send the front-end page to the business system of the product.
[0161] The present invention conducts business modeling and technical modeling for each product under the same business field. The business modeling adopts a four-layer structure of "product-module-unit-field" for modeling. After modeling, a configurable page is provided to configure the relevant attributes of the four-layer structure. By classifying the products and then decomposing the products into multiple modules, each module has independent units, fields and functions, which can achieve product maintainability and scalability. Modular design makes product configuration more flexible and can quickly adapt to business needs. Technical modeling adopts the construction of a standard front-end component library such as "form component, text box component, list component" with common front-end components. After the business personnel configure the meta-attributes of the business modeling through the interface, the system can automatically complete the rendering of the front-end configuration page according to the mapping of the attribute technical components, reduce the development workload, and improve the efficiency of system docking.
[0162] After the product is deployed, it can also be continuously maintained and upgraded through business component modules and technical component modules to meet business changes and needs.
[0163] This embodiment assembles fields and technical components in an automated manner, which can reduce the difficulty of developing new product front-end pages, avoid repeated development, and improve the modification and development efficiency of new product front-end pages. At the same time, it also gradually completes the management of product standardization.
[0164] The database table of the embodiment of the present invention can be implemented by using a relational database or a NoSql database, and the related functional design can be completed by using the Go language or other languages. Through the microservice architecture, products, modules, and fields are set in different microservice modules, and the design function is implemented through lightweight remote calls.
[0165] In one embodiment of the present invention, a computer device is also provided, such as Fig.11As shown, the computer device 1102 may include one or more processors 1104, such as one or more central processing units (CPUs), each of which may implement one or more hardware threads. The computer device 1102 may also include any memory 1106, which is used to store any kind of information such as code, settings, data, etc. Non-limitingly, for example, the memory 1106 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any memory may use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent a fixed or removable component of the computer device 1102. In one case, when the processor 1104 executes an associated instruction stored in any memory or a combination of memories, the computer device 1102 may perform any operation of the associated instruction. The computer device 1102 also includes one or more drive mechanisms 1108 for interacting with any memory, such as a hard disk drive mechanism, an optical disk drive mechanism, etc.
[0166] The computer device 1102 may also include an input / output module 1110 (I / O) for receiving various inputs (via input devices 1112) and for providing various outputs (via output devices 1114). A specific output mechanism may include a presentation device 1116 and an associated graphical user interface 1118 (GUI). In other embodiments, the input / output module 1110 (I / O), input device 1112, and output device 1114 may not be included, and the computer device 1102 may be used as a computer device in a network. The computer device 1102 may also include one or more network interfaces 1120 for exchanging data with other devices via one or more communication links 1122. One or more communication buses 1124 couple the components described above together.
[0167] The communication link 1122 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 1122 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.
[0168] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are executed.
[0169] An embodiment of the present invention further provides a computer-readable instruction, wherein when a processor executes the instruction, the program therein causes the processor to execute the steps of the above method.
[0170] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor of a computer device, the method described in any of the above embodiments is implemented.
[0171] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0172] It should also be understood that in the embodiments of the present invention, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects before and after are in an "or" relationship.
[0173] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0174] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0175] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.
[0176] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0177] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0178] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0179] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A front-end page assembly method for a business system product, characterized in that: include: Receiving configuration information input by a user through a configuration interface, wherein the configuration information includes product information, module information, unit information, and field information, wherein the configuration interface is generated according to a pre-established business component model, wherein the business component model includes a product library, a module library included in the product library, a unit library included in the module library, and a field library included in the unit library; Generate a front-end page according to the configuration information and a pre-established technical component model, wherein the technical component model includes a technical component library of each type of unit; The business system of the product is determined according to the product information, and the front-end page is sent to the business system of the product.
2. The method according to claim 1, characterized in that The business component model determination process includes: Obtain the business processes of existing products in each business system; Classify existing products in each business system to obtain multiple product groups; Determine the product library based on multiple product groups; Determine the business links of each product group based on their business processes; Generate the module library of each product according to the business links of each product group; Classify the business information of each business link of each product group, and generate the unit library of each module according to the classification results; Convert various types of business information of each business link of each product group into system fields, and generate field libraries of each unit based on the system fields.
3. The method according to claim 1, characterized in that The unit information and field information are stored in a vertical table, and each row of data in the vertical table records the field information and unit information.
4. The method according to claim 1, characterized in that The configuration information received from the user through the configuration interface includes: Receive product information input by the user according to the product configuration interface; According to the product information, query the module list under the product from the business component model, generate a module configuration interface according to the query module list and send it to the user end; Receive module information input by the user according to the module configuration interface; According to the product information and module information, query the unit list and the field list in the unit under the product module from the business component model, generate a field configuration interface according to the queried unit list and field list, and send it to the user end; Receive unit information and field information input by the user according to the field configuration interface.
5. The method according to claim 1, characterized in that Generate front-end pages based on configuration information and pre-established technical component models, including: Determine the unit type according to the unit information in the configuration information; Determine the technical component of the field from the technical component model according to the unit type and the field information included in the unit information; Determine the title information according to the product information and module information in the configuration information; Generate HTML code based on the technical components and field information of the field; Generate the front-end page based on the HTML code and title information.
6. The method according to claim 5, characterized in that The unit types include: form type and table type; The technical component library of the form type includes: text box component, text field component, date component, drop-down box component, drop-down box multiple selection component, magnifying glass component, number box component, amount box component; The technical component library of the table type includes: a text box component, a date component and an amount box component.
7. The method according to claim 1, characterized in that The process of receiving the configuration information input by the user also includes: Query the top N historical configuration information with the highest matching degree with the configuration information input by the user in real time from the historical database, where N is a positive integer; Generate a prompt page based on the queried historical configuration information and send it to the client; Receive historical configuration information selected by the user according to the prompt page; An editing interface is generated based on the historical configuration information selected by the user and sent to the client for the user to modify the configuration information.
8. A front-end page assembly device for a business system product, characterized in that: include: A configuration unit, used to receive configuration information input by a user through a configuration interface, wherein the configuration information includes product information, module information, unit information, and field information. The configuration interface is generated according to a pre-established business component model, wherein the business component model includes a product library, a module library, a unit library, and a field library; A generating unit, used to generate a front-end page according to the configuration information and a pre-established technical component model, wherein the technical component model includes a technical component library of each type of unit; A sending unit is used to determine the business system of the product according to the product information, and send the front-end page to the business system of the product.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor of a computer device, the method according to any one of claims 1 to 7 is implemented.
