Search

CN-116204747-B - Dynamic adjustment method and device for webpage form

CN116204747BCN 116204747 BCN116204747 BCN 116204747BCN-116204747-B

Abstract

The invention discloses a dynamic adjustment method and device for a webpage form, wherein the method comprises the steps of generating the webpage form of a target webpage according to a form use wish of a user and a form component predetermined by the target webpage; and according to all the called control parameters, controlling to execute corresponding table adjustment operation on the web page table. Therefore, the method and the device can dynamically adjust the content of the webpage form according to the use intention of the user, improve the flexibility of adjusting the webpage form, further enable the generated webpage form to be matched with the use requirement of the user, provide different control parameters to improve the adjustment efficiency of the webpage form, and further improve the working efficiency of the user when carrying out the form related work.

Inventors

  • ZHOU HAI
  • LIU ZHAOPING
  • LI HUANYA
  • GUO YANXIANG
  • ZHAO MING
  • LIN ZHENFENG
  • TIAN SONGLIN

Assignees

  • 南方电网数字平台科技(广东)有限公司

Dates

Publication Date
20260505
Application Date
20221213

Claims (8)

  1. 1. A method for dynamically adjusting a web page form, the method comprising: acquiring form use intentions of a user; generating a webpage form of the target webpage according to form use intent of the user and a form component predetermined by the target webpage; Invoking at least one control parameter in a control parameter library predetermined by the target webpage according to the form use willingness of the user; Controlling to execute corresponding form adjustment operation on the webpage form according to all the invoked control parameters; before the acquiring the table usage intent of the user, the method further includes: Acquiring an external programming file of a target webpage, wherein the external programming file is used for indicating programming files defined outside the target webpage; establishing an association relationship between the external programming file and the target webpage through presetting a webpage label; Determining a form component of the target webpage through the external programming file and the association relation, wherein the form component comprises a form block sub-component, a form row sub-component and a form dragging sub-component; Before the invoking of at least one control parameter in the control parameter library predetermined by the web page form according to the user's form usage intent, the method further comprises: generating a control parameter library of the target webpage according to the external programming file and the table component, wherein the control parameter library comprises a function control parameter sub-library and/or an operation column control parameter sub-library; And generating a control parameter library of the target webpage according to the external programming file and the table component, wherein the control parameter library comprises the following components: determining a business scene of the webpage form through row-column parameters and/or position parameters of the webpage form, which are determined in advance by the form component; Generating a function control parameter sub-library of the target webpage according to the service scene and the external programming file, wherein the function control parameter sub-library comprises at least one control parameter, and any control parameter in the function control parameter sub-library is used for indicating to execute a function adjustment operation on at least one cell in the webpage table, and the function adjustment operation comprises at least one of a disassembly operation, an addition operation and a deletion operation.
  2. 2. The method for dynamically adjusting a web page form according to claim 1, wherein after said determining a form component of said target web page from said external programming file and said association relationship, said method further comprises: And generating at least one table block of the target webpage and block control parameters corresponding to each table block through the table block sub-component of the target webpage, wherein the table blocks are used for placing any number of webpage tables, and the block control parameters are used for indicating to execute at least one operation of block labeling, block displaying and block hiding on the corresponding table blocks.
  3. 3. The method for dynamically adjusting a web page form according to claim 1, wherein the generating a web page form of a target web page according to a form usage intent of the user and a predetermined form component of the target web page comprises: determining row and column parameters of a generated webpage table according to the table use willingness of the user and the table row and column sub-assembly, wherein the row and column parameters comprise at least one of row and column number, row and column distance and table head mark; Determining a position parameter for generating the webpage form according to the form use willingness of the user and the form dragging sub-component, wherein the position parameter is used for indicating the webpage position for generating the webpage form, and the webpage position is in any form block predetermined by the target webpage; And generating a webpage table of the target webpage according to the rank parameter and the position parameter.
  4. 4. The method for dynamically adjusting a web page table according to claim 1, wherein the generating a control parameter library of the target web page according to the external programming file and the table component comprises: judging whether the webpage form meets a preset accessory condition according to a service scene predetermined by the webpage form; when the webpage form meets the preset accessory condition, generating an operation column of the webpage form; And generating an operation column control parameter sub-library of the target webpage according to the service scene, the operation column and the external programming file, wherein the operation column control parameter sub-library comprises at least one control parameter, and any control parameter in the operation column control parameter sub-library is used for indicating the operation column to execute the operation of adding or deleting accessories to at least one cell in the webpage table.
  5. 5. The method for dynamically adjusting a web page form according to claim 1, wherein after said controlling the execution of the corresponding form adjustment operation on the web page form according to all of the control parameters invoked, the method further comprises: Timing the idle time of the webpage form through a preset time component of the target webpage, wherein the idle time is used for indicating the time which passes when the webpage form is in an idle state; judging whether the idle time is larger than a preset idle time threshold value or not in real time; When the idle time is judged to be larger than the preset idle time threshold value, generating verification control parameters of the webpage table, wherein the verification control parameters comprise at least one of space verification, character verification, text verification and format verification; and controlling to execute relevant verification operation on the webpage form according to the verification control parameters.
  6. 6. A device for dynamically adjusting a web page form, wherein the device is configured to perform the method for dynamically adjusting a web page form according to any one of claims 1 to 5, and the device comprises: The acquisition module is used for acquiring the form use intention of the user; The generation module is used for generating a webpage form of the target webpage according to form use intention of the user and a form component predetermined by the target webpage; the calling module is used for calling at least one control parameter in a control parameter library predetermined by the target webpage according to the form use wish of the user; and the control execution module is used for controlling the execution of corresponding form adjustment operation on the webpage form according to all the control parameters called by the calling module.
  7. 7. A dynamic adjustment device for a web page form, the device comprising: A memory storing executable program code; A processor coupled to the memory; The processor invokes the executable program code stored in the memory to perform the method of dynamically adjusting a web page form as claimed in any one of claims 1 to 5.
  8. 8. A computer storage medium storing computer instructions which, when invoked, are operable to perform a method of dynamically adjusting a form of a web page as claimed in any one of claims 1 to 5.

Description

Dynamic adjustment method and device for webpage form Technical Field The present invention relates to the field of dynamic form adjustment technologies, and in particular, to a method and an apparatus for dynamically adjusting a web page form. Background With the rapid development of information technology, electronic forms are also increasingly suitable for use in daily work of users. The electronic forms are edited and used through online webpages or application programs in the communication terminals (such as mobile phones and computers) so as to achieve the effects of recording data, storing data, processing data, remitting data and the like, and the data processing capability of users can be effectively improved, and further the working efficiency is improved. In practical applications, online webpages often generate corresponding form components based on page-fixed data, and generate webpage forms through the form components. However, the web page form generated by such form component cannot be dynamically adjusted according to the user's usage intent, which results in the generated web page form not matching the user's usage needs. Therefore, it is important to provide a form adjustment method that can dynamically adjust the content of the web form according to the user's usage intention, so that the generated web form can match the user's usage requirement. Disclosure of Invention The invention aims to solve the technical problem of providing a method and a device for dynamically adjusting a webpage form, which can dynamically adjust the content of the webpage form according to the use intention of a user, so that the generated webpage form can be matched with the use requirement of the user. In order to solve the technical problem, the first aspect of the present invention discloses a method for dynamically adjusting a web page table, which comprises: acquiring form use intentions of a user; generating a webpage form of the target webpage according to form use intent of the user and a form component predetermined by the target webpage; Invoking at least one control parameter in a control parameter library predetermined by the target webpage according to the form use willingness of the user; And controlling to execute corresponding form adjustment operation on the webpage form according to all the invoked control parameters. As an optional implementation manner, in the first aspect of the present invention, before the acquiring the table usage intent of the user, the method further includes: Acquiring an external programming file of a target webpage, wherein the external programming file is used for indicating programming files defined outside the target webpage; establishing an association relationship between the external programming file and the target webpage through presetting a webpage label; And determining a form component of the target webpage through the external programming file and the association relation, wherein the form component comprises a form block sub-component, a form row sub-component and a form dragging sub-component. As an optional implementation manner, in the first aspect of the present invention, after the determining, by using the external programming file and the association relationship, a form component of the target web page, the method further includes: And generating at least one table block of the target webpage and block control parameters corresponding to each table block through the table block sub-component of the target webpage, wherein the table blocks are used for placing any number of webpage tables, and the block control parameters are used for indicating to execute at least one operation of block labeling, block displaying and block hiding on the corresponding table blocks. In a first aspect of the present invention, as an optional implementation manner, the generating, according to a table component predetermined by a target web page and intended for the table use of the user, a web page table of the target web page includes: determining row and column parameters of a generated webpage table according to the table use willingness of the user and the table row and column sub-assembly, wherein the row and column parameters comprise at least one of row and column number, row and column distance and table head mark; Determining a position parameter for generating the webpage form according to the form use willingness of the user and the form dragging sub-component, wherein the position parameter is used for indicating the webpage position for generating the webpage form, and the webpage position is in any form block predetermined by the target webpage; And generating a webpage table of the target webpage according to the rank parameter and the position parameter. As an optional implementation manner, in the first aspect of the present invention, before the calling at least one control parameter in the control parameter library predetermined in the web page