CN116661759A - Page automatic generation method, system and storage medium - Google Patents

Page automatic generation method, system and storage medium Download PDF

Info

Publication number
CN116661759A
CN116661759A CN202310521694.2A CN202310521694A CN116661759A CN 116661759 A CN116661759 A CN 116661759A CN 202310521694 A CN202310521694 A CN 202310521694A CN 116661759 A CN116661759 A CN 116661759A
Authority
CN
China
Prior art keywords
target
page
content
data
template
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
CN202310521694.2A
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.)
Gonsin Conference Equipment Co ltd
Original Assignee
Gonsin Conference Equipment 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 Gonsin Conference Equipment Co ltd filed Critical Gonsin Conference Equipment Co ltd
Priority to CN202310521694.2A priority Critical patent/CN116661759A/en
Publication of CN116661759A publication Critical patent/CN116661759A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application discloses an automatic page generation method, an automatic page generation system and a storage medium, wherein the automatic page generation method comprises the following steps: acquiring a front-end basic page; generating target template content according to the front-end basic page; determining target data according to target template content based on a preset database; integrating the target template content and the target data in an annotation mode to generate a target page. Based on the annotation, the synchronous corresponding update of the target template content and the target data can be realized by directly modifying the back-end labeling code, the data accuracy of the updated target page is ensured, and meanwhile, the page generation efficiency can be effectively improved. Based on the automatic page generation method provided by the application, the one-to-one correspondence between the target template content and the target data is realized by using the annotation mode, and compared with the technical scheme that the data fields are required to be checked one by developers in the related art so as to realize page development, the page generation efficiency can be effectively improved.

Description

Page automatic generation method, system and storage medium
Technical Field
The present application relates to, but not limited to, the internet technology field, and in particular, to a method, a system, and a storage medium for automatically generating pages.
Background
With the development of internet technology, modern web pages have the advantages of attractive interface, good interaction effect, powerful functions and the like, and the web pages are gradually integrated into the study, work and life of people. The web pages of the business system and the web pages of the background management system are usually formed by combining tables and forms, and the traditional page development adopts a mode of manually writing and adjusting codes, so repeated code writing is required for many times, and time and labor are wasted. In the related art, the layout of the page is realized by utilizing visual page editing software in a mode of dragging a control so as to reduce development work of a front-end page, but the mode needs a developer to check data fields one by one, and the page generation efficiency is low.
Disclosure of Invention
The embodiment of the application provides an automatic page generation method, an automatic page generation system and a storage medium, which can effectively improve page generation efficiency.
In a first aspect, an embodiment of the present application provides a method for automatically generating a page, including:
acquiring a front-end basic page;
generating target template content according to the front-end basic page;
determining target data according to the target template content based on a preset database;
and integrating the target template content with the target data in an annotation mode to generate a target page.
The page automatic generation method according to the embodiment of the first aspect of the application has at least the following beneficial effects: the front-end basic page is acquired, so that target template content can be generated according to the front-end basic page, and development work of the front-end page can be reduced. And then, determining target data according to the target template content based on a preset database, and integrating the target template content and the target data in an annotation mode so that the target template content corresponds to the target data one by one to generate a target page. When the target page is updated or modified, synchronous corresponding updating of the target template content and the target data can be realized by directly modifying the back-end labeling code based on the annotation, so that the data accuracy of the updated target page is ensured, and meanwhile, the page generation efficiency can be effectively improved. Based on the automatic page generation method provided by the application, the one-to-one correspondence between the target template content and the target data is realized by using the annotation mode, and compared with the technical scheme that the data fields are required to be checked one by developers in the related art so as to realize page development, the page generation efficiency can be effectively improved.
According to some embodiments of the first aspect of the present application, the generating target template content according to the front-end basic page includes:
performing first region decomposition treatment on the front-end basic page to obtain at least one initial region;
performing second region decomposition processing on the initial region to obtain a title region and a data content region;
and generating the target template content according to the title area and the data content area.
According to some embodiments of the first aspect of the present application, the generating the target template content according to the title area and the data content area includes:
performing third region decomposition processing on the title region to obtain a title button region and a search bar region;
performing fourth region decomposition processing on the data content region to obtain form contents, form contents and tag contents;
respectively traversing the table content, the form content and the tag content to obtain a plurality of initial template contents;
and classifying and integrating the title button area, the search column area and the initial template contents according to a preset hierarchical structure rule to obtain the target template contents.
According to some embodiments of the first aspect of the application, the target data comprises at least one of: object data, an object data list, an object data tree list, and page turning data.
According to some embodiments of the first aspect of the present application, the integrating the target template content and the target data by using the annotation mode, to generate a target page includes:
encoding the target template content into a json file;
performing data matching on the json file and the target data in an annotation mode to obtain a hierarchical structure template;
and obtaining the target page according to the hierarchical structure template.
According to some embodiments of the first aspect of the present application, the encoding the target template content into a json file includes:
encoding the target template content into json format data, and performing data integrity verification on the json format data;
after the data integrity check is passed, configuring the json format data to generate the json file.
According to some embodiments of the first aspect of the present application, after the target page is obtained according to the hierarchical template, the method for automatically generating a page further includes:
in response to a modification instruction, the modification instruction including target modification content and an annotation tag;
determining the content to be modified from the hierarchical structure template according to the annotation tag;
updating the content to be modified according to the target modification content to obtain a new hierarchical structure template;
and obtaining the target page according to the new hierarchical structure template.
In a second aspect, an embodiment of the present application provides an automatic page generating system, including:
the front-end basic page acquisition module is used for acquiring a front-end basic page;
the target template content generation module is used for generating target template content according to the front-end basic page;
the target data determining module is used for determining target data according to the content of the target template based on a preset database;
and the target page generation module is used for generating a target page according to the target template content and the target data.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the page auto-generation method as described in the first aspect when the computer program is executed.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where computer-executable instructions are stored, where the computer-executable instructions are configured to cause a computer to perform the method for automatically generating pages according to the first aspect.
Drawings
The accompanying drawings are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate and do not limit the application.
FIG. 1 is a flow chart of steps of a method for automatically generating pages according to one embodiment of the present application;
FIG. 2 is a flow chart of steps of a method for generating target template content according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating steps of a method for generating target template content according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating steps of a target page generation method according to an embodiment of the present application;
FIG. 5 is a flow chart of steps in a method for encoding target template content into json files according to one embodiment of the present application;
FIG. 6 is a flowchart illustrating steps of a method for automatically generating a page according to another embodiment of the present application;
FIG. 7 is a flow diagram of page rendering provided by one embodiment of the present application;
FIG. 8 is a block diagram of an automatic page generation system according to one embodiment of the present application;
fig. 9 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It will be appreciated that although functional block diagrams are depicted in the device diagrams, logical sequences are shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the block diagrams in the device. The terms first, second and the like in the description, in the claims and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The application provides an automatic page generation method, an automatic page generation system and a storage medium, which are used for acquiring a front-end basic page so as to generate target template content according to the front-end basic page and reduce development work of the front-end basic page. And then, determining target data according to the target template content based on a preset database, and integrating the target template content and the target data in an annotation mode so that the target template content corresponds to the target data one by one to generate a target page. When the target page is updated or modified, synchronous corresponding updating of the target template content and the target data can be realized by directly modifying the back-end labeling code based on the annotation, so that the data accuracy of the updated target page is ensured, and meanwhile, the page generation efficiency can be effectively improved. Based on the automatic page generation method provided by the application, the one-to-one correspondence between the target template content and the target data is realized by using the annotation mode, and compared with the technical scheme that the data fields are required to be checked one by developers in the related art so as to realize page development, the page generation efficiency can be effectively improved.
Embodiments of the present application will be further described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a method for automatically generating a page according to an embodiment of the present application, including, but not limited to, the steps of:
step S110, acquiring a front-end basic page;
step S120, generating target template content according to the front-end basic page;
step S130, determining target data according to target template content based on a preset database;
and step S140, integrating the target template content and the target data in an annotation mode to generate a target page.
It should be noted that, the embodiment of the present application is not limited to the specific type of the front-end basic page, and may be the front-end basic page output by the visual page editor, the front-end basic page written manually, the front-end basic page of the web page of the browser, and the like. The embodiment of the application is not limited to the specific type of the preset database, and can be a local database, a cloud database and the like.
It can be understood that the front-end basic page is acquired, so that the target template content is generated according to the front-end basic page, the universality of the page is realized, and the development work of the front-end page can be reduced. And then, determining target data according to the target template content based on a preset database, and integrating the target template content and the target data in an annotation mode so that the target template content corresponds to the target data one by one to generate a target page. When the target page is updated or modified, synchronous corresponding updating of the target template content and the target data can be realized by directly modifying the back-end labeling code based on the annotation, so that the data accuracy of the updated target page is ensured, and meanwhile, the page generation efficiency can be effectively improved. Based on the automatic page generation method provided by the application, the one-to-one correspondence between the target template content and the target data is realized by using the annotation mode, and compared with the technical scheme that the data fields are required to be checked one by developers in the related art so as to realize page development, the page generation efficiency can be effectively improved.
In addition, referring to fig. 2, in an embodiment, step S120 in the embodiment shown in fig. 1 further includes, but is not limited to, the following steps:
step S210, performing first region decomposition processing on a front-end page to obtain at least one initial region;
step S220, performing second region decomposition processing on the initial region to obtain a title region and a data content region;
and step S230, generating target template content according to the title area and the data content area.
It should be noted that, the embodiment of the present application is not limited to the specific number and specific content of the initial area, and may include a menu area and a panel area, or may include a menu area, a panel area, a title area, and the like.
It can be understood that the first region decomposition process is performed on the front-end basic page to obtain at least one initial region, and the complex front-end basic page is decomposed into a plurality of regions, so that the coupling degree is reduced, and the business logic of the target template content is clearer, so that the subsequent expansion and maintenance are convenient. And performing second region decomposition processing on the initial region to obtain a title region and a data content region, and further decomposing the initial region to ensure that the content structure of the initial region is clear. And generating target template contents according to the title area and the data content area, so that the hierarchical structure of the target template contents is clearer, the subsequent target template contents and target data are in one-to-one correspondence, and the page generation efficiency can be effectively improved.
In addition, referring to fig. 3, in an embodiment, step S230 in the embodiment shown in fig. 2 further includes, but is not limited to, the following steps:
step S310, performing third region decomposition processing on the title region to obtain a title button region and a search bar region;
step S320, performing fourth area decomposition processing on the data content area to obtain form contents, form contents and tag contents;
step S330, respectively traversing the table content, the form content and the tag content to obtain a plurality of initial template contents;
and step S340, classifying and integrating the title button area, the search bar area and a plurality of initial template contents according to a preset hierarchical structure rule to obtain target template contents.
It should be noted that the embodiment of the present application is not limited to the specific type of table contents, and may include text, date, image, enumeration, button group, etc. The embodiment of the application also does not limit the specific hierarchical relation among the table contents, the table contents and the tag contents, and the table contents, the table contents and the tag contents can be the same hierarchy, the table contents comprise a plurality of table contents and a plurality of tag contents, the table contents comprise a plurality of table contents, and a single table content comprises a plurality of tag contents and the like.
In addition, the embodiment of the present application is not limited to the specific content of the preset hierarchical structure rule, and may be a division rule using the region decomposition order as the hierarchical structure, a division criterion using the position order of the region as the hierarchical structure, or the like. It can be understood that the area decomposition order is used as a division standard of a hierarchical structure, so that the service logic of the target template content obtained later can be clear, and the subsequent expansion and maintenance are convenient.
It can be understood that the third area decomposition process is performed on the title area to obtain the title button area and the search bar area, and the fourth area decomposition process is performed on the data content area to obtain the table content, the table content and the tag content, so that the front end terminal page has a clear hierarchical structure through the multi-level area decomposition process. And traversing the table content, the form content and the label content respectively to obtain a plurality of initial template contents so as to ensure the data integrity of the initial template contents. And classifying and integrating the title button area, the search column area and a plurality of initial template contents according to a preset hierarchical structure rule, so that the title button area, the search column area and the initial template contents correspond to each other to obtain target template contents, the disorder of the hierarchical relationship of the target template contents is avoided, and the one-to-one correspondence between the subsequent target template contents and target data is ensured.
In one embodiment, the target data includes at least one of: object data, an object data list, an object data tree list, and page turning data.
It may be appreciated that the object data list may include a plurality of object data, the object data tree list may include a plurality of object data including parent class primary keys, and the page turning data may be a plurality of arrays storing a set of object data to be displayed for each page, so as to facilitate corresponding integration of the target data and the target template content.
In addition, referring to fig. 4, in an embodiment, step S140 in the embodiment shown in fig. 1 further includes, but is not limited to, the following steps:
step S410, encoding the target template content into a json file;
step S420, carrying out data matching on the json file and the target data by using an annotation mode to obtain a hierarchical structure template;
step S430, obtaining a target page according to the hierarchical structure template.
It will be appreciated that json files use text formats that are completely independent of programming languages to store and represent data, support multiple languages, including C, java, javaScript, PHP and Python, and other language server-side languages, and are easy for machine parsing and generation. And the data format of the json file is simpler, the formats are compressed, the occupied bandwidth is small, and the network transmission efficiency can be effectively improved. Encoding the target template content into json file can avoid data integration error between the target template content and the target data, and can effectively improve the integration efficiency of the target template content and the target data. And then carrying out data matching on the json file and the target data by using an annotation mode, and mapping the target data to the corresponding position in the json file to obtain the hierarchical structure template. By means of annotation, a plurality of codes can be automatically generated, so that the code quantity is reduced, and page generation efficiency can be effectively improved. And obtaining a target page according to the hierarchical structure template, obtaining an animation object of a specified program element by the program through reflection, and obtaining target data in the annotation through the animation object so as to realize generation of the target page. The target template content is in one-to-one correspondence with the target data, so that one-to-one verification of the data fields can be avoided, and the page generation efficiency can be effectively improved.
In addition, referring to fig. 5, in an embodiment, step S410 in the embodiment shown in fig. 4 further includes, but is not limited to, the following steps:
step S510, encoding the target template content into json format data, and performing data integrity verification on the json format data;
and step S520, after the data integrity check is passed, configuring the json format data to generate a json file.
It can be understood that the target template content is encoded into json format data, and the json format data is subjected to data integrity verification, so that the data integrity in the json format data is ensured, and the problem of generating errors of subsequent target pages due to data missing is avoided. After the data integrity check is passed, the json format data is configured, for example, the dependency is configured, null values are processed, the data is packaged, and the like, so that the reliability of the generated json file is ensured.
In addition, referring to fig. 6, in an embodiment, after step S430 in the embodiment shown in fig. 4, the automatic page generation method further includes, but is not limited to, the following steps:
step S610, responding to a modification instruction, wherein the modification instruction comprises target modification content and annotation tags;
step S620, determining the content to be modified from the hierarchical structure template according to the annotation tag;
step S630, updating the content to be modified according to the target modified content to obtain a new hierarchical structure template;
step S640, obtaining the target page according to the new hierarchical structure template.
It should be noted that, the embodiment of the present application does not limit the generation manner of the modification instruction, and the developer may manually modify the front end page to generate the modification instruction, or may update and change the target data in the database to generate the modification instruction.
It can be understood that, in response to the modification instruction, the modification instruction includes a target modification content and an annotation tag, and the content to be modified is determined from the hierarchical structure template according to the annotation tag, so that the position to be updated is accurately positioned, and the accuracy of updating the content to be modified is ensured. Updating the content to be modified according to the target modification content to obtain a new hierarchical structure template, and obtaining the target page according to the new hierarchical structure template. By modifying the content corresponding to the annotation tag in the hierarchical structure template, synchronous update of the target page is realized, and the problem of page update errors caused by the fact that the front end and the rear end are not synchronously modified is avoided.
Referring to fig. 7, in an embodiment, a front-end base page may be acquired through a web front-end, and template content is loaded according to the front-end base page to obtain target template content. For example, the front end pages are abstracted into menu, title, and panel regions, which can be viewed as tables and forms to facilitate the resolution of the panel regions into head-up and data content regions. The head-up area can be divided into a head-up button area and a search bar area, and the data content area can be divided into form content, table content and label content. Taking the table content as an example, a table is generally composed of column names and contents of each column, and the type of contents of each column can be classified into text, date, image, enumeration, and button group. The structure describing one form page, namely the target template content, can be derived: form page: { head-up region: { title: ", search region: [ { form item 1}, { form item 2} ], head-up button: [ { button 1}, { button 2} ], data source } { }, form: { form column: [ { form column 1}, { form column 2} }. The web server performs data processing on the target template content and returns the template content (Json) to the web front end, so that the web front end queries a data source according to the returned template content (Json), the web server returns the data content, and the one-to-one correspondence between the target template content and the data content is ensured.
The web front end combines template content (Json) and data content rendering pages, and the template is generated by using the animation annotation of java, so that a hierarchical structure template for simulating a web page can be obtained:
GView (viewnme= "meeting", "title=" organizing meeting ", bonads= @ gboad (table= @ GTa ble (header= @ gheadeder (title= { @ GButton (name=" adding schedule "), action=view_by_dialog, vi ew=" AddMeeting ")), search bar= @ GSearchBar (filters= @ GSearchFilter }), columns { gcollumn (name=" schedule name ", keyname=" meetingName ", column type= column type. TEXT)," name= "start time", column type= "time", column type = date= "date type @ Y-mat Y-Y =, Y-Y. MM:. Ss"), @ GColumn (name = "calendar =" CODE ", columnType =" CODE "," GColumn (name = "operation", columnType = columnType. BUTTONS, buttons = { @ GButton (name = "tissue conference"), action = button action. VIEW, VIEW = "meeting setting", tips = { @GProp (keyName = "meetingKey", valueName = "item. MeetingKey"), @ GButton (name = "change time", action = button. VIOGOGOGOGY_DIOGY = "update =" meeting "(" meeting = ")," meeting = ", VIEW =", and/or = "meeting =", keyName = "
By means of annotation, a hierarchical structure template can be generated by combining the java reflection technology, and generation of the target page can be achieved. The template development is realized by extracting similar parts, the target template content is in one-to-one correspondence with target data in an annotation mode, the fields are prevented from being checked one by one, the development of a background management page can be realized by only a plurality of lines of codes, the display function of most forms and tables is realized, and the page generation efficiency can be effectively improved.
Referring to fig. 8, one embodiment of the present application provides an automatic page generation system 800, the automatic page generation system 800 comprising:
a front-end base page acquisition module 810, configured to acquire a front-end base page;
a target template content generating module 820, configured to generate target template content according to the front-end basic page;
a target data determining module 830, configured to determine target data according to the target template content based on a preset database;
the target page generating module 840 is configured to generate a target page according to the target template content and the target data.
The specific implementation manner of the automatic page generating system 800 according to the embodiment of the present application is substantially identical to the specific implementation manner of the automatic page generating method described above, and will not be described herein.
In addition, referring to fig. 9, an embodiment of the present application further provides an electronic device 900, the electronic device 900 including: the automatic page generation method is implemented by the processor 920 when the processor 920 executes the computer program.
The processor 920 and the memory 910 may be connected by a bus or other means.
The non-transitory software programs and instructions required to implement the page auto-generation method of the above-described embodiments are stored in the memory 910, and when executed by the processor 920, the page auto-generation method of the above-described embodiments is performed, for example, the method steps S110 to S140 in fig. 1, the method steps S210 to S230 in fig. 2, the method steps S310 to S340 in fig. 3, the method steps S410 to S430 in fig. 4, the method steps S510 to S520 in fig. 5, and the method steps S610 to S640 in fig. 6 described above are performed.
The above described apparatus embodiments are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor 920 or a controller, for example, by a processor 920 in the above-mentioned electronic device 900, which may cause the above-mentioned processor 920 to perform the page auto-generation method in the above-mentioned embodiment, for example, to perform the above-described method steps S110 to S140 in fig. 1, the method steps S210 to S230 in fig. 2, the method steps S310 to S340 in fig. 3, the method steps S410 to S430 in fig. 4, the method steps S510 to S520 in fig. 5, and the method steps S610 to S640 in fig. 6. Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor 920, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
In the description of the present specification, reference to the terms "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While the preferred embodiment of the present application has been described in detail, the present application is not limited to the above embodiment, and various equivalent modifications and substitutions can be made by those skilled in the art without departing from the spirit of the present application, and these equivalent modifications and substitutions are intended to be included in the scope of the present application as defined in the appended claims.

Claims (10)

1. An automatic page generation method is characterized by comprising the following steps:
acquiring a front-end basic page;
generating target template content according to the front-end basic page;
determining target data according to the target template content based on a preset database;
and integrating the target template content with the target data in an annotation mode to generate a target page.
2. The method for automatically generating a page according to claim 1, wherein generating the target template content according to the front-end basic page comprises:
performing first region decomposition treatment on the front-end basic page to obtain at least one initial region;
performing second region decomposition processing on the initial region to obtain a title region and a data content region;
and generating the target template content according to the title area and the data content area.
3. The automatic page generation method according to claim 2, wherein the generating the target template content from the title area and the data content area includes:
performing third region decomposition processing on the title region to obtain a title button region and a search bar region;
performing fourth region decomposition processing on the data content region to obtain form contents, form contents and tag contents;
respectively traversing the table content, the form content and the tag content to obtain a plurality of initial template contents;
and classifying and integrating the title button area, the search column area and the initial template contents according to a preset hierarchical structure rule to obtain the target template contents.
4. The automatic page generation method according to claim 1, wherein the target data includes at least one of: object data, an object data list, an object data tree list, and page turning data.
5. The automatic page generation method according to claim 1, wherein integrating the target template content and the target data by means of annotation to generate a target page comprises:
encoding the target template content into a json file;
performing data matching on the json file and the target data in an annotation mode to obtain a hierarchical structure template;
and obtaining the target page according to the hierarchical structure template.
6. The method for automatically generating a page according to claim 5, wherein the encoding the target template content into a json file comprises:
encoding the target template content into json format data, and performing data integrity verification on the json format data;
after the data integrity check is passed, configuring the json format data to generate the json file.
7. The automatic page generation method according to claim 5, wherein after the target page is obtained from the hierarchical template, the automatic page generation method further comprises:
in response to a modification instruction, the modification instruction including target modification content and an annotation tag;
determining the content to be modified from the hierarchical structure template according to the annotation tag;
updating the content to be modified according to the target modification content to obtain a new hierarchical structure template;
and obtaining the target page according to the new hierarchical structure template.
8. An automatic page generation system, comprising:
the front-end basic page acquisition module is used for acquiring a front-end basic page;
the target template content generation module is used for generating target template content according to the front-end basic page;
the target data determining module is used for determining target data according to the content of the target template based on a preset database;
and the target page generation module is used for generating a target page according to the target template content and the target data.
9. An electronic device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the automatic page generation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized by: the computer-readable storage medium stores computer-executable instructions for causing a computer to perform the page auto-generation method according to any one of claims 1 to 7.
CN202310521694.2A 2023-05-09 2023-05-09 Page automatic generation method, system and storage medium Pending CN116661759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310521694.2A CN116661759A (en) 2023-05-09 2023-05-09 Page automatic generation method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310521694.2A CN116661759A (en) 2023-05-09 2023-05-09 Page automatic generation method, system and storage medium

Publications (1)

Publication Number Publication Date
CN116661759A true CN116661759A (en) 2023-08-29

Family

ID=87723308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310521694.2A Pending CN116661759A (en) 2023-05-09 2023-05-09 Page automatic generation method, system and storage medium

Country Status (1)

Country Link
CN (1) CN116661759A (en)

Similar Documents

Publication Publication Date Title
CN109933752B (en) Method and device for exporting electronic document
CN111241454B (en) Method, system and device for generating webpage codes
CN110442822B (en) Method, device, equipment and storage medium for displaying small program content
EP2151773B1 (en) Synchronous to asynchronous web page conversion
Ganesh et al. Openerp/odoo-an open source concept to erp solution
CN108762743B (en) Data table operation code generation method and device
CN107092625B (en) Data configuration method, data processing method and device
US8589877B2 (en) Modeling and linking documents for packaged software application configuration
CA3152833A1 (en) Webpage editing method and device
CN111818123A (en) Network front-end remote playback method, device, equipment and storage medium
CN111352628A (en) Front-end code generation method and device, computer system and readable storage medium
CN112558967A (en) Page automatic generation method and device, electronic equipment and storage medium
CN112463135A (en) Code generation method, code generator, electronic device, and storage medium
CN112799718A (en) Enumerated document generation method and device, electronic equipment and storage medium
CN116301813B (en) Low-code platform development method and system
CN111311461A (en) B-S based editor and generation method for structured dynamic medical record form
CN108766513B (en) Intelligent health medical data structured processing system
CN116661759A (en) Page automatic generation method, system and storage medium
US20190266265A1 (en) Integrated computing environment for managing and presenting design iterations
CN114518881A (en) Page generation method, system and storage medium
CN114691265A (en) Batch grabbing method for software interface structured elements
CN114371872B (en) Vue project code reverse reconstruction method
CN111694723B (en) Method for editing nodes and components when product runs under H5 and storage medium
CN113821202B (en) Method, device and equipment for generating management software file and readable storage medium
US11809919B2 (en) Central event catalog

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