Front-end control interface construction method and system, storage medium and electronic equipment

By building configuration files and preset component generators, the front-end control interface is generated, and the front-end logic overlapping caused by the back-end definition of interface parameters and boundary conditions is solved, reducing R&D costs and improving software R&D efficiency.

CN119088383APending Publication Date: 2024-12-06CHINA TELECOM ARTIFICIAL INTELLIGENCE TECHNOLOGY (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410917820.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

During the Internet software development process, since the interface parameters and boundary conditions are defined by the backend, and the views are customized by the front-end, the core logic content of the front-end and back-end is overlapping, increasing R&D costs.

Method used

By building configuration files, using preset attributes and parsing scripts to generate panel attribute codes, and combining preset component generators to generate front-end control interfaces, reducing front-end workload and reducing front-end communication costs.

Benefits of technology

It effectively reduces the front-end workload and front-back-end communication costs, solves the problem of repeated definition of interface parameters and boundary conditions, and improves the efficiency of software research and development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088383A_ABST
    Figure CN119088383A_ABST
Patent Text Reader

Abstract

The invention discloses a front-end control interface construction method and system, a storage medium and electronic equipment. The method comprises the steps that a configuration file is constructed according to preset attributes, the preset attributes are attributes corresponding to a front-end control interface, and the configuration file comprises the preset attributes; calling a preset analysis script to analyze the configuration file to obtain an attribute analysis result; determining a panel attribute code according to the attribute analysis result and a preset template; and generating a front-end control interface by utilizing a preset component generator according to the panel attribute code. The technical problem that in the current mainstream software research and development process, parameters, boundary conditions and the like of an interface are often defined by a rear end, a view is generated by front-end customization, core logic contents of the front end and the rear end are overlapped, and the research and development cost is high is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a front-end control interface construction method, system, storage medium and electronic device. Background Art

[0002] In the process of Internet software development, web pages basically have the need to generate control interfaces, which include the following contents: text input box: used for users to input text or strings; number input box: used for users to input numbers or values; check box: used for users to select one or more options; radio button: used for users to select an option from multiple options; drop-down menu: used for users to select an option from predefined options; slider: used for users to select a value or range by dragging the slider; switch button: used for users to switch the switch state, such as turning on or off a function; file upload: used for users to select and upload files; calendar selector: used for users to select dates or date ranges; chart and graphic interface: used to display visual charts and graphics of data, such as line charts, bar charts, pie charts, etc.; map interface: used to display geographic location or map information, and perform related operations; rich text editor: used for users to edit and format text content; password input box: used for users to enter passwords or sensitive information; button: used to trigger specific operations or functions.

[0003] In the current mainstream software development process, interface parameters and boundary conditions are often defined by the backend, while views are customized and generated by the frontend. This leads to the following problems: the core logic content of the frontend and backend overlaps, resulting in high R&D costs, including: repeated interface field definitions, repeated boundary condition definitions, repeated validation rule definitions, etc.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a front-end control interface construction method, system, storage medium and electronic device to at least solve the technical problem that in the current mainstream software development process, the parameters and boundary conditions of the interface are often defined by the back-end, while the view is customized and generated by the front-end, resulting in overlap in the core logic content of the front-end and back-end, leading to high R&D costs.

[0006] According to the first aspect of the embodiment of the present application, a method for constructing a front-end control interface is provided, including: constructing a configuration file according to preset attributes, wherein the preset attributes are attributes corresponding to the front-end control interface, and the configuration file includes the preset attributes; calling a preset parsing script to parse the configuration file to obtain an attribute parsing result; determining a panel attribute code according to the attribute parsing result and a preset template; and generating a front-end control interface according to the panel attribute code using a preset component generator.

[0007] Optionally, constructing a configuration file according to preset attributes includes: constructing an attribute code block according to the preset attributes, wherein the attribute code block is used to represent the attributes of the front-end control interface; and constructing a configuration file according to the attribute code block.

[0008] Optionally, calling a preset parsing script to parse the configuration file to obtain a property parsing result includes: calling a preset parsing script to perform keyword matching on the configuration file according to preset keywords to obtain a matching result; constructing a JSON object according to the matching result; and determining the property parsing result according to the JSON object.

[0009] Optionally, the panel attribute code is determined according to the attribute parsing result and the preset template, including: traversing the attribute parsing result and extracting keywords in the JSON object; filling the keywords one by one into the slots in the preset template to obtain the slot filling result; and generating the panel attribute code according to the slot filling result.

[0010] Optionally, the keywords are filled one-to-one into the slot-filling positions in the preset template to obtain the slot-filling results, including: filling the keywords one-to-one into the slot-filling positions in the preset template to obtain the slot-filled template; traversing the slot-filling positions of the slot-filled template to obtain the traversal results; in response to the traversal results indicating that there are no vacancies in the slot-filling positions, using the slot-filled template as the slot-filling result.

[0011] Optionally, the front-end control interface construction method also includes: in response to the traversal result indicating that there are vacancies in the filling slots, determining the number of vacancies; in response to the number of vacancies being greater than a preset number of vacancies, outputting a slot filling failure prompt message.

[0012] Optionally, the front-end control interface construction method further includes: in response to a change in the configuration file, obtaining the latest configuration file and triggering a call instruction; in response to the call instruction, calling a preset parsing script to parse the latest configuration file to obtain a property parsing result.

[0013] Optionally, the front-end control interface construction method also includes: monitoring the front-end control interface to obtain monitoring results; in response to the monitoring results indicating that the parameters of the front-end control interface have changed, obtaining the latest parameters; verifying the validity of the latest parameters to obtain verification results; in response to the verification results indicating that the latest parameters are valid, updating the front-end control interface according to the latest parameters.

[0014] According to a second aspect of the embodiment of the present application, a front-end control interface construction system is also provided, including:

[0015] A construction module is used to construct a configuration file based on preset properties, wherein the preset properties are properties corresponding to the front-end control interface, and the configuration file includes the preset properties; a parsing module is used to call a preset parsing script to parse the configuration file to obtain a property parsing result; a determination module is used to determine a panel property code based on the property parsing result and a preset template; a generation module is used to generate a front-end control interface based on the panel property code using a preset component generator.

[0016] Optionally, the construction module is further used to: construct an attribute code block according to preset attributes, wherein the attribute code block is used to represent the attributes of the front-end control interface; and construct a configuration file according to the attribute code block.

[0017] Optionally, the parsing module is further used to: call a preset parsing script, perform keyword matching on the configuration file according to preset keywords, and obtain matching results; construct a JSON object according to the matching results; and determine the attribute parsing results according to the JSON object.

[0018] Optionally, the determination module is also used to: traverse the attribute parsing results and extract keywords in the JSON object; fill the keywords one by one into the slots in the preset template to obtain the slot filling results; and generate the panel attribute code according to the slot filling results.

[0019] Optionally, the determination module is also used to: fill the keywords one by one into the slot filling positions in the preset template to obtain the filled template; traverse the slot filling positions of the filled template to obtain the traversal results; in response to the traversal results indicating that there are no vacancies in the slot filling positions, use the filled template as the slot filling result.

[0020] Optionally, the determination module is further used to: in response to the traversal result indicating that there are vacancies in the slots to be filled, determine the number of vacancies; in response to the number of vacancies being greater than a preset number of vacancies, output a prompt message indicating that the slots have failed to be filled.

[0021] Optionally, the parsing module is further used to: in response to a change in the configuration file, obtain the latest configuration file and trigger a call instruction; in response to the call instruction, call a preset parsing script to parse the latest configuration file to obtain a property parsing result.

[0022] Optionally, the generation module is also used to: monitor the front-end control interface to obtain monitoring results; in response to the monitoring results indicating that the parameters of the front-end control interface have changed, obtain the latest parameters; verify the validity of the latest parameters to obtain verification results; in response to the verification results indicating that the latest parameters are valid, update the front-end control interface according to the latest parameters.

[0023] According to the third aspect of the embodiment of the present application, a non-volatile storage medium is also provided, in which a program is stored, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the above front-end control interface construction method.

[0024] According to a fourth aspect of an embodiment of the present application, an electronic device is also provided, including: a memory and a processor, the processor being used to run a program stored in the memory, wherein the above front-end control interface construction method is executed when the program is running.

[0025] According to the fifth aspect of the embodiment of the present application, a computer program product is also provided, including a computer program, which implements the above front-end control interface construction method when executed by a processor.

[0026] In the embodiment of the present application, firstly, a configuration file is constructed according to preset attributes, wherein the preset attributes are attributes corresponding to the front-end control interface, and the configuration file includes the preset attributes; then the preset parsing script is called to parse the configuration file to obtain the attribute parsing result; according to the attribute parsing result and the preset template, the panel attribute code is determined; finally, according to the panel attribute code, the front-end control interface is generated using the preset component generator. The present invention constructs a configuration file according to the preset attributes at the back end and parses the configuration file to obtain the attribute parsing result, then determines the panel attribute code according to the attribute parsing result and the preset attributes, and finally generates the front-end control interface according to the panel attribute code using the preset component generator defined at the front end. Except for defining the preset component generator, the rest of the construction steps are completed by the back end, thereby achieving the purpose of reducing the workload of the front end and the communication cost between the front and back ends, thereby solving the problem that in the current mainstream software development process, the parameters and boundary conditions of the interface are often defined by the back end, while the view is customized and generated by the front end, and the core logic content of the front and back ends overlaps, resulting in high R&D cost technical problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0028] Figure 1 is a flow chart of a method for constructing a front-end control interface according to one embodiment of the present invention;

[0029] Figure 2 is an exemplary flow chart of a method for constructing a front-end control interface according to one embodiment of the present invention;

[0030] Figure 3 It is a structural block diagram of a front-end control interface construction system according to one embodiment. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.

[0032] 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, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] According to one embodiment of the present invention, an embodiment of a method for constructing a front-end control interface is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0034] The method embodiment can be executed in an electronic device including a memory and a processor, a similar control device or a system. Taking an electronic device as an example, the electronic device may include one or more processors and a memory for storing data. Optionally, the electronic device may also include a communication device and a display device for communication functions. It can be understood by a person of ordinary skill in the art that the above structural description is only illustrative and does not limit the structure of the above electronic device. For example, the electronic device may also include more or fewer components than the above structural description, or have a configuration different from the above structural description.

[0035] The processor may include one or more processing units. For example, the processor may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microcontroller unit (MCU), a field-programmable gate array (FPGA), a neural network processor (NPU), a tensor processing unit (TPU), an artificial intelligence (AI) type processor, and the like. Among them, different processing units may be independent components or integrated into one or more processors. In some instances, the electronic device may also include one or more processors.

[0036] The memory can be used to store computer programs, such as storing the computer program corresponding to the front-end control interface construction method in the embodiment of the present invention, and the processor implements the above-mentioned front-end control interface construction method by running the computer program stored in the memory. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0037] The communication device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the communication device includes a network adapter (network interface controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the communication device can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0038] The display device may be, for example, a touch screen type liquid crystal display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of a mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), and a user may interact with the GUI by finger contact and / or gestures on a touch-sensitive surface, wherein the human-computer interaction functions here may optionally include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music and / or web browsing, etc. The executable instructions for executing the above human-computer interaction functions are configured / stored in a computer program product or a readable storage medium executable by one or more processors.

[0039] In this embodiment, a method for constructing a front-end control interface running on an electronic device is provided. Figure 1 is a flow chart of a method for constructing a front-end control interface according to one embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0040] Step S101, constructing a configuration file according to preset attributes, wherein the preset attributes are attributes corresponding to the front-end control interface, and the configuration file includes the preset attributes.

[0041] Specifically, when constructing the front-end control interface, it is first necessary to construct a configuration file containing all preset attributes according to the preset attributes. The preset attributes in the configuration file can be embodied in the form of code blocks.

[0042] Optionally, in some embodiments of the present invention, the preset attributes include a text input box: used for users to input text or strings; a number input box: used for users to input numbers or values; a check box: used for users to select one or more options; a radio button: used for users to select an option from multiple options; a drop-down menu: used for users to select an option from predefined options; a slider: used for users to select a value or range by dragging the slider; a switch button: used for users to switch the switch state, such as turning a function on or off; file upload: used for users to select and upload files; a calendar selector: used for users to select a date or a date range; charts and graphical interfaces: used to display visual charts and graphs of data, such as line charts, bar charts, pie charts, etc.; a map interface: used to display geographic locations or map information, and perform related operations; a rich text editor: used for users to edit and format text content; a password input box: used for users to enter passwords or sensitive information; a button: used to trigger specific operations or functions.

[0043] Step S102, calling a preset parsing script to parse the configuration file to obtain a property parsing result.

[0044] Specifically, after the configuration file is constructed in step S101, a preset parsing script is called to parse the configuration file to obtain a property parsing result.

[0045] Exemplarily, the input content is the configuration file code of the control interface customized by the back-end, and the parsed result is JSON data that can be parsed and identified by the front-end.

[0046] Step S103, determining the panel attribute code according to the attribute parsing result and the preset template.

[0047] Specifically, after the attribute parsing result is determined in step S102, the attribute parsing result can be merged with the preset template to obtain the panel attribute code. The components and component parameters required by the front-end control interface need to be determined through the attribute parsing result parsed in step S103. After the parsing is completed, the front-end components, default values, value ranges and other attributes required by the front-end control interface can be determined.

[0048] It should be noted that the preset template is a set of template codes for front-end components, which can include input boxes, radio buttons, check boxes, etc.

[0049] It should be noted that the panel attribute code is the corresponding front-end interface code generated based on the attribute code defined in the back-end.

[0050] Step S104, generating a front-end control interface according to the panel attribute code using a preset component generator.

[0051] Specifically, the general preset component generator constructed by the front-end developers can generate different front-end control interfaces according to different panel attribute codes.

[0052] In the embodiment of the present application, firstly, a configuration file is constructed according to preset attributes, wherein the preset attributes are attributes corresponding to the front-end control interface, and the configuration file includes the preset attributes; then the preset parsing script is called to parse the configuration file to obtain the attribute parsing result; according to the attribute parsing result and the preset template, the panel attribute code is determined; finally, according to the panel attribute code, the front-end control interface is generated using the preset component generator. The present invention constructs a configuration file according to the preset attributes at the back end and parses the configuration file to obtain the attribute parsing result, then determines the panel attribute code according to the attribute parsing result and the preset attributes, and finally generates the front-end control interface according to the panel attribute code using the preset component generator defined at the front end. Except for defining the preset component generator, the rest of the construction steps are completed by the back end, thereby achieving the purpose of reducing the workload of the front end and the communication cost between the front and back ends, thereby solving the problem that in the current mainstream software development process, the parameters and boundary conditions of the interface are often defined by the back end, while the view is customized and generated by the front end, and the core logic content of the front and back ends overlaps, resulting in high R&D cost technical problems.

[0053] Optionally, in step S101, constructing a configuration file according to preset attributes may include the following steps:

[0054] Step S1011, constructing an attribute code block according to preset attributes, wherein the attribute code block is used to represent the attributes of the front-end control interface;

[0055] Step S1012, constructing a configuration file according to the attribute code block.

[0056] Specifically, in the configuration file, different attribute code blocks correspond to different preset attributes, and the attribute code blocks corresponding to multiple preset attributes together constitute the configuration file.

[0057] Optionally, in step S102, calling a preset parsing script to parse the configuration file to obtain a property parsing result may include the following steps:

[0058] Step S1021, calling a preset parsing script, performing keyword matching on the configuration file according to preset keywords, and obtaining a matching result;

[0059] Step S1022, constructing a JSON object according to the matching result;

[0060] Step S1023: Determine the attribute parsing result according to the JSON object.

[0061] Specifically, according to the preset keywords, regular matching is performed on the code in the configuration file, and the content generated by the matching includes: boundary values, fields, data types, interaction logic, etc., and then the content generated by the matching is constructed into a JSON object, and the JSON object is used as the attribute parsing result.

[0062] Optionally, in step S103, determining the panel attribute code according to the attribute parsing result and the preset template may include the following steps:

[0063] Step S1031, traverse the attribute parsing results and extract keywords in the JSON object;

[0064] Step S1032, fill the keywords into the slots in the preset template one by one, and obtain the slot filling result;

[0065] Step S1033, generating a panel attribute code according to the slot filling result.

[0066] Specifically, when determining the panel attribute code based on the attribute parsing results and the preset template, first traverse the attribute parsing results in JSON format, extract the keywords in the JSON data, and then fill the extracted keywords into the corresponding slots in the preset template. After filling the slots in the preset template, the panel attribute code can be obtained.

[0067] Optionally, in step S1032, the keywords are filled into the slots in the preset template one by one to obtain the slot filling result, which may include the following steps:

[0068] Step S1032a, fill the keywords into the slots in the preset template one by one, and obtain a template after the slots are filled;

[0069] Step S1032b, traversing the slot filling positions of the slot-filled template to obtain a traversal result;

[0070] Step S1032c, in response to the traversal result indicating that there is no empty slot to be filled, the template after the slot is filled is used as the slot filling result.

[0071] Specifically, when filling the slots of the preset template, it is necessary to traverse the template after the slots are filled to determine whether there are empty slots in the template after the slots are filled. If there are no empty slots in the template after the slots are filled, the template after the slots are filled will be used as the slot filling result.

[0072] Optionally, the front-end control interface construction method further includes:

[0073] Step S1032d, in response to the traversal result indicating that there are vacancies in the slots to be filled, determining the number of vacancies;

[0074] Step S1032e: In response to the number of vacancies being greater than the preset number of vacancies, outputting a slot filling failure prompt message.

[0075] Specifically, the template after slot filling is traversed, and if the number of empty slots in the slot filling position is greater than the preset number of empty slots, the slot filling is deemed to have failed, and a slot filling failure prompt message is output.

[0076] Optionally, the front-end control interface construction method further includes:

[0077] Step S105, in response to a change in the configuration file, obtaining the latest configuration file and triggering a call instruction;

[0078] Step S106, in response to the calling instruction, calling a preset parsing script to parse the latest configuration file to obtain a property parsing result.

[0079] Specifically, when a change in the configuration file is detected, it proves that the configuration file has been updated and the latest configuration file needs to be obtained, and a call instruction is triggered at the same time. When the call instruction is received, the preset parsing script is called to parse the latest configuration file to obtain the attribute parsing result.

[0080] It can be understood that the specific process of parsing the latest configuration file in this embodiment is the same as that described in the embodiment corresponding to step S102 above.

[0081] Optionally, the front-end control interface construction method further includes:

[0082] Step S107, monitoring the front-end control interface to obtain monitoring results;

[0083] Step S108, in response to the monitoring result indicating that the parameters of the front-end control interface have changed, obtaining the latest parameters;

[0084] Step S109, verifying the validity of the latest parameters to obtain a verification result;

[0085] Step S110, in response to the verification result indicating that the latest parameters are valid, the front-end control interface is updated according to the latest parameters.

[0086] Specifically, when the user operates the front-end control interface, the monitoring results show that the parameters of the front-end control interface have changed. At this time, it is necessary to obtain the latest parameters generated by the user operation, and then verify the validity of the latest parameters according to the preset verification strategy. If the verification results show that the latest parameters are valid, the front-end control interface is updated according to the latest parameters to obtain an updated front-end control interface.

[0087] For example, refer to Figure 2 In some embodiments of the present invention, the front-end control interface construction method includes the following steps:

[0088] 1. Write the controller code on the back end, including all the properties that the control interface needs to provide to the front end, encapsulate it into a class (configuration file), and call the core code parsing script (preset parsing script) as a separate file.

[0089] 2. The core code parsing script matches the panel code in the configuration file by keywords, and generates a JSON file. The file information includes: apikey, maximum and minimum values, attribute type, etc., and defines an interface to send this file information.

[0090] 4. The front end predefines a prefabricated slot-filling template (preset template). The front end calls the interface to read the content of the JSON object generated by the back end keyword script and traverses and parses it. The parsed keyword content is filled into the slot-filling position of the preset template to generate the panel attribute code after the slot is filled.

[0091] 3. The front-end developers define a general component generator, which can generate a panel interface that is directly visible to the user by combining the panel attribute code after filling in the slots.

[0092] 4. The front-end and back-end establish a connection through the WebSocket protocol to exchange data between the two parties.

[0093] 5. When the user operates the control interface, the front end sends the panel data of the user operation. Since the core information of the front end is generated by the back end, there are no complex boundary and format issues. Therefore, the back end only needs to perform a simple verification of the data content after receiving it. After the verification is passed, it will be stored and a success message will be sent.

[0094] 6. After the front end receives the success information, it will modify the interface content synchronously, thus completing the entire process.

[0095] 7. When the core code of the panel is modified, the core code parsing script will be called again, and the JSON information will be updated synchronously. At this time, the front-end content will also be updated in real time.

[0096] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0097] In this embodiment, a front-end control interface construction system is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0098] Figure 3 is a structural block diagram of a front-end control interface construction system according to one embodiment of the present invention. Figure 3 As shown, taking the front-end control interface construction system 200 as an example, the system includes: a construction module 201, which is used to construct a configuration file according to preset attributes, wherein the preset attributes are attributes corresponding to the front-end control interface, and the configuration file includes the preset attributes; a parsing module 202, which is used to call a preset parsing script to parse the configuration file to obtain an attribute parsing result; a determination module 203, which is used to determine a panel attribute code according to the attribute parsing result and a preset template; and a generation module 204, which is used to generate a front-end control interface according to the panel attribute code using a preset component generator.

[0099] Optionally, the construction module 201 is further used to: construct an attribute code block according to preset attributes, wherein the attribute code block is used to represent the attributes of the front-end control interface; and construct a configuration file according to the attribute code block.

[0100] Optionally, the parsing module 202 is further used to: call a preset parsing script, perform keyword matching on the configuration file according to preset keywords, and obtain matching results; construct a JSON object according to the matching results; and determine the attribute parsing result according to the JSON object.

[0101] Optionally, the determination module 203 is further used to: traverse the attribute parsing results and extract keywords in the JSON object; fill the keywords one by one into the slots in the preset template to obtain the slot filling results; and generate the panel attribute code according to the slot filling results.

[0102] Optionally, the determination module 203 is also used to: fill the keywords one by one into the slot filling positions in the preset template to obtain the slot-filled template; traverse the slot filling positions of the slot-filled template to obtain a traversal result; in response to the traversal result indicating that there are no vacancies in the slot filling positions, use the slot-filled template as the slot filling result.

[0103] Optionally, the determination module 203 is further used to: in response to the traversal result indicating that there are vacancies in the slots to be filled, determine the number of vacancies; in response to the number of vacancies being greater than a preset number of vacancies, output a prompt message of slot filling failure.

[0104] Optionally, the parsing module 202 is further used to: in response to a change in the configuration file, obtain the latest configuration file and trigger a call instruction; in response to the call instruction, call a preset parsing script to parse the latest configuration file to obtain a property parsing result.

[0105] Optionally, the generation module 204 is also used to: monitor the front-end control interface to obtain monitoring results; in response to the monitoring results indicating that the parameters of the front-end control interface have changed, obtain the latest parameters; verify the validity of the latest parameters to obtain verification results; in response to the verification results indicating that the latest parameters are valid, update the front-end control interface according to the latest parameters.

[0106] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0107] An embodiment of the present invention further provides a non-volatile storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running on a computer or a processor.

[0108] Optionally, in this embodiment, the non-volatile storage medium may be configured to store a computer program for performing the following steps:

[0109] Step S101, constructing a configuration file according to preset attributes, wherein the preset attributes are attributes corresponding to the front-end control interface, and the configuration file includes the preset attributes.

[0110] Step S102, calling a preset parsing script to parse the configuration file to obtain a property parsing result.

[0111] Step S103, determining the panel attribute code according to the attribute parsing result and the preset template.

[0112] Step S104, generating a front-end control interface according to the panel attribute code using a preset component generator.

[0113] Optionally, the above-mentioned non-volatile storage medium can be configured to store a computer program for performing the following steps: constructing an attribute code block according to preset attributes, wherein the attribute code block is used to characterize the attributes of the front-end control interface; and constructing a configuration file according to the attribute code block.

[0114] Optionally, the above-mentioned non-volatile storage medium can be configured to store a computer program for executing the following steps: calling a preset parsing script, performing keyword matching on the configuration file according to preset keywords, and obtaining matching results; constructing a JSON object according to the matching results; and determining the attribute parsing results according to the JSON object.

[0115] Optionally, the above-mentioned non-volatile storage medium can be configured to store a computer program for performing the following steps: traversing the attribute parsing results and extracting keywords in the JSON object; filling the keywords one by one into the slot filling positions in the preset template to obtain the slot filling results; and generating the panel attribute code according to the slot filling results.

[0116] Optionally, the above-mentioned non-volatile storage medium can be configured to store a computer program for performing the following steps: filling the keywords one by one into the slot filling positions in the preset template to obtain the slot-filled template; traversing the slot filling positions of the slot-filled template to obtain a traversal result; in response to the traversal result indicating that there are no empty slots in the slot filling positions, using the slot-filled template as the slot filling result.

[0117] Optionally, the non-volatile storage medium may be configured to store a computer program for executing the following steps: in response to the traversal result indicating that there are vacancies in the slots to be filled, determining the number of vacancies; in response to the number of vacancies being greater than a preset number of vacancies, outputting a slot filling failure prompt message.

[0118] Optionally, the above-mentioned non-volatile storage medium can be configured to store a computer program for performing the following steps: in response to a change in the configuration file, obtaining the latest configuration file and triggering a call instruction; in response to the call instruction, calling a preset parsing script to parse the latest configuration file to obtain a property parsing result.

[0119] Optionally, the above-mentioned non-volatile storage medium can be configured to store a computer program for executing the following steps: monitoring the front-end control interface to obtain monitoring results; in response to the monitoring results indicating that the parameters of the front-end control interface have changed, obtaining the latest parameters; verifying the validity of the latest parameters to obtain verification results; in response to the verification results indicating that the latest parameters are valid, updating the front-end control interface according to the latest parameters.

[0120] Optionally, in this embodiment, the above-mentioned non-volatile storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0121] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0122] Optionally, in this embodiment, the processor in the above electronic device may be configured to run a computer program to perform the following steps:

[0123] Step S101, constructing a configuration file according to preset attributes, wherein the preset attributes are attributes corresponding to the front-end control interface, and the configuration file includes the preset attributes.

[0124] Step S102, calling a preset parsing script to parse the configuration file to obtain a property parsing result.

[0125] Step S103, determining the panel attribute code according to the attribute parsing result and the preset template.

[0126] Step S104, generating a front-end control interface according to the panel attribute code using a preset component generator.

[0127] Optionally, the processor in the above electronic device can be configured to run a computer program to perform the following steps: construct an attribute code block according to preset attributes, wherein the attribute code block is used to characterize the attributes of the front-end control interface; and construct a configuration file according to the attribute code block.

[0128] Optionally, the processor in the above electronic device can be configured to run a computer program to perform the following steps: call a preset parsing script, perform keyword matching on the configuration file according to preset keywords, and obtain matching results; construct a JSON object according to the matching results; and determine the attribute parsing results according to the JSON object.

[0129] Optionally, the processor in the above-mentioned electronic device can be configured to run a computer program to perform the following steps: traverse the attribute parsing results and extract keywords in the JSON object; fill the keywords one by one into the slots in the preset template to obtain the slot filling results; and generate the panel attribute code based on the slot filling results.

[0130] Optionally, the processor in the above-mentioned electronic device can be configured to run a computer program to perform the following steps: fill the keywords one by one into the slot filling positions in the preset template to obtain the slot-filled template; traverse the slot filling positions of the slot-filled template to obtain a traversal result; in response to the traversal result indicating that there are no empty slots in the slot filling positions, use the slot-filled template as the slot filling result.

[0131] Optionally, the processor in the above electronic device can be configured to run a computer program to perform the following steps: in response to the traversal result indicating that there are vacancies in the filling slots, determining the number of vacancies; in response to the number of vacancies being greater than a preset number of vacancies, outputting a slot filling failure prompt message.

[0132] Optionally, the processor in the above electronic device can be configured to run a computer program to perform the following steps: in response to a change in the configuration file, obtain the latest configuration file and trigger a call instruction; in response to the call instruction, call a preset parsing script to parse the latest configuration file to obtain a property parsing result.

[0133] Optionally, the processor in the above-mentioned electronic device can be configured to run a computer program to perform the following steps: monitor the front-end control interface to obtain monitoring results; in response to the monitoring results indicating that the parameters of the front-end control interface have changed, obtain the latest parameters; verify the validity of the latest parameters to obtain verification results; in response to the verification results indicating that the latest parameters are valid, update the front-end control interface according to the latest parameters.

[0134] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0135] An embodiment of the present invention further provides a computer program product, including a computer program. When the computer program is executed by a processor, the computer program implements the steps of the front-end control interface construction method described in any of the above embodiments.

[0136] In this embodiment, when the computer program in the above computer program product is executed by a processor, the following steps are implemented:

[0137] Step S101, constructing a configuration file according to preset attributes, wherein the preset attributes are attributes corresponding to the front-end control interface, and the configuration file includes the preset attributes.

[0138] Step S102, calling a preset parsing script to parse the configuration file to obtain a property parsing result.

[0139] Step S103, determining the panel attribute code according to the attribute parsing result and the preset template.

[0140] Step S104, generating a front-end control interface according to the panel attribute code using a preset component generator.

[0141] Optionally, when the computer program in the above-mentioned computer program product is executed by the processor, the following steps are implemented: constructing an attribute code block according to preset attributes, wherein the attribute code block is used to characterize the attributes of the front-end control interface; and constructing a configuration file according to the attribute code block.

[0142] Optionally, when the computer program in the above-mentioned computer program product is executed by the processor, the following steps are implemented: calling a preset parsing script, performing keyword matching on the configuration file according to preset keywords, and obtaining matching results; constructing a JSON object according to the matching results; and determining the attribute parsing results according to the JSON object.

[0143] Optionally, when the computer program in the above-mentioned computer program product is executed by the processor, the following steps are implemented: traverse the attribute parsing results and extract the keywords in the JSON object; fill the keywords one by one into the slots in the preset template to obtain the slot filling results; generate the panel attribute code according to the slot filling results.

[0144] Optionally, when the computer program in the above-mentioned computer program product is executed by the processor, the following steps are implemented: filling the keywords one by one into the slot filling positions in the preset template to obtain the slot-filled template; traversing the slot filling positions of the slot-filled template to obtain the traversal results; in response to the traversal results indicating that there are no vacancies in the slot filling positions, using the slot-filled template as the slot filling result.

[0145] Optionally, when the computer program in the above-mentioned computer program product is executed by the processor, the following steps are implemented: in response to the traversal result indicating that there are vacancies in the filling slots, determining the number of vacancies; in response to the number of vacancies being greater than a preset number of vacancies, outputting a prompt message of slot filling failure.

[0146] Optionally, when the computer program in the above-mentioned computer program product is executed by the processor, the following steps are implemented: in response to a change in the configuration file, the latest configuration file is obtained and a calling instruction is triggered; in response to the calling instruction, a preset parsing script is called to parse the latest configuration file to obtain a property parsing result.

[0147] Optionally, when the computer program in the above-mentioned computer program product is executed by the processor, the following steps are implemented: monitoring the front-end control interface to obtain monitoring results; in response to the monitoring results indicating that the parameters of the front-end control interface have changed, obtaining the latest parameters; verifying the validity of the latest parameters to obtain verification results; in response to the verification results indicating that the latest parameters are valid, updating the front-end control interface according to the latest parameters.

[0148] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0149] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0150] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0151] 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 units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0152] 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.

[0153] 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, in essence, 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, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk or optical disk, etc., various media that can store program codes.

[0154] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for constructing a front-end control interface, characterized in that: include: Constructing a configuration file according to preset attributes, wherein the preset attributes are attributes corresponding to the front-end control interface, and the configuration file includes the preset attributes; Calling a preset parsing script to parse the configuration file and obtain a property parsing result; Determine the panel attribute code according to the attribute parsing result and the preset template; According to the panel attribute code, a front-end control interface is generated using a preset component generator.

2. The front-end control interface construction method according to claim 1, characterized in that: The step of constructing a configuration file according to the preset attributes includes: According to the preset attributes, construct an attribute code block, wherein the attribute code block is used to characterize the attributes of the front-end control interface; The configuration file is constructed according to the attribute code block.

3. The front-end control interface construction method according to claim 1, characterized in that: The calling of the preset parsing script to parse the configuration file to obtain the attribute parsing result includes: Calling the preset parsing script, performing keyword matching on the configuration file according to preset keywords, and obtaining a matching result; Construct a JSON object according to the matching result; The attribute parsing result is determined according to the JSON object.

4. The front-end control interface construction method according to claim 3, characterized in that: Determining the panel attribute code according to the attribute parsing result and the preset template includes: Traverse the attribute parsing results and extract keywords in the JSON object; Fill the keywords into the slots in the preset template one by one to obtain the slot filling results; The panel attribute code is generated according to the slot filling result.

5. The front-end control interface construction method according to claim 4, characterized in that: The step of filling the keywords into the slots in the preset template one by one to obtain the slot filling results includes: Fill the keywords into the slots in the preset template one by one to obtain a slot-filled template; Traversing the slot filling positions of the slot-filled template to obtain a traversal result; In response to the traversal result indicating that there is no vacant slot at the slot filling position, the template after the slot filling is used as the slot filling result.

6. The front-end control interface construction method according to claim 5, characterized in that: Also includes: In response to the traversal result indicating that there are vacancies in the slots to be filled, determining the number of vacancies; In response to the number of empty spaces being greater than a preset number of empty spaces, a slot filling failure prompt message is output.

7. The front-end control interface construction method according to claim 1, characterized in that: Also includes: In response to a change in the configuration file, obtaining the latest configuration file and triggering a call instruction; In response to the calling instruction, the preset parsing script is called to parse the latest configuration file to obtain the attribute parsing result.

8. The front-end control interface construction method according to claim 1, characterized in that: Also includes: Monitoring the front-end control interface to obtain monitoring results; In response to the monitoring result indicating that the parameters of the front-end control interface have changed, acquiring the latest parameters; Verifying the validity of the latest parameters to obtain a verification result; In response to the verification result indicating that the latest parameters are valid, the front-end control interface is updated according to the latest parameters.

9. A front-end control interface construction system, characterized in that: include: A construction module, used to construct a configuration file according to preset attributes, wherein the preset attributes are attributes corresponding to the front-end control interface, and the configuration file includes the preset attributes; A parsing module, used to call a preset parsing script to parse the configuration file and obtain a property parsing result; A determination module, used to determine the panel attribute code according to the attribute parsing result and the preset template; The generating module is used to generate a front-end control interface according to the panel attribute code by using a preset component generator.

10. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the front-end control interface construction method according to any one of claims 1 to 8.

11. An electronic device, characterized in that: include: A memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the program executes the front-end control interface construction method described in any one of claims 1 to 8 when running.

12. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.