CN114047999A - Page configuration method, system, electronic equipment and storage medium - Google Patents

Page configuration method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN114047999A
CN114047999A CN202111549956.3A CN202111549956A CN114047999A CN 114047999 A CN114047999 A CN 114047999A CN 202111549956 A CN202111549956 A CN 202111549956A CN 114047999 A CN114047999 A CN 114047999A
Authority
CN
China
Prior art keywords
template
target
page
field
configuration information
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
CN202111549956.3A
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.)
Ctrip Travel Network Technology Shanghai Co Ltd
Original Assignee
Ctrip Travel Network Technology Shanghai 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 Ctrip Travel Network Technology Shanghai Co Ltd filed Critical Ctrip Travel Network Technology Shanghai Co Ltd
Priority to CN202111549956.3A priority Critical patent/CN114047999A/en
Publication of CN114047999A publication Critical patent/CN114047999A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a page configuration method, a system, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a target template ID; acquiring target template configuration information from a template configuration table according to the target template ID; the template configuration table comprises a template ID and template configuration information corresponding to the template ID; acquiring target field configuration information from the field configuration table according to the target template ID; the field configuration table comprises a template ID and field configuration information corresponding to the template ID; and generating a target page according to the target template configuration information and the target field configuration information. According to the method and the device, the related template configuration information is generated for the same type of page, the corresponding field configuration information is generated for the field required by the user, and the target page is generated according to the related configuration information, so that the target page can be generated in the shortest time, and the efficiency of the system is improved. Meanwhile, the problem of repeated development can be reduced, the workload of page development is reduced, and the user experience is greatly improved.

Description

Page configuration method, system, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, a system, an electronic device, and a storage medium for page configuration.
Background
Generally, a large number of repair application pages appear in an enterprise along with the development of enterprise scale, and as the number of repair application pages increases, a plurality of problems easily appear in a repair system of the enterprise.
Firstly, as the number of warranty pages increases, repeated codes are easy to appear in the system, and the later maintenance work is complicated. Secondly, the repeated development of the relevant warranty pages by different departments leads to wasted labor. And finally, the number of enterprise repair reporting systems is increased, which is not beneficial to enterprise management work.
Disclosure of Invention
The invention aims to overcome the defect of repeated development of pages of the same type in the prior art and provides a page configuration method, a page configuration system, electronic equipment and a storage medium.
The invention solves the technical problems through the following technical scheme:
as an aspect of the present invention, there is provided a method of page configuration, the method including:
acquiring a target template ID (identification number);
acquiring target template configuration information from a template configuration table according to the target template ID; the template configuration table comprises a template ID and template configuration information corresponding to the template ID; acquiring target field configuration information from a field configuration table according to the target template ID; the field configuration table comprises a template ID and field configuration information corresponding to the template ID;
and generating a target page according to the target template configuration information and the target field configuration information.
Optionally, before the obtaining of the target template ID, the method includes:
acquiring a template configuration table and a field configuration table;
and establishing a corresponding relation between the template configuration table and the field configuration table based on the template ID.
Optionally, the field configuration table further includes a field name; the template ID corresponds to the field name one to one.
Optionally, the step of obtaining the target template ID includes:
acquiring a user request parameter;
and analyzing the user request parameter to obtain a target template ID.
Optionally, the step of generating a target page according to the target template configuration information and the target field configuration information includes:
generating a target page node tree according to the target template configuration information;
and generating a target page according to the target page node tree.
Optionally, the field configuration information further includes a field component type and a field node content.
Optionally, the step of generating a target page according to the target template configuration information and the target field configuration information further includes:
generating a target page component according to the field component type;
matching the field node content to the target page component;
matching the target page component matched with the field node content to the target page node tree to generate a target page.
As another aspect of the present invention, there is provided a system for page configuration, the system including:
the template ID acquisition module is used for acquiring a target template ID;
the configuration information acquisition module is used for acquiring target template configuration information from a template configuration table according to the target template ID; the template configuration table comprises a template ID and template configuration information corresponding to the template ID; the system is also used for acquiring target field configuration information from a field configuration table according to the target template ID; the field configuration table comprises a template ID and field configuration information corresponding to the template ID;
and the page generation module is used for generating a target page according to the target template configuration information and the target field configuration information.
As another aspect of the present invention, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the page configuring method described in any one of the above.
As another aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of page configuration of any of the above.
The positive progress effects of the invention are as follows: according to the method and the device, the related template configuration information is generated for the same type of page, the corresponding field configuration information is generated for the field required by the user, and the related configuration information is loaded to generate the target page, so that the target page can be generated in the shortest time, and the efficiency of the system is improved. Meanwhile, the pages are subjected to template classification, so that the problem of repeated development can be reduced, the workload of page development is reduced, and the user experience is greatly improved.
Drawings
Fig. 1 is a flowchart illustrating a method for configuring a page according to an exemplary embodiment of the present invention;
fig. 2 is a flowchart illustrating step S104 of a method for configuring a page according to an exemplary embodiment of the present invention;
FIG. 3 is a block diagram of a system for page configuration according to an exemplary embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
An embodiment of the present invention provides a method for page configuration, where fig. 1 is a schematic flow diagram of the method for page configuration provided in this embodiment, and referring to fig. 1, the method includes:
s101, acquiring a target template ID.
In one embodiment, step S101 includes:
acquiring a user request parameter;
and analyzing the user request parameters to obtain the target template ID.
When a user requests a repair page, corresponding user request parameters may be generated. The user request parameter comprises a target template ID, and the target template ID is extracted from the user request parameter by analyzing the user request parameter.
And S102, acquiring target template configuration information from the template configuration table according to the target template ID.
The template configuration table comprises a template ID and template configuration information corresponding to the template ID, the template ID is used as a unique identifier of the page template, and the template configuration information is used for generating the template configuration of the page. The template configuration information includes, but is not limited to, a template name, a template usage description, and an extension field for special processing when the page is loaded. Target template configuration information required by the user can be acquired by searching the target template ID in the page template configuration table.
S103, acquiring target field configuration information from the field configuration table according to the target template ID.
The field configuration table includes a template ID and field configuration information, the field configuration information may be used to generate a field tag that a user needs to fill in or view in the page, and the template ID may be used as an identifier for acquiring the field configuration information. The field configuration information includes, but is not limited to, field name, field node content, and field component type. The field configuration information required by the user can be acquired by searching the field configuration table for the target template ID.
And S104, generating a target page according to the target template configuration information and the target field configuration information.
The front-end server generates a target page by analyzing the target template configuration information and the target field configuration information.
In an embodiment, fig. 2 is a schematic flowchart of step S104 of the method for configuring a page provided in this embodiment, referring to fig. 2, where the method includes the following steps:
and S1041, generating a target page node tree according to the target template configuration information.
The page node tree is a basic component in webpage design, and can clearly display a webpage structure. And generating a target page node tree from the target webpage template configuration information, and displaying the webpage template configuration information in the target webpage in a hierarchical mode so as to facilitate the user to look up.
S1042, generating a target page assembly according to the field assembly type.
Wherein field component types include, but are not limited to, text box, text field, drop down list. The target page component can enable the page node content to have different display forms in the target page according to different component types.
And S1043, matching the content of the field node to the target page component.
And matching the content of the field node to the corresponding target page component, so that the content of the field node has a corresponding display form and function on the target page to form a complete page node.
S1044, matching the target page component matched with the field node content to the target page node tree to generate a target page.
And matching the target page component matched with the field node content to the corresponding position of the corresponding target page node tree for displaying, and finally generating the target webpage.
In an embodiment, before step S101, the template configuration table and the field configuration table need to be configured to obtain the relevant configuration information of the generated page, where the method includes the following steps:
acquiring a template configuration table and a field configuration table;
and establishing a corresponding relation between the template configuration table and the field configuration table based on the template ID.
The acquisition of the template configuration table and the field configuration table may acquire relevant configuration information required for generating the corresponding repair page. The template configuration table and the field configuration table may contain configuration information required by a plurality of repair pages. One warranty page corresponds to one template ID, and related page configuration information can be inquired by inquiring the corresponding template ID.
Specifically, a template configuration table FormType is created as follows:
Figure BDA0003417179820000051
Figure BDA0003417179820000061
creating the following field configuration Table FormField
Figure BDA0003417179820000062
Meanwhile, the corresponding relation between the template configuration table and the field configuration table can be established, and the corresponding relation between the field name in the field configuration table and the template ID in the template configuration table is established. When the system acquires the target template ID, the target field name corresponding to the template ID is inquired, and the target field configuration information in the field configuration table can be acquired through the target field name.
Specifically, the following corresponding relation table FormField Rel is established
Figure BDA0003417179820000071
An embodiment of the present invention further provides a system for page configuration, fig. 3 is a schematic block diagram of the system for page configuration provided in this embodiment, and referring to fig. 3, the system includes:
a template ID obtaining module 21, configured to obtain a target template ID.
In one embodiment, the template ID acquisition module includes:
acquiring a user request parameter;
and analyzing the user request parameters to obtain the target template ID.
When a user requests a repair page, corresponding user request parameters may be generated. The user request parameter comprises a target template ID, and the target template ID is extracted from the user request parameter by analyzing the user request parameter.
And a configuration information obtaining module 22, configured to obtain the target template configuration information from the template configuration table according to the target template ID.
In one embodiment, the configuration information acquisition module includes two units: a template configuration information acquisition unit and a field configuration information acquisition unit.
A template configuration information acquisition unit for acquiring target template configuration information from the template configuration table based on the target template ID
The template configuration table comprises a template ID and template configuration information corresponding to the template ID, the template ID is used as a unique identifier of the page template, and the template configuration information is used for generating the template configuration of the page. The template configuration information includes, but is not limited to, a template name, a template usage description, and an extension field for special processing when the page is loaded. Target template configuration information required by the user can be acquired by searching the target template ID in the page template configuration table.
And the field configuration information acquisition unit is used for acquiring the target field configuration information from the field configuration table according to the target template ID.
The field configuration table includes a template ID and field configuration information, the field configuration information may be used to generate a field tag that a user needs to fill in or view in the page, and the template ID may be used as an identifier for acquiring the field configuration information. The field configuration information includes, but is not limited to, field name, field node content, and field component type. The field configuration information required by the user can be acquired by searching the field configuration table for the target template ID.
And the page generating module 23 is configured to generate a target page according to the target template configuration information and the target field configuration information.
The front-end server generates a target page by analyzing the target template configuration information and the target field configuration information.
An embodiment of the present invention further provides an electronic device, referring to fig. 4, where the electronic device includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the method for configuring a page in this embodiment is implemented. The electronic device 30 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
The electronic device 30 may be embodied in the form of a general purpose computing device, which may be, for example, a server device. The components of the electronic device 30 may include, but are not limited to: the at least one processor 31, the at least one memory 32, and a bus 33 connecting the various system components (including the memory 32 and the processor 31).
The bus 33 includes a data bus, an address bus, and a control bus.
The memory 32 may include volatile memory, such as Random Access Memory (RAM)321 and/or cache memory 322, and may further include Read Only Memory (ROM) 323.
Memory 32 may also include a program/utility 325 having a set (at least one) of program modules 324, such program modules 324 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 31 executes various functional applications and data processing, such as a method of page configuration in the present embodiment, by executing a computer program stored in the memory 32.
The electronic device 30 may also communicate with one or more external devices 34 (e.g., keyboard, pointing device, etc.). Such communication may be through input/output (I/O) interfaces 35. Also, model-generating device 30 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via network adapter 36. As shown, the network adapter 26 communicates with the other modules of the model-generating device 30 over a bus 33. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the model-generating device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
The present embodiment also provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the method of page configuration in the present embodiment.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation, the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform a method of implementing the page configuration in this embodiment when the program product is run on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (10)

1. A method of page configuration, the method comprising:
acquiring a target template ID;
acquiring target template configuration information from a template configuration table according to the target template ID; the template configuration table comprises a template ID and template configuration information corresponding to the template ID; acquiring target field configuration information from a field configuration table according to the target template ID; the field configuration table comprises a template ID and field configuration information corresponding to the template ID;
and generating a target page according to the target template configuration information and the target field configuration information.
2. The method of page provisioning of claim 1 wherein, prior to said obtaining a target template ID, said method comprises:
acquiring a template configuration table and a field configuration table;
and establishing a corresponding relation between the template configuration table and the field configuration table based on the template ID.
3. The method for page configuration according to claim 1, wherein the field configuration table further comprises a field name; the template ID corresponds to the field name one to one.
4. The method for page provisioning of claim 1 wherein said step of obtaining a target template ID comprises:
acquiring a user request parameter;
and analyzing the user request parameter to obtain a target template ID.
5. The method for page provisioning of claim 1 wherein said step of generating a target page based on said target template configuration information and said target field configuration information comprises:
generating a target page node tree according to the target template configuration information;
and generating a target page according to the target page node tree.
6. The method of page provisioning of claim 5 wherein said field provisioning information further comprises a field component type and a field node content.
7. The method for page provisioning of claim 6 wherein said step of generating a target page based on said target template configuration information and said target field configuration information further comprises:
generating a target page component according to the field component type;
matching the field node content to the target page component;
matching the target page component matched with the field node content to the target page node tree to generate a target page.
8. A system for page configuration, the system comprising:
the template ID acquisition module is used for acquiring a target template ID;
the configuration information acquisition module is used for acquiring target template configuration information from a template configuration table according to the target template ID; the template configuration table comprises a template ID and template configuration information corresponding to the template ID; the system is also used for acquiring target field configuration information from a field configuration table according to the target template ID; the field configuration table comprises a template ID and field configuration information corresponding to the template ID;
and the page generation module is used for generating a target page according to the target template configuration information and the target field configuration information.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of page configuration of any of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of page configuration of any one of claims 1 to 7.
CN202111549956.3A 2021-12-17 2021-12-17 Page configuration method, system, electronic equipment and storage medium Pending CN114047999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111549956.3A CN114047999A (en) 2021-12-17 2021-12-17 Page configuration method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111549956.3A CN114047999A (en) 2021-12-17 2021-12-17 Page configuration method, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114047999A true CN114047999A (en) 2022-02-15

Family

ID=80213231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111549956.3A Pending CN114047999A (en) 2021-12-17 2021-12-17 Page configuration method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114047999A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114637564A (en) * 2022-03-16 2022-06-17 平安国际智慧城市科技股份有限公司 Data visualization method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6253216B1 (en) * 1997-06-13 2001-06-26 Tele-Publishing, Inc. Method and apparatus for providing a personal page
CN108829885A (en) * 2018-06-27 2018-11-16 珠海市君天电子科技有限公司 Page generation method, device, server, electronic equipment and storage medium
CN110347984A (en) * 2019-05-20 2019-10-18 中国平安财产保险股份有限公司 Declaration form page variation, device, computer equipment and storage medium
CN110347953A (en) * 2019-05-20 2019-10-18 中国平安财产保险股份有限公司 Page generation method, device, computer equipment and storage medium
CN111339387A (en) * 2018-12-18 2020-06-26 阿里巴巴集团控股有限公司 Click feedback obtaining method and device based on information template and electronic equipment
CN113050939A (en) * 2021-03-24 2021-06-29 上海哔哩哔哩科技有限公司 Page generation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6253216B1 (en) * 1997-06-13 2001-06-26 Tele-Publishing, Inc. Method and apparatus for providing a personal page
CN108829885A (en) * 2018-06-27 2018-11-16 珠海市君天电子科技有限公司 Page generation method, device, server, electronic equipment and storage medium
CN111339387A (en) * 2018-12-18 2020-06-26 阿里巴巴集团控股有限公司 Click feedback obtaining method and device based on information template and electronic equipment
CN110347984A (en) * 2019-05-20 2019-10-18 中国平安财产保险股份有限公司 Declaration form page variation, device, computer equipment and storage medium
CN110347953A (en) * 2019-05-20 2019-10-18 中国平安财产保险股份有限公司 Page generation method, device, computer equipment and storage medium
CN113050939A (en) * 2021-03-24 2021-06-29 上海哔哩哔哩科技有限公司 Page generation method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114637564A (en) * 2022-03-16 2022-06-17 平安国际智慧城市科技股份有限公司 Data visualization method and device, electronic equipment and storage medium
CN114637564B (en) * 2022-03-16 2023-11-07 平安国际智慧城市科技股份有限公司 Data visualization method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2014179819A2 (en) Software design pattern for adapting a graph database visualization software
EP3916584A1 (en) Information processing method and apparatus, electronic device and storage medium
CN110609681A (en) System, method, device and medium for visually configuring and generating WEB application
CN108681866B (en) Waybill processing method, system, device and storage medium
CN111782452A (en) Method, system, device and medium for interface contrast test
CN115686606A (en) Method, device, system and medium for displaying item dependency tree
CN114047999A (en) Page configuration method, system, electronic equipment and storage medium
CN105094857A (en) Method and system used for loading applications
US20200380037A1 (en) Information Retrieval Precision Evaluation Method, System and Device and Computer-Readable Storage Medium
CN110969501A (en) Method, system, equipment and storage medium for displaying pages of network shopping cart
CN113065139A (en) Alarm access method and system, electronic device and medium
CN112052222A (en) Heterogeneous object storage cluster access method, device, equipment and storage medium
KR102455316B1 (en) Method for unifying tool and information coming from multiple information sources, and computer program product and device using same
CN114168624B (en) Data analysis method, computing device and storage medium
CN113590367B (en) Exit processing method, system, device and storage medium of application program
CN110322531B (en) Automatic marking method, system, equipment and storage medium for flat steel support
CN111930720A (en) Data tilt processing method, system, electronic device and medium
CN110705241B (en) Method, system, electronic device and storage medium for managing industrial labels
CN110727457A (en) Component management method, device, storage medium and electronic equipment
CN116340363B (en) Data storage and loading method based on relational database and related device
CN112257004B (en) Method, device, server and storage medium for page backup
CN102193955B (en) Method and device for generating Facelets page
CN116414443A (en) Method, system, electronic device and medium for generating display object in webpage
CN113515504B (en) Data management method, device, electronic equipment and storage medium
CN117056175B (en) Data processing method, device, electronic equipment and 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