CN114036443A - Page generation method and device - Google Patents

Page generation method and device Download PDF

Info

Publication number
CN114036443A
CN114036443A CN202111432915.6A CN202111432915A CN114036443A CN 114036443 A CN114036443 A CN 114036443A CN 202111432915 A CN202111432915 A CN 202111432915A CN 114036443 A CN114036443 A CN 114036443A
Authority
CN
China
Prior art keywords
configuration information
page
data model
model configuration
field
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.)
Pending
Application number
CN202111432915.6A
Other languages
Chinese (zh)
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 CN202111432915.6A priority Critical patent/CN114036443A/en
Publication of CN114036443A publication Critical patent/CN114036443A/en
Pending legal-status Critical Current

Links

Images

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
    • 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

Abstract

The disclosure provides a page generation method and device, relates to the technical field of computers, and particularly relates to the technical field of internet. The specific implementation scheme is as follows: acquiring data model configuration information input by a developer, and generating a database table based on the data model configuration information; the data model configuration information comprises a field customized by a developer; acquiring page configuration information input by a developer, wherein the page configuration information comprises form configuration information and an incidence relation between the form configuration information and fields in the data model configuration information; changing a preset template code based on the data model configuration information and the page configuration information to obtain a target page code; and compiling, deploying and operating the target page code to generate a target page. Therefore, the page development is converted into the process of automatically generating codes and running the codes through the configuration information, the processes of database design, interface design, front-end and back-end development and front-end and back-end joint debugging test are not needed, and the development labor and time are greatly saved.

Description

Page generation method and device
Technical Field
The present disclosure relates to the field of computer technology, and more particularly, to the field of internet technology.
Background
With the popularization of intellectualization and platform, more and more platform requirements are provided, for example, specific information is collected/displayed through platform page triggering, and the like, and the requirements are often required to be developed and realized in a short time.
Disclosure of Invention
The disclosure provides a page generation method and device.
According to an aspect of the present disclosure, there is provided a page generation method, including:
acquiring data model configuration information input by a developer, and generating a database table based on the data model configuration information; the data model configuration information comprises a field customized by a developer;
acquiring page configuration information input by the developer, wherein the page configuration information comprises form configuration information and an incidence relation between the form configuration information and fields in the data model configuration information;
changing a preset template code based on the data model configuration information and the page configuration information to obtain a target page code;
and compiling, deploying and operating the target page code to generate a target page.
According to another aspect of the present disclosure, there is provided a page generating apparatus including:
the first acquisition module is used for acquiring data model configuration information input by developers and generating a database table based on the data model configuration information; the data model configuration information comprises a field customized by a developer;
the second acquisition module is used for acquiring page configuration information input by the developer, wherein the page configuration information comprises form configuration information and an incidence relation between the form configuration information and fields in the data model configuration information;
the code generation module is used for changing a preset template code based on the data model configuration information and the page configuration information to obtain a target page code;
and the page generation module is used for compiling, deploying and operating the target page code to generate a target page.
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 content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a page generation method.
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 a page generation method.
According to yet another aspect of the disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements a page generation method.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flowchart of a page generation method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a page generation method provided in the embodiment of the present disclosure;
FIG. 3 is a block diagram of an apparatus for implementing a page generation method of an embodiment of the present disclosure;
fig. 4 is a block diagram of an electronic device for implementing a page generation method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those 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.
With the popularization of intellectualization and platform, more and more platform requirements are provided, for example, specific information is collected/displayed through platform page triggering, and the like, and the requirements are often required to be developed and realized in a short time.
If a page with a specific page requirement is to be generated at present, function disassembly, database design and interface design are required, and then front-end and back-end development and front-end and back-end joint debugging test are respectively carried out, so that the whole page requirement is realized.
Even if the same page functions are all operations such as screening, list displaying, editing, deleting and the like, as long as the contents of the operations or the query are different, the whole page needs to be developed again, and a large amount of labor and time are wasted.
In order to solve the technical problem, the present disclosure provides a page generation method and device.
In one embodiment of the present disclosure, a page generation method is provided, where the method includes:
acquiring data model configuration information input by a developer, and generating a database table based on the data model configuration information; the data model configuration information comprises a field customized by a user;
acquiring page configuration information input by a developer, wherein the page configuration information comprises form configuration information and an incidence relation between the form configuration information and fields in the data model configuration information;
changing a preset template code based on the data model configuration information and the page configuration information to obtain a target page code;
and compiling, deploying and operating the target page code to generate a target page.
Therefore, template codes for generating the page are preset, when the page needs to be generated, the template codes can be changed according to the acquired information by acquiring the data model configuration information and the page configuration information input by developers, so that target page codes are obtained, and the target page is generated. Therefore, the page development is converted into the process of automatically generating codes and running the codes through the configuration information, the processes of database design, interface design, front-end and back-end development and front-end and back-end joint debugging test are not needed, and the development labor and time are greatly saved.
The following describes a page generation method and apparatus provided by the embodiments of the present disclosure in detail.
Referring to fig. 1, fig. 1 is a schematic flow chart of a page generation method provided by the embodiment of the present disclosure, and as shown in fig. 1, the method may include the following steps:
s101: acquiring data model configuration information input by a developer, and generating a database table based on the data model configuration information; the data model configuration information includes developer-customized fields.
In the embodiment of the present disclosure, the data model configuration information includes a plurality of custom fields, which may be specifically set according to requirements.
For convenience of description, a page that the developer wishes to generate is denoted as a target page.
For example, if a developer wishes to generate a target page for collecting/displaying and/or filtering personal information of a user, the data model configuration information may be set to include: serial number, name, height, gender, school calendar, territory, etc.
Further, the type of each field, the field length, whether it is a primary key, and the like may be set. In the above example, the serial number may be set as the primary key.
Specifically, the page generation method provided by the embodiment of the disclosure can be applied to a development platform, and a developer can input data model configuration information on the development platform.
After the developer inputs the data model configuration information, the development platform can generate a database table according to the data model configuration information. A database table is an object in a database that is used to store data, and is a collection of structured data.
After the target page is generated, the input information of the user in the target page can be stored in a database table, see below.
S102: and acquiring page configuration information input by a developer, wherein the page configuration information comprises form configuration information and an incidence relation between the form configuration information and fields in the data model configuration information.
In the embodiment of the present disclosure, after configuring the data model, the developer needs to set the relevant configuration of the page.
Specifically, the developer inputs page configuration information at the development platform, including form configuration information and an association relationship between the form configuration information and fields in the data model configuration information.
A form may also be understood as a pop-up window in a page that interacts with a user.
The developer can enter form configuration information at the development platform, i.e., which types of forms need to be included in the configuration target page.
In addition, the developer can set the association relationship between the form and the fields in the data model configuration information in the development platform. For example, a form is used to collect, present, and/or filter which field or fields in the data model configuration information.
S103: and changing the preset template code based on the data model configuration information and the page configuration information to obtain a target page code.
In the embodiment of the disclosure, a template code for generating a page is preset in a development platform, and the template code can be understood as a source code of a page frame.
After the development platform acquires the data model configuration information and the page configuration information, corresponding codes can be generated according to the acquired information, and the generated codes are inserted into the template codes to obtain target page codes.
Specifically, in the page development process in the prior art, a developer can write corresponding codes according to the configuration of a target page, and the forms of the codes are usually fixed.
For example, the implementation code for the text entry box in the form may be:
<input type="text"name="..."size="..."maxlength="..."value="...">
wherein type defines a single line text input box; the name attribute defines the name of the text box, and a unique name must be defined to ensure accurate data acquisition; the size attribute defines the width of the text box, the unit being the width of a single character; the maxlength attribute defines the maximum number of characters to be input. The value attribute defines an initial value of the text box.
Through the way that developers write corresponding codes, the developers need to have corresponding professional knowledge and have the capability of developing web pages, and writing a large amount of codes with fixed forms consumes more labor and time.
In the embodiment of the disclosure, a template code for generating a page is preset in the development platform. The form realization code form is usually fixed, and the development platform can automatically generate corresponding codes according to data model configuration information and page configuration information input by developers, so that template codes are changed to obtain target page codes.
For example, if the data model configuration information includes a name, an academic calendar, a region, etc., the development platform may automatically generate the following codes:
an input type is "text" name "size". -, a maxlength "-
As an implementation code for a single line text input box for inputting the region information.
As just one example, in practical applications, the development platform may automatically generate corresponding codes according to the data model configuration information and the page configuration information.
Therefore, developers do not need to have professional webpage development capacity, only need to configure relevant information of the target page, and a large amount of labor and time are saved through a mode of automatically generating codes.
S104: and compiling, deploying and operating the target page code to obtain the target page.
Wherein the code compiling is a process of translating a source code into a computer recognizable code by using a compiler.
The code deployment is to copy the compiled code to a specified directory in the server, and the code can be manually copied or copied by presetting an automatic script.
After the code deployment is completed, the target page can be generated by running the code.
And then adding a server domain name for the target page to form the target page facing the user.
Therefore, template codes for generating the page are preset, when the page needs to be generated, the template codes can be changed according to the acquired information by acquiring the data model configuration information and the page configuration information input by developers, so that target page codes are obtained, and the target page is generated. Therefore, the page development is converted into the process of automatically generating codes and running the codes through the configuration information, the processes of database design, interface design, front-end and back-end development and front-end and back-end joint debugging test are not needed, and the development labor and time are greatly saved.
In one embodiment of the present disclosure, a form may include a form field and a form button.
Form fields may include text boxes, password boxes, hidden fields, multi-line text boxes, check boxes, radio boxes, drop-down selection boxes, and/or file upload boxes. The form button is a button in the page for the user to select to implement a particular operation, such as a reset button, a submit button, and the like.
Accordingly, the form configuration information may include: presentation fields selected from the data model configuration information, configuration information for form fields, and configuration information for form buttons.
Specifically, the developer can select which fields in the data model configuration information are contained in the target page in the development platform as the presentation fields. Such as name, gender, school calendar, territory, etc., as exemplified above.
In addition, the developer selects whether the following form fields are contained in the target page in the development platform: a single-line text box, a password box, a multi-line text box, a check box, a radio box, a drop-down selection box, and/or a file upload box; and selecting whether the following form buttons are contained in the page to be generated: a reset button, a submit button, a form trigger button, etc.
The above information selected by the developer can be used as form configuration information.
Correspondingly, the association relationship between the form configuration information and the fields in the data model configuration information may include:
and the incidence relation between the form field and the field in the data model configuration information and the incidence relation between the form button and the field in the data model configuration information.
Specifically, a developer sets an association relationship between a form field and a field in the data model configuration information on a development platform. For example, a certain text box is used to enter which field in the data model configuration information; a check box is used to select which fields in the data model configuration information, etc.
The developer can also set the association relationship between the form button and the field in the data model configuration information in the development platform. For example, a certain reset button is for which field or fields in the data model configuration information; a certain submit button is for which field or fields in the data model configuration information, etc.
The above associated information can be configured through the development platform.
As an example, the target web page is a page for collecting/displaying/or filtering personal information of the user, and the developer setting data model configuration information includes: serial number, name, height, gender, school calendar, territory, etc. The fields that the developer selects to be displayed in the target page include name, gender, academic calendar, and territory. The form in the destination page includes: multi-line text boxes, radio boxes. The form button in the destination page includes: a reset button, a submit button, a form trigger button.
And the developer sets a multi-line text box to be associated with three fields of name, academic calendar and region; the radio box is associated with a field of gender. The developer sets the reset button to be associated with four fields of name, gender, academic calendar, and territory, and sets the submit button to be associated with four fields of name, gender, academic calendar, and territory.
The development platform can change the preset template code according to the configuration information input by the developer to obtain a target page code, and then compile, deploy and run the target page code to generate a target page facing the user.
In the generated target page, the user can click a form trigger button, so that the form is displayed, and the displayed form comprises: multiple lines text box, radio box, and preselected presentation field: name, gender, school calendar, territory.
The user can input the information of three fields of name, academic calendar and region in the multi-line text box; gender can be selected through radio boxes; the user clicks a reset button, and the input name, gender, academic calendar and region information are all emptied; and when the user clicks a submit button, the input name, gender, academic calendar and region information are submitted to the database table.
Therefore, in the embodiment of the disclosure, a developer can customize data model configuration information on a development platform according to requirements, and customize configuration information related to a page, including related configurations of a form field and a form button in a form, related information of fields in the form field and the data model configuration information, and related information of fields in the form button and the data model configuration information, and the development platform can generate a target page meeting the requirements according to the configuration information input by the developer.
Therefore, the page development is converted into the process of automatically generating codes and running the codes through the configuration information, the processes of database design, interface design, front-end and back-end development and front-end and back-end joint debugging test are not needed, and the development labor and time are greatly saved.
In one embodiment of the disclosure, after the target page facing the user is generated, the input information of the user at the target page can be acquired, and the database table is updated based on the input information.
Specifically, after the user logs in the target page, the target page may collect information input by the user on the target page, where the input information is specific information of each field in the data model configuration information.
Since the database table is generated in advance according to the data model configuration information, the database table can be updated according to the user input information, and the user input information can be stored in the database.
As an example, the data model configuration information of the target page includes: name, height, gender, school calendar, territory, etc. representing the fields of personal information.
After the user logs in the target page, the fields can be viewed through the form, and the specific information of each field, such as the name, height, sex, school calendar and the like of the user can be input through an input box contained in the form.
After the user clicks the submit button in the target page, the target page can store the information input by the user in the database table, so that the webpage requirement for collecting the personal information of the user is met.
For ease of understanding, the page generation method provided by the present disclosure is further described below with reference to fig. 2 of the drawings.
Fig. 2 is a schematic diagram of a page generation method provided in the embodiment of the present disclosure.
As shown in FIG. 2, the page requirement of the target page is first determined, and then the page requirement may be broken down into multiple page functions.
And aiming at each page function, a developer designs data model configuration information, so that the development platform automatically generates a database table according to the data model configuration information.
And designing page configuration information by developers, wherein the page configuration information comprises form configuration information, and the form configuration information is associated with fields in the data model configuration information.
And then the development platform can change the preset template code according to the data model configuration information and the page configuration information to obtain the target page code. And compiling, deploying and operating the target page code to generate a user-oriented target page.
Therefore, template codes for generating the page are preset, when the page needs to be generated, the template codes can be changed according to the acquired information by acquiring the data model configuration information and the page configuration information input by developers, so that target page codes are obtained, and the target page is generated. Therefore, the page development is converted into the process of automatically generating codes and running the codes through the configuration information, the processes of database design, interface design, front-end and back-end development and front-end and back-end joint debugging test are not needed, and the development labor and time are greatly saved.
Referring to fig. 3, fig. 3 is a block diagram of an apparatus for implementing a page generation method according to an embodiment of the present disclosure, and as shown in fig. 3, the apparatus may include:
a first obtaining module 301, configured to obtain data model configuration information input by a developer, and generate a database table based on the data model configuration information; the data model configuration information comprises a field customized by a developer;
a second obtaining module 302, configured to obtain page configuration information input by the developer, where the page configuration information includes form configuration information and an association relationship between the form configuration information and a field in the data model configuration information;
a code generation module 303, configured to change a preset template code based on the data model configuration information and the page configuration information, to obtain a target page code;
and a page generating module 304, configured to compile, deploy, and run the target page code, and generate a target page.
In one embodiment of the present disclosure, the form configuration information includes: the configuration information of the display field, the form field and the form button selected from the data model configuration information;
the incidence relation between the form configuration information and the fields in the data model configuration information comprises the following steps:
and the incidence relation between the form field and the field in the data model configuration information and the incidence relation between the form button and the field in the data model configuration information.
In one embodiment of the present disclosure, the form field includes:
a single-line text box, a password box, a multi-line text box, a check box, a radio box, a drop-down selection box, and/or a file upload box;
the form button includes: a reset button, a submit button, and/or a form trigger button.
In one embodiment of the present disclosure, the method further includes:
and the third acquisition module is used for acquiring the input information of the user on the target page after the target page is generated, and updating the database table based on the input information.
Therefore, template codes for generating the page are preset, when the page needs to be generated, the template codes can be changed according to the acquired information by acquiring the data model configuration information and the page configuration information input by developers, so that target page codes are obtained, and the target page is generated. Therefore, the page development is converted into the process of automatically generating codes and running the codes through the configuration information, the processes of database design, interface design, front-end and back-end development and front-end and back-end joint debugging test are not needed, and the development labor and time are greatly saved.
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
The present disclosure provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a page generation method.
The present disclosure provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform a page generation method.
The present disclosure provides a computer program product comprising a computer program which, when executed by a processor, implements a page generation method.
FIG. 4 shows a schematic block diagram of an example electronic device 400 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 phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 4, the apparatus 400 includes a computing unit 401 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)402 or a computer program loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
A number of components in device 400 are connected to I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, or the like; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408 such as a magnetic disk, optical disk, or the like; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 401 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 401 executes the respective methods and processes described above, such as the page generation method. For example, in some embodiments, the page generation method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 400 via the ROM 402 and/or the communication unit 409. When the computer program is loaded into RAM 403 and executed by computing unit 401, one or more steps of the page generation method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the page generation method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes 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 codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. 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. A 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 a pointing device (e.g., a mouse or a 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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 clients and servers. A client and server are generally 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. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (11)

1. A page generation method includes:
acquiring data model configuration information input by a developer, and generating a database table based on the data model configuration information; the data model configuration information comprises a field customized by a developer;
acquiring page configuration information input by the developer, wherein the page configuration information comprises form configuration information and an incidence relation between the form configuration information and fields in the data model configuration information;
changing a preset template code based on the data model configuration information and the page configuration information to obtain a target page code;
and compiling, deploying and operating the target page code to generate a target page.
2. The method of claim 1, wherein,
the form configuration information includes: the configuration information of the display field, the form field and the form button selected from the data model configuration information;
the incidence relation between the form configuration information and the fields in the data model configuration information comprises the following steps:
and the incidence relation between the form field and the field in the data model configuration information and the incidence relation between the form button and the field in the data model configuration information.
3. The method of claim 2, wherein the form field comprises:
a single-line text box, a password box, a multi-line text box, a check box, a radio box, a drop-down selection box, and/or a file upload box;
the form button includes: a reset button, a submit button, and/or a form trigger button.
4. The method of claim 1, after generating the target page, further comprising:
and acquiring input information of a user on the target page, and updating the database table based on the input information.
5. A page generating apparatus, comprising:
the first acquisition module is used for acquiring data model configuration information input by developers and generating a database table based on the data model configuration information; the data model configuration information comprises a field customized by a developer;
the second acquisition module is used for acquiring page configuration information input by the developer, wherein the page configuration information comprises form configuration information and an incidence relation between the form configuration information and fields in the data model configuration information;
the code generation module is used for changing a preset template code based on the data model configuration information and the page configuration information to obtain a target page code;
and the page generation module is used for compiling, deploying and operating the target page code to generate a target page.
6. The apparatus of claim 5, wherein,
the form configuration information includes: the configuration information of the display field, the form field and the form button selected from the data model configuration information;
the incidence relation between the form configuration information and the fields in the data model configuration information comprises the following steps:
and the incidence relation between the form field and the field in the data model configuration information and the incidence relation between the form button and the field in the data model configuration information.
7. The apparatus of claim 6, wherein the form field comprises:
a single-line text box, a password box, a multi-line text box, a check box, a radio box, a drop-down selection box, and/or a file upload box;
the form button includes: a reset button, a submit button, and/or a form trigger button.
8. The apparatus of claim 5, further comprising:
and the third acquisition module is used for acquiring the input information of the user on the target page after the target page is generated, and updating the database table based on the input information.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
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-4.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-4.
11. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-4.
CN202111432915.6A 2021-11-29 2021-11-29 Page generation method and device Pending CN114036443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111432915.6A CN114036443A (en) 2021-11-29 2021-11-29 Page generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111432915.6A CN114036443A (en) 2021-11-29 2021-11-29 Page generation method and device

Publications (1)

Publication Number Publication Date
CN114036443A true CN114036443A (en) 2022-02-11

Family

ID=80139127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111432915.6A Pending CN114036443A (en) 2021-11-29 2021-11-29 Page generation method and device

Country Status (1)

Country Link
CN (1) CN114036443A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553691A (en) * 2022-04-28 2022-05-27 广东电网有限责任公司东莞供电局 Method, device and equipment for creating network configuration template and network configuration
CN114741072A (en) * 2022-04-20 2022-07-12 苏州峰之鼎信息科技有限公司 Page generation method, device, equipment and storage medium
CN116185372A (en) * 2023-04-26 2023-05-30 山东浪潮科学研究院有限公司 Back-end source code generation method, device, equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114741072A (en) * 2022-04-20 2022-07-12 苏州峰之鼎信息科技有限公司 Page generation method, device, equipment and storage medium
CN114741072B (en) * 2022-04-20 2024-03-12 苏州峰之鼎信息科技有限公司 Page generation method, device, equipment and storage medium
CN114553691A (en) * 2022-04-28 2022-05-27 广东电网有限责任公司东莞供电局 Method, device and equipment for creating network configuration template and network configuration
CN114553691B (en) * 2022-04-28 2022-07-29 广东电网有限责任公司东莞供电局 Method, device and equipment for creating network configuration template and network configuration
CN116185372A (en) * 2023-04-26 2023-05-30 山东浪潮科学研究院有限公司 Back-end source code generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US7895179B2 (en) Asynchronous updating of web page data views
CN114036443A (en) Page generation method and device
US11093242B2 (en) Automatically mapping data while designing process flows
CN110825766A (en) Query condition generation method and device, server and readable storage medium
US11755293B2 (en) Code execution and data processing pipeline
CN110889056B (en) Page marking method and device
EP3654175A1 (en) Terminal device, ui extension method, and ui extension program
CN112506854A (en) Method, device, equipment and medium for storing page template file and generating page
US10289388B2 (en) Process visualization toolkit
CN115309470A (en) Method, device and equipment for loading widgets and storage medium
US20240020350A1 (en) Method and system for navigation control
CN110780970A (en) Data screening method, device, equipment and computer readable storage medium
CN110968311A (en) Front-end page construction method and device and electronic equipment
CN115469849A (en) Service processing system, method, electronic device and storage medium
CN114090002A (en) Front-end interface construction method and device, electronic equipment and storage medium
CN113138760A (en) Page generation method and device, electronic equipment and medium
CN113656533A (en) Tree control processing method and device and electronic equipment
CN113805877A (en) Project engineering construction method and device based on IDEA plug-in
CN113703638A (en) Data management page processing method and device, electronic equipment and storage medium
CN111221610A (en) Page element acquisition method and device
CN114610204B (en) Auxiliary device and method for data processing, storage medium and electronic equipment
CN117235397B (en) Form data input method, device and medium
CN116204267B (en) Method and device for generating intellectual property flow form
CN112559311B (en) Interface adaptation method and device for mobile terminal automatic test
CN109240735B (en) Requirement rollback scheme filling method and device, terminal and readable storage medium

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