CN112765517A - Page generation method and device and electronic equipment - Google Patents

Page generation method and device and electronic equipment Download PDF

Info

Publication number
CN112765517A
CN112765517A CN202110034579.3A CN202110034579A CN112765517A CN 112765517 A CN112765517 A CN 112765517A CN 202110034579 A CN202110034579 A CN 202110034579A CN 112765517 A CN112765517 A CN 112765517A
Authority
CN
China
Prior art keywords
component
page
parameter
search
control
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
CN202110034579.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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202110034579.3A priority Critical patent/CN112765517A/en
Publication of CN112765517A publication Critical patent/CN112765517A/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/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a page generation method and device and electronic equipment. The method comprises the following steps: acquiring a search box to be laid out and a control to be laid out corresponding to a page to be laid out; acquiring a search frame component corresponding to the search frame to be laid out and a control component corresponding to the control to be laid out; generating a first component according to a first component parameter corresponding to the search box component and the search box component input by a user; generating a second component according to a second component parameter corresponding to the control component and the control component input by the user; and laying out the page to be laid out based on the first assembly and the second assembly to generate a target page after laying out. According to the page building method and device, the complete page formed by the single or multiple search boxes, the operation button combination and the search result list can be built quickly through the preset search box assembly and the preset control assembly, and therefore the page building efficiency is effectively improved.

Description

Page generation method and device and electronic equipment
Technical Field
The present application relates to the field of page component layout technologies, and in particular, to a page generation method and apparatus, and an electronic device.
Background
At present, the page proportion of the query search display in the webpage construction project is large, a large number of search boxes and operation buttons exist in the webpage, and when the webpage is constructed, a user usually writes codes corresponding to the search boxes and the operation buttons in the webpage.
Disclosure of Invention
The application provides a page generation method and device and electronic equipment, and aims to solve the problems that in the prior art, page construction consumes long time and the page construction efficiency is greatly reduced.
In order to solve the above problem, an embodiment of the present application provides a page generation method, including:
acquiring a search box to be laid out and a control to be laid out corresponding to a page to be laid out;
acquiring a search frame component corresponding to the search frame to be laid out and a control component corresponding to the control to be laid out;
generating a first component according to a first component parameter corresponding to the search box component and the search box component input by a user;
generating a second component according to a second component parameter corresponding to the control component and the control component input by the user;
and laying out the page to be laid out based on the first assembly and the second assembly to generate a target page after laying out.
Optionally, after the obtaining of the search box to be laid out and the control to be laid out corresponding to the page to be laid out, the method further includes:
acquiring first position information of the search box to be laid in the page to be laid and second position information of the control to be laid in the page to be laid;
the step of laying out the page to be laid out based on the first component and the second component to generate a laid out target page includes:
loading the first assembly and the second assembly on the page to be laid respectively according to the first position information and the second position information;
rendering the page to be laid out to generate the target page.
Optionally, the generating a first component according to the search box component and the first component parameter corresponding to the search box component input by the user includes:
acquiring a first component parameter input by the user;
writing the first component parameter into the search box component to generate the first component;
generating a second component according to the control component and a second component parameter corresponding to the control component input by the user, wherein the generating of the second component comprises:
acquiring a second component parameter input by the user;
and writing the second component parameter into the control component to generate the second component.
Optionally, after the page to be laid out is laid out based on the first component and the second component, and a target page after layout is generated, the method further includes:
acquiring keywords input by a user in a target search box in the target page;
after the search result corresponding to the keyword is obtained, determining a result display type and a result export type corresponding to the search result according to the target component parameter corresponding to the target search box;
displaying the search result according to the result display type, and exporting the search result according to the result export type;
the result display type comprises any one of a paging display type and a current page display type, and the result export type comprises any one of a front-end export type and a background export type.
Optionally, the first component parameters include: a search box type parameter, the second component parameter comprising a search result display parameter and a search result derivation parameter, wherein,
the search box type parameter includes: any one of a text box type parameter, a drop-down box type parameter, and a tree box type parameter;
the search result display parameters include: displaying at least one of the number of pages and the number of display strips per page;
the search result derivation parameters include: any one of a background derived parameter and a front-end derived parameter.
In order to solve the above technical problem, an embodiment of the present application further provides a page generating apparatus, including:
the device comprises a to-be-laid control acquiring module, a to-be-laid searching box and a to-be-laid control, wherein the to-be-laid control acquiring module is used for acquiring a to-be-laid searching box and a to-be-laid control corresponding to a to-be-laid page;
the control component acquisition module is used for acquiring the search box component corresponding to the search box to be laid and the control component corresponding to the control to be laid;
the first component generation module is used for generating a first component according to a first component parameter corresponding to the search box component and the search box component input by a user;
the second component generation module is used for generating a second component according to a second component parameter corresponding to the control component and the control component input by the user;
and the target page generating module is used for laying out the page to be laid out based on the first component and the second component and generating a laid out target page.
Optionally, the apparatus further comprises:
the position information acquisition module is used for acquiring first position information of the search box to be laid in the page to be laid and second position information of the control to be laid in the page to be laid;
the target page generation module comprises:
a page component loading unit, configured to load the first component and the second component on the page to be laid out according to the first location information and the second location information, respectively;
and the target page generating unit is used for rendering the page to be laid out and generating the target page.
Optionally, the first component generation module includes:
a first component parameter acquiring unit, configured to acquire a first component parameter input by the user;
a first component generating unit, configured to write the first component parameter into the search box component, and generate the first component;
the second component generation module includes:
a second component parameter acquiring unit, configured to acquire a second component parameter input by the user;
and the second component generating unit is used for writing the second component parameters into the control component to generate the second component.
Optionally, the apparatus further comprises:
the keyword acquisition module is used for acquiring keywords input by a user in a target search box in the target page;
the result type determining module is used for determining a result display type and a result derivation type corresponding to the search result according to the target component parameter corresponding to the target search box after the search result corresponding to the keyword is obtained;
the search result display module is used for displaying the search result according to the result display type and exporting the search result according to the result export type;
the result display type comprises any one of a paging display type and a current page display type, and the result export type comprises any one of a front-end export type and a background export type.
Optionally, the first component parameters include: a search box type parameter, the second component parameter comprising a search result display parameter and a search result derivation parameter, wherein,
the search box type parameter includes: any one of a text box type parameter, a drop-down box type parameter, and a tree box type parameter;
the search result display parameters include: displaying at least one of the number of pages and the number of display strips per page;
the search result derivation parameters include: any one of a background derived parameter and a front-end derived parameter.
In order to solve the above technical problem, an embodiment of the present application provides an electronic device, including:
the page generation method comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the page generation method when executing the program.
In order to solve the technical problem, an embodiment of the present application provides a readable storage medium, and when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any one of the page generation methods described above.
Compared with the prior art, the method has the following advantages:
the embodiment of the application provides a page generation method, a page generation device and electronic equipment. According to the page building method and device, the complete page formed by the single or multiple search boxes, the operation button combination and the search result list can be built quickly through the preset search box assembly and the preset control assembly, and therefore the page building efficiency is effectively improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a page generation method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating steps of another page generation method provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a page provided by an embodiment of the present application;
fig. 4 is a schematic structural diagram illustrating a page generation apparatus provided in an embodiment of the present application;
fig. 5 shows a schematic structural diagram of another page generation apparatus provided in the embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Example one
Referring to fig. 1, a flowchart illustrating steps of a page generation method provided in an embodiment of the present application is shown, where the page generation method may specifically include the following steps:
step 101: and acquiring a search box to be laid out and a control to be laid out corresponding to the page to be laid out.
The method and the device for realizing the rapid page layout can be applied to a scene of realizing the rapid page layout according to the preset search box component and the control component during the page layout.
The page to be laid out refers to a network page needing to be laid out.
The search box to be laid out refers to a search box that needs to be laid out in the page to be laid out, and in this embodiment, the search box to be laid out may be one or more of a text search box, a pull-down selection box, a tree box of a selection area, and the like.
The to-be-laid out control refers to a control that needs to be laid out in the to-be-laid out page, that is, a touch-controllable button that needs to be laid out in the page, such as an inquiry button, a reset button, and the like.
After the page to be laid out is obtained, the search box to be laid out and the control to be laid out which need to be laid out in the page to be laid out can be obtained according to business requirements.
After the search box to be laid out and the control to be laid out corresponding to the page to be laid out are acquired, step 102 is executed.
Step 102: and acquiring a search box component corresponding to the search box to be laid out and a control component corresponding to the control to be laid out.
The search box component is a component obtained by packaging a code corresponding to a search box to be laid out, which is written in advance by a service worker.
The control component is a component obtained by packaging a code corresponding to a control to be laid out, which is written in advance by a business worker.
In this embodiment, a service person may write a code corresponding to a search box and a code corresponding to a control in advance, and then encapsulate the two sections of codes respectively, so as to obtain a search box component and a control component.
After acquiring a search box to be laid out and a control to be laid out corresponding to a page to be laid out, the search box component corresponding to the search box to be laid out and the control component corresponding to the control to be laid out can be acquired according to the search box component and the control component which are packaged in advance, for example, the search box to be laid out includes a search box 1 and a search box 2, the control to be laid out includes a control 1, a control 2 and a control 3, and at this time, two search box components can be acquired: search box component 1 and search box component 2, three control components: the control component 1, the control component 2 and the control component 3, and further, the search box component 1 can be used as a component of the search box 1, the search box component 2 can be used as a component of the search box 2, the control component 1 can be used as a component of the control 1, the control component 2 can be used as a component of the control 2, and the control component 3 can be used as a component of the control 3.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
After acquiring the search box component corresponding to the search box to be laid out and the control component corresponding to the control to be laid out, executing step 103 and step 104.
Step 103: and generating a first component according to the search box component and the first component parameter corresponding to the search box component input by the user.
The first component parameter refers to a parameter written by a user for the search box component, and in this embodiment, the first component parameter may include a search box type parameter.
The search box type parameter may be any one of a text box type parameter, a drop-down box type parameter, and a tree box type parameter.
The text box type parameter is a parameter for indicating that the search box to be laid out is a text input box, that is, corresponding retrieval can be performed by inputting a text by a user.
The drop-down box type parameter is a parameter for indicating that the search box to be laid out is a drop-down option box, that is, a user can display a plurality of drop-down options by inputting a text, and the user can select a certain drop-down option to perform corresponding retrieval.
The tree frame type parameter refers to a parameter for indicating that the search frame to be laid out is a drop-down frame of a tree structure.
After the search box component corresponding to the search box to be laid out is obtained, a user can input a first component parameter corresponding to the search box component, and the first component can be generated by combining the first component parameter and the search box component. If the search box to be laid out is a drop-down box, at this time, the user needs to input a type parameter and also needs to provide an options parameter, where the options parameter may indicate a drop-down option, and specifically, the written code may be as follows:
{
key:’firmID’,
label: the "visiting company",
type:’select’,
options:companyList,
}
{
key:’receptionPsnName’,
label: the "visiting company",
},
the key value is the key transmitted to the rear end, and the label is the field Chinese characters displayed at the front end.
Step 104: and generating a second assembly according to the control assembly and a second assembly parameter corresponding to the control assembly input by the user.
The second component parameter refers to a parameter written by a user for the control component, and in this embodiment, the second component parameter may include a search result display parameter and a search result derivation parameter, where the search result display parameter may include at least one of parameters of the number of displayed pages, the number of displayed pieces per page, and the like.
The search result derived parameters may include any of background derived parameters and front-end derived parameters.
The displayed page number is a page number for displaying a search result.
The number of displayed pieces per page refers to the number of displayed search results per page, such as 10 pieces, 20 pieces, and the like.
The background derived parameter refers to a parameter for deriving the search result through the background, and when the derived parameter is the background derived parameter, all the search results can be derived.
The front-end derived parameter refers to a parameter for locally deriving the search result at the client, and when the derived parameter is the front-end derived parameter, the search result located in the first page in the search result can be derived.
The second component parameters may be described below in conjunction with specific codes as follows.
{ title: 'visiting company', dataIndex: 'toFirmName' }
{ title: 'name', dataIndex: 'visitorName' }
{ title: 'identification card', dataIndex: 'visitorIdCarNum' }
{ title: 'visiting company', dataIndex: 'fromFirmName' }
{ title: "traffic area", dataIndex: 'AREAPath' }
{ title: 'gate number', dataIndex: 'devicenName' }
The code parameter is a table column set for display, title is a header of a table, dataIndex: the method comprises the steps that a field name of an interface given by a key to the back end is obtained, a getList (data acquisition interface) is transmitted during initialization, and parameters are synchronously transmitted into the getList when the display quantity of each page is changed and the display table is jumped.
After obtaining the second component parameter corresponding to the control component input by the user, the second component may be generated according to the second component parameter and the control component.
The execution sequence of the step 103 and the step 104 is not sequential, and the step 103 may be executed first, and then the step 104 is executed, or the step 104 may be executed first, and then the step 103 is executed, or the step 103 and the step 104 are executed simultaneously, for example, the step 103 and the step 104 are executed simultaneously in a multi-thread manner, and specifically, the present embodiment is not limited thereto, depending on the business requirement.
Step 105: and laying out the page to be laid out based on the first assembly and the second assembly to generate a target page after laying out.
After the first component and the second component are obtained, the page to be laid out may be laid out based on the first component and the second component to generate a laid out target page, and specifically, the page to be laid out may be rendered in combination with the first component and the second component, that is, the target page may be generated. As shown in fig. 3, the generated target page may include a plurality of search boxes, such as a drop-down selection box, a text input box, a tree selection box, a date range selection box, and the like shown in fig. 3, may also include a plurality of button combinations, such as a combination of buttons of "export", "query", "reset", and the like, and may also display a search result presentation list area, and display a paging bar, and the like.
According to the page building method and device, the complete page formed by the single or multiple search boxes, the operation button combination and the search result list can be built quickly through the preset search box assembly and the preset control assembly, and therefore the page building efficiency is effectively improved.
According to the page generation method provided by the embodiment of the application, the search frame component corresponding to the search frame to be laid and the control component corresponding to the control component to be laid are obtained by obtaining the search frame to be laid and the control component corresponding to the search frame to be laid, the first component is generated according to the first component parameter and the search frame component corresponding to the search frame component input by a user, the second component is generated according to the second component parameter and the control component corresponding to the control component input by the user, the page to be laid is laid based on the first component and the second component, and the target page after laying is generated. According to the page building method and device, the complete page formed by the single or multiple search boxes, the operation button combination and the search result list can be built quickly through the preset search box assembly and the preset control assembly, and therefore the page building efficiency is effectively improved.
Example two
Referring to fig. 2, a flowchart illustrating steps of another page generation method provided in the embodiment of the present application is shown, where the page generation method may specifically include the following steps:
step 201: and acquiring a search box to be laid out and a control to be laid out corresponding to the page to be laid out.
The method and the device for realizing the rapid page layout can be applied to a scene of realizing the rapid page layout according to the preset search box component and the control component during the page layout.
The page to be laid out refers to a network page needing to be laid out.
The search box to be laid out refers to a search box that needs to be laid out in the page to be laid out, and in this embodiment, the search box to be laid out may be one or more of a text search box, a pull-down selection box, a tree box of a selection area, and the like.
The to-be-laid out control refers to a control that needs to be laid out in the to-be-laid out page, that is, a touch-controllable button that needs to be laid out in the page, such as an inquiry button, a reset button, and the like.
After the page to be laid out is obtained, the search box to be laid out and the control to be laid out which need to be laid out in the page to be laid out can be obtained according to business requirements.
After the search box to be laid out and the control to be laid out corresponding to the page to be laid out are acquired, step 202 is executed.
Step 202: and acquiring first position information of the search box to be laid in the page to be laid and second position information of the control to be laid in the page to be laid.
The first position information is position information in which a search box to be laid out is laid out within a page to be laid out.
The second position information refers to the position information of the control to be laid out in the page to be laid out.
It can be understood that the first location information and the second location information are both area information, and the number of the first location information and the second location information may be one or multiple, and specifically, may be determined according to a service requirement, which is not limited in this embodiment.
After the search box to be laid out and the control to be laid out are obtained, first position information of the search box to be laid out in the page to be laid out and second position information of the control to be laid out in the page to be laid out can be obtained.
After the first position information of the search box to be laid out in the page to be laid out and the second position information of the control to be laid out in the page to be laid out are obtained, step 203 is executed.
Step 203: and acquiring a search box component corresponding to the search box to be laid out and a control component corresponding to the control to be laid out.
The search box component is a component obtained by packaging a code corresponding to a search box to be laid out, which is written in advance by a service worker.
The control component is a component obtained by packaging a code corresponding to a control to be laid out, which is written in advance by a business worker.
In this embodiment, a service person may write a code corresponding to a search box and a code corresponding to a control in advance, and then encapsulate the two sections of codes respectively, so as to obtain a search box component and a control component.
After acquiring a search box to be laid out and a control to be laid out corresponding to a page to be laid out, the search box component corresponding to the search box to be laid out and the control component corresponding to the control to be laid out can be acquired according to the search box component and the control component which are packaged in advance, for example, the search box to be laid out includes a search box 1 and a search box 2, the control to be laid out includes a control 1, a control 2 and a control 3, and at this time, two search box components can be acquired: search box component 1 and search box component 2, three control components: the control component 1, the control component 2 and the control component 3, and further, the search box component 1 can be used as a component of the search box 1, the search box component 2 can be used as a component of the search box 2, the control component 1 can be used as a component of the control 1, the control component 2 can be used as a component of the control 2, and the control component 3 can be used as a component of the control 3.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
After acquiring the search box component corresponding to the search box to be laid out and the control component corresponding to the control to be laid out, executing step 204 and step 206.
Step 204: and acquiring the first component parameter input by the user.
The first component parameter refers to a parameter written by a user for the search box component, and in this embodiment, the first component parameter may include a search box type parameter.
The search box type parameter may be any one of a text box type parameter, a drop-down box type parameter, and a tree box type parameter.
The text box type parameter is a parameter for indicating that the search box to be laid out is a text input box, that is, corresponding retrieval can be performed by inputting a text by a user.
The drop-down box type parameter is a parameter for indicating that the search box to be laid out is a drop-down option box, that is, a user can display a plurality of drop-down options by inputting a text, and the user can select a certain drop-down option to perform corresponding retrieval.
The tree frame type parameter refers to a parameter for indicating that the search frame to be laid out is a drop-down frame of a tree structure.
After the search box component corresponding to the search box to be laid out is acquired, a user can input a first component parameter corresponding to the search box component.
After the first component parameter is acquired, step 205 is performed.
Step 205: and writing the first component parameter into the search box component to generate the first component.
The first component refers to a component obtained after the first component parameter written by the user is written into the search box component.
After the first component parameter is obtained, the first component parameter may be written into the search box component, so that the first component may be generated, for example, the search box component includes a component 1 and a component 2, the first component parameter written for the component 1 by the user is a parameter 1, the first component parameter written for the component 2 is a parameter 2, after the parameter 1 is written into the component 1, the first component corresponding to the component 1 may be generated, and after the parameter 2 is written into the component 2, the first component corresponding to the component 2 may be generated, and the like.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
Step 206: and acquiring the second component parameter input by the user.
The second component parameter refers to a parameter written by a user for the control component, and in this embodiment, the second component parameter may include a search result display parameter and a search result derivation parameter, where the search result display parameter may include at least one of parameters of the number of displayed pages, the number of displayed pieces per page, and the like.
The search result derived parameters may include any of background derived parameters and front-end derived parameters.
The displayed page number is a page number for displaying a search result.
The number of displayed pieces per page refers to the number of displayed search results per page, such as 10 pieces, 20 pieces, and the like.
The background derived parameter refers to a parameter for deriving the search result through the background, and when the derived parameter is the background derived parameter, all the search results can be derived.
The front-end derived parameter refers to a parameter for locally deriving the search result at the client, and when the derived parameter is the front-end derived parameter, the search result located in the first page in the search result can be derived.
The second component parameters may be described below in conjunction with specific codes as follows.
{ title: 'visiting company', dataIndex: 'toFirmName' }
{ title: 'name', dataIndex: 'visitorName' }
{ title: 'identification card', dataIndex: 'visitorIdCarNum' }
{ title: 'visiting company', dataIndex: 'fromFirmName' }
{ title: "traffic area", dataIndex: 'AREAPath' }
{ title: 'gate number', dataIndex: 'devicenName' }
The code parameter is a table column set for display, title is a header of a table, dataIndex: the method comprises the steps that a field name of an interface given by a key to the back end is obtained, a getList (data acquisition interface) is transmitted during initialization, and parameters are synchronously transmitted into the getList when the display quantity of each page is changed and the display table is jumped.
After the second component parameter is acquired, step 207 is performed.
Step 207: and writing the second component parameter into the control component to generate the second component.
The second component refers to a component obtained after the second component parameter is written into the control component.
After the second component parameter is obtained, the second component parameter may be written into the control component, that is, the second component may be obtained, for example, the control component includes a component 1 and a component 2, the second component parameter written for the component 1 by the user is a parameter 1, the second component parameter written for the component 2 is a parameter 2, after the parameter 1 is written into the component 1, the second component corresponding to the component 1 may be generated, and after the parameter 2 is written into the component 2, the second component corresponding to the component 2 may be generated, and the like.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
The execution sequence of the step 204 and the step 206 is not sequential, and the step 204 may be executed first, and then the step 206 is executed, or the step 206 may be executed first, and then the step 204 is executed, or the step 204 and the step 206 are executed simultaneously, for example, the step 204 and the step 206 are executed simultaneously in a multi-thread manner, and specifically, the present embodiment is not limited thereto, depending on the business requirement.
Step 208: and loading the first assembly and the second assembly on the page to be laid respectively according to the first position information and the second position information.
After obtaining the first component and the second component, the first component may be loaded in the page to be laid out according to the first location information, and the second component may be loaded in the page to be laid out according to the second location information.
After the first component and the second component are loaded within the page to be laid out according to the first location information and the second location information, respectively, step 209 is performed.
Step 209: rendering the page to be laid out to generate the target page.
After the first component and the second component are loaded in the page to be laid out according to the first position information and the second position information, the page to be laid out can be rendered, and the target page can be generated. As shown in fig. 3, the generated target page may include a plurality of search boxes, such as a drop-down selection box, a text input box, a tree selection box, a date range selection box, and the like shown in fig. 3, may also include a plurality of button combinations, such as a combination of buttons of "export", "query", "reset", and the like, and may also display a search result presentation list area, and display a paging bar, and the like.
According to the page building method and device, the complete page formed by the single or multiple search boxes, the operation button combination and the search result list can be built quickly through the preset search box assembly and the preset control assembly, and therefore the page building efficiency is effectively improved.
Step 210: and acquiring keywords input by a user in a target search box in the target page.
The target search box refers to a search box in which a user needs to input a keyword.
After the target page is generated, a keyword may be input by the user in a target search box within the target page, and then step 211 is performed.
Step 211: and after the search result corresponding to the keyword is obtained, determining a result display type and a result derivation type corresponding to the search result according to the target component parameter corresponding to the target search box.
The target component parameters refer to component parameters input by a user for a control associated with the target search box in advance.
After the keywords input by the user in the target search box are obtained, information retrieval can be performed according to the keywords to obtain search results corresponding to the keywords, and result display types and result derivation types corresponding to the search results can be determined according to the target component parameters.
After the result display type and the result derivation type are determined, step 212 is performed.
Step 212: and displaying the search result according to the result display type, and exporting the search result according to the result export type.
After the result display type and the result derivation type are determined, the search results may be displayed according to the result display type and derived according to the result derivation type.
In this embodiment, the result display type may include any one of a pagination display type and a current page display type, and the result export type may include any one of a front-end export type and a background export type. For example, when the result display type is a page display type, the search result may be displayed in pages, and when the result display type is a current page display type, only the search result of one page is displayed, and when the result derivation type is a front-end derivation type, only the search result in the first page is derived; and when the result export type is the background export type, exporting all the search results and the like.
According to the page generation method provided by the embodiment of the application, the search frame component corresponding to the search frame to be laid and the control component corresponding to the control component to be laid are obtained by obtaining the search frame to be laid and the control component corresponding to the search frame to be laid, the first component is generated according to the first component parameter and the search frame component corresponding to the search frame component input by a user, the second component is generated according to the second component parameter and the control component corresponding to the control component input by the user, the page to be laid is laid based on the first component and the second component, and the target page after laying is generated. According to the page building method and device, the complete page formed by the single or multiple search boxes, the operation button combination and the search result list can be built quickly through the preset search box assembly and the preset control assembly, and therefore the page building efficiency is effectively improved.
EXAMPLE III
Referring to fig. 4, a schematic structural diagram of a page generation apparatus provided in an embodiment of the present application is shown, where the page generation apparatus 300 may specifically include the following modules:
a to-be-laid control obtaining module 310, configured to obtain a to-be-laid search box and a to-be-laid control corresponding to a to-be-laid page;
a control component obtaining module 320, configured to obtain a search box component corresponding to the search box to be laid out and a control component corresponding to the control to be laid out;
a first component generating module 330, configured to generate a first component according to a first component parameter corresponding to the search box component and the search box component input by a user;
a second component generating module 340, configured to generate a second component according to the control component and a second component parameter corresponding to the control component input by the user;
a target page generating module 350, configured to perform layout on the page to be laid out based on the first component and the second component, and generate a laid out target page.
The page generation device provided by the embodiment of the application obtains the search box component corresponding to the search box to be laid out and the control component corresponding to the control component to be laid out by obtaining the search box to be laid out and the control component corresponding to the control component to be laid out, generates the first component according to the first component parameter and the search box component corresponding to the search box component input by a user, generates the second component according to the second component parameter and the control component corresponding to the control component input by the user, lays out the page to be laid out based on the first component and the second component, and generates the target page after laying out. According to the page building method and device, the complete page formed by the single or multiple search boxes, the operation button combination and the search result list can be built quickly through the preset search box assembly and the preset control assembly, and therefore the page building efficiency is effectively improved.
Example four
Referring to fig. 5, a schematic structural diagram of another page generation apparatus provided in the embodiment of the present application is shown, where the page generation apparatus 400 may specifically include the following modules:
a to-be-laid control obtaining module 410, configured to obtain a to-be-laid search box and a to-be-laid control corresponding to a to-be-laid page;
a position information obtaining module 420, configured to obtain first position information of the search box to be laid in the page to be laid and second position information of the control to be laid in the page to be laid;
a control component obtaining module 430, configured to obtain a search box component corresponding to the search box to be laid out and a control component corresponding to the control to be laid out;
a first component generating module 440, configured to generate a first component according to a first component parameter corresponding to the search box component and the search box component, which are input by a user;
a second component generating module 450, configured to generate a second component according to the control component and a second component parameter corresponding to the control component input by the user;
a target page generating module 460, configured to perform layout on the page to be laid out based on the first component and the second component, and generate a target page after the layout;
a keyword obtaining module 470, configured to obtain a keyword input by a user in a target search box in the target page;
a result type determining module 480, configured to determine, after obtaining the search result corresponding to the keyword, a result display type and a result derivation type corresponding to the search result according to the target component parameter corresponding to the target search box;
a search result display module 490, configured to display the search result according to the result display type, and derive the search result according to the result derivation type;
the result display type comprises any one of a paging display type and a current page display type, and the result export type comprises any one of a front-end export type and a background export type.
Optionally, the target page generating module 460 includes:
a page component loading unit 461, configured to load the first component and the second component on the page to be laid out according to the first location information and the second location information, respectively;
a target page generating unit 462, configured to render the page to be laid out, and generate the target page.
Optionally, the first component generation module 440 includes:
a first component parameter obtaining unit 441, configured to obtain a first component parameter input by the user;
a first component generating unit 442, configured to write the first component parameter into the search box component, and generate the first component;
the second component generation module 450 includes:
a second component parameter acquiring unit 451 for acquiring a second component parameter input by the user;
a second component generating unit 452, configured to write the second component parameter into the control component, and generate the second component.
Optionally, the first component parameters include: a search box type parameter, the second component parameter comprising a search result display parameter and a search result derivation parameter, wherein,
the search box type parameter includes: any one of a text box type parameter, a drop-down box type parameter, and a tree box type parameter;
the search result display parameters include: displaying at least one of the number of pages and the number of display strips per page;
the search result derivation parameters include: any one of a background derived parameter and a front-end derived parameter.
The page generation device provided by the embodiment of the application obtains the search box component corresponding to the search box to be laid out and the control component corresponding to the control component to be laid out by obtaining the search box to be laid out and the control component corresponding to the control component to be laid out, generates the first component according to the first component parameter and the search box component corresponding to the search box component input by a user, generates the second component according to the second component parameter and the control component corresponding to the control component input by the user, lays out the page to be laid out based on the first component and the second component, and generates the target page after laying out. According to the page building method and device, the complete page formed by the single or multiple search boxes, the operation button combination and the search result list can be built quickly through the preset search box assembly and the preset control assembly, and therefore the page building efficiency is effectively improved.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present application is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Additionally, an embodiment of the present application further provides an electronic device, including: the page generation method comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the page generation method when executing the program.
The embodiment of the application also provides a readable storage medium, and when the instructions in the storage medium are executed by a processor of the electronic device, the electronic device is enabled to execute any one of the page generation methods.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above detailed description is given to a page generation method, a page generation apparatus and an electronic device, and a specific example is applied in this document to explain the principle and implementation of the present application, and the description of the above embodiment is only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. A page generation method is characterized by comprising the following steps:
acquiring a search box to be laid out and a control to be laid out corresponding to a page to be laid out;
acquiring a search frame component corresponding to the search frame to be laid out and a control component corresponding to the control to be laid out;
generating a first component according to a first component parameter corresponding to the search box component and the search box component input by a user;
generating a second component according to a second component parameter corresponding to the control component and the control component input by the user;
and laying out the page to be laid out based on the first assembly and the second assembly to generate a target page after laying out.
2. The method according to claim 1, wherein after the obtaining of the search box to be laid out and the control to be laid out corresponding to the page to be laid out, the method further comprises:
acquiring first position information of the search box to be laid in the page to be laid and second position information of the control to be laid in the page to be laid;
the step of laying out the page to be laid out based on the first component and the second component to generate a laid out target page includes:
loading the first assembly and the second assembly on the page to be laid respectively according to the first position information and the second position information;
rendering the page to be laid out to generate the target page.
3. The method of claim 1, wherein the generating a first component according to the search box component and the first component parameter corresponding to the search box component input by the user comprises:
acquiring a first component parameter input by the user;
writing the first component parameter into the search box component to generate the first component;
generating a second component according to the control component and a second component parameter corresponding to the control component input by the user, wherein the generating of the second component comprises:
acquiring a second component parameter input by the user;
and writing the second component parameter into the control component to generate the second component.
4. The method according to claim 1, further comprising, after the laying out the page to be laid out based on the first component and the second component and generating a laid out target page:
acquiring keywords input by a user in a target search box in the target page;
after the search result corresponding to the keyword is obtained, determining a result display type and a result export type corresponding to the search result according to the target component parameter corresponding to the target search box;
displaying the search result according to the result display type, and exporting the search result according to the result export type;
the result display type comprises any one of a paging display type and a current page display type, and the result export type comprises any one of a front-end export type and a background export type.
5. The method of claim 1, wherein the first component parameter comprises: a search box type parameter, the second component parameter comprising a search result display parameter and a search result derivation parameter, wherein,
the search box type parameter includes: any one of a text box type parameter, a drop-down box type parameter, and a tree box type parameter;
the search result display parameters include: displaying at least one of the number of pages and the number of display strips per page;
the search result derivation parameters include: any one of a background derived parameter and a front-end derived parameter.
6. A page generating apparatus, comprising:
the device comprises a to-be-laid control acquiring module, a to-be-laid searching box and a to-be-laid control, wherein the to-be-laid control acquiring module is used for acquiring a to-be-laid searching box and a to-be-laid control corresponding to a to-be-laid page;
the control component acquisition module is used for acquiring the search box component corresponding to the search box to be laid and the control component corresponding to the control to be laid;
the first component generation module is used for generating a first component according to a first component parameter corresponding to the search box component and the search box component input by a user;
the second component generation module is used for generating a second component according to a second component parameter corresponding to the control component and the control component input by the user;
and the target page generating module is used for laying out the page to be laid out based on the first component and the second component and generating a laid out target page.
7. The apparatus of claim 6, further comprising:
the position information acquisition module is used for acquiring first position information of the search box to be laid in the page to be laid and second position information of the control to be laid in the page to be laid;
the target page generation module comprises:
a page component loading unit, configured to load the first component and the second component on the page to be laid out according to the first location information and the second location information, respectively;
and the target page generating unit is used for rendering the page to be laid out and generating the target page.
8. The apparatus of claim 6, wherein the first component generation module comprises:
a first component parameter acquiring unit, configured to acquire a first component parameter input by the user;
a first component generating unit, configured to write the first component parameter into the search box component, and generate the first component;
the second component generation module includes:
a second component parameter acquiring unit, configured to acquire a second component parameter input by the user;
and the second component generating unit is used for writing the second component parameters into the control component to generate the second component.
9. The apparatus of claim 6, further comprising:
the keyword acquisition module is used for acquiring keywords input by a user in a target search box in the target page;
the result type determining module is used for determining a result display type and a result derivation type corresponding to the search result according to the target component parameter corresponding to the target search box after the search result corresponding to the keyword is obtained;
the search result display module is used for displaying the search result according to the result display type and exporting the search result according to the result export type;
the result display type comprises any one of a paging display type and a current page display type, and the result export type comprises any one of a front-end export type and a background export type.
10. The apparatus of claim 6, wherein the first component parameter comprises: a search box type parameter, the second component parameter comprising a search result display parameter and a search result derivation parameter, wherein,
the search box type parameter includes: any one of a text box type parameter, a drop-down box type parameter, and a tree box type parameter;
the search result display parameters include: displaying at least one of the number of pages and the number of display strips per page;
the search result derivation parameters include: any one of a background derived parameter and a front-end derived parameter.
11. An electronic device, comprising:
a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the page generation method of any of claims 1 to 5 when executing the program.
12. A readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the page generation method of any of claims 1 to 5.
CN202110034579.3A 2021-01-11 2021-01-11 Page generation method and device and electronic equipment Pending CN112765517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110034579.3A CN112765517A (en) 2021-01-11 2021-01-11 Page generation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110034579.3A CN112765517A (en) 2021-01-11 2021-01-11 Page generation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112765517A true CN112765517A (en) 2021-05-07

Family

ID=75701403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110034579.3A Pending CN112765517A (en) 2021-01-11 2021-01-11 Page generation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112765517A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791784A (en) * 2021-09-15 2021-12-14 中国工商银行股份有限公司 Method and device for generating form template page

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0701202A1 (en) * 1994-09-09 1996-03-13 International Computers Limited Graphical user interface for a computer system
CN101251800A (en) * 2008-04-01 2008-08-27 北京中星微电子有限公司 Graphical user interface creating method and apparatus
CN107463685A (en) * 2017-08-10 2017-12-12 深圳峰创智诚科技有限公司 A kind of method and device for generating combinatorial search frame
CN109614568A (en) * 2018-12-07 2019-04-12 微梦创科网络科技(中国)有限公司 A kind of page generation method and device
CN110362308A (en) * 2019-06-20 2019-10-22 平安科技(深圳)有限公司 Page generation method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0701202A1 (en) * 1994-09-09 1996-03-13 International Computers Limited Graphical user interface for a computer system
CN101251800A (en) * 2008-04-01 2008-08-27 北京中星微电子有限公司 Graphical user interface creating method and apparatus
CN107463685A (en) * 2017-08-10 2017-12-12 深圳峰创智诚科技有限公司 A kind of method and device for generating combinatorial search frame
CN109614568A (en) * 2018-12-07 2019-04-12 微梦创科网络科技(中国)有限公司 A kind of page generation method and device
CN110362308A (en) * 2019-06-20 2019-10-22 平安科技(深圳)有限公司 Page generation method, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791784A (en) * 2021-09-15 2021-12-14 中国工商银行股份有限公司 Method and device for generating form template page

Similar Documents

Publication Publication Date Title
US20190251143A1 (en) Web page rendering method and related device
US10140368B2 (en) Method and apparatus for generating a recommendation page
AU2006291313B2 (en) Named object view of electronic data report
CN108717437B (en) Search result display method and device and storage medium
CN102142011A (en) Website font previewing
CN105095441A (en) Information acquisition method and device
WO2017063389A1 (en) Document generation method and device
US20080250052A1 (en) Repopulating a database with document content
US20200026802A1 (en) Image quality independent searching of screenshots of web content
CN112241498A (en) Page content display method and device, readable storage medium and computer equipment
US8150878B1 (en) Device method and computer program product for sharing web feeds
CN112307365A (en) Information display method and device, electronic equipment and storage medium
CN111722765A (en) Page switching method, device, equipment and storage medium
CN105447072A (en) Configurable interface framework as well as searching method and system utilizing framework
CN112181410A (en) View layer code generation method and device, electronic equipment and storage medium
CN110969501B (en) Method, system, equipment and storage medium for displaying web shopping cart page
CN112765517A (en) Page generation method and device and electronic equipment
CN113807060A (en) Document processing method and device, electronic equipment and computer readable storage medium
US20120191744A1 (en) Detecting search mode in a browser navigation bar
CN110909155B (en) Book order generation method, calculation device and computer storage medium
US20160179821A1 (en) Searching Inside Items
CN106355970A (en) Virtual military training system
CN110515618B (en) Page information input optimization method, equipment, storage medium and device
US9864739B1 (en) Automatic layout of graphical user interface screens from object data
JP2010157166A (en) Device, system and method for lot tracing, and program

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