CN113407254A - Form generation method and device, electronic equipment and storage medium - Google Patents
Form generation method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113407254A CN113407254A CN202110660258.4A CN202110660258A CN113407254A CN 113407254 A CN113407254 A CN 113407254A CN 202110660258 A CN202110660258 A CN 202110660258A CN 113407254 A CN113407254 A CN 113407254A
- Authority
- CN
- China
- Prior art keywords
- control
- information
- cells
- edited
- attribute
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application is applicable to the technical field of computers, and provides a form generation method, a form generation device, electronic equipment and a storage medium, wherein the method comprises the following steps: detecting the control states of all controls in a preset control group, wherein the control states comprise a triggered state and an un-triggered state; if the control in the trigger state is the target control, receiving attribute configuration information configured for a plurality of cells in the form to be edited, and generating attribute information of each cell according to the attribute configuration information, wherein the attribute information comprises at least one of the following items: type information, variable label information and variable name information; and generating the form according to the attribute information of each cell in the form to be edited.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a form generation method and apparatus, an electronic device, and a storage medium.
Background
With the rapid development of internet technology, more and more data collection tasks (such as information filling, questionnaire collection, etc.) are put on the network. A user may log in an application or a web page on an electronic device (e.g., a computer) to fill in a form used for collecting information, so that a server may obtain the form filled with user data through the electronic device. In practical applications, the forms for collecting information on the network usually need to be developed and designed by developers in advance.
In the related art, different forms need to be developed and designed according to different data acquisition requirements. In order to save time for developing forms, it is necessary to improve the efficiency of developing forms.
Disclosure of Invention
In view of this, embodiments of the present application provide a form generation method, an apparatus, an electronic device, and a storage medium, so as to solve the problem that efficiency of developing a form is not high enough in the related art.
A first aspect of an embodiment of the present application provides a form generation method, including:
detecting the control states of all controls in a preset control group, wherein the control states comprise a triggered state and an un-triggered state;
if the control in the trigger state is the target control, receiving attribute configuration information configured for a plurality of cells in the form to be edited, and generating attribute information of each cell according to the attribute configuration information, wherein the attribute information comprises at least one of the following items: type information, variable label information and variable name information;
and generating the form according to the attribute information of each cell in the form to be edited.
Further, if the control in the trigger state is the target control, receiving attribute configuration information configured for a plurality of cells in the form to be edited, including:
if the control in the trigger state is the first target control, receiving type configuration information input aiming at the plurality of cells;
the type configuration information is used for configuring type information of each unit in the multiple cells, and the first target control is a control used for triggering and configuring the type information of the multiple units.
Further, receiving type configuration information input for the plurality of cells, including:
for a cell in a plurality of cells, if a control dragging operation for the cell is detected, taking the control type of a sub-control selected by the control dragging operation as the type information of the cell, and if a sub-control identification input for the cell is received, taking the control type of the sub-control indicated by the input sub-control identification as the type information of the cell;
the control dragging operation is an operation of selecting the child controls in the child control list, and the type configuration information comprises type information of each unit.
Further, if the control in the trigger state is the target control, receiving attribute configuration information configured for a plurality of cells in the form to be edited, including:
if the control in the trigger state is a second target control, receiving variable label configuration information input aiming at the plurality of cells;
the variable label configuration information is used for configuring variable label information of each of the multiple cells, and the second target control is a control used for triggering and configuring the variable label information of the multiple cells.
Further, if the control in the trigger state is the target control, receiving attribute configuration information configured for a plurality of cells in the form to be edited, including:
if the control in the trigger state is a third target control, receiving variable name configuration information input aiming at a plurality of cells;
the variable name configuration information is used for configuring variable name information of each of the multiple cells, and the third target control is a control used for triggering and configuring the variable name information of the multiple cells.
Further, the method further comprises:
and if the control in the trigger state is a preset default control, receiving attribute information input aiming at a single cell in the form to be edited.
Further, before detecting the control states of the controls in the preset control group, the method further includes: generating a form to be edited in response to receiving the form creation information;
wherein, generating the form to be edited comprises:
if the form creating information comprises a form identifier, taking the form indicated by the form identifier as a form to be edited;
and if the form creating information comprises scene description information, taking the form matched with the scene description information as a form to be edited.
A second aspect of the embodiments of the present application provides a form generation apparatus, including:
the state detection unit is used for detecting the control states of all controls in the preset control group, and the control states comprise a triggered state and an un-triggered state;
the information configuration unit is used for receiving attribute configuration information configured for a plurality of cells in a form to be edited if the control in the trigger state is a target control, and generating attribute information of each cell according to the attribute configuration information, wherein the attribute information includes at least one of the following items: type information, variable label information and variable name information;
and the information generating unit is used for generating the form according to the attribute information of each cell in the form to be edited.
A third aspect of embodiments of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the electronic device, where the processor implements the steps of the form generation method provided in the first aspect when executing the computer program.
A fourth aspect of the embodiments of the present application provides a storage medium, where a computer program is stored, and when being executed by a processor, the computer program implements the steps of the form generation method provided in the first aspect.
The form generation method, the form generation device, the electronic equipment and the storage medium have the following beneficial effects that: when the target control is in a trigger state, the attribute configuration information configured for the plurality of cells can be uniformly received, so that the attribute information of each cell can be obtained, the time for configuring the attribute information of the cells in the form to be edited can be saved, and the efficiency for generating the form can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments or the related technical descriptions will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flowchart of an implementation of a form generation method provided in an embodiment of the present application;
FIG. 2 is a diagram of a child control list provided by an embodiment of the present application;
FIG. 3 is a schematic interface diagram for configuring properties of a cell provided by an embodiment of the present application;
FIG. 4 is a flowchart of an implementation of another form generation method provided by an embodiment of the present application;
fig. 5 is a block diagram illustrating a structure of a form generation apparatus according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The form generation method according to the embodiment of the present application may be executed by a control device or a terminal (hereinafter referred to as an "electronic device"). When the form generation method is executed by the electronic equipment, the execution subject is the electronic equipment.
Referring to fig. 1, fig. 1 shows a flowchart of an implementation of a form generation method provided in an embodiment of the present application, including:
The control state comprises a trigger state and an unfired state. The controls in the preset control group are usually preset controls. There may be a plurality of controls in the preset control group. As an example, the controls in the preset control group may be a control for setting the number of rows and columns, a control for deleting rows, a control for adjusting the order between columns, and the like.
In practical application, for each control, a state parameter for indicating the control state of the control may be preset, and the execution main body may detect the control state of each control by detecting and analyzing the value of the state parameter of each control.
And 102, if the control in the trigger state is the target control, receiving attribute configuration information configured for a plurality of cells in the form to be edited, and generating the attribute information of each cell according to the attribute configuration information.
The target control is usually a preset control. The above-mentioned attribute configuration information is generally information for configuring attribute information. In practice, the attribute configuration information usually includes attribute information of each cell. The attribute information may include, but is not limited to, at least one of: type information, variable tag information, and variable name information. In practical applications, a cell is essentially a control. The user may interact with each cell, e.g., may click on a cell, edit property information for a cell, etc.
The type information is generally used to indicate the type of the cell. By way of example, the type information may be "single selection", "multiple selection", "text label", "attachment upload", and the like.
The variable label information is generally used to indicate the type of fill information needed in the cell. The variable name information is generally used to indicate the type of fill information required in the cell. The variable label information has the same meaning as that represented by the variable name information. In practical applications, the variable label information is usually used for a form filler to intuitively know the type of information to be filled, and the variable name information is usually used for a program to process each type of information filled by a user. The variable tag information and variable name information typically correspond. For example, the variable name information may be "name" if the variable tag information is "name", the variable name information may be "sex" if the variable tag information is "gender", and the variable name information may be "age" if the variable tag information is "age".
Here, when the control in the trigger state is the target control, the user may perform attribute configuration on a plurality of cells in the form to be edited. At this time, the execution body may receive attribute configuration information configured for a plurality of cells. In this way, the execution body may obtain the attribute information of each of the plurality of cells using the configured attribute configuration information. As an example, if attribute configuration is performed on A, B, C, D four cells at the same time, the configured attribute configuration information is: "the attribute of A is S1, the attribute of B is S2, the attribute of C is S3, and the attribute of D is S4". In this case, the execution body may obtain the attribute information of each cell directly from the attribute configuration information.
And 103, generating a form according to the attribute information of each cell in the form to be edited.
Here, after obtaining the attribute information of all cells in the form to be edited, the execution body may generate the form by using the attribute information of each cell.
The method provided by the embodiment can uniformly receive the attribute configuration information configured for the plurality of cells when the target control is in the trigger state, so that the attribute information of each cell is obtained, the time for configuring the attribute information of the cells in the form to be edited can be saved, and the efficiency of generating the form is improved.
In some optional implementation manners of this embodiment, if the control in the trigger state is the target control, the receiving attribute configuration information configured for a plurality of cells in the form to be edited may include: and if the control in the trigger state is the first target control, receiving type configuration information input aiming at the plurality of cells.
The type configuration information is used for configuring type information of each unit in the multiple cells, and the first target control is a control used for triggering and configuring the type information of the multiple units.
Here, when the control in the trigger state is a control for triggering and configuring type information of multiple cells, the user may configure the type information of some or all cells in the form to be edited. At this time, the execution body may receive type configuration information input by the user for a part or all of the cells.
As an example, if A, B, C, D four cells are configured with type information at the same time, the configured type configuration information is: "type information of a is L1, type information of B is L2, type information of C is L3, and type information of D is L4". At this time, the execution body may directly obtain the type information of each unit according to the type configuration information.
In practical application, when the control in the trigger state is a control for triggering and configuring the type information of a plurality of cells, a user can configure the type information of all the cells uniformly. In this way, type information for all cells can be obtained. The method is favorable for further improving the efficiency of generating the form.
In some optional implementations, receiving type configuration information input for a plurality of cells may include: and if the sub-control identification input for the cell is received, taking the control type of the sub-control indicated by the input sub-control identification as the type information of the cell.
The control dragging operation is an operation of selecting the child controls in the child control list, and the type configuration information comprises type information of each unit.
The child controls in the child control list are typically used to configure type information for the cells.
Fig. 2 is a schematic diagram of a child control list provided in an embodiment of the present application. As shown in FIG. 2, there may be 13 child controls in the list of child controls, with a child control identification to the left of each child control.
Taking the child control with the child control identification of 4 as an example, the control type of the child control is "multiple selection". The execution main body can directly drag the multi-selection sub-control to one or more cells from the sub-control list, and the control type of the multi-selection sub-control is configured to be the type information of the one or more cells. In addition, the execution main body can also directly input the sub-control identification '4' of the 'multi-selection' sub-control in a certain cell or a plurality of cells at the same time, so that the control type of the 'multi-selection' sub-control is configured to be the type information of the certain cell or the plurality of cells.
The implementation mode can realize rapid configuration of the type information in the cell and the attribute information, and is favorable for further improving the efficiency of generating the form.
In some optional implementation manners of this embodiment, if the control in the trigger state is the target control, receiving attribute configuration information configured for a plurality of cells in the form to be edited, where the attribute configuration information includes: and if the control in the trigger state is the second target control, receiving variable label configuration information input aiming at the plurality of cells.
The variable label configuration information is used for configuring variable label information of each of the multiple cells, and the second target control is a control used for triggering and configuring the variable label information of the multiple cells.
Here, when the control in the trigger state is a control for triggering and configuring variable label information of a plurality of cells, the user may configure the variable label information of some or all of the cells in the form to be edited. At this time, the execution body may receive variable tag configuration information input by a user for a part or all of the cells.
As an example, if A, B, C, D four cells are configured with variable tag information at the same time, the configured variable tag configuration information is: "the variable tag information of A is X1, the variable tag information of B is X2, the variable tag information of C is X3, and the variable tag information of D is X4". In this case, the execution body may obtain the variable label information of each cell directly from the variable label configuration information.
In practical application, when the control in the trigger state is a control for triggering and configuring variable label information of a plurality of cells, a user can configure the variable label information of all the cells uniformly. In this way, variable label information for all cells can be obtained. The method is favorable for further improving the efficiency of generating the form.
In some optional implementation manners of this embodiment, if the control in the trigger state is the target control, receiving attribute configuration information configured for a plurality of cells in the form to be edited, where the attribute configuration information includes: and if the control in the trigger state is the third target control, receiving variable name configuration information input aiming at the plurality of cells.
The variable name configuration information is used for configuring variable name information of each of the multiple cells, and the third target control is a control used for triggering and configuring the variable name information of the multiple cells.
Here, when the control in the trigger state is a control for triggering and configuring variable name information of a plurality of cells, the user may perform variable name information configuration on part or all of the cells in the form to be edited. At this time, the execution body may receive variable name configuration information input by the user for a part or all of the cells.
As an example, if A, B, C, D four cells are configured with variable name information at the same time, the configured variable name configuration information is: "the variable name information of a is N1, the variable name information of B is N2, the variable name information of C is N3, and the variable name information of D is N4". In this case, the execution agent may obtain the variable name information of each cell directly from the variable name arrangement information.
In practical application, when the control in the trigger state is a control for triggering and configuring variable name information of a plurality of cells, a user can configure the variable name information of all the cells uniformly. In this way, the variable name information of all cells can be obtained. The method is favorable for further improving the efficiency of generating the form.
In some optional implementation manners of this embodiment, the form generation method may further include the following steps: and if the control in the trigger state is a preset default control, receiving attribute information input aiming at a single cell in the form to be edited.
The default control is usually a preset control.
Here, if the control in the trigger state is a preset default control, the user may perform attribute configuration on each cell. It should be noted that multiple attribute configuration modes are supported, and different users can select different modes to perform attribute configuration, which is beneficial to improving user experience.
Fig. 3 is an interface schematic diagram for configuring attributes of a cell according to an embodiment of the present application. As shown in fig. 3, a form 301 to be edited may be presented in the interface, where the form 301 to be edited may be a 5-row and 4-column table, and a control 302 for adjusting the number of rows and a control 303 for adjusting the number of columns may be disposed at the upper left of the form 301 to be edited. The upper right of the form 301 to be edited may be provided with a conventional control 304, a control type control 305, a variable label control 306, and a variable name control 307.
In fig. 3, the normal control 304 is the default control, the control type control 305 is the first target control, the variable label control 306 is the second target control, and the variable name control 307 is the third target control. For example, when the control type control 305 is in the trigger state, the user may configure the type information of all cells in the form 301 to be edited, for example, a sub-control identifier may be input into each cell, so that the execution body may receive the type configuration information input by the user for all cells, and thus, the control type of the sub-control indicated by the sub-control identifier input into the corresponding cell is used as the type information of the corresponding cell.
With continuing reference to fig. 4, fig. 4 is a flowchart of an implementation of another form generation method provided in this application, including:
The form creation information is generally information for instructing to create a form.
Here, upon receiving the form creation information, the execution body may generate the form to be edited in various ways. For example, the execution body may directly generate a form of a default size, e.g., directly generate a 3-row and 4-column form, when receiving the form creation information.
Optionally, the execution subject may also generate the form to be edited in one of the following two ways: firstly, if the form creating information includes a form identifier, the form indicated by the form identifier is used as a form to be edited. And secondly, if the form creating information comprises scene description information, taking the form matched with the scene description information as a form to be edited.
The form id is generally information indicating a form, and for example, the form id may be No. 123. The scene description information is generally information for describing a scene, and the scene description information may be a "general health table," for example. The above-mentioned table matched with the scene description information is generally a pre-stored table, and the pre-stored table is associated with the scene description information in advance.
Here, when the form identification is included in the form creation information, the execution subject may take the form indicated by the form identification as the form to be edited. If the form creation information includes scene description information, the execution body may perform matching operation on the scene description information included in the form creation information and scene description information associated with a pre-stored form, so that the form matched with the scene description information included in the form creation information is used as a form to be edited. Here, matching generally means that both are the same or similar.
The control states include a triggered state and an untriggered state.
Wherein the attribute information includes at least one of: type information, variable tag information, and variable name information.
And step 404, generating a form according to the attribute information of each cell in the form to be edited.
In the present embodiment, the specific operations of steps 402-404 are substantially the same as the operations of steps 101-103 in the embodiment shown in fig. 1, and are not repeated herein.
In the embodiment, the form to be edited can be obtained in multiple modes, the flexibility is high, and the user experience is favorably improved.
Referring further to fig. 5, fig. 5 is a block diagram of a form generating apparatus 500 according to an embodiment of the present application, corresponding to the form generating method according to the foregoing embodiment. For convenience of explanation, only portions related to the embodiments of the present application are shown. Referring to fig. 5, the form generation apparatus 500 includes:
the state detection unit 501 is configured to detect control states of each control in a preset control group, where the control states include a triggered state and an un-triggered state;
an information configuration unit 502, configured to receive attribute configuration information configured for a plurality of cells in a to-be-edited form if a control in a trigger state is a target control, and generate attribute information of each cell according to the attribute configuration information, where the attribute information includes at least one of the following: type information, variable label information and variable name information;
the information generating unit 503 is configured to generate a form according to the attribute information of each cell in the form to be edited.
In some embodiments, the information configuring unit 502 is specifically configured to: if the control in the trigger state is the first target control, receiving type configuration information input aiming at the plurality of cells; the type configuration information is used for configuring type information of each unit in the multiple cells, and the first target control is a control used for triggering and configuring the type information of the multiple units.
In some embodiments, receiving type configuration information input for a plurality of cells includes:
for a cell in a plurality of cells, if a control dragging operation for the cell is detected, taking the control type of a sub-control selected by the control dragging operation as the type information of the cell, and if a sub-control identification input for the cell is received, taking the control type of the sub-control indicated by the input sub-control identification as the type information of the cell;
the control dragging operation is an operation of selecting the child controls in the child control list, and the type configuration information comprises type information of each unit.
In some embodiments, the information configuring unit 502 is specifically configured to: if the control in the trigger state is a second target control, receiving variable label configuration information input aiming at the plurality of cells; the variable label configuration information is used for configuring variable label information of each of the multiple cells, and the second target control is a control used for triggering and configuring the variable label information of the multiple cells.
In some embodiments, the information configuring unit 502 is specifically configured to: if the control in the trigger state is a third target control, receiving variable name configuration information input aiming at a plurality of cells; the variable name configuration information is used for configuring variable name information of each of the multiple cells, and the third target control is a control used for triggering and configuring the variable name information of the multiple cells.
In some embodiments, the apparatus may further comprise an information input unit (not shown in the figures). The information input unit is used for receiving attribute information input by aiming at a single cell in the form to be edited if the control in the trigger state is a preset default control.
In some embodiments, the apparatus may further comprise an information creation unit (not shown in the figures). The device comprises an information creating unit, a form editing unit and a form editing unit, wherein the information creating unit is used for responding to received form creating information and generating a form to be edited;
wherein the information creating unit is specifically configured to: if the form creating information comprises a form identifier, taking the form indicated by the form identifier as a form to be edited; and if the form creating information comprises scene description information, taking the form matched with the scene description information as a form to be edited.
The device provided by the embodiment can uniformly receive the attribute configuration information configured for a plurality of cells when the target control is in the trigger state, so that the attribute information of each cell is obtained, the time for configuring the attribute information of the cells in the form to be edited can be saved, and the efficiency for generating the form is improved.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Referring further to fig. 6, fig. 6 is a schematic structural diagram of an electronic device 600 according to an embodiment of the present application. As shown in fig. 6, the electronic apparatus 600 of this embodiment includes: at least one processor 601 (only one processor is shown in fig. 6), a memory 602, and a computer program 603, such as a resource allocation program, stored in the memory 602 and executable on the at least one processor 601. The steps in any of the various method embodiments described above are implemented when the computer program 603 is executed by the processor 601. The steps in the embodiments of the respective resource allocation methods described above are implemented when the processor 601 executes the computer program 603. The processor 601, when executing the computer program 603, implements the functions of the various modules/units in the various device embodiments described above, such as the functions of the units 501-503 shown in fig. 5.
Illustratively, the computer program 603 may be partitioned into one or more modules/units, which are stored in the memory 602 and executed by the processor 601 to accomplish the present application. One or more modules/units may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program 603 in the electronic device 600. For example, the computer program 603 may be divided into a state detection unit, an information configuration unit, and an information generation unit, and specific functions of each unit are described in the foregoing embodiments, and are not described herein again.
The electronic device 600 may be a server, a desktop computer, a tablet computer, a cloud server, a mobile terminal, and other computing devices. The electronic device 600 may include, but is not limited to, a processor 601, a memory 602. Those skilled in the art will appreciate that fig. 6 is merely an example of an electronic device 600 and does not constitute a limitation of the electronic device 600 and may include more or less components than illustrated, or combine certain components, or different components, e.g., a server may also include input-output devices, network access devices, a bus, etc.
The Processor 601 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 602 may be an internal storage unit of the electronic device 600, such as a hard disk or a memory of the electronic device 600. The memory 602 may also be an external storage device of the electronic device 600, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device 600. Further, the memory 602 may also include both internal storage units and external storage devices of the electronic device 600. The memory 602 is used to store computer programs and other programs and data required by the server. The memory 602 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/server and method may be implemented in other ways. For example, the above-described apparatus/server embodiments are merely illustrative, and for example, a division of modules or units is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated module, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. The computer readable storage medium may be non-volatile or volatile. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable storage medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable storage media that does not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (10)
1. A method for form generation, the method comprising:
detecting control states of all controls in a preset control group, wherein the control states comprise a triggered state and an un-triggered state;
if the control in the trigger state is the target control, receiving attribute configuration information configured for a plurality of cells in the form to be edited, and generating attribute information of each cell according to the attribute configuration information, wherein the attribute information comprises at least one of the following items: type information, variable label information and variable name information;
and generating a form according to the attribute information of each cell in the form to be edited.
2. The form generation method according to claim 1, wherein receiving attribute configuration information configured for a plurality of cells in the form to be edited if the control in the trigger state is a target control includes:
if the control in the trigger state is the first target control, receiving type configuration information input aiming at the plurality of cells;
the type configuration information is used for configuring the type information of each unit in the plurality of units, and the first target control is a control used for triggering and configuring the type information of the plurality of units.
3. The form generation method of claim 2, wherein receiving type configuration information input for a plurality of cells comprises:
if the control dragging operation aiming at the cell is detected, regarding the control type of the sub-control selected by the control dragging operation as the type information of the cell, and regarding the control type of the sub-control indicated by the input sub-control identification as the type information of the cell if the sub-control identification input aiming at the cell is received;
the control dragging operation is an operation of selecting the sub-controls in the sub-control list, and the type configuration information comprises type information of each unit.
4. The form generation method according to claim 1, wherein receiving attribute configuration information configured for a plurality of cells in the form to be edited if the control in the trigger state is a target control includes:
if the control in the trigger state is a second target control, receiving variable label configuration information input aiming at the plurality of cells;
the variable label configuration information is used for configuring variable label information of each of the multiple cells, and the second target control is a control used for triggering and configuring the variable label information of the multiple cells.
5. The form generation method according to claim 1, wherein receiving attribute configuration information configured for a plurality of cells in the form to be edited if the control in the trigger state is a target control includes:
if the control in the trigger state is a third target control, receiving variable name configuration information input aiming at a plurality of cells;
the variable name configuration information is used for configuring variable name information of each of the multiple cells, and the third target control is a control used for triggering and configuring the variable name information of the multiple cells.
6. The form generation method of claim 1, further comprising:
and if the control in the trigger state is a preset default control, receiving attribute information input aiming at a single cell in the form to be edited.
7. The form generation method of any of claims 1-6, wherein prior to the detecting the control state of each control in the preset set of controls, the method further comprises: generating the form to be edited in response to the received form creation information;
wherein the generating the form to be edited includes:
if the form creating information comprises a form identifier, taking the form indicated by the form identifier as the form to be edited;
and if the form creating information comprises scene description information, taking the form matched with the scene description information as the form to be edited.
8. An apparatus for form generation, the apparatus comprising:
the state detection unit is used for detecting the control states of all controls in a preset control group, and the control states comprise a triggered state and an un-triggered state;
the information configuration unit is used for receiving attribute configuration information configured for a plurality of cells in a form to be edited if the control in the trigger state is a target control, and generating attribute information of each cell according to the attribute configuration information, wherein the attribute information includes at least one of the following items: type information, variable label information and variable name information;
and the information generating unit is used for generating the form according to the attribute information of each cell in the form to be edited.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110660258.4A CN113407254B (en) | 2021-06-15 | 2021-06-15 | Form generation method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110660258.4A CN113407254B (en) | 2021-06-15 | 2021-06-15 | Form generation method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113407254A true CN113407254A (en) | 2021-09-17 |
CN113407254B CN113407254B (en) | 2022-07-29 |
Family
ID=77683958
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110660258.4A Active CN113407254B (en) | 2021-06-15 | 2021-06-15 | Form generation method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113407254B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114513417A (en) * | 2022-02-11 | 2022-05-17 | 新奥数能科技有限公司 | Information configuration method and device of Internet of things equipment |
CN115525853A (en) * | 2022-10-17 | 2022-12-27 | 中电科大数据研究院有限公司 | Form configuration method, system and device and electronic equipment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160328222A1 (en) * | 2015-05-08 | 2016-11-10 | Citrix Systems, Inc. | Auto discovery and configuration of services in a load balancing appliance |
CN108428112A (en) * | 2018-03-12 | 2018-08-21 | 武汉斗鱼网络科技有限公司 | A kind of generation method of list, device, computer and storage medium |
CN109933760A (en) * | 2019-01-28 | 2019-06-25 | 平安科技(深圳)有限公司 | List generation method, device, computer equipment and computer readable storage medium |
CN110008455A (en) * | 2019-03-13 | 2019-07-12 | 平安科技(深圳)有限公司 | Table edit method, apparatus, computer equipment and storage medium |
CN110837369A (en) * | 2019-10-24 | 2020-02-25 | 山东中创软件工程股份有限公司 | Form generation method and device, electronic equipment and storage medium |
CN111897817A (en) * | 2020-07-23 | 2020-11-06 | 苏州创腾软件有限公司 | Visual form configuration method, device and system |
CN112068911A (en) * | 2020-07-31 | 2020-12-11 | 广东飞企互联科技股份有限公司 | Method, device, system, equipment and medium for generating electronic form |
WO2020248805A1 (en) * | 2019-06-12 | 2020-12-17 | 中兴通讯股份有限公司 | Service chain orchestration method and apparatus, storage medium and electronic apparatus |
US20210026677A1 (en) * | 2019-07-23 | 2021-01-28 | Vmware, Inc. | Recommendation generation based on selection of selectable elements of visual representation |
CN112905177A (en) * | 2021-02-07 | 2021-06-04 | 上海易校信息科技有限公司 | Method for dynamically customizing form engine |
-
2021
- 2021-06-15 CN CN202110660258.4A patent/CN113407254B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160328222A1 (en) * | 2015-05-08 | 2016-11-10 | Citrix Systems, Inc. | Auto discovery and configuration of services in a load balancing appliance |
CN108428112A (en) * | 2018-03-12 | 2018-08-21 | 武汉斗鱼网络科技有限公司 | A kind of generation method of list, device, computer and storage medium |
CN109933760A (en) * | 2019-01-28 | 2019-06-25 | 平安科技(深圳)有限公司 | List generation method, device, computer equipment and computer readable storage medium |
CN110008455A (en) * | 2019-03-13 | 2019-07-12 | 平安科技(深圳)有限公司 | Table edit method, apparatus, computer equipment and storage medium |
WO2020248805A1 (en) * | 2019-06-12 | 2020-12-17 | 中兴通讯股份有限公司 | Service chain orchestration method and apparatus, storage medium and electronic apparatus |
US20210026677A1 (en) * | 2019-07-23 | 2021-01-28 | Vmware, Inc. | Recommendation generation based on selection of selectable elements of visual representation |
CN110837369A (en) * | 2019-10-24 | 2020-02-25 | 山东中创软件工程股份有限公司 | Form generation method and device, electronic equipment and storage medium |
CN111897817A (en) * | 2020-07-23 | 2020-11-06 | 苏州创腾软件有限公司 | Visual form configuration method, device and system |
CN112068911A (en) * | 2020-07-31 | 2020-12-11 | 广东飞企互联科技股份有限公司 | Method, device, system, equipment and medium for generating electronic form |
CN112905177A (en) * | 2021-02-07 | 2021-06-04 | 上海易校信息科技有限公司 | Method for dynamically customizing form engine |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114513417A (en) * | 2022-02-11 | 2022-05-17 | 新奥数能科技有限公司 | Information configuration method and device of Internet of things equipment |
CN115525853A (en) * | 2022-10-17 | 2022-12-27 | 中电科大数据研究院有限公司 | Form configuration method, system and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113407254B (en) | 2022-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109542399B (en) | Software development method and device, terminal equipment and computer readable storage medium | |
CN113407254B (en) | Form generation method and device, electronic equipment and storage medium | |
CN109783757B (en) | Method, device and system for rendering webpage, storage medium and electronic device | |
CN108170425B (en) | Program code modification method and device and terminal equipment | |
CN108279882B (en) | Framework generation method, device, equipment and computer readable medium | |
CN111475162A (en) | Page generation method, device, server and storage medium | |
CN108171189A (en) | Video coding method, video coding device and electronic equipment | |
CN110119299A (en) | Information display method and equipment | |
CN112256670A (en) | Data migration method, terminal device and readable storage medium | |
CN107423051B (en) | Data configuration method and device | |
CN112579144B (en) | Data processing method and device | |
CN117724714A (en) | Workflow creation method, workflow creation device, electronic device and computer readable storage medium | |
CN107147732A (en) | Image processing method, device, client and service end | |
CN116521148A (en) | Code generation method and device, nonvolatile storage medium and electronic equipment | |
CN109324838B (en) | Execution method and execution device of single chip microcomputer program and terminal | |
CN113272785B (en) | Method for mounting file system, terminal equipment and storage medium | |
CN105022746A (en) | Character library generation method, server and system | |
CN112947907A (en) | Method for creating code branch | |
CN110619116A (en) | Data processing method, device, terminal and storage medium | |
CN115167728A (en) | Menu bar merging and displaying method, device and computer readable storage medium | |
CN114115864A (en) | Interface generation method and device and electronic equipment | |
CN113918194A (en) | Page component display method and device, electronic equipment and storage medium | |
CN114266233A (en) | Form generation method, device, equipment and medium | |
CN109597845B (en) | Report configuration method, report configuration device, computer equipment and storage medium | |
CN111737372A (en) | Map data generation method and device |
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 |