CN112926008B - Method, device, electronic equipment and storage medium for generating form page - Google Patents

Method, device, electronic equipment and storage medium for generating form page Download PDF

Info

Publication number
CN112926008B
CN112926008B CN202110215747.9A CN202110215747A CN112926008B CN 112926008 B CN112926008 B CN 112926008B CN 202110215747 A CN202110215747 A CN 202110215747A CN 112926008 B CN112926008 B CN 112926008B
Authority
CN
China
Prior art keywords
page
component
target
components
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110215747.9A
Other languages
Chinese (zh)
Other versions
CN112926008A (en
Inventor
曾德平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110215747.9A priority Critical patent/CN112926008B/en
Publication of CN112926008A publication Critical patent/CN112926008A/en
Application granted granted Critical
Publication of CN112926008B publication Critical patent/CN112926008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for generating a form page, relates to the technical field of artificial intelligence, and further relates to the technical field of cloud computing. The specific implementation scheme is as follows: acquiring a plurality of page components for generating a form page; calling at least one target page component in the plurality of page components based on type information, text information and layout information contained in the target form page to be generated; and generating a target form page according to the call result of at least one target page component in the plurality of page components. An apparatus, an electronic device and a storage medium for generating the form page are also disclosed.

Description

Method, device, electronic equipment and storage medium for generating form page
Technical Field
The disclosure relates to the technical field of artificial intelligence, and further relates to the technical field of cloud computing, in particular to a method, a device, electronic equipment and a storage medium for generating form pages.
Background
Today, cloud computing technology is rapidly evolving, and there are more and more services that can be provided through cloud computing products. When a user purchases a cloud computing product, information about the cloud computing product needs to be provided to a service provider. Typically, the service provider may present a form page to the user, who provides such information by filling out the form page. A special form page needs to be generated for each cloud computing product, and as the number of cloud computing products increases, the generation and management of the form page becomes difficult.
Disclosure of Invention
The present disclosure provides a method, apparatus, electronic device, and storage medium for generating a form page.
According to an aspect of the present disclosure, there is provided a method of generating a form page, including:
acquiring a plurality of page components for generating a form page;
calling at least one target page component in the plurality of page components based on type information, text information and layout information contained in the target form page to be generated; and
and generating the target form page according to the call result of at least one target page component in the plurality of page components.
According to another aspect of the present disclosure, there is provided an apparatus for generating a form page, including:
an acquisition module configured to acquire a plurality of page components for generating a form page;
the calling module is configured to call at least one target page component in the plurality of page components based on type information, text information and layout information contained in the target form page to be generated; and
the generation module is configured to generate the target form page according to a call result of at least one target page component in the plurality of page components.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method described above.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the above-described method. According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the above method.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow chart of a method of generating a form page according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of acquiring multiple page components according to an embodiment of the present disclosure;
FIGS. 3A and 3B are examples of calling functions according to embodiments of the present disclosure;
FIG. 4 is a schematic diagram of determining information contained by a target form page according to an embodiment of the present disclosure;
FIG. 5 is an example of a JSON structure according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a call target page component according to an embodiment of the disclosure;
FIGS. 7A and 7B are examples of target form pages generated in accordance with an embodiment of the present disclosure;
FIG. 8 is a block diagram of an apparatus for generating a form page according to an embodiment of the present disclosure; and
FIG. 9 is a block diagram of an electronic device for implementing a method of generating a form page of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In cloud computing products, users are required to perfect purchasing information related to the products before purchasing the products or related services, and different types of cloud computing products need to perfect purchasing information. For example, if a user purchases a related service that provides a web portal, the user needs to provide information such as a domain name of the web portal, FTP (File Transfer Protocol ) name, and the like. As a service provider of the cloud computing product, it is required to determine which purchase information needs to be perfected by a user when the cloud computing product is released, generate a form page according to the information which needs to be perfected, and display the generated form page to the user. And the user fills corresponding information in the form page to complete the ordering flow of the cloud computing product.
The manner in which the form page is generated includes both dynamic and static. The static generation mode is to create a static form page according to the information which is perfected by the user according to the requirement of each specific cloud computing product. The created form page is stored in advance, and when the form page needs to be displayed to a user, the whole static form page is directly called. The implementation technology of the method is simpler, but with the increase of the number of cloud computing products, the workload of creating the static form pages is increased, and the maintenance cost of the static form pages is increased.
In the technical stack of cloud computing products, a plurality of component libraries are generally introduced, and form pages can be dynamically generated by using the component libraries. The form page is dynamically generated by invoking components in the component library by means of the third party dependency library and utilizing the components. The dynamic generation mode does not need to generate the form page independently for each cloud computing product, can avoid a large number of repeated work, is beneficial to reducing the workload of generating the static form page and reduces the cost of maintaining the form page. However, with the reconstruction upgrade of the cloud computing product service line, the technical stack of the old service line is replaced by the technical stack of the new service line, and the dependency library of the technical stack based on the old service line needs to be modified, so that the modification cost is often high.
The embodiment of the disclosure provides a method for dynamically generating form pages without resorting to a third party dependency library. FIG. 1 is a flow chart of a method 100 of generating a form page according to an embodiment of the present disclosure. As shown in fig. 1, the method 100 of generating a form page includes the steps of:
in step S110, a plurality of page components for generating a form page are acquired.
In step S120, at least one target page component of the plurality of page components is invoked based on the type information, text information, and layout information contained in the target form page to be generated.
In step S130, a target form page is generated according to a call result to at least one target page component of the plurality of page components.
In an embodiment of the present disclosure, in order to use a component library included in a current business technology stack, each component in the component library included in the technology stack introduced into the current business may be exported, and a component set may be constructed to store each component. In this way, when the components in the component library are needed to be used, the components do not need to be called by means of the third-party dependency library, and the corresponding components can be directly obtained from the component set.
In embodiments of the present disclosure, a target form page means a form page determined for a particular cloud computing product that presents to a user product purchase information that needs to be perfected by the user. Various information contained in the target form page, such as type information, text information, layout information, and the like, may be determined. According to the embodiment, the type information of the target form page can be determined according to the type of the page component required by the target form page, the text information of the target form page can be determined according to the text content presented on the target form page by the required page component, and the layout information of the target form page can be determined according to the position of the required page component on the target form page.
In the embodiment of the present disclosure, the target page component means a page component required for generating the target form page, and may be one type of page component or multiple types of page components. The process of calling the target page component is the process of generating the form page. Thus, according to embodiments of the present disclosure, a target form page may be dynamically generated. Compared with a static generation method of the form page, the method can avoid repeated generation of form page elements and reduce maintenance cost of the form page.
Furthermore, in accordance with embodiments of the present disclosure, where the technology stack of the new business line replaces the technology stack of the old business line, the target form page may also be dynamically generated by exporting individual components in the component library in the new technology stack and by making calls to the target page component. Because the component library is not needed to be used by means of a third-party dependency library, the problem of high reconstruction cost for reconstructing the dependency library of the technical stack based on the old business line can be solved, and the method is more suitable for cloud computing products which need frequent updating.
In an embodiment of the present disclosure, obtaining a plurality of page components for generating a form page may include: deriving a plurality of page components from a component library included in a technology stack introduced into the current business, generating a calling function for each of the plurality of page components, and storing the page components and the calling functions of the page components in a component set in a one-to-one correspondence.
FIG. 2 is a schematic diagram of acquiring multiple page components according to an embodiment of the present disclosure. As shown in fig. 2, the technical stack 21 of the current business includes two component libraries 211 and 212, and a plurality of page components for generating form pages may be respectively included in the component libraries 211 and 212. The number of component libraries included in the technology stack, and the number of components included in each component library, are not limited in the embodiments of the present disclosure. All page components that each includes are derived from component libraries 211 and 212, respectively, as shown at 230 in FIG. 2. For each page component exported, a calling function is generated. And stores the page components and the generated calling functions in a one-to-one correspondence in the component set 22. As shown in FIG. 2, for each element 220 in the set of components, it is the page component that is formed together with the calling function. In a specific embodiment, the component set 22 may be a global array structure, and a set of data formed by the page component and the calling function is stored as one array element.
Other attribute information for the page component may also be stored in the component collection 22, according to an embodiment. For example, each page component may be renamed to facilitate easier searching when selecting a page component from the collection of components 22.
By exporting components in the component library included in the technical stack and storing the components in the component set together with the generated calling function, page components in the component library can be called without resorting to a third-party dependency library, and the method can be better suitable for reconstruction upgrading of service lines.
According to an embodiment, a page component is a section of code for generating a structure, such as an input box, on a form page, and a call function is a section of code for calling the page component to add the code corresponding to the page component to the HTML file of the form page.
Fig. 3A and 3B are examples of calling functions according to embodiments of the present disclosure. As shown in fig. 3A and 3B, the calling function completes the following procedure: component in each page Component configuration in the Component set is first obtained, and then the page components are loaded. Next, a mapping is made between the value of "tagName" and Component. For example, as shown in FIG. 3A, "Calendar" is mapped to "ui-form-Calendar". As shown in fig. 3B, "box group" is mapped to "ui-form-box group". Further, in embodiments of the present disclosure, a "builder" function is defined that performs the call process of the page component. As shown in fig. 3A and 3B, in the "builder" function, parameters related to page components are passed in "<" and "/>".
In embodiments of the present disclosure, after the configuration of each page Component in the Component set is obtained, instead of directly using Component, i.e., using "Calendar" or "Box group" to make function calls, a redefined "builder" function is used to make calls to different page components. As can be seen from the call function examples shown in fig. 3A and 3B, although the two call functions are called for different page components (respectively, "Calendar" and "box group"), the "builder" function is used, so that the writing of call function codes is more standard and uniform, and the generation process of the call functions is simplified when new page components are added.
FIG. 4 is a schematic diagram of determining information contained in a target form page according to an embodiment of the present disclosure. As shown in fig. 4, the target form page 41 is a form page determined for a particular cloud computing product that presents to the user product purchase information that needs to be perfected by the user. A plurality of pieces of product information are included in the target form page 41. For example, as shown in fig. 4, one product information 411 may be information related to a domain name, which has a text "binding domain name" for indicating to the user the type of information that needs to be filled in. The product information 411 includes an input box portion for user input in which the user can set a domain name. Another product information 412 may be information related to the FTP user having the text "FTP user name", and likewise, the product information 412 also includes an input box portion for user input in which the FTP user name may be set by the user. The input box portions in both product information 411 and 412 may be generated by a page component.
As shown in fig. 4, the information contained in the target form page 41 can be roughly classified into three types. The first type of information is mainly type information 4111 of different page components for page components generated on the target form page 41. For example, the type of the component may be text (text), mail (email), text field (textArea), selection (select), broadcast (radio), check box (checkBox), or the like. The second category of information is directed to text content presented on the target form page 41, primarily text information 4112. For example, both the "binding domain name" and the "FTP user name" belong to text information. In addition, in some other embodiments, some of the prompt information for the user to specify also pertains to text information. For example, "please fill out date in year-month-day format". The third type of information is placed at the location of the target form page 41 for the page component, mainly layout information 4113. For example, the coordinates of the respective page components of the product information 411 and 412 on the target form page 41, the length and width of the page components, and the like, according to which the page components can be correctly placed at desired positions on the target form page 41.
In the embodiment of the present disclosure, after the above-described type information 4111, text information 4112, and layout information 4113 are determined, these information may be stored in a preset data structure, so that the desired target form page 41 may be represented as data. According to an embodiment, the type information 4111, the text information 4112, and the layout information 4113 may be stored in the JSON (JavaScript Object Notation) structure. The JSON structure is a lightweight data exchange format. Easy to read and write, and easy to parse and generate by a computing device.
Fig. 5 is an example of a JSON structure according to an embodiment of the present disclosure. As shown in fig. 5, the field "type" corresponds to type information. In the JSON structure, the type of the above-described page component is not defined, and thus, the value of the field "type" can be converted into the type of the page component by establishing a conversion relationship between the value of the field "type" and the type of the page component. For example, the value of the common field "type" includes, for example, a string (string), an array (array), a selection (select), a calendar (calendar), a number (number), a boolean type (boolean), and the like. The conversion relationship between the value of the field "type" and the type of the page component may be specified according to the actual situation. For example, for the field value "string," a page component of the text type is generally specified. According to an embodiment, one or more fields other than "type" may be used to store text information and layout information, respectively. As shown in fig. 5, the field "title" corresponds to text information, and the field value "binding domain name" indicates text to be displayed on the target form page. The field "description" corresponds to text information, and the field value "please be correctly filled in according to the domain name format, such as test. The field "maxLength" corresponds to layout information, and the field value "20" may define the maximum length of the page component, i.e., the input box.
In some embodiments, other information about the target form page may also be stored in the JSON structure. For example, a rule is filled in for the page component. As shown in fig. 5, the field "required" corresponds to a filling rule for the page component, and the field value "true" indicates that the input box corresponding to the page component cannot be empty. The field "default" corresponds to a filling rule for the page component, the field value is null, and a default value of the page component is set to null.
In an embodiment of the present disclosure, invoking at least one target page component of the plurality of page components based on the type information, text information, and layout information contained in the target form page to be generated may include: determining at least one target page component from the component set based on the type information, acquiring a calling function of the at least one target page component from the component set, transferring text information and layout information as parameters to the calling function of the target page component, and executing the calling function to call the at least one target page component.
FIG. 6 is a schematic diagram of a call target page component according to an embodiment of the disclosure. As shown in fig. 6, stored in JSON structure 61 are various information contained in the target form page, and stored in array 62 are a plurality of page components for generating the target form page. First, the data object in the JSON structure is traversed, and the field "type" is found, with the value of "string". According to the conversion relation between the JSON structure field value and the type of the page component, "string" is modified to "text", as shown in step (1) in fig. 6. Then, the array 62 is queried according to "text", and the array element storing the "text" page component is found, as shown in step (2) in fig. 6. Then, the call function 63 stored with the "text" page component is read from the found array element, as shown in step (3) in fig. 6. The other attribute values in JSON structure 61 are then passed as parameters 630 to the "builder" function, as shown in step (4) of fig. 6. Multiple data objects may be stored in a JSON structure, only one example being shown in fig. 6. Traversing the JSON structure and executing the above process can result in call functions for all components on the target form page. Next, a target form page may be generated from the call result.
According to an embodiment, generating the target form page according to a call result to at least one target page component of the plurality of page components may include: and generating an HTML source file of the target form page according to the calling result of at least one target page component in the plurality of page components, and analyzing the HTML source file to generate the target form page. The result of the call to the page component is that the corresponding page component generation code is placed in the HTML source file of the target form page. An application such as a browser may be used to parse the HTML source file, ultimately generating a target form page for presentation to the user.
Fig. 7A and 7B are examples of target form pages generated according to embodiments of the present disclosure. As shown in fig. 7A, a portion of the generated target form page is shown. Two page components are placed in the partial target form page, an input box corresponding to the "bind domain name" and an input box corresponding to the "FTP user name", respectively. A "×" is shown in front of the heading "binding domain name", which can be defined by the value of the "required" field in the JSON structure, indicating that the "binding domain name" is the information that must be filled in. A question mark with a box is respectively displayed on one side of the two page components, which is prompt information for the page components. As shown in fig. 7A, the filling prompt information for the page component may be obtained through the boxed question mark.
As shown in fig. 7B, a portion of the generated target form page is also shown. The text information and page components contained in the target form page are the same as those in fig. 7A, except that the two page components are in a mutual positional relationship on the target form page. In fig. 7A, the input box corresponding to the "binding domain name" and the input box corresponding to the "FTP user name" are located in the same row, and in fig. 7B, the input box corresponding to the "binding domain name" and the input box corresponding to the "FTP user name" are located in different rows. This is defined by the values of the fields in the JSON structure that are related to layout information.
According to embodiments of the present disclosure, form pages of any desired form may be dynamically generated based on JSON structures without resorting to third party dependency libraries. When the form page is designed, the JSON structure is built only according to the form of the expected form page, and the operation is simple. When the new technology stack is used for reconstruction from the old technology stack, the new reconstruction process does not need to introduce an external library for supporting, and can be realized by covering the new technology stack, so that the method is particularly suitable for upgrading and expanding service lines.
According to embodiments of the present disclosure, the present disclosure also provides an apparatus for generating a form page, an electronic device, a readable storage medium, and a computer program product.
Fig. 8 is a block diagram of an apparatus 800 for generating a form page according to an embodiment of the present disclosure. As shown in fig. 8, the apparatus 800 for generating a form page includes an acquisition module 810, a calling module 820, and a generation module 830.
According to an embodiment, the acquisition module 810 is configured to acquire a plurality of page components for generating a form page. The calling module 820 is configured to call at least one target page component of the plurality of page components based on the type information, text information, and layout information contained in the target form page to be generated. The generation module 830 is configured to generate a target form page based on a result of the call to at least one target page component of the plurality of page components.
The specific operations of the above functional modules may be obtained by referring to the operation steps of the method 100 for generating a form page in the foregoing embodiments, which are not described herein.
Fig. 9 shows a schematic block diagram of an example electronic device 900 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 9, the apparatus 900 includes a computing unit 901 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 902 or a computer program loaded from a storage unit 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other by a bus 904. An input/output (I/O) interface 905 is also connected to the bus 904.
Various components in device 900 are connected to I/O interface 905, including: an input unit 909 such as a keyboard, a mouse, or the like; an output unit 909 such as various types of displays, speakers, and the like; a storage unit 908 such as a magnetic disk, an optical disk, or the like; and a communication unit 909 such as a network card, modem, wireless communication transceiver, or the like. The communication unit 909 allows the device 900 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunications networks.
The computing unit 901 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 901 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 performs the respective methods and processes described above, for example, a method of generating a form page. For example, in some embodiments, the method of generating a form page may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 908. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 900 via the ROM 902 and/or the communication unit 909. When the computer program is loaded into RAM 903 and executed by the computing unit 901, one or more steps of the method of generating form pages described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the methods of generating form pages of the present disclosure in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (8)

1. A method of generating a form page, comprising:
acquiring a plurality of page components for generating a form page;
calling at least one target page component in the plurality of page components based on type information, text information and layout information contained in the target form page to be generated; and
generating the target form page according to a calling result of at least one target page component in the plurality of page components;
wherein the obtaining a plurality of page components for generating a form page comprises:
deriving the plurality of page components from a component library, the component library belonging to a technology stack introduced into the current service;
generating a calling function for each of the plurality of page components; and
and storing the page components and the calling functions of the page components in a component set in a one-to-one correspondence manner.
2. The method of claim 1, wherein the invoking at least one of the plurality of page components based on the type information, text information, and layout information contained by the target form page to be generated comprises:
selecting at least one target page component from the set of components based on the type information;
acquiring a calling function of the at least one target page component;
transferring the text information and the layout information as parameters to a calling function of the target page component; and
executing the calling function to call the at least one target page component.
3. The method of claim 2, wherein the generating the target form page based on the call to at least one target page component of the plurality of page components comprises:
generating an HTML source file of the target form page according to a calling result of at least one target page component in the plurality of page components; and
and analyzing the HTML source file to generate the target form page.
4. The method of claim 1, further comprising:
determining the type information according to the type of the page component required by the target form page;
determining the text information according to the text content presented by the required page component on the target form page; and
and determining the layout information according to the position of the required page component on the target form page.
5. The method of claim 1, further comprising:
the type information, the text information, and the layout information are stored in a JSON structure.
6. An apparatus for generating a form page, comprising:
an acquisition module configured to acquire a plurality of page components for generating a form page;
the calling module is configured to call at least one target page component in the plurality of page components based on type information, text information and layout information contained in the target form page to be generated; and
the generation module is configured to generate the target form page according to a call result of at least one target page component in the plurality of page components;
the acquiring module acquires a plurality of page components for generating a form page, including:
deriving the plurality of page components from a component library, the component library belonging to a technology stack introduced into the current service;
generating a calling function for each of the plurality of page components; and
and storing the page components and the calling functions of the page components in a component set in a one-to-one correspondence manner.
7. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
8. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-5.
CN202110215747.9A 2021-02-26 2021-02-26 Method, device, electronic equipment and storage medium for generating form page Active CN112926008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110215747.9A CN112926008B (en) 2021-02-26 2021-02-26 Method, device, electronic equipment and storage medium for generating form page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110215747.9A CN112926008B (en) 2021-02-26 2021-02-26 Method, device, electronic equipment and storage medium for generating form page

Publications (2)

Publication Number Publication Date
CN112926008A CN112926008A (en) 2021-06-08
CN112926008B true CN112926008B (en) 2023-12-01

Family

ID=76172145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110215747.9A Active CN112926008B (en) 2021-02-26 2021-02-26 Method, device, electronic equipment and storage medium for generating form page

Country Status (1)

Country Link
CN (1) CN112926008B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434134B (en) * 2021-06-21 2024-04-16 北京达佳互联信息技术有限公司 Component processing method and device, electronic equipment and storage medium
CN115525847A (en) * 2021-11-26 2022-12-27 北京字跳网络技术有限公司 Page view generation method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733375A (en) * 2018-05-29 2018-11-02 厦门白山耘科技有限公司 Web front-end configuration melts forwarding method, device, storage medium and computer equipment
CN111522549A (en) * 2020-03-31 2020-08-11 中国工商银行股份有限公司 Page generation method and device, electronic equipment and storage medium
CN111610972A (en) * 2020-05-22 2020-09-01 北京百度网讯科技有限公司 Page generation method, device, equipment and storage medium
CN111625741A (en) * 2020-04-30 2020-09-04 贝壳技术有限公司 Page data interaction method and device, storage medium and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7434163B2 (en) * 2002-05-31 2008-10-07 Sap Aktiengesellschaft Document structures for delta handling in server pages
JP6433339B2 (en) * 2015-03-02 2018-12-05 キヤノン株式会社 Information processing system, server device, control method, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733375A (en) * 2018-05-29 2018-11-02 厦门白山耘科技有限公司 Web front-end configuration melts forwarding method, device, storage medium and computer equipment
CN111522549A (en) * 2020-03-31 2020-08-11 中国工商银行股份有限公司 Page generation method and device, electronic equipment and storage medium
CN111625741A (en) * 2020-04-30 2020-09-04 贝壳技术有限公司 Page data interaction method and device, storage medium and electronic equipment
CN111610972A (en) * 2020-05-22 2020-09-01 北京百度网讯科技有限公司 Page generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112926008A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
US9367289B2 (en) Method and apparatus for enabling agile development of services in cloud computing and traditional environments
CN112926008B (en) Method, device, electronic equipment and storage medium for generating form page
CN114911465B (en) Method, device and equipment for generating operator and storage medium
CN113031946A (en) Method and device for rendering page component
CN110109983B (en) Method and device for operating Redis database
CN113626223A (en) Interface calling method and device
CN113641700A (en) Data processing method and device based on Spring boot frame
CN112634406A (en) Method, device, electronic equipment, storage medium and program product for generating picture
CN116028028A (en) Request function generation method, device, equipment and storage medium
CN115509522A (en) Interface arranging method and system for low-code scene and electronic equipment
CN112486482A (en) Page display method and device
CN113760264A (en) Method and device for multiplexing components among multiple applications
CN116302218B (en) Function information adding method, device, equipment and storage medium
CN116450238A (en) Vue interface rendering method and device, storage medium and electronic equipment
CN113642295B (en) Page typesetting method, device and computer program product
CN111026629A (en) Method and device for automatically generating test script
CN113138760B (en) Page generation method and device, electronic equipment and medium
CN114661402A (en) Interface rendering method and device, electronic equipment and computer readable medium
CN111124482B (en) Configuration method and device for document information
CN114239530A (en) Method and device for generating chart
CN116775174A (en) Processing method, device, equipment and medium based on user interface frame
CN113778401A (en) Page generation method and device
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN114115855A (en) Code multiplexing method and device, computer readable storage medium and electronic equipment
CN112685023A (en) Front-end development processing method, device, equipment and storage medium based on basic library

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant