CN116956845A - Method for rapidly configuring form field, page field generation mode and system - Google Patents

Method for rapidly configuring form field, page field generation mode and system Download PDF

Info

Publication number
CN116956845A
CN116956845A CN202310792404.8A CN202310792404A CN116956845A CN 116956845 A CN116956845 A CN 116956845A CN 202310792404 A CN202310792404 A CN 202310792404A CN 116956845 A CN116956845 A CN 116956845A
Authority
CN
China
Prior art keywords
menu
field
analysis data
configuration information
form field
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
CN202310792404.8A
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.)
Guangzhou Lubangtong Intelligent Technology Co ltd
Original Assignee
Guangzhou Lubangtong Intelligent Technology 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 Guangzhou Lubangtong Intelligent Technology Co ltd filed Critical Guangzhou Lubangtong Intelligent Technology Co ltd
Priority to CN202310792404.8A priority Critical patent/CN116956845A/en
Publication of CN116956845A publication Critical patent/CN116956845A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention belongs to the field of computers, and discloses a method for rapidly configuring form fields, which comprises the following steps: step 1: the scanning interface obtains configuration information of the form field; step 2: analyzing the configuration information into a format required by a dictionary table to obtain analysis data; step 3: inquiring a menu ID of a menu to which a form field belongs, acquiring the menu ID according to the menu to which the form field belongs, and adding the menu ID into analysis data; step 4: adding the analysis data obtained in the step 3 into a dictionary table; the dictionary table is used for users to review, call and modify the analysis data in the dictionary table; the method adopts a custom field list associated with the service type, adopts an Excel sub-template associated with the service type, realizes the automatic generation of the Excel file through configuration information, and avoids the problem of overlarge development difficulty of the Excel table template facing different service types and different fixed titles in the traditional technology of dynamically generating the import template.

Description

Method for rapidly configuring form field, page field generation mode and system
Technical Field
The invention relates to the field of computers, in particular to a method for rapidly configuring form fields, a page field generation mode and a page field generation system.
Background
In the prior art, after a new page list function is developed at the back end, the front end is required to configure the fields existing in the page in a background management platform, and Chinese mapping and field sequence ordering are performed on English fields returned by the back end;
the prior art is not enough:
the human and time are consumed, the back-end personnel needs to maintain the interface document, the front-end personnel needs to configure the interface document provided by the back-end personnel and the demand document provided by the product in the background management platform, if the field adjustment occurs at the back-end, the front-end is also required to be timely notified, and the communication and configuration adjustment at the front-end and the back-end are very time-consuming.
The communication ambiguity leads to bug occurrence, the field adjustment is performed at the back end, and problems are generated due to the communication ambiguity with the front end.
In real development, after the backend develops the function list, the front-end needs to spend a lot of time and effort to view the interface document provided by the backend and configure the required fields into the specified page configuration.
Therefore, the technical problem solved by the scheme is as follows: and how to realize automatic field configuration in an automatic mode, so that front-end and back-end configuration and docking time are reduced, and development efficiency is improved.
Disclosure of Invention
The invention aims to provide a method for generating an Excel file in a mixed configuration mode, which adopts a custom field list associated with a service type, adopts an Excel sub-template associated with the service type, realizes automatic generation of the Excel file through configuration information, and avoids the problem of overlarge development difficulty of the traditional dynamic generation import template technology in the face of Excel table templates with different service types and different fixed titles.
Meanwhile, the invention also provides a system.
In order to achieve the above purpose, the present invention provides the following technical solutions: a method of rapidly configuring a form field, comprising the steps of:
step 1: the scanning interface obtains configuration information of the form field; the configuration information comprises a menu to which the form field belongs and the content of the form field;
step 2: analyzing the configuration information into a format required by a dictionary table to obtain analysis data;
step 3: inquiring a menu ID of a menu to which a form field belongs, acquiring the menu ID according to the menu to which the form field belongs, and adding the menu ID into analysis data;
step 4: adding the analysis data obtained in the step 3 into a dictionary table; the dictionary table is used for users to review, call and modify the analysis data in the dictionary table.
In the method for rapidly configuring the table field, the interface is generated in the following manner:
adding configuration information to the entity class; the entity class is associated with the interface.
In the method for rapidly configuring the table field, the contents of the table field comprise the table field, chinese names and display data.
Meanwhile, the invention also discloses a generation mode of the page field, which comprises the following steps:
step 10: inputting keywords, inquiring a dictionary table, and obtaining analysis data, wherein the dictionary table is obtained according to any one of the methods;
step 20: extracting configuration information in the analysis data;
step 30: and loading the form field to the position appointed by the page according to the configuration information.
In the above generation manner of the page field, the keyword is one or more of a name or ID of a menu to which the page belongs, a content of a table field, and a chinese name of the table field.
Finally, the invention also discloses a form field configuration system, which comprises the following modules:
an interface scanning module: the configuration information of the form field is obtained by the scanning interface; the configuration information comprises a menu to which the form field belongs and the content of the form field;
and an interface analysis module: the configuration information is analyzed into a format required by a dictionary table to obtain analysis data;
and (3) an association module: the method comprises the steps of obtaining a menu ID according to a menu belonging to a table field, and adding the menu ID into analysis data;
dictionary generation module: the analysis data obtained by the association module are added into the dictionary table; the dictionary table is used for users to review, call and modify the analysis data in the dictionary table.
Compared with the prior art, the invention has the beneficial effects that:
the invention solves the problems of repeated configuration operation of the front end and communication with the back end, gives the configuration requirement to the back end, realizes automatic field configuration in an automatic mode after the development of the back end function is completed, reduces the configuration and docking time of the front end and the back end, and improves the development efficiency. And the back end marks the entity class stored in the field in the process of function development, so that the current entity class obtains the information required by configuration of the form field. After the function development is finished, the back end designates an interface to be scanned, analyzes the fields in the scanned entity class and the table field information, stores the analyzed object into the table field table, and completes the table field configuration.
Drawings
FIG. 1 is a flow chart of embodiment 1 of the present invention;
FIG. 2 is a flow chart of embodiment 1 of the present invention;
fig. 3 is a block diagram showing the structure of embodiment 2 of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, a method for rapidly configuring a table field includes the steps of:
step 1: the scanning interface obtains configuration information of the form field; the configuration information comprises a menu to which the form field belongs and the content of the form field;
in the development process, the back end receives the development requirement of the front end, at this time, form fields required by the front end and related information (including but not limited to menus, chinese names, data and the like to which the form fields belong) of the form fields are added into the entity class, and then the entity class is associated with the interface;
through the scanning interface, configuration information of all form fields can be obtained;
step 2: analyzing the configuration information into a format required by a dictionary table to obtain analysis data;
the main purpose of the step is to store the data into a dictionary table;
step 3: inquiring a menu ID of a menu to which a form field belongs, acquiring the menu ID according to the menu to which the form field belongs, and adding the menu ID into analysis data;
in the development process of the back end, the ID of the menu to which the form field belongs is not concerned, because different front end developers can develop different pages, but the same menu can be used for the pages; even though the menus of the pages of different developers are the same, the IDs of the menus are different;
the front-end developer can select the required form fields and endow the form fields with own IDs according to own needs, so that unnecessary form fields can be filtered when looking up the dictionary;
at the same time, it means that one form field can be used by multiple front-end developers, and it can be flexibly allocated according to the needs of the front-end developers.
Step 4: adding the analysis data obtained in the step 3 into a dictionary table; the dictionary table is used for users to review, call and modify the analysis data in the dictionary table.
Through the operation, a front-end developer can quickly find the required form field through the pin dictionary table and introduce the form field into a menu of the page to generate the page.
The front-end developer performs the following operations in the process of developing the page:
step 10: inputting keywords, inquiring a dictionary table, and obtaining analysis data, wherein the dictionary table is obtained according to any one of the methods; the keywords are one or more of names or IDs of menus to which the pages belong, contents of form fields and Chinese names of the form fields;
step 20: extracting configuration information in the analysis data;
step 30: and loading the form field into a menu table corresponding to the page according to the configuration information, and loading the form field in the appointed position of the page.
Example 2
A form field configuration system comprising the following modules:
interface scanning module 1: the configuration information of the form field is obtained by the scanning interface; the configuration information comprises a menu to which the form field belongs and the content of the form field;
interface parsing module 2: the configuration information is analyzed into a format required by a dictionary table to obtain analysis data;
correlation module 3: the method comprises the steps of obtaining a menu ID according to a menu belonging to a table field, and adding the menu ID into analysis data;
dictionary generation module 4: the analysis data obtained by the association module are added into the dictionary table; the dictionary table is used for users to review, call and modify the analysis data in the dictionary table;
the working principle of the system is as follows:
the interface scanning module scans the port which is already developed by the back-end developer; acquiring configuration information of the form field through the port; analyzing the configuration information through an interface analysis module; the front-end personnel associate the form field with a menu ID; then store it in dictionary table; in the page development process, all information of the required form fields can be obtained by referring to the dictionary table, and the information is imported into a menu table corresponding to the page.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (6)

1. A method for quickly configuring a form field, comprising the steps of:
step 1: the scanning interface obtains configuration information of the form field; the configuration information comprises a menu to which the form field belongs and the content of the form field;
step 2: analyzing the configuration information into a format required by a dictionary table to obtain analysis data;
step 3: inquiring a menu ID of a menu to which a form field belongs, acquiring the menu ID according to the menu to which the form field belongs, and adding the menu ID into analysis data;
step 4: adding the analysis data obtained in the step 3 into a dictionary table; the dictionary table is used for users to review, call and modify the analysis data in the dictionary table.
2. The method for quickly configuring a table field according to claim 1, wherein the interface is generated in the following manner:
adding configuration information to the entity class; the entity class is associated with the interface.
3. The method of claim 1, wherein the table field contents include table fields, chinese names, display data.
4. The generation mode of the page field is characterized by comprising the following steps:
step 10: inputting keywords, querying a dictionary table, and obtaining analysis data, wherein the dictionary table is obtained according to the method of any one of claims 1-3;
step 20: extracting configuration information in the analysis data;
step 30: and loading the form field into a menu table corresponding to the page according to the configuration information, and loading the form field in the appointed position of the page.
5. The method of claim 4, wherein the keyword is one or more of a name or ID of a menu to which the page belongs, a content of a table field, and a chinese name of the table field.
6. A form field configuration system, comprising the following modules:
an interface scanning module: the configuration information of the form field is obtained by the scanning interface; the configuration information comprises a menu to which the form field belongs and the content of the form field;
and an interface analysis module: the configuration information is analyzed into a format required by a dictionary table to obtain analysis data;
and (3) an association module: the method comprises the steps of obtaining a menu ID according to a menu belonging to a table field, and adding the menu ID into analysis data;
dictionary generation module: the analysis data obtained by the association module are added into the dictionary table; the dictionary table is used for users to review, call and modify the analysis data in the dictionary table.
CN202310792404.8A 2023-06-29 2023-06-29 Method for rapidly configuring form field, page field generation mode and system Pending CN116956845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310792404.8A CN116956845A (en) 2023-06-29 2023-06-29 Method for rapidly configuring form field, page field generation mode and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310792404.8A CN116956845A (en) 2023-06-29 2023-06-29 Method for rapidly configuring form field, page field generation mode and system

Publications (1)

Publication Number Publication Date
CN116956845A true CN116956845A (en) 2023-10-27

Family

ID=88454006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310792404.8A Pending CN116956845A (en) 2023-06-29 2023-06-29 Method for rapidly configuring form field, page field generation mode and system

Country Status (1)

Country Link
CN (1) CN116956845A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117973356A (en) * 2024-04-01 2024-05-03 上海艾拉比智能科技有限公司 Investigation tool, generation method and use method thereof and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117973356A (en) * 2024-04-01 2024-05-03 上海艾拉比智能科技有限公司 Investigation tool, generation method and use method thereof and readable storage medium

Similar Documents

Publication Publication Date Title
CN111241454B (en) Method, system and device for generating webpage codes
CN110866383B (en) Interactive electronic data list generation method and system
CN114115883B (en) Method for quickly constructing front-end application by using middle station service capability
CN108762743A (en) Data table operation code generation method and device
CN112650529B (en) System and method for configurable generation of mobile terminal APP codes
CN116956845A (en) Method for rapidly configuring form field, page field generation mode and system
CN102236544A (en) Method and device for designing skins
CN111666072A (en) Software code and document robot method
CN112199331A (en) Automatic generation method, system, terminal and storage medium of interface document
CN113641700A (en) Data processing method and device based on Spring boot frame
CN111913693A (en) Method and system for determining subclass template of service interface
CN117057318A (en) Domain model generation method, device, equipment and storage medium
CN109471957B (en) Metadata conversion method and device based on uniform tags
CN109617944B (en) WEB parameter management method, device, computer storage medium and equipment
US20060277332A1 (en) Translation support system and program thereof
CN113608706A (en) Method for printing tickets in government affair hall and storage medium
CN112163124A (en) File display method, device, terminal and storage medium
CN116303359A (en) Method for realizing multi-type document export of database structure
CN116009793A (en) Printing method
CN113297425B (en) Document conversion method, device, server and storage medium
CN115291868A (en) Method, device and storage medium for generating dynamic page data
CN114691265A (en) Batch grabbing method for software interface structured elements
CN113822025A (en) Office file automatic generation method, device, equipment and storage medium
CN110908659A (en) Method and system for automatically generating user operation interface according to interface definition
CN105512308A (en) Intelligent accelerated drawing method for character library

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