CN117519889A - Form component switching method and device, storage medium and electronic equipment - Google Patents

Form component switching method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117519889A
CN117519889A CN202410015984.4A CN202410015984A CN117519889A CN 117519889 A CN117519889 A CN 117519889A CN 202410015984 A CN202410015984 A CN 202410015984A CN 117519889 A CN117519889 A CN 117519889A
Authority
CN
China
Prior art keywords
text
input
component
field
data
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
CN202410015984.4A
Other languages
Chinese (zh)
Other versions
CN117519889B (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.)
Beijing Jas Technical Service Co ltd
Original Assignee
Beijing Jas Technical Service 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 Beijing Jas Technical Service Co ltd filed Critical Beijing Jas Technical Service Co ltd
Priority to CN202410015984.4A priority Critical patent/CN117519889B/en
Publication of CN117519889A publication Critical patent/CN117519889A/en
Application granted granted Critical
Publication of CN117519889B publication Critical patent/CN117519889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2428Query predicate definition using graphical user interfaces, including menus and forms

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a form component switching method, a form component switching device, a storage medium and electronic equipment, and relates to the technical field of form components, wherein the method comprises the following steps: acquiring unique field values of at least one first form component; creating at least one target field in the database based on the unique field value, each target field for storing component input data of one data type; acquiring first input data in a first form component, determining a first data type to which the first input data belongs, and storing the first input data into a target field corresponding to the first data type; and under the condition of switching from the first form component to the second form component, determining a second data type of second input data in the second form component, and storing the second input data into a target field corresponding to the second data type. The method and the device have the effect of avoiding the loss of the data input in the last component after the form component is switched.

Description

Form component switching method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of form components, in particular to a form component switching method, a form component switching device, a storage medium and electronic equipment.
Background
Forms are usually composed of form components and submit buttons, and are mainly responsible for data acquisition functions in web pages, and are mainly used for collecting information input by personnel and submitting the information to a server for processing. The form components provide an interface for personnel to input, have the functions of data collection and data submission, each form component has specific appearance and properties, and common form components include a text box component, a menu box component, a drop-down box component, a date component and the like. Form design refers to the process of creating and designing a form, including aspects of layout of the form, type of input fields, validation rules, and the like.
At present, in the form design process of a form design user through a code-free platform, new components are required to be frequently dragged from a component library to canvas according to design requirements, and then a previous component is deleted, so that the adjustment of the layout of a form page is realized, for example, if a text box component is required to be replaced by a single selection box component, the text box component is deleted first and then the single selection box component is dragged again to replace, but after the form component is switched, the data input in the previous component is lost, so that the data input in the previous component cannot be displayed, and the experience of the form design user is affected.
Disclosure of Invention
In order to avoid data loss input in a last component after form component switching, the application provides a form component switching method, a form component switching device, a storage medium and electronic equipment.
In a first aspect of the present application, a form component switching method is provided, specifically including:
acquiring a unique field value of at least one first form component, wherein the first form component is a component which is dragged to a canvas from a component library by a form design user;
creating at least one target field in a database according to the unique field value, each target field being used for storing component input data of one data type;
acquiring first input data in the first form component, determining a first data type to which the first input data belongs, and storing the first input data into a target field corresponding to the first data type;
and under the condition of switching from the first form component to the second form component, determining a second data type of second input data in the second form component, and storing the second input data into a target field corresponding to the second data type.
By adopting the technical scheme, after the unique field value of the first form component dragged by the form design user is obtained, the target field for storing the component input data of different data types is determined based on the unique field value, so that the input data in the subsequent form component can be conveniently stored. And then according to the first data type of the first input data, the first input data is stored in a target field capable of storing the data of the first data type, so that the subsequent first form component is switched to the second form component, the data input in the first form component is not lost, the data in the form component is not affected by the switching between the form components in the form design process, and finally, a better form design experience is obtained for a form design user.
Optionally, the creating at least one target field in the database according to the unique field value specifically includes:
determining a first initial field, a second initial field, a third initial field and a fourth initial field, wherein the first initial field is an ID field for storing unique identification, the second initial field is a NAME field for storing text type data, the third initial field is a DATETIME field for storing time type data, and the fourth initial field is a DECIAL field for storing digital type data;
And combining the unique field value with the first initial field, the second initial field, the third initial field and the fourth initial field respectively to obtain a plurality of target fields.
By adopting the technical scheme, the data storage types in the form component are mainly divided into ID, NAME, DATETIME, DECIMAL types, so that when the target field is established in the database, the unique field value is respectively combined with the ID field, the NAME field, the DATETIME field and the DECIAL field, and a plurality of target fields which avoid repetition and can meet the data storage requirement in the form component are finally obtained.
Optionally, the acquiring the first input data in the first form component specifically includes:
if the first form component is a text box component, determining the user occupation of the form design user and the form audience group type;
determining at least one input recommended text content according to the user occupation and the form audience group type;
acquiring keywords input by a terminal of the form design user, determining final recommended content from the input recommended text content according to the keywords, and displaying the final recommended content on the terminal in a virtual form;
And receiving a selection instruction sent by the terminal, screening the final recommended content corresponding to the selection instruction from the final recommended content, and determining the final recommended content as first input data.
By adopting the technical scheme, when the first form component is the text box component, according to the user occupation of the form design user and the form audience group type of the designed form, the input recommended text content is determined, namely, the input recommended text content is not only attached to the design requirement of the form design user, but also enables the form filling user to better understand the text content in the form and better fill the form. And then, according to keywords input by a form design user, screening final recommended contents with higher fitting degree with design requirements, and displaying the final recommended contents on a terminal in a virtual form. Finally, the form design user sends a selection instruction through the terminal, and selects first input data to be input finally from each final recommended content, so that the first input data which is fit with the design requirement and is easy to understand by the form filling user can be input without manual operation, the form design efficiency is improved, and meanwhile, the information acquisition effect of the form is better.
Optionally, the determining at least one input recommended text content according to the user occupation and the form audience group type specifically includes:
Screening historical input texts corresponding to the user occupation from the historical text box input texts, and dividing each historical input text into different types of text sets through a clustering algorithm;
sequencing each text set according to the number of the included historical input texts to obtain a sequencing result, wherein the more the number of the historical input texts is, the more the corresponding text sets are sequenced;
determining a text expression form corresponding to the form audience group type, wherein the text expression form is an expression form of the form audience group type, and the text content is easy to understand;
selecting a preset number of target text sets from the ordered results according to the front-to-back sequence, determining each history input text in the target text sets as input recommended text content, wherein the target text sets comprise at least one history input text with similarity exceeding a similarity threshold value with the text expression form.
By adopting the technical scheme, the historical input texts of other form design users with the occupation being the same as the occupation of the user are screened out, after each historical input text is divided into text sets of different types, each text set is ordered according to the number of the included historical input texts, the more the number is, the more the corresponding text sets are ordered, and the more other form design users under the occupation of the user are indicated to input the corresponding types of texts. And then selecting a preset number of target text sets from front to back in the ordered result, and finally determining the historical input text in each target text set as the content of the input recommended text, thereby facilitating the follow-up recommendation trend input for the form design user and filling in the text which is easy to understand by the user.
Optionally, the obtaining the keywords input by the terminal of the form design user, determining the final recommended content from the input recommended text contents according to the keywords, and displaying the final recommended content on the terminal in a virtual form specifically includes:
acquiring keywords input by a terminal of the form design user, and selecting a final text set containing the keywords from each target text set;
and determining the historical input text with the highest similarity with the text expression form in each final text set as final recommended content, and displaying each final recommended content in a virtual form in a display area corresponding to the terminal, wherein the more the number of the historical input texts in the final text set is, the closer the corresponding display area is to a center display area corresponding to the center of the view in the terminal.
By adopting the technical scheme, the form design requirement of the form design user can be further defined according to the keywords sent by the terminal, and then the final text set with the keywords contained in the history input text is screened out from each target text set, so that the follow-up final recommended content is more attached to the design requirement of the form design user. Further, the final recommended content with the highest similarity to the text expression form, that is, the text that is most easily understood by the form filling user, is selected from each final text set. And finally, displaying each final recommended content in a corresponding display area, wherein the more the number of the historical input texts in the text set is, the closer the corresponding display area is to the central display area, so that the more convenient the form design user can quickly select the input texts which are more fit with the design requirements of the user and are easy to understand by the form filling user.
Optionally, the method further comprises:
and if the selection instruction sent by the terminal is not received for a preset interval time, adjusting the display area corresponding to each final recommended content, wherein the display area is closer to the central display area, and the adjusted display area is farther from the central display area.
By adopting the technical scheme, if the selection instruction sent by the terminal is not received at the preset time interval, the fact that the form design user is harder to select text contents to be input from the displayed plurality of final recommended contents in a short time is indicated, the final recommended contents which are prone to be selected may be far away from the central display area, then the display area of each final recommended content is adjusted, namely, the further the display area is away from the central display area, the closer the adjusted display area is to the central display area, and accordingly the form design user can quickly select input texts meeting the design requirements.
Optionally, after the final recommended content corresponding to the selection instruction is screened from the final recommended contents and determined as the first input data, the method further includes:
if a plurality of text box components exist, determining a history form to which the final recommended content corresponding to the selection instruction belongs;
And sending the history form to the terminal.
By adopting the technical scheme, if a form design user designs a form, a plurality of text box components exist, and a plurality of different texts are required to be input, then the history form corresponding to the final recommended content of the selection instruction is compared with the form design requirement of the form design user, and finally the history form is sent to the terminal of the form design user, so that the form design user can refer to the history form to design the form, and the form design efficiency is improved.
In a second aspect of the present application, a form component switching device specifically includes:
the information acquisition module is used for acquiring the unique field value of at least one first form component, wherein the first form component is a component which is dragged to a canvas from a component library by a form design user;
a field creation module for creating at least one target field in a database based on the unique field value, each of the target fields for storing component input data of one data type;
the data storage module is used for acquiring first input data in the first form component, determining a first data type to which the first input data belongs, and storing the first input data into a target field corresponding to the first data type;
And the component switching module is used for determining a second data type of second input data in the second form component under the condition of switching from the first form component to the second form component, and storing the second input data into a target field corresponding to the second data type.
By adopting the technical scheme, the information acquisition module acquires the unique field value of the first form component, the field creation module creates at least one target field in the database according to the unique field value, then the data storage module acquires the first input data in the first form component, determines the first data type to which the first input data belongs, stores the first input data in the target field corresponding to the first data type, and finally the component switching module stores the second input data in the target field corresponding to the second data type under the condition of switching from the first form component to the second form component.
In a third aspect of the present application there is provided a computer readable storage medium having a computer program stored therein, which when loaded and executed by a processor performs the method steps of any of the first aspects.
In a fourth aspect of the present application, there is provided an electronic device, specifically including:
a processor, a memory and a computer program stored in the memory and capable of running on the processor, the processor being configured to load and execute the computer program stored in the memory to cause the electronic device to perform the method according to any one of the first aspects.
In summary, the present application includes at least one of the following beneficial technical effects:
after the unique field value of the first form component dragged by the form design user is obtained, the target field for storing the component input data of different data types is determined based on the unique field value, so that the input data in the subsequent form component can be conveniently stored. And then according to the first data type of the first input data, the first input data is stored in a target field capable of storing the data of the first data type, so that the subsequent first form component is switched to the second form component, the data input in the first form component is not lost, the data in the form component is not affected by the switching between the form components in the form design process, and finally, a better form design experience is obtained for a form design user.
Drawings
Fig. 1 is a flow chart of a form component switching method provided in an embodiment of the present application;
FIG. 2 is a flowchart of another form component switching method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a form component switching device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another form component switching device according to an embodiment of the present application.
Reference numerals illustrate: 11. an information acquisition module; 12. a field creation module; 13. a data storage module; 14. a component switching module; 15. a display adjustment module; 16. form reference module.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present application, but not all embodiments.
In the description of embodiments of the present application, words such as "exemplary," "such as" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "illustrative," "such as" or "for example" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "illustratively," "such as" or "for example," etc., is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, the term "and/or" is merely an association relationship describing an association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a alone, B alone, and both A and B. In addition, unless otherwise indicated, the term "plurality" means two or more. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating an indicated technical feature. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Referring to fig. 1, an embodiment of the present application discloses a flow diagram of a form component switching method, which may be implemented depending on a computer program, and may also be run on a form component switching device based on von neumann system. The computer program can be integrated in an application or can be run as a stand-alone tool class application, and specifically comprises:
S101: a unique field value of at least one first form component is obtained.
Specifically, the first form component is a component that a form design user drags from a component library to a canvas, in this embodiment of the present application, the first form component may be a single-line text box component, and in other embodiments, the first form component may also be a multi-line text box component. Because the form design is realized through the code-free configuration platform, the execution main body of the form component switching mode disclosed by the embodiment of the application is a server, namely a background server corresponding to the code-free configuration platform.
The code-free configuration platform is an innovative development tool, and can enable configuration personnel to build a personalized software system according to requirements under the condition of not writing codes. The code-free platform builds the system by providing a visual interface, built-in application components, so that a configurator can directly drag and configure the components. A code-less configuration platform typically has a library of components that contains a series of pre-built components, such as buttons, input boxes, drop-down menus, tables, etc., that a form design user can select and configure as needed to build an application. In addition, the canvas provides an important tool for the codeless configuration platform to display and edit the components, and provides a visual interface for the form design user, so that the form design user can quickly construct the application program by dragging the components into the canvas and configuring parameters.
The unique field values are sufficiently random and unique to identify and distinguish between different form components, avoiding collisions and duplicates. Further, after the form design user drags at least one first form component into the canvas through the terminal, clicking the "save" button, the server generates an 18-bit unique field value for the user through a preset random number generator. It should be noted that the terminal may be an electronic device such as a mobile phone, a tablet computer, an electronic book reader, a multimedia playing device, a wearable device, a personal computer (PersonalComputer, PC), or the like.
S102: at least one target field is created in the database based on the unique field value.
Determining a first initial field, a second initial field, a third initial field and a fourth initial field;
and combining the unique field value with the first initial field, the second initial field, the third initial field and the fourth initial field respectively to obtain a plurality of target fields.
Specifically, each target field is used to store component input data of a data type, where the component input data refers to data input by a form design user in a component. Because the data storage types corresponding to the form components are mainly divided into ID, NAME, DATETIME, DECIMAL types, after the unique field value is determined, a first initial field, namely an ID field for storing unique identification, a second initial field, namely a NAME field for storing text type data, a third initial field, namely a DATETIME field for storing time type data, and a fourth initial field, namely a DECIAL field for storing digital type data are created in the database through an ALTERTABLE statement or a CREATETABLE statement in an SQL statement. It should be noted that the text type data stored in the NAME field may be displayed on the terminal so that the form design user can see it.
Further, the unique field value of the first form component is combined with the first initial field, the second initial field, the third initial field and the fourth initial field, specifically, the unique field value is combined with the NAME of the ID field, the unique field value is combined with the NAME of the NAME field, the unique field value is combined with the NAME of the DATETIME field, the unique field value is combined with the NAME of the DECIMAL field, and finally, a plurality of target fields with brand new field NAMEs are obtained. For example, the unique field value is a, and the final destination fields are a_id, a_name, a_dataime, and a_decimal, respectively, which are used to store unique identification, text type data, time type data, and numeric type data, in order.
S103: and acquiring first input data in the first form component, determining a first data type to which the first input data belongs, and storing the first input data into a target field corresponding to the first data type.
Specifically, after the target field is determined, the form design user inputs first input data in the first form component through the terminal, and the server receives the first input data sent by the terminal aiming at the server side. And then, according to the specific function of the first form component, determining a first data type to which the first input data belongs, for example, the first form component is a single-row text box component, and the first form component needs to process the text type data so as to determine that the first data type is the text type. In other embodiments, the first data type to which the first input data belongs may also be determined by a type function or an instance function. It should be noted that, in the form design stage, if the first form component is a text box component, the first input data input is typically text for collecting form filling user information.
Further, after the first data type is determined, the target field capable of storing the data of the first data type, that is, the target field corresponding to the first data type, is matched from all the target fields, and finally the first input data is stored in the target field corresponding to the first data type. For example, the first input data is: "how you see the business value", the corresponding first data type is text type, then the first input data is stored in the target field corresponding to NAME.
S104: and under the condition of switching from the first form component to the second form component, determining a second data type of second input data in the second form component, and storing the second input data into a target field corresponding to the second data type.
Specifically, after the user inputs text in the first form component, if the user wants to input date data, the user can switch the first form component to the date component, i.e., the second form component, through configuring options in the component attribute on the right side of the first form component, so as to dynamically change the appearance, function or state of the component. Further, receiving a date selection instruction in the date component by the terminal of the form design user, and storing the selected date, namely, the data of the time type, which indicates that the second data type is the time type, into a target field corresponding to the second data type, namely, a target field corresponding to the DATETIME. Because the first input data of the first form component is stored in the corresponding target field, after the first form component is switched to the second form component based on the form design requirement, the input data in the first form component is not lost, and a form design user can still see the text entered in the first form component. In other embodiments, the second form component may also be a digital component, with the corresponding second data type being a digital type; or the second form component may also be a drop-down box component, with the corresponding second data type being a unique identification type.
Referring to fig. 2, another form component switching method is disclosed in an embodiment of the present application, which may be implemented in dependence on a computer program or may be run on a von neumann system-based form component switching device. The computer program can be integrated in an application or can be run as a stand-alone tool class application, and specifically comprises:
s201: a unique field value of at least one first form component is obtained.
S202: at least one target field is created in the database based on the unique field value.
Specifically, reference may be made to steps S101-S102, which are not described herein.
S203: if the first form component is a text box component, determining the user occupation of the form design user and the form audience group type.
Specifically, if the first form component is determined to be a text box component, wherein the text box component is a common user interface component that allows a user to enter text in a Graphical User Interface (GUI), then the user occupation of the form design user and the form audience group type, which refers to the user group type that fills out the form, are determined in a feasible manner: after a form design user drags a first form component to a canvas through a terminal, an information acquisition popup window is sent to the terminal, the form design user fills out own user occupation and form audience group types in the information acquisition popup window, the information acquisition popup window is sent to a server through the terminal, and the server receives relevant contents of the user occupation and the form audience group types sent by the terminal.
S204: at least one input recommended text content is determined based on the user occupation and the form audience group type.
In one implementation mode, the historical input texts corresponding to the occupation of the user are screened from the historical text box input texts, and each historical input text is divided into different types of text sets through a clustering algorithm;
sequencing each text set according to the number of the included historical input texts to obtain a sequencing result, wherein the more the number of the historical input texts is, the more the corresponding text sets are sequenced;
determining a text expression form corresponding to the form audience group type;
according to the front-to-back sequence, selecting a preset number of target text sets from the ordered results, determining each historical input text in the target text sets as input recommended text content, and enabling the target text sets to comprise at least one historical input text with similarity exceeding a similarity threshold value with text expression forms.
Specifically, after the user occupation and the form audience group types are determined, the historical text box input texts which are input in the text box assembly by other form design users of which the forms are designed are called from the database, and then the historical input texts which are input in the text box assembly by other form design users with the occupation identical to the user occupation are screened from all the historical text box input texts. For example, the user's occupation is an anthropomorphic resource technician, and then the text entered in the text box component before designing the user for other forms of the anthropomorphic resource technician is filtered out.
Further, all the historical input texts are classified through a clustering algorithm to obtain different types of text sets, namely, the historical input texts in a single text set are all used for collecting information of the same aspect of the form filling user, for example, 10 historical input texts in the text set A are all of the same user information collection type, namely, the collection of the opinion of the form filling user on the enterprise culture effect. The clustering algorithm may adopt a K-Means algorithm, and uses semantic information of the history input text as a clustering basis to classify all the history input text, and in other embodiments, a hierarchical clustering algorithm may also be adopted. Wherein each text set includes at least one history input text therein.
Further, the text sets are ranked according to the number of the included history input texts, so that a ranked result is obtained, and the more the number of the included history input texts is, the more users designing forms under the occupation of the users are, the more the user information collection types corresponding to the text sets are prone to, and the more the corresponding text sets are ranked. For example, 10 historic input texts in text set a, the largest number, then the form design user who professionally is a human resource specialist would prefer to input text content in the text box that gathers opinion on the cultural effect of the enterprise.
Then, determining text expression forms corresponding to the form audience group types, wherein one feasible determination mode is as follows: and matching the text expression corresponding to the form audience group type from an expression matching table, wherein the expression matching table comprises a plurality of form audience group types and corresponding text expression. The text expression forms are expression forms of the text contents which are easy to understand by the corresponding form audience group types. Further, a preset number of target text sets are selected from the ordered results according to the sequence from front to back, wherein the target text sets comprise at least one historical input text with similarity exceeding a similarity threshold value with text expression forms, namely each target text set comprises at least one historical input text which is easier to understand by a form filling user. Finally, each historical input text in each target text set is used as the content of the input recommended text, so that the follow-up input text which can be recommended to form design user trend selection and is easier to understand by a form filling user is realized, the form design efficiency is improved, and the collection effect of the designed form on user information is better.
S205: and acquiring keywords input by a terminal of a form design user, determining final recommended content from the input recommended text content according to the keywords, and displaying the final recommended content on the terminal in a virtual form.
In one implementation, keywords input by a terminal of a form design user are obtained, and a final text set containing the keywords is selected from all target text sets;
and determining the historical input text with the highest similarity with the text expression form in each final text set as final recommended content, and displaying each final recommended content in a virtual form in a display area corresponding to the terminal, wherein the more the number of the historical input texts in the final text set is, the closer the corresponding display area is to a central display area corresponding to the center of the view in the terminal.
Specifically, after the content of the input recommended text is determined, the form design user inputs a keyword in the first form component through the terminal, the server receives the keyword sent by the terminal, and screens out a final text set containing the keyword in the history input text from each target text set. Wherein at least one historical input text with similarity to the text expression form exceeding a similarity threshold exists in each final text set, i.e. text which is convenient for the form filling user to understand.
Further, the final recommended content with the highest similarity to the text expression form is selected from each final text set, namely, the text content which is easiest to understand by the form filling user is displayed in a virtual form in a display area corresponding to the terminal, so that the form design user can conveniently click and select the final recommended content directly, the text does not need to be manually input, the efficiency of the form design is greatly improved, and in other embodiments, the final recommended content can be displayed in a light color in the corresponding display area. The specific display process of each final recommended content is as follows: the more the historical input text in the final text set, the more the form design user tends to select, the closer the display area of the corresponding final recommended content is to the central display area in the terminal, namely the display area corresponding to the center of the visual field, so that the visual field habit of the form design user is more met, and the user can conveniently and quickly select the final recommended content which is easier to understand by the form filling user.
S206: and receiving a selection instruction sent by the terminal, screening the final recommended content corresponding to the selection instruction from the final recommended content, and determining the final recommended content as first input data.
Specifically, after each final recommended content is displayed in a virtual form in the corresponding display area, if text content which the user wants to input exists in the display area, the final recommended content displayed in the virtual form is selected by clicking the terminal, the server receives a selection instruction, and the final recommended content corresponding to the selection instruction is determined to be the first input data.
In other embodiments, further comprising: if the selection instruction sent by the terminal is not received at the preset interval time, the display area corresponding to each final recommended content is adjusted, and the display area is closer to the central display area and is farther from the central display area.
If the selection instruction sent by the terminal is not received yet at the preset time interval, which means that it may be difficult for the form design user to select text content to be input from the displayed plurality of final recommended contents in a short time, the final recommended contents which the form design user tends to select may be far away from the central display area, so that the display positions of all the final recommended contents are disordered, and the display areas corresponding to the final recommended contents are redetermined, and one possible determination method is as follows: the closer the display area before the disturbance is to the central display area, the farther the adjusted display area is from the central display area, and the farther the display area before the disturbance is from the central display area, the closer the adjusted display area is from the central display area.
S207: and determining a first data type to which the first input data belongs, and storing the first input data into a target field corresponding to the first data type.
S208: and under the condition of switching from the first form component to the second form component, determining a second data type of second input data in the second form component, and storing the second input data into a target field corresponding to the second data type.
Specifically, reference may be made to steps S103-S104, which are not described herein.
In another embodiment, after step S206, the method further includes: if a plurality of text box components exist, determining a history form to which the final recommended content corresponding to the selection instruction belongs;
and sending the history form to the terminal.
Specifically, if a form design user has multiple text box components when designing a form, that is, drag multiple text box components from a component library into canvas to input different problems and collect information of different dimensions of the user, then the history form to which the final recommended content corresponding to the selection instruction belongs is sent to the terminal of the current form design user, so that the form design user can refer to the history form which is relatively attached to the form design requirement of the form design user when designing the form, and further the efficiency of the form design is improved. In yet another embodiment, the first number of selection instructions is counted, if the first number exceeds a first preset number, it is indicated that more text box components in the current form are all selected to the corresponding final recommended content, then the second number of final recommended content from the same history form is counted, if the second number exceeds a second preset number, it is indicated that the corresponding history form is more attached to the design requirement of the form design user, then the corresponding history form is sent to the terminal for reference by the form design user.
The implementation principle of the form component switching method in the embodiment of the application is as follows: after the unique field value of the first form component dragged by the form design user is obtained, the target field for storing the component input data of different data types is determined based on the unique field value, so that the input data in the subsequent form component can be conveniently stored. And then according to the first data type of the first input data, the first input data is stored in a target field capable of storing the data of the first data type, so that the subsequent first form component is switched to the second form component, the data input in the first form component is not lost, the data in the form component is not affected by the switching between the form components in the form design process, and finally, a better form design experience is obtained for a form design user.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Fig. 4 is a schematic structural diagram of a form component switching device according to an embodiment of the present application. The application form component switching device may be implemented as all or part of the device by software, hardware, or a combination of both. The device comprises an information acquisition module 11, a field creation module 12, a data storage module 13 and a component switching module 14.
The information acquisition module 11 is configured to acquire a unique field value of at least one first form component, where the first form component is a component that a form design user drags from a component library to a canvas;
a field creation module 12 for creating at least one target field in the database based on the unique field value, each target field for storing component input data of one data type;
the data storage module 13 is configured to obtain first input data in the first form component, determine a first data type to which the first input data belongs, and store the first input data in a target field corresponding to the first data type;
the component switching module 14 is configured to determine a second data type to which the second input data belongs in the second form component when switching from the first form component to the second form component, and store the second input data in a target field corresponding to the second data type.
Optionally, the field creation module 12 is specifically configured to:
determining a first initial field, a second initial field, a third initial field and a fourth initial field, wherein the first initial field is an ID field for storing unique identification, the second initial field is a NAME field for storing text type data, the third initial field is a DATETIME field for storing time type data, and the fourth initial field is a DECIAL field for storing digital type data;
And combining the unique field value with the first initial field, the second initial field, the third initial field and the fourth initial field respectively to obtain a plurality of target fields.
Optionally, the data storage module 13 is specifically configured to:
if the first form component is a text box component, determining the user occupation of the form design user and the form audience group type;
determining at least one input recommended text content according to the user occupation and the form audience group types;
acquiring keywords input by a terminal of a form design user, determining final recommended content from each input recommended text content according to the keywords, and displaying the final recommended content on the terminal in a virtual form;
and receiving a selection instruction sent by the terminal, screening the final recommended content corresponding to the selection instruction from the final recommended content, and determining the final recommended content as first input data.
Optionally, the data storage module 13 is specifically further configured to:
screening historical input texts corresponding to user occupation from the historical text box input texts, and dividing each historical input text into different types of text sets through a clustering algorithm;
sequencing each text set according to the number of the included historical input texts to obtain a sequencing result, wherein the more the number of the historical input texts is, the more the corresponding text sets are sequenced;
Determining a text expression form corresponding to the form audience group type, wherein the text expression form is an expression form of which the form audience group type is easy to understand text content;
according to the front-to-back sequence, selecting a preset number of target text sets from the ordered results, determining each historical input text in the target text sets as input recommended text content, and enabling the target text sets to comprise at least one historical input text with similarity exceeding a similarity threshold value with text expression forms.
Optionally, the data storage module 13 is specifically further configured to:
acquiring keywords input by a terminal of a form design user, and selecting a final text set containing the keywords from all target text sets;
and determining the historical input text with the highest similarity with the text expression form in each final text set as final recommended content, and displaying each final recommended content in a virtual form in a display area corresponding to the terminal, wherein the more the number of the historical input texts in the final text set is, the closer the corresponding display area is to a central display area corresponding to the center of the view in the terminal.
Optionally, as shown in fig. 4, the apparatus further includes a display adjustment module 15, specifically configured to:
If the selection instruction sent by the terminal is not received at the preset interval time, the display area corresponding to each final recommended content is adjusted, and the display area is closer to the central display area and is farther from the central display area.
Optionally, the apparatus further comprises a form reference module 16, specifically configured to:
if a plurality of text box components exist, determining a history form to which the final recommended content corresponding to the selection instruction belongs;
and sending the history form to the terminal.
It should be noted that, when the form component switching device provided in the foregoing embodiment performs the form component switching method, only the division of the foregoing functional modules is used as an example, and in practical application, the foregoing functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the form component switching device and the form component switching method provided in the foregoing embodiments belong to the same concept, which embody the detailed implementation process and are not described herein.
The embodiment of the application also discloses a computer readable storage medium, and the computer readable storage medium stores a computer program, wherein the computer program is executed by a processor, and the form component switching method of the embodiment is adopted.
The computer program may be stored in a computer readable medium, where the computer program includes computer program code, where the computer program code may be in a source code form, an object code form, an executable file form, or some middleware form, etc., and the computer readable medium includes any entity or device capable of carrying the computer program code, a recording medium, a usb disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a Random Access Memory (RAM), an electrical carrier signal, a telecommunication signal, a software distribution medium, etc., where the computer readable medium includes, but is not limited to, the above components.
The form component switching method of the above embodiment is stored in the computer readable storage medium through the computer readable storage medium, and is loaded and executed on the processor, so as to facilitate the storage and application of the method.
The embodiment of the application also discloses an electronic device, wherein a computer program is stored in a computer readable storage medium, and when the computer program is loaded and executed by a processor, the form component switching method is adopted.
The electronic device may be an electronic device such as a desktop computer, a notebook computer, or a cloud server, and the electronic device includes, but is not limited to, a processor and a memory, for example, the electronic device may further include an input/output device, a network access device, a bus, and the like.
The processor may be a Central Processing Unit (CPU), or of course, according to actual use, other general purpose processors, digital Signal Processors (DSP), application Specific Integrated Circuits (ASIC), ready-made programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., and the general purpose processor may be a microprocessor or any conventional processor, etc., which is not limited in this application.
The memory may be an internal storage unit of the electronic device, for example, a hard disk or a memory of the electronic device, or may be an external storage device of the electronic device, for example, a plug-in hard disk, a Smart Memory Card (SMC), a secure digital card (SD), or a flash memory card (FC) provided on the electronic device, or the like, and may be a combination of the internal storage unit of the electronic device and the external storage device, where the memory is used to store a computer program and other programs and data required by the electronic device, and the memory may be used to temporarily store data that has been output or is to be output, which is not limited in this application.
The form component switching method of the embodiment is stored in the memory of the electronic device and is loaded and executed on the processor of the electronic device, so that the electronic device is convenient to use.
The foregoing is merely exemplary embodiments of the present disclosure and is not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a scope and spirit of the disclosure being indicated by the claims.

Claims (10)

1. A form component switching method, the method comprising:
acquiring a unique field value of at least one first form component, wherein the first form component is a component which is dragged to a canvas from a component library by a form design user;
creating at least one target field in a database according to the unique field value, each target field being used for storing component input data of one data type;
Acquiring first input data in the first form component, determining a first data type to which the first input data belongs, and storing the first input data into a target field corresponding to the first data type;
and under the condition of switching from the first form component to the second form component, determining a second data type of second input data in the second form component, and storing the second input data into a target field corresponding to the second data type.
2. The form component switching method according to claim 1, wherein the creating at least one target field in a database according to the unique field value specifically comprises:
determining a first initial field, a second initial field, a third initial field and a fourth initial field, wherein the first initial field is an ID field for storing unique identification, the second initial field is a NAME field for storing text type data, the third initial field is a DATETIME field for storing time type data, and the fourth initial field is a DECIAL field for storing digital type data;
and combining the unique field value with the first initial field, the second initial field, the third initial field and the fourth initial field respectively to obtain a plurality of target fields.
3. The form component switching method according to claim 1, wherein the obtaining the first input data in the first form component specifically includes:
if the first form component is a text box component, determining the user occupation of the form design user and the form audience group type;
determining at least one input recommended text content according to the user occupation and the form audience group type;
acquiring keywords input by a terminal of the form design user, determining final recommended content from the input recommended text content according to the keywords, and displaying the final recommended content on the terminal in a virtual form;
and receiving a selection instruction sent by the terminal, screening the final recommended content corresponding to the selection instruction from the final recommended content, and determining the final recommended content as first input data.
4. The form component switching method of claim 3, wherein the determining at least one input recommended text content according to the user occupation and the form audience group type comprises:
screening historical input texts corresponding to the user occupation from the historical text box input texts, and dividing each historical input text into different types of text sets through a clustering algorithm;
Sequencing each text set according to the number of the included historical input texts to obtain a sequencing result, wherein the more the number of the historical input texts is, the more the corresponding text sets are sequenced;
determining a text expression form corresponding to the form audience group type, wherein the text expression form is an expression form of the form audience group type, and the text content is easy to understand;
selecting a preset number of target text sets from the ordered results according to the front-to-back sequence, determining each history input text in the target text sets as input recommended text content, wherein the target text sets comprise at least one history input text with similarity exceeding a similarity threshold value with the text expression form.
5. The method for switching form components according to claim 4, wherein the step of obtaining keywords input by the terminal of the form design user, determining final recommended content from the input recommended text content according to the keywords, and displaying the final recommended content in a virtual form at the terminal, comprises the following steps:
acquiring keywords input by a terminal of the form design user, and selecting a final text set containing the keywords from each target text set;
And determining the historical input text with the highest similarity with the text expression form in each final text set as final recommended content, and displaying each final recommended content in a virtual form in a display area corresponding to the terminal, wherein the more the number of the historical input texts in the final text set is, the closer the corresponding display area is to a center display area corresponding to the center of the view in the terminal.
6. The form component switching method of claim 5, further comprising:
and if the selection instruction sent by the terminal is not received for a preset interval time, adjusting the display area corresponding to each final recommended content, wherein the display area is closer to the central display area, and the adjusted display area is farther from the central display area.
7. The form component switching method according to claim 3, wherein after the final recommended content corresponding to the selection instruction is screened from the final recommended content and determined as the first input data, further comprising:
if a plurality of text box components exist, determining a history form to which the final recommended content corresponding to the selection instruction belongs;
And sending the history form to the terminal.
8. A form assembly switching device, comprising:
the information acquisition module (11) is used for acquiring the unique field value of at least one first form component, wherein the first form component is a component which is dragged to a canvas from a component library by a form design user;
a field creation module (12) for creating at least one target field in a database based on the unique field value, each of the target fields for storing component input data of one data type;
the data storage module (13) is used for acquiring first input data in the first form component, determining a first data type to which the first input data belongs, and storing the first input data into a target field corresponding to the first data type;
and the component switching module (14) is used for determining a second data type of second input data in the second form component and storing the second input data into a target field corresponding to the second data type under the condition of switching from the first form component to the second form component.
9. A computer readable storage medium having a computer program stored therein, characterized in that the method according to any of claims 1-7 is employed when the computer program is loaded and executed by a processor.
10. An electronic device comprising a memory, a processor and a computer program stored in the memory and capable of running on the processor, characterized in that the method according to any of claims 1-7 is used when the computer program is loaded and executed by the processor.
CN202410015984.4A 2024-01-05 2024-01-05 Form component switching method and device, storage medium and electronic equipment Active CN117519889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410015984.4A CN117519889B (en) 2024-01-05 2024-01-05 Form component switching method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410015984.4A CN117519889B (en) 2024-01-05 2024-01-05 Form component switching method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN117519889A true CN117519889A (en) 2024-02-06
CN117519889B CN117519889B (en) 2024-03-29

Family

ID=89766868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410015984.4A Active CN117519889B (en) 2024-01-05 2024-01-05 Form component switching method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117519889B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300163A1 (en) * 2008-05-27 2009-12-03 Holm Eirik Systems and methods for automatic submission of forms on a web page
CN116069324A (en) * 2022-12-29 2023-05-05 南方电网数字平台科技(广东)有限公司 Dynamic form construction method and device based on Vue
CN116483355A (en) * 2023-02-28 2023-07-25 广州三叠纪元智能科技有限公司 UI interactive assembly type main interface design method for quickly setting up form function of enterprise management operating system
CN117093219A (en) * 2023-10-20 2023-11-21 成都华栖云科技有限公司 Visualization method based on data source, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300163A1 (en) * 2008-05-27 2009-12-03 Holm Eirik Systems and methods for automatic submission of forms on a web page
CN116069324A (en) * 2022-12-29 2023-05-05 南方电网数字平台科技(广东)有限公司 Dynamic form construction method and device based on Vue
CN116483355A (en) * 2023-02-28 2023-07-25 广州三叠纪元智能科技有限公司 UI interactive assembly type main interface design method for quickly setting up form function of enterprise management operating system
CN117093219A (en) * 2023-10-20 2023-11-21 成都华栖云科技有限公司 Visualization method based on data source, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN117519889B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
CN104965630B (en) Method and system for layout of desktop application icons
US9081466B2 (en) Dynamic chart control that triggers dynamic contextual actions
CN109299169B (en) Data visualization method, system, terminal and computer readable storage medium
CN106708484B (en) Method and device for establishing page
WO2016037525A1 (en) Method and apparatus for determining map interface
US10248721B2 (en) Management, evaluation and visualization method, system and user interface for discussions and assertions
CN111782951B (en) Method and device for determining display page, computer system and medium
CN106991179A (en) Data-erasure method, device and mobile terminal
CN115687672A (en) Chart visualization intelligent recommendation method, device and equipment and readable storage medium
US10706312B2 (en) Automated filtering of item comments
US20190266617A1 (en) Reader reaction learning-based article cataloging management
CN117519889B (en) Form component switching method and device, storage medium and electronic equipment
CN114816389B (en) Management system building method, device, equipment and medium based on meta-model
CN115222338A (en) Material purchasing system, purchasing list generation method and component
CN112508284A (en) Display material preprocessing method, putting method, system, device and equipment
CN114266233A (en) Form generation method, device, equipment and medium
US20120016890A1 (en) Assigning visual characteristics to records
US11106737B2 (en) Method and apparatus for providing search recommendation information
CN113535162A (en) Front-end interface configuration method, display method and device
CN111831130A (en) Input content recommendation method, terminal device and storage medium
CN116339733B (en) Application page generation method, system, electronic device and medium
KR102457771B1 (en) Content based user customized eco friendly service provision method
CN113821728B (en) Content Recommendation Method and Device
CN110134406B (en) Deployment method and system of intelligent cloud network product
CN117056413A (en) Data view generation method and device, electronic 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