CN111061478A - Page form modification method, device, equipment and readable storage medium - Google Patents

Page form modification method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN111061478A
CN111061478A CN201911277856.2A CN201911277856A CN111061478A CN 111061478 A CN111061478 A CN 111061478A CN 201911277856 A CN201911277856 A CN 201911277856A CN 111061478 A CN111061478 A CN 111061478A
Authority
CN
China
Prior art keywords
tree structure
target
json data
instruction
page
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.)
Granted
Application number
CN201911277856.2A
Other languages
Chinese (zh)
Other versions
CN111061478B (en
Inventor
吴大柱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengcaiyun Co ltd
Original Assignee
Zhengcaiyun 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 Zhengcaiyun Co ltd filed Critical Zhengcaiyun Co ltd
Priority to CN201911277856.2A priority Critical patent/CN111061478B/en
Publication of CN111061478A publication Critical patent/CN111061478A/en
Application granted granted Critical
Publication of CN111061478B publication Critical patent/CN111061478B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • 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)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a page form modification method, which comprises the following steps: when a modification request aiming at a first form is detected, acquiring first json data corresponding to the first form; analyzing the first json data to obtain a first tree structure corresponding to the first json data; adjusting the first tree structure according to the received target instruction to obtain a second tree structure; generating second json data by using the second tree structure, and rendering a second form by using the second json data; according to the method, the function of modifying the form is realized without reconfiguring the second form to replace the first form, and the json data of the first form is directly utilized to modify the second form, so that the time required by the form modification operation is saved, and the time required by page development is further reduced; in addition, the invention also provides a page form modification device, equipment and a computer readable storage medium, and the device and the equipment also have the beneficial effects.

Description

Page form modification method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a page form modification method, a page form modification apparatus, a page form modification device, and a computer-readable storage medium.
Background
The form (From) is primarily responsible for data collection functions in the web page. A form has three basic components: form label: included herein are URLs of CGI programs used to process form data and methods of submitting data to a server. Form field: including text boxes, password boxes, hidden fields, multi-line text boxes, check boxes, radio boxes, drop-down selection boxes, file upload boxes, and the like. Form button: comprises a submit button, a reset button and a general button; the CGI script used to transfer data to the server or cancel the input, and the form button can also be used to control other processing tasks that define the processing script. According to the existing form configuration method, after a form is configured, the structure and the content of the form are fixed and cannot be modified, if the form needs to be modified, a new form needs to be reconfigured and rendered, and the new form replaces an old form, so that the current form modification operation is time-consuming and labor-consuming, and further, the page development time is long.
Therefore, how to solve the problem that the current form modification operation is time-consuming and labor-consuming, and further the page development time is long is a technical problem to be solved by the technical personnel in the field.
Disclosure of Invention
In view of the above, the present invention provides a page form modification method, a page form modification apparatus, a page form modification device, and a computer-readable storage medium, which solve the problem that the current form modification operation is time-consuming and labor-consuming, and thus the page development time is long.
In order to solve the technical problem, the invention provides a page form modification method, which comprises the following steps:
when a modification request aiming at a first form is detected, acquiring first json data corresponding to the first form;
analyzing the first json data to obtain a first tree structure corresponding to the first json data;
adjusting the first tree structure according to the received target instruction to obtain a second tree structure;
and generating second json data by using the second tree structure, and rendering a second form by using the second json data.
Optionally, when the target instruction is a modification instruction, the adjusting the first tree structure according to the received target instruction to obtain a second tree structure includes:
acquiring and analyzing the target instruction, and determining a target form item, a target position and a target level specified by the target instruction;
determining the target form item in the first tree structure, and adjusting the current level of the target form item to the target level;
and moving the target form item from the current position to the target position to obtain the second tree structure.
Optionally, when the target instruction is an increase instruction, the adjusting the first tree structure according to the received target instruction to obtain a second tree structure includes:
acquiring and analyzing the target instruction, and determining a newly added form item, a newly added position and a newly added level corresponding to the target instruction;
and inserting the newly added form item with the newly added hierarchy at the newly added position in the first tree structure to obtain the second tree structure.
Optionally, when the target instruction is an attribute modification instruction, the adjusting the first tree structure according to the received target instruction to obtain a second tree structure includes:
acquiring and analyzing the target instruction, and determining a first form item, a target attribute and a target attribute value corresponding to the target instruction;
and determining the first form item in the first tree structure, and modifying the current attribute value of the target attribute of the first form item into the target attribute value to obtain the second tree structure.
Optionally, after the generating of the second json data by using the second tree structure and before the rendering of the second form by using the second json data, the method further includes:
acquiring page title information in the second json data;
and generating an anchor button by using the page title information.
Optionally, the analyzing the first json data to obtain a first tree structure corresponding to the first json data includes:
and acquiring a preset json data analysis rule, and analyzing the first json data by using the preset json data analysis rule to obtain the first tree structure.
Optionally, after the generating second json data by using the second tree structure, the method further includes:
and storing the second json data into a database.
The invention also provides a device for modifying the page form, which comprises the following components:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring first json data corresponding to a first form when a modification request aiming at the first form is detected;
the analysis module is used for analyzing the first json data to obtain a first tree structure corresponding to the first json data;
the execution module is used for adjusting the first tree structure according to the received target instruction to obtain a second tree structure;
and the rendering module is used for generating second json data by using the second tree structure and rendering a second form by using the second json data.
The invention also provides a page form modifying device, which comprises a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is used for executing the computer program to realize the page form modification method.
The invention also provides a computer readable storage medium for storing a computer program, wherein the computer program realizes the page form modification method when being executed by a processor.
According to the page form modification method provided by the invention, when a modification request aiming at a first form is detected, first json data corresponding to the first form is obtained. And analyzing the first json data to obtain a first tree structure corresponding to the first json data. And adjusting the first tree structure according to the received target instruction to obtain a second tree structure. Generating second json data using the second tree structure, and rendering a second form using the second json data.
Therefore, the method obtains the first tree structure by using the first json data of the first form, obtains the second tree structure by modifying the first tree structure, generates the second json data by using the second tree structure, obtains the second form by using the second json data rendering, and completes the operation of modifying the first form into the second form. According to the method, the function of modifying the form is realized without reconfiguring the second form to replace the first form, the json data of the first form is directly utilized to modify the second form, the time required by the form modification operation is saved, the time required by page development is further reduced, and the problems that the time is wasted and the labor is wasted in the current form modification operation, and the page development time is further prolonged are solved.
In addition, the invention also provides a page form modification device, a page form modification device and a computer readable storage medium, and the page form modification device also have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for modifying a page form according to an embodiment of the present invention;
FIG. 2 is a flowchart of a specific target instruction execution method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another specific target instruction execution method according to an embodiment of the present invention;
fig. 4 is a flowchart of an anchor button generating method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a page form modification apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a page form modifying apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for modifying a page form according to an embodiment of the present invention.
The method comprises the following steps:
s101: when a modification request aiming at a first form is detected, first json data corresponding to the first form is obtained.
Specifically, the first form is a form that has been rendered, and it should be noted that the specific content of the first form is not limited in this embodiment, for example, the first form may be a simple form, or may be a table form, or may be a form that conforms to a form, that is, a composite of a simple form and a table form, a composite of a simple form and a simple form, or a composite of a table form and a table form. The modification request is used to specify which form is to be modified, and the embodiment of the specific form is not limited. When the first form needs to be modified in the current form modification operation, the second form needs to be reconfigured and rendered, and the first form is replaced by the second form, so that the current form modification operation is tedious and requires a long time.
When a modification request for a first form is detected, first json data corresponding to the first form is obtained. JSON, also known as JSON (JSON Object Notation), is a lightweight data exchange format. It stores and represents data in a text format completely independent of the programming language, based on a subset of ECMA Script (js specification set by the european computer association). The simple and clear hierarchical structure enables JSON to become an ideal data exchange language, is easy to read and write by people, is easy to analyze and generate by machines, and effectively improves the network transmission efficiency. In the embodiment of the invention, json data can be stored in a database, and when a modification request for a first form is detected, first json data corresponding to the first form is acquired from the database; or the user can input the first json data corresponding to the first form, the user can input the first json data manually, or other storage devices can be utilized to store the first json data, and the first json data can be uploaded during input.
S102: and analyzing the first json data to obtain a first tree structure corresponding to the first json data.
After the first json data are obtained, a first tree structure corresponding to the first json data can be obtained by analyzing the first json data. Specifically, in order to ensure that the first json data analysis process is correct, in this embodiment, it is preferable to set a preset json data analysis rule, obtain the preset json data analysis rule when analyzing the first json data, and analyze the first json data by using the preset json data analysis rule to obtain the first tree structure. The specific content of the preset json data analysis rule is not limited in this embodiment.
In an embodiment of the invention, the first tree structure may be displayed and adjusted in a particular configuration page. The first tree structure may be a graphical tree structure, i.e., a tree structure represented graphically; or may be a command line tree structure, i.e., a tree structure represented by a command line. The specific form can be selected according to actual needs, for example, when more information needs to be displayed, the first tree structure can be set as a command line tree structure; when the required structure is clear and convenient to modify, the first attribute structure can be set to be a graph tree structure. Preferably, in the embodiment of the present invention, the first tree structure adopts a graph tree structure, so as to modify the first tree structure.
Specifically, the embodiment of the present invention does not limit a specific obtaining method of the first tree structure. The first tree structure has different specific forms and different specific acquisition methods. For example, when the first tree structure is a command line tree structure, after the first json data is analyzed, a plurality of form items and position information, hierarchy information, attribute information and the like corresponding to each form item can be obtained, so that the form items obtained by analysis and corresponding information can be arranged and the like, that is, the first tree structure can be obtained; when the first tree structure is a graph tree structure, analyzing the first json data to obtain a plurality of form items and corresponding information, and expressing the relationship of the form items and the corresponding information by utilizing a graph according to the form items and the corresponding information to obtain the first tree structure.
S103: and adjusting the first tree structure according to the received target instruction to obtain a second tree structure.
The target instruction is used for adjusting the first tree structure, and may be acquired or generated by the front end and sent to the back end, specifically, the target instruction may be a modification instruction, an addition instruction, a deletion instruction, an attribute modification instruction, or the like. The modification instruction is used for modifying the structure of the form, the addition instruction is used for adding the form item, the deletion instruction is used for deleting the existing form item, and the attribute modification instruction is used for modifying the attribute of the form item. Specifically, the attributes of the form items may include field attributes, component attributes, layout attributes, and the like, the field attributes include field names, english names, field types, and the like, the component attributes include inputtable character number limits, inputtable character type limits, regular expressions, and the like, and the layout attributes include the number of occupied lines of the field, whether sharing of the number of lines with other fields is permitted, and the like.
Specifically, the present embodiment does not limit the generation method and the specific form of the target instruction, and the specific form may be related to the specific form of the first tree structure. For example, when the first tree structure is a command line tree structure, a user may directly edit a command line, for example, add, delete, or adjust a certain item of data, and an instruction of the editing command line is a target instruction. Or when the first tree structure is a graph tree structure, each node represents a form item, and a user can drag a cursor to edit the first tree structure, for example, the first tree structure can be adjusted by dragging an existing node; or a fork can be newly built, a node is newly built at the tail end of the fork to add a new form item, and an instruction generated by a user dragging a cursor is a target instruction. The types of the generated target instructions are different according to different user operation modes.
And after the target instruction is obtained, adjusting the first tree structure according to the target instruction to obtain a second tree structure. Specifically, the adjusted first tree structure may be determined as the second tree structure after the determination instruction is obtained; or when a target instruction with a preset identifier is received, after the target instruction is executed, the adjusted first tree structure is determined as the second tree structure.
S104: generating second json data using the second tree structure, and rendering a second form using the second json data.
After the second tree structure is determined, second json data is generated by using the second attribute structure. The generation method of the second json data may correspond to an analysis method of the first json data by which the first tree structure is obtained by analysis. After the second json data is generated, a second form can be rendered by using the second json data, and the second form is a replacement form of the first form. The rendered second form can cover the first form, that is, the first form is replaced by the second form, and the modification of the first form can be completed. Specifically, the second json data can be generated by the back end and then sent to the front end, the components corresponding to the form items are rendered by the front end at one time, and the forms are constructed by utilizing the components.
After the second form is obtained through rendering, data input on the form by a user can be received, the data are collected, and a specific interface is called to store the data into a database.
Further, to facilitate modifying the second form, after generating the second json data, the second json input may be stored in the database for subsequent adjustment of the second form by the second json data.
By applying the page form modification method provided by the embodiment of the invention, the first tree structure is obtained by utilizing the first json data of the first form, the second tree structure can be obtained by modifying the first tree structure, the second json data is generated by utilizing the second tree structure, the second form is obtained by utilizing the second json data for rendering, and the operation of modifying the first form into the second form is completed. According to the method, the function of modifying the form is realized without reconfiguring the second form to replace the first form, the json data of the first form is directly utilized to modify the second form, the time required by the form modification operation is saved, the time required by page development is further reduced, and the problems that the time is wasted and the labor is wasted in the current form modification operation, and the page development time is further prolonged are solved.
Based on the above embodiments of the present invention, an embodiment of the present invention will describe an execution process of a target instruction when the target instruction is a modification instruction, specifically, referring to fig. 2, fig. 2 is a flowchart of a specific target instruction execution method provided by the embodiment of the present invention, including:
s201: and acquiring and analyzing the target instruction, and determining a target form item, a target position and a target level specified by the target instruction.
The target form item is a form item executed by the target instruction, namely an adjusted form item, the target position is the position where the target form item is adjusted, and the target level is the level where the target form item is adjusted. Specifically, the target instruction may include form item information and adjustment information of the target form item, where the form item information may be a name of the target form item or a sequence number of the target form item. The adjustment information may include a target location and a target hierarchy for determining a hierarchy at which the target form item is located, and there may be multiple form items at different hierarchies for a form. There may be multiple form entries in different hierarchies, so the target location is the location number in the target hierarchy, which may be 3, for example, i.e., the target form entry is third in the target hierarchy. When the first tree structure is a graph tree structure, a user can generate a target instruction by utilizing a process of dragging nodes by a cursor, a target form item is determined by clicking the nodes, and a target level and a target position of the target form item are determined by the process of dragging the nodes.
S202: and determining a target form item in the first tree structure, and adjusting the current level of the target form item to be a target level.
After the target form item is determined, the target form item is determined in the first tree structure, and the current level of the target form item is adjusted to the target level. Specifically, the existing target form item can be deleted, and a target form item is newly built in the target layer level; or the target form item may be moved to the target level. For example, there are an a level (highest level), a B level (second level) and a C level (third level) in a form, and when the target form item needs to be adjusted from the C level to the B level, the target level is the B level. When a plurality of identical hierarchies exist in the form, the hierarchies can be ordered, and the sequence numbers are used for distinguishing the identical hierarchies, so that the target hierarchy can be represented by the sequence numbers. Specifically, when an a level exists in a form, two B levels exist under the a level, namely, the B1 level, the B2 level and the B3 level, the C1 level and the C2 level exist under the B1 level, the C3 level and the C4 level exist under the B2 level, and the C5 level exists under the B3 level. When the target form item needs to be adjusted from the C3 level to below the C5 level, the target level may be C5. It should be noted that, after the current level of the target form item is adjusted to the target level, the position of the target form item at the target level may be the last bit of the current level, or the first bit of the current level.
S203: and moving the target form item from the current position to the target position to obtain a second tree structure.
And after the target form item is adjusted to be the target level, moving the target form item from the current position to the target position to obtain a second tree structure.
Based on the above embodiments of the present invention, an embodiment of the present invention will describe an execution process of a target instruction when the target instruction is an attribute modification instruction, specifically, please refer to fig. 3, where fig. 3 is a flowchart of another specific target instruction execution method provided by the embodiment of the present invention, including:
s301: and acquiring and analyzing the target instruction, and determining a first form item, a target attribute and a target attribute value corresponding to the target instruction.
Specifically, when the target instruction is an attribute modification instruction, the target instruction includes a first form item, a target attribute, and a target attribute value. The first form item is a form item of the modified attribute, the target attribute is the modified attribute, the target attribute value is the attribute value of the modified target attribute, and the target attribute value can be a number, a character string or other forms. When the first tree structure is a graph tree structure, a user can click a first node to determine a first form item by right clicking, click a target attribute by left clicking in a popped attribute list to determine a target attribute, determine a target attribute value by inputting the target attribute value, and generate a corresponding target instruction by the above process.
S302: and determining a first form item in the first tree structure, and modifying the current attribute value of the target attribute of the first form item into a target attribute value to obtain a second tree structure.
After the target instruction is analyzed, a first form item is determined in the first attribute structure, and the current attribute value of the target attribute of the first form item is modified into a target attribute value, so that a second tree structure is obtained.
Based on the above embodiments of the present invention, an embodiment of the present invention will describe an execution process of a target instruction when the target instruction is an add instruction, including:
step 1: and acquiring and analyzing the target instruction, and determining a newly added form item, a newly added position and a newly added level corresponding to the target instruction.
When the target instruction is a new added instruction, the target instruction should include information corresponding to the new added form item, including attribute information, and the like, the new added form item corresponding to the target instruction is determined by using the information corresponding to the new added form item, and a new added position and a new added level corresponding to the target instruction are determined according to the target instruction, that is, the level where the new added form item is located and the position where the new added form item is located in the level.
Step 2: and inserting a new list item with a new hierarchy at the new position in the first tree structure to obtain a second tree structure.
Based on the embodiment of the invention, in practical application, the length of the form of a part of the page is too long, and when the form is used, a certain part is difficult to be directly positioned in the form. To solve the above problem, an embodiment of the present invention will describe a positioning method, please refer to fig. 4, where fig. 4 is a flowchart of an anchor point button generating method according to an embodiment of the present invention, including:
s401: and acquiring the page title information in the second json data.
The page title information is used for distinguishing each part in the form, and the specific content is not limited in this embodiment, for example, a Chinese name in a field corresponding to a form item of some hierarchy may be set as the page title information; or the Chinese names and the hierarchies of the fields corresponding to the form items of some hierarchies may be determined as the page title information.
S402: an anchor button is generated using the page title information.
The present embodiment does not limit the specific generation method of the anchor button, and reference may be made to the related art. It should be noted that after the second json data is generated by using the second attribute structure, the steps S401 and S402 may be performed before the second form is rendered by using the second json data, so that the anchor buttons are rendered simultaneously during the process of rendering the form.
By applying the method for modifying the page form, provided by the embodiment of the invention, the corresponding anchor point button can be generated after the second json data is generated, so that the anchor point button can be used for accurately positioning in the form.
The following introduces a page form modification apparatus provided in the embodiment of the present invention, and the page form modification apparatus described below and the page form modification method described above may be referred to correspondingly.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a page form modification apparatus according to an embodiment of the present invention, including:
an obtaining module 510, configured to obtain first json data corresponding to a first form when a modification request for the first form is detected;
the analyzing module 520 is configured to analyze the first json data to obtain a first tree structure corresponding to the first json data;
an executing module 530, configured to adjust the first tree structure according to the received target instruction, to obtain a second tree structure;
and a rendering module 540, configured to generate second json data by using the second tree structure, and render a second form by using the second json data.
Optionally, the executing module 530 includes:
the first acquisition unit is used for acquiring and analyzing a target instruction and determining a target form item, a target position and a target level specified by the target instruction;
the first adjusting unit is used for determining a target form item in the first tree structure and adjusting the current level of the target form item into a target level;
and the second adjusting unit is used for moving the target form item from the current position to the target position to obtain a second tree structure.
Optionally, the executing module 530 includes:
the second acquisition unit is used for acquiring and analyzing the target instruction and determining a newly added form item, a newly added position and a newly added level corresponding to the target instruction;
and the new building unit is used for inserting a new form item with a new hierarchy at a new position in the first tree structure to obtain a second tree structure.
Optionally, the executing module 530 includes:
the third acquisition unit is used for acquiring and analyzing the target instruction and determining a first form item, a target attribute and a target attribute value corresponding to the target instruction;
and the modification unit is used for determining a first form item in the first tree structure, modifying the current attribute value of the target attribute of the first form item into a target attribute value, and obtaining a second tree structure.
Optionally, the method further comprises:
the page title information acquisition module is used for acquiring page title information in the second json data;
and the anchor button generating module is used for generating an anchor button by utilizing the page title information.
Optionally, the parsing module 520 includes:
and the rule analysis unit is used for acquiring a preset json data analysis rule, and analyzing the first json data by using the preset json data analysis rule to obtain a first tree structure.
Optionally, the method further comprises:
and the storage module is used for storing the second json data into the database.
The following introduces the page form modification apparatus provided in the embodiment of the present invention, and the page form modification apparatus described below and the page form modification method described above may be referred to correspondingly.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a page form modifying apparatus according to an embodiment of the present invention, where the page form modifying apparatus includes a memory and a processor, where:
a memory 610 for storing a computer program;
the processor 620 is configured to execute a computer program to implement the above-mentioned page form modification method.
In the following, the computer-readable storage medium provided by the embodiment of the present invention is introduced, and the computer-readable storage medium described below and the page form modification method described above may be referred to correspondingly.
The invention further provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above-mentioned page form modification method.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relationships such as first and second, etc., are intended only 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.
The page form modification method, the page form modification device, the page form modification apparatus, and the computer-readable storage medium provided by the present invention are described in detail above, and specific examples are applied herein to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (10)

1. A method for modifying a page form, comprising:
when a modification request aiming at a first form is detected, acquiring first json data corresponding to the first form;
analyzing the first json data to obtain a first tree structure corresponding to the first json data;
adjusting the first tree structure according to the received target instruction to obtain a second tree structure;
and generating second json data by using the second tree structure, and rendering a second form by using the second json data.
2. The method of claim 1, wherein when the target instruction is a modification instruction, the adjusting the first tree structure according to the received target instruction to obtain a second tree structure includes:
acquiring and analyzing the target instruction, and determining a target form item, a target position and a target level specified by the target instruction;
determining the target form item in the first tree structure, and adjusting the current level of the target form item to the target level;
and moving the target form item from the current position to the target position to obtain the second tree structure.
3. The method of claim 1, wherein when the target instruction is an add instruction, the adjusting the first tree structure according to the received target instruction to obtain a second tree structure includes:
acquiring and analyzing the target instruction, and determining a newly added form item, a newly added position and a newly added level corresponding to the target instruction;
and inserting the newly added form item with the newly added hierarchy at the newly added position in the first tree structure to obtain the second tree structure.
4. The method according to claim 1, wherein when the target instruction is an attribute modification instruction, the adjusting the first tree structure according to the received target instruction to obtain a second tree structure includes:
acquiring and analyzing the target instruction, and determining a first form item, a target attribute and a target attribute value corresponding to the target instruction;
and determining the first form item in the first tree structure, and modifying the current attribute value of the target attribute of the first form item into the target attribute value to obtain the second tree structure.
5. The method for page form modification according to any of claims 1 to 4, wherein after said generating second json data using said second tree structure, and before said rendering a second form using said second json data, further comprising:
acquiring page title information in the second json data;
and generating an anchor button by using the page title information.
6. The method for modifying a page form according to claim 1, wherein said parsing the first json data to obtain a first tree structure corresponding to the first json data includes:
and acquiring a preset json data analysis rule, and analyzing the first json data by using the preset json data analysis rule to obtain the first tree structure.
7. The method of claim 1, wherein after said generating second json data using said second tree structure, further comprising:
and storing the second json data into a database.
8. A page form modification apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring first json data corresponding to a first form when a modification request aiming at the first form is detected;
the analysis module is used for analyzing the first json data to obtain a first tree structure corresponding to the first json data;
the execution module is used for adjusting the first tree structure according to the received target instruction to obtain a second tree structure;
and the rendering module is used for generating second json data by using the second tree structure and rendering a second form by using the second json data.
9. A page form modification apparatus, comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor, configured to execute the computer program to implement the page form modification method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the page form modification method of any one of claims 1 to 7.
CN201911277856.2A 2019-12-11 2019-12-11 Page form modification method, device and equipment and readable storage medium Active CN111061478B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911277856.2A CN111061478B (en) 2019-12-11 2019-12-11 Page form modification method, device and equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911277856.2A CN111061478B (en) 2019-12-11 2019-12-11 Page form modification method, device and equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111061478A true CN111061478A (en) 2020-04-24
CN111061478B CN111061478B (en) 2023-08-22

Family

ID=70300753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911277856.2A Active CN111061478B (en) 2019-12-11 2019-12-11 Page form modification method, device and equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111061478B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111488150A (en) * 2020-05-15 2020-08-04 网易(杭州)网络有限公司 Page processing method and device
CN113052942A (en) * 2021-03-31 2021-06-29 北京字节跳动网络技术有限公司 Chart generation method and device, storage medium and electronic equipment
CN114968235A (en) * 2022-05-16 2022-08-30 中国空气动力研究与发展中心计算空气动力研究所 Page form generation method and device, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100287132A1 (en) * 2009-05-05 2010-11-11 Paul A. Lipari System, method and computer readable medium for recording authoring events with web page content
CN103106244A (en) * 2012-12-31 2013-05-15 华为技术有限公司 Information exhibiting method, terminal device, server and system
WO2016177250A1 (en) * 2015-05-05 2016-11-10 阿里巴巴集团控股有限公司 Client page rendering method and apparatus
CN108428112A (en) * 2018-03-12 2018-08-21 武汉斗鱼网络科技有限公司 A kind of generation method of list, device, computer and storage medium
US20180276308A1 (en) * 2015-01-12 2018-09-27 Beijing Jingdong Shangke Information Technology Co., Ltd. Method and system for increasing page loading rate
CN108829828A (en) * 2018-06-15 2018-11-16 乐蜜有限公司 A kind of Webpage display process, device, electronic equipment and readable storage medium storing program for executing
CN110083790A (en) * 2019-04-30 2019-08-02 珠海随变科技有限公司 Page editing method, page output method, device, computer equipment and medium
CN110222014A (en) * 2019-06-11 2019-09-10 苏州浪潮智能科技有限公司 Distributed file system crush map maintaining method and associated component
CN110442341A (en) * 2019-07-23 2019-11-12 平安国际智慧城市科技股份有限公司 Interface configuration method, device and the terminal device of application program

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100287132A1 (en) * 2009-05-05 2010-11-11 Paul A. Lipari System, method and computer readable medium for recording authoring events with web page content
CN103106244A (en) * 2012-12-31 2013-05-15 华为技术有限公司 Information exhibiting method, terminal device, server and system
US20180276308A1 (en) * 2015-01-12 2018-09-27 Beijing Jingdong Shangke Information Technology Co., Ltd. Method and system for increasing page loading rate
WO2016177250A1 (en) * 2015-05-05 2016-11-10 阿里巴巴集团控股有限公司 Client page rendering method and apparatus
CN108428112A (en) * 2018-03-12 2018-08-21 武汉斗鱼网络科技有限公司 A kind of generation method of list, device, computer and storage medium
CN108829828A (en) * 2018-06-15 2018-11-16 乐蜜有限公司 A kind of Webpage display process, device, electronic equipment and readable storage medium storing program for executing
CN110083790A (en) * 2019-04-30 2019-08-02 珠海随变科技有限公司 Page editing method, page output method, device, computer equipment and medium
CN110222014A (en) * 2019-06-11 2019-09-10 苏州浪潮智能科技有限公司 Distributed file system crush map maintaining method and associated component
CN110442341A (en) * 2019-07-23 2019-11-12 平安国际智慧城市科技股份有限公司 Interface configuration method, device and the terminal device of application program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王志朋;黄彦琦;陈立;: "基于JSP的可视化动态表单引擎设计", 软件导刊, no. 07 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111488150A (en) * 2020-05-15 2020-08-04 网易(杭州)网络有限公司 Page processing method and device
CN111488150B (en) * 2020-05-15 2024-01-23 网易(杭州)网络有限公司 Page processing method and device
CN113052942A (en) * 2021-03-31 2021-06-29 北京字节跳动网络技术有限公司 Chart generation method and device, storage medium and electronic equipment
CN113052942B (en) * 2021-03-31 2023-06-30 抖音视界有限公司 Chart generation method, device, storage medium and electronic equipment
CN114968235A (en) * 2022-05-16 2022-08-30 中国空气动力研究与发展中心计算空气动力研究所 Page form generation method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111061478B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
US10318628B2 (en) System and method for creation of templates
CN109614424B (en) Page layout generation method, device, computing equipment and medium
US20210034336A1 (en) Executing a process-based software application in a first computing environment and a second computing environment
CN109408764B (en) Page area dividing method, device, computing equipment and medium
US9727538B2 (en) Editing a fragmented document
CN111061478B (en) Page form modification method, device and equipment and readable storage medium
KR101569984B1 (en) Setup Method for Web Scraping Data Extraction
CN108345456A (en) Page code generation method, device, computer equipment and storage medium
CN112464623A (en) RPA flow file generation method and device, computer equipment and storage medium
CN103597469A (en) Live browser tooling in an integrated development environment
CN106354483B (en) Data processing method and device and electronic equipment
US11556702B2 (en) Orchestration of crud operations for a hierarchical web service data model in a spreadsheet
CN111722873A (en) Code reconstruction method, device, equipment and medium
CN112861059A (en) Visual component generation method and device, computer equipment and readable storage medium
CN114564199A (en) Method, device and equipment for generating use page and readable storage medium
CN116245052A (en) Drawing migration method, device, equipment and storage medium
CN107710190B (en) Rendering content using decoupled rendering resources
CN112825038A (en) Visual page making method based on general component language specification and related product
US11663199B1 (en) Application development based on stored data
CN109725973B (en) Data processing method and data processing device
US20240037325A1 (en) Ability to add non-direct ancestor columns in child spreadsheets
CN115543288A (en) Code information generation method, device, equipment and storage medium
CN111221610B (en) Page element acquisition method and device
JP2018036855A (en) Information processing system, control method of information processing system, and program
CN113934959A (en) Program preview method and device, computer equipment and storage medium

Legal Events

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