CN114239504A - Form configuration method, device, equipment, readable storage medium and program product - Google Patents

Form configuration method, device, equipment, readable storage medium and program product Download PDF

Info

Publication number
CN114239504A
CN114239504A CN202111574328.0A CN202111574328A CN114239504A CN 114239504 A CN114239504 A CN 114239504A CN 202111574328 A CN202111574328 A CN 202111574328A CN 114239504 A CN114239504 A CN 114239504A
Authority
CN
China
Prior art keywords
linkage
target
logic
control
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111574328.0A
Other languages
Chinese (zh)
Inventor
李国兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiruiyasi Technology Co ltd
Original Assignee
Beijing Xiruiyasi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiruiyasi Technology Co ltd filed Critical Beijing Xiruiyasi Technology Co ltd
Priority to CN202111574328.0A priority Critical patent/CN114239504A/en
Publication of CN114239504A publication Critical patent/CN114239504A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a form configuration method, a form configuration device, a form configuration equipment, a readable storage medium and a program product, and relates to the technical field of electronic forms. The method comprises the following steps: the method comprises the steps that the operation of setting a linkage rule aiming at a target form on a form configuration window is responded, and then the linkage rule of the target form is obtained; the linkage rule comprises a linkage condition for linkage control of at least one control on the target form and execution logic for executing linkage operation aiming at the at least one control; and finally, based on preset service logic and linkage rules, a target form is rendered, and a form configuration window is provided, so that a user can self-define and update the form linkage rules according to different service requirements, secondary development is avoided, the cost of secondary development and maintenance is saved, and the problem of system stability reduction caused by the secondary development is also avoided. The embodiment of the application solves the technical problems that the secondary development is high in implementation cost and maintenance cost, and the stability of an original system is easily reduced.

Description

Form configuration method, device, equipment, readable storage medium and program product
Technical Field
The present application relates to the field of electronic form technologies, and in particular, to a form configuration method, apparatus, device, readable storage medium, and program product.
Background
With the development of the internet, the application of electronic forms is very common, and the demand of daily work on the function of the electronic forms is increasing.
In the prior art, the system standard logic implemented on the form is the same for basic business requirements of different users, but for more complex business requirements, the basic standard logic cannot meet the requirements of people on the form function. Therefore, developers are required to insert new logic rules according to the existing business logic of the standard product and different business logic required by customers, but besides high cost, the secondary development of the form is likely to fail or cause functional failure of the original system along with the iterative upgrade of the standard product.
Therefore, developers insert new logic rules through secondary development, so that the technical problems of high implementation cost, high maintenance cost, easy reduction of the stability of the original system and the like are solved.
Disclosure of Invention
The embodiment of the application provides a form configuration method, a form configuration device, a form configuration equipment, a readable storage medium and a program product, which are used for solving the technical problems that the secondary development of the form is high in implementation cost and maintenance cost, and the stability of the original system is easily reduced.
According to an aspect of an embodiment of the present application, there is provided a form configuration method, including:
responding to the operation of setting a linkage rule aiming at the target form on the form configuration window, and acquiring the linkage rule of the target form; the linkage rule comprises a linkage condition for linkage control of at least one control on the target form and execution logic for executing linkage operation aiming at the at least one control;
and rendering the target form based on preset business logic and linkage rules.
In one possible implementation, in response to the operation of setting the linkage rule for the target form on the form configuration window, at least one of:
responding to an operation of setting a target linkage condition for a target form on the form configuration window;
responding to the operation of selecting a target linkage condition on a preset linkage condition aiming at a target form on the form configuration window;
an operation of the target execution logic is set for the target form in response to the form configuration window.
In one possible implementation, the method includes:
a linkage condition corresponding to each control for controlling the input value based on the comparison symbol;
and the execution logic corresponding to each control is used for executing corresponding action logic when corresponding linkage conditions are met.
In one possible implementation manner, rendering the target form based on a preset business logic and linkage rule includes:
and dynamically analyzing the linkage rule, and performing compatibility processing with the service logic.
In one possible implementation manner, rendering the target form based on a preset business logic and linkage rule includes:
responding to the target operation of the target control on the display interface of the target form, and determining that the target operation meets at least one of business logic and linkage rules;
and executing action logic corresponding to the target operation aiming at the target control.
In one possible implementation manner, executing action logic corresponding to the target operation for the target control includes:
when the target operation is determined to meet the business logic, executing action logic corresponding to the business logic aiming at the target control;
when the target operation is determined to meet the linkage rule, executing action logic corresponding to the linkage rule aiming at the target control;
and when the target operation is determined to meet the business logic and the linkage rule, executing action logic corresponding to the business logic and then executing action logic corresponding to the linkage rule aiming at the target control.
According to another aspect of the embodiments of the present application, there is provided an apparatus for configuring a form rule, the apparatus including:
the obtaining module is used for responding to the operation of setting the linkage rule aiming at the target form on the form configuration window and obtaining the linkage rule of the target form; the linkage rule comprises a linkage condition for linkage control of at least one control on the target form and execution logic for executing linkage operation aiming at the at least one control;
and the configuration module is used for rendering the target form based on preset service logic and linkage rules.
According to another aspect of embodiments of the present application, there is provided a computer apparatus including:
a memory, a processor, and a computer program stored on the memory;
the processor executes the computer program to implement the steps of the above-described method.
According to still another aspect of an embodiment of the present application, there is provided a computer-readable storage medium including:
on which a computer program is stored which, when being executed by a processor, carries out the above-mentioned method steps.
According to yet another aspect of embodiments of the present application, there is provided a computer program product comprising: computer program which, when being executed by a processor, carries out the above-mentioned method steps.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
the embodiment of the application provides a form configuration method, and a visual form configuration window is provided by responding to the operation of setting a linkage rule aiming at a target form on a form configuration window and acquiring the linkage rule of the target form, so that a user can define and update the form linkage rule according to different service requirements, secondary development is avoided, and the technical or personnel cost caused by the secondary development is saved. In addition, the form configuration window with the function of configuring the linkage rules is provided, so that the form linkage rules can be visually defined, the user can understand the user-defined rules, the accuracy of the form rule user-definition is improved, the application requirements are better met, and the use perception of the user is improved.
In addition, the embodiment of the application also dynamically analyzes the linkage rule and performs compatibility processing with the preset service logic, thereby avoiding the problem of system performance reduction or compatibility between versions of different systems caused by the conflict between the preset service logic and the linkage rule after the target form is rendered based on the preset service logic and the linkage rule.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a form configuration method according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating a method for responding to a configured form according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a system architecture of a form configuration method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a form configuration method according to an embodiment of the present application;
fig. 5 is a schematic view of an application scenario of a form configuration method according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a form layout apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the embodiments set forth below in connection with the drawings are exemplary descriptions for explaining technical solutions of the embodiments of the present application, and do not limit the technical solutions of the embodiments of the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be further understood that the terms "comprises" and/or "comprising," when used in this specification in connection with embodiments of the present application, specify the presence of stated features, information, data, steps, operations, elements, and/or components, but do not preclude the presence or addition of other features, information, data, steps, operations, elements, components, and/or groups thereof, as embodied in the art. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein indicates at least one of the items defined by the term, e.g., "a and/or B" may be implemented as "a", or as "B", or as "a and B".
The form configuration method, the form configuration device, the form configuration equipment, the readable storage medium and the program product are improved aiming at the problems that the existing form function cannot meet the requirements of different users and the technology and the cost are caused during secondary development.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The terms referred to in this application will first be introduced and explained:
form: pages that can be used for functions such as displaying data, collecting data, submitting data, etc. A form may include three basic components, such as form labels, form fields, and form buttons; wherein, the form label: contains the URL (Uniform Resource Locator) of CGI (Common Gateway Interface) program used for processing form data and the method for submitting data to the server. Form field: including text boxes, password boxes, hidden fields, multi-line text boxes, check boxes, radio boxes, drop-down selection boxes, file upload boxes, and the like. Form button: comprises a submit button, a reset button and a general button; the CGI script used to transfer data to the server or cancel input, and other processing tasks that define the processing script may also be controlled with form buttons, where form fields and form buttons are also collectively referred to as form components.
Linkage: in the field of application of the present application, it is referred to that when one or more form interfaces or form controls change, the state, data or execution function of another one or more form interfaces or form controls is affected.
Secondary development: the developer uses the standard interface capability of the existing system to combine and expand, and realizes new logic to complete the process of special requirements of users.
The inventor of the present application finds that, in the process of research, when the form is secondarily developed according to the requirements of different users, not only the cost is high, but also the problem that the service logic of the secondary development is possibly invalid or the functional failure of the original system is possibly caused is also found.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 shows a flowchart of a form configuration method provided in an embodiment of the present application, where the method may be executed by any electronic device, for example, a terminal device, and the terminal device may render a preset service logic and a user-defined linkage rule to a target form by executing the method, so that the target form may subsequently respond to the preset service logic, and may also respond to the user-defined linkage rule, thereby improving a user perception, and avoiding a technical or personnel cost problem caused by performing secondary development. The method can be executed by a server, optionally, the server can be a cloud server, the method can be realized as an application program or can be used as an existing plug-in or functional module of the application program with the functions of responding, acquiring and analyzing business logic, for example, the method can be used as a new functional module of a rule analysis engine. The terminal device comprises a user terminal, wherein the user terminal comprises but is not limited to a mobile phone, a computer, an intelligent voice interaction device, a wearable electronic device and the like.
As shown in fig. 1, the form configuration method provided in the embodiment of the present application may include the following steps S101 to S102, and optionally, the method may be executed by a terminal device.
Step S101: responding to the operation of setting a linkage rule aiming at the target form on the form configuration window, and acquiring the linkage rule of the target form; the linkage rule comprises linkage conditions for linkage control of at least one control on the target form and execution logic for executing linkage operation aiming at the at least one control.
The form configuration window is a visual page window used for configuring various linkage rules and execution logics, provides various comparison symbols and executable action symbols for a user to select based on self requirements, and also provides a function for selecting various controls of a target form (or can select a control on the target form by manually inputting a unique identification symbol of the target form control).
The target form, that is, the form that the terminal user needs to set the linkage rule based on the service requirement of the terminal user, that is, the service form of the terminal user, optionally, the terminal user may be a user or an administrator, for example, in the identity information submission system, all form pages that carry forms that can be operated by the user may be used as the target form, for example, if the user needs to submit the form page using the identity information, the form page is the target form of the user, or if the user needs to modify the form page using the identity information, the form page is the target form of the user.
The control of the target form is any component on the form, such as a single-line text box, a multi-line text box, a numeric input box, a check box, a button and the like. Specifically, the end user may select one or more components on the target form as target controls for which to set the linkage conditions or execution logic (i.e., set the linkage rules).
Optionally, a linkage condition corresponding to each control for controlling the input value based on the comparison symbol; and the execution logic corresponding to each control is used for executing corresponding action logic when corresponding linkage conditions are met.
Specifically, the linkage condition is constructed by the comparison symbol, the control on the target form and the inputtable data of the control, and the execution logic is constructed by the executable action and the control on the target form.
Wherein the comparison symbols include: inclusive, exclusive, equal, not equal, empty, not empty, earlier, later, etc.; the data that can be input is input data based on the target control function (e.g., the input data of the text box is text data, the input data of the time box is time data, the input data of the check box is a boolean value, etc.); the executable action symbols comprise display/hiding, filling/non-filling, assignment as, read only and the like; the present application is not limited to the type/kind of comparison symbols and executable action symbols.
Specifically, the control type, the input data type, the comparison symbol type, and the execution action symbol type may be referred to as the following table 1:
TABLE 1
Figure BDA0003424778130000071
Figure BDA0003424778130000081
Figure BDA0003424778130000091
In the embodiment of the present application, in order to avoid secondary development, a function of customizing the form linkage rule based on different service logic requirements at a user level is implemented, so that the customized linkage rule can be subsequently analyzed in real time, a target form is rendered, and the linkage rule of the target form is updated based on different users, optionally, in response to an operation of setting the linkage rule for the target form on a form configuration window, the method includes at least one of the following steps a 1-A3:
step A1: in response to an operation of setting a target linkage condition for the target form on the form configuration window.
Specifically, in the target form, a terminal user can set a linkage rule for the target form on a display page of a form configuration window according to the self requirement, wherein the set linkage rule may be one or multiple. One possible situation is that a target control is selected on a display page of a form configuration window, and a comparison symbol is selected for the target control based on the requirement of the target control, wherein the target control is positioned on the left side of the comparison symbol, and the inputtable data of the target control is positioned on the right side of the comparison symbol, so that a linkage condition is established for the target control; another possible situation is that a page is displayed in a form configuration window, a target control and a comparison symbol are selected, wherein the target control is located on the left side of the comparison symbol, and a data inputtable value located on the right side of the comparison symbol is null, so that a default linkage condition is established for the target control; another possible situation is that the target control has a linkage condition, the comparison symbol can be reselected based on the service requirement of the target control, the comparison symbol of the existing linkage condition is changed, and the update operation is completed on the linkage condition.
Step A2: and responding to the operation of selecting the target linkage condition on the preset linkage condition aiming at the target form on the form configuration window.
Specifically, when one or more linkage conditions exist in the target control of the target form, the linkage conditions may be selected for the target control, and it is understood that one or more linkage conditions may be selected for the target control, or the linkage conditions may not be selected (i.e., the linkage conditions on the target control are cleared). In a possible situation, a plurality of linkage conditions can be selected for the target control, and if the linkage conditions are in conflict relation logically, the input data of the target control and the linkage conditions are judged one by one based on the actual situation; or if the plurality of linkage conditions are in the logic inclusion relationship, judging the linkage conditions with larger data ranges of the input data of the target control and the representation input data based on the actual situation, and not limiting the matching mode of the input data and the linkage conditions when the plurality of linkage conditions exist.
Step A3: an operation of the target execution logic is set for the target form in response to the form configuration window.
Specifically, in the target form, the terminal user may set corresponding execution logic for the linkage condition of the target control on the display page of the form configuration window according to the own requirement, where the set logic may be one or multiple, and the number of the execution logic corresponding to the linkage condition is not limited in the present application. One possible situation is that on a display page of a form configuration window, execution logic based on self requirements is set for the linkage condition of a target control, wherein when a control needing to be linked with the target control is selected on the target form, the linkage control can be the target control or other components on the target form, and the linkage control is positioned on the left side of an executable action, so that an execution logic is established for the target control; another possible scenario is that when the execution logic is set in the form configuration window display page and the linkage control is selected, and the executable multi-action is not selected, a default executable action is constructed for the linkage control.
Step S102: and rendering the target form based on preset business logic and linkage rules.
Optionally, the linkage rule is dynamically analyzed, and compatibility processing is performed with the service logic.
Specifically, in order to avoid the high cost of secondary development, developers need to understand the original service logic of the system, and adapt the service logic of secondary development to the system, but as the standard product of the system is updated iteratively, the logic of secondary development may fail, even the performance of the original system may decrease, or the secondary development may not be compatible with different versions of the original system, in a possible embodiment, to overcome the above problems, the present application includes but is not limited to submitting the preset service logic and the linkage rule to a rule parsing engine for dynamic parsing, and then directly rendering the parsing engine to a target form in a display window of a terminal user, or sending the parsed result to the terminal device by the parsing engine, rendering the target form by the terminal device, so that the linkage rule defined by the user is compatible with the preset service logic, the problem that the service logic of the system is incompatible after the linkage rule is rendered to the target form is solved, and the stability of the system is ensured.
Specifically, the business logic includes, but is not limited to, configuration information of the form, basic linkage rules of the form controls, and the like. When the target form is initialized, the business corresponding to the business logic is executed by acquiring the business logic, and the form based on the basic business requirements of the user is generated, wherein the generated expression comprises the business logic of the basic business requirements of the user.
Specifically, because the original logics of the system form are high in coupling degree, the terminal device obtains the preset service logic, and after the corresponding service is executed based on the preset service logic, in order to ensure the stability of the system after the linkage rule is rendered to the target form, the linkage rule is dynamically analyzed in real time and is subjected to compatibility processing with the preset service logic, wherein the target form is configured by form configuration personnel through program configuration. In the embodiment of the present application, the linkage rule is subjected to compatibility processing, including but not limited to combining or hiding (which is equivalent to dropping) the linkage condition or the executable action, so as to generate a new linkage rule. One possible case is that the original number input box can only input numbers greater than 100, and when the end user configures the linkage condition that can input numbers less than 50, the preset service logic and the linkage logic need to be combined, so that the number input box can simultaneously input numbers less than 50 or greater than 100; another possible case is that the original number input box can only input numbers greater than 100, and when the end user configures the linkage condition that only numbers greater than 180 can be input, the original preset service logic needs to be hidden (otherwise, the linkage rule corresponding to the new setting does not work, or the preset service logic is retained, so that the system needs to perform multiple matching), so that the number input box can only input numbers greater than 180.
Optionally, as shown in fig. 2, rendering the target form in step S103 based on the preset business logic and linkage rule further includes the following steps S201 to S202:
step S201: and responding to the target operation of the target control on the display interface of the target form, and determining that the target operation meets at least one of business logic and linkage rules.
The display interface is a form page rendered based on preset business logic (and linkage rules). The target operation includes, but is not limited to, a click operation by a mouse, an input operation by a keyboard, and the like.
Specifically, when a user performs input operation on a target control on a display interface of a target form, the control on the form can receive data input by the user, such as a text box, based on a self-contained function of the control, and receive and display text information input by the user; and the digital frame receives and displays digital data input by a user and the like, so that when the target operation meets at least one of the business logic and the linkage rule, corresponding action logic can be executed subsequently.
Step S202: and executing action logic corresponding to the target operation aiming at the target control.
Optionally, in this application example, the method further includes the following steps:
when the target operation is determined to meet the business logic, executing action logic corresponding to the business logic aiming at the target control;
when the target operation is determined to meet the linkage rule, executing action logic corresponding to the execution logic aiming at the target control;
and when the target operation is determined to meet the business logic and the linkage rule, executing action logic corresponding to the business logic and then executing action logic corresponding to the linkage rule aiming at the target control.
Specifically, if the preset service logic of the original digital input box is a digital input box capable of inputting only numbers in a range of 30 to 40 (the corresponding action logic is to directly clear out the non-conforming numbers), the user sets the linkage condition capable of inputting the numbers in a range of 0 to 10 for the digital input box, and sets the action logic of clearing the contents of the digital input box when the non-conforming numbers are input, after the preset service logic and the linkage rule customized by the user are subjected to compatibility processing, the linkage condition presented by the digital input box is that the numbers in a range of 0 to 10 and the numbers in a range of 30 to 40 can be simultaneously input, and the presented action logic is to clear out the numbers which are not conforming to the above range. In one possible case, when a number in the range of 30 to 40 is entered, for example 35, the number is compared with a preset service logic, if the preset service logic is met, the number is continuously compared with a user-defined linkage condition (35 is out of the range of 0 to 10), if the user-defined linkage condition is not met, and the number is displayed if the preset service logic is met according to the comparison result.
Specifically, if the preset service logic of the original digital input box is only capable of inputting numbers larger than 30 (the corresponding action logic is to directly clear the non-conforming numbers), and the user sets a linkage condition capable of inputting numbers smaller than 10 for the digital box, and sets an action logic for clearing the contents of the digital box when the numbers larger than 10 are input, after the preset service logic and the linkage rule customized by the user are subjected to compatibility processing, the linkage condition presented by the digital box is that the numbers larger than 30 and the numbers smaller than 10 can be simultaneously input, and the presented action logic is to clear the numbers from 10 to 30. In a possible case, when a number smaller than 10 is input, for example, 8, the number is compared with the preset service logic, if the number does not meet the preset service logic (if the preset service logic is met, the number is displayed), the number is continuously compared with the user-defined linkage condition (8 is smaller than 10), and according to the comparison result, the content in the number box is displayed as the user-defined linkage condition is met.
Specifically, if the preset service logic of the original digital input box is a condition that only the number greater than 30 can be input (the corresponding action logic is to directly clear the non-conforming number), and the user sets the linkage condition that only the number greater than 35 can be input for the digital box, and sets the action logic for clearing the content of the digital box when the number less than or equal to 35 is input, after the preset service logic and the linkage rule customized by the user are subjected to compatibility processing, the linkage condition presented by the digital box is that only the number greater than 35 is input, and the presented action logic is to clear the number less than or equal to 35. In one possible case, when a number greater than 35, for example 36, is entered, the number is compared with the preset service logic, the preset service logic is met (and therefore the non-met number is not cleared directly), the number is continuously compared with the user-defined linkage condition (36 greater than 35), and, depending on the comparison result, the content in the number box is retained by default as the user-defined linkage condition is also met.
Fig. 3 is a schematic diagram of a system architecture of an alternative form configuration method, and as shown in fig. 3, the system includes a server terminal, i.e., the parsing engine 10 shown in fig. 3, a terminal device terminal, i.e., the user terminal 20 shown in fig. 3, an administrator user terminal 30, and a developer terminal 40, where the terminal device terminal may communicate with the server terminal through a network.
The developer terminal 40 is mainly used for configuring the form and configuring the preset service logic for the form, the administrator user terminal 30 is mainly used for configuring the linkage rule of the form, the user terminal 20 can be used for acquiring the preset service logic and the linkage rule from the analysis engine 10, rendering the form, and also can be used for setting the linkage rule, and the above devices can submit the linkage rule or the preset service logic to the analysis engine 10.
The following describes a flow of a possible form configuration method in this scenario with reference to the form configuration system shown in fig. 3, and as shown in fig. 4, the method may include the following steps S41 to S44.
Step S41: the linkage rules are configured, that is, the linkage rules based on the target form are configured through the form configuration window (which may be executed at the administrator user terminal 30 or the user terminal 20), or the developer configures the service logic in advance through the developer terminal 40, and sends the service logic to the parsing engine 10.
Step S42: and (2) analysis/compatibility, namely, the terminal equipment (which can be executed by the administrator user terminal 30 or the user terminal 20) sends the linkage rule customized by the target form to the analysis engine 10 (or submits the linkage rule to a self-configuration analysis module), and the analysis engine 10 dynamically analyzes the linkage rule and the preset service logic and performs compatibility processing.
Step S43: the linkage rule and the preset service logic are obtained, that is, the linkage rule and the preset service logic are obtained through a terminal device (which may be executed by the administrator user terminal 30 or the user terminal 20).
Step S44: and rendering the form, namely rendering the target form based on preset business logic and linkage rules.
The following describes an alternative embodiment of the form configuration method in this application scenario.
Fig. 5 is a schematic diagram illustrating an application scenario of an optional form configuration method, and as shown in fig. 5, the method of the present application is applied to an identity information submission system, and includes: identification number input box 50, male checkbox 60, female checkbox 70, age input box 80.
In the embodiment of the present application, a form configuration method is provided in the embodiment of the present application, in which a visual form configuration window based on a user level is provided by responding to an operation of setting a linkage rule for a target form on a form configuration window and acquiring the linkage rule of the target form, so that a user can customize and update the form linkage rule according to different business requirements, thereby avoiding secondary development and saving technical or personnel cost caused by the secondary development. In addition, the form configuration window with the function of configuring the linkage rules is provided, so that the form linkage rules can be visually defined, the user can understand the user-defined rules, the accuracy of the form rule user-definition is improved, the application requirements are better met, and the use perception of the user is improved.
In addition, the method and the device also solve the problems of system performance reduction or compatibility among versions of different systems caused by the fact that the preset business logic conflicts with the linkage rule after the target form is rendered based on the preset business logic and the linkage rule by dynamically analyzing the linkage rule and carrying out compatibility processing on the linkage rule and the preset business logic.
An alternative application scenario embodiment of the present application will be discussed below with reference to fig. 1 to 5, specifically as follows:
in the embodiment of the application, when the user-defined linkage rule configuration is not performed on the form display page of the identity information submission system, the terminal device only acquires the preset service logic to generate the corresponding target form, wherein in the target form shown in fig. 5, only the male and female check boxes store the linkage logic, that is, only one of the male and female check boxes can be selected.
The embodiment of the application provides a form configuration method, so that a user can change the linkage rule of the form based on the self business requirement without secondary development. Specifically, the identification number input box 50 is selected in the form configuration window, the linkage rule is set for the selection, and the linkage rule is set to be linked with the male check box 60, the female check box 70 and the age input box 80, for example, the linkage condition for setting the first linkage rule is: judging the 17 th digit of the input identification number, if representing a male, the execution logic is to select a male check box, and if representing a female, the execution logic is to select a female check box; the second linkage rule may also be set with the conditions: the number of 7-10 bits (i.e., year of birth data) is extracted and the logic performed is that the age input box 80 takes the year of the year minus the year of birth data and displays the result on the age check box 80.
If the user can submit the customized linkage rule, the terminal device, such as the user terminal 20 shown in fig. 3, submits the customized linkage rule to the parsing engine 10. At the end of the analysis engine 10, the customized linkage rule is analyzed, and the result after compatibility processing with the preset service logic is issued to the user terminal 20, and the target form is rendered.
After the target form is rendered, when the user triggers the identification number input box 50 (i.e., inputs the correct identification number) on the form page of the identity information submission system, the user judges the input data of the identification number input box 50 and the conditions of the linkage rules, selects the male check box 60 or the female check box 70 based on the judgment result, and displays the age in the age input box 80, wherein the compatibility processing in the analysis engine 10 keeps the business logic that only one of the male check box and the female check box in the original business logic can be selected, and the first or the linkage rules of the identification number input box 50 are matched one by one.
Based on the same principle as the method provided by the embodiment of the present application, the embodiment of the present application further provides a form configuration apparatus, as shown in fig. 6, the form configuration apparatus 60 may include:
the obtaining module 601 is configured to obtain a linkage rule of a target form in response to an operation of setting the linkage rule for the target form on the form configuration window; the linkage rule comprises linkage conditions for linkage control of each control on the target form and execution logic for executing linkage operation aiming at each control.
And the configuration module 602 is used for rendering the target form based on preset business logic and linkage rules.
Optionally, the obtaining module 601 is further configured to respond to an operation of setting a target linkage condition for the target form on the form configuration window; responding to the operation of selecting a target linkage condition on a preset linkage condition aiming at a target form on the form configuration window; an operation of the target execution logic is set for the target form in response to the form configuration window.
Optionally, the obtaining module 601 is further configured to obtain a linkage condition corresponding to each control, and control the input value based on the comparison symbol; and the execution logic corresponding to each control is used for executing corresponding action logic when corresponding linkage conditions are met.
Optionally, the obtaining module 602 is further configured to dynamically analyze the linkage rule, and perform compatibility processing with the service logic.
Optionally, the obtaining module 602 is further configured to determine that the target operation satisfies at least one of a business logic and a linkage rule in response to the target operation on the target control on the display interface of the target form; and executing action logic corresponding to the target operation aiming at the target control.
Optionally, the obtaining module 602 is further configured to, when it is determined that the target operation meets the service logic, execute an action logic corresponding to the service logic for the target control; when the target operation is determined to meet the linkage rule, executing action logic corresponding to the linkage rule aiming at the target control; and when the target operation is determined to meet the business logic and the linkage rule, executing action logic corresponding to the business logic and then executing action logic corresponding to the linkage rule aiming at the target control.
In the embodiment of the application, the obtaining module 601 is used for obtaining the linkage rule of the target form in response to the operation of setting the linkage rule for the target form on the form configuration window, and a visual form configuration window based on the user level is provided, so that a user can customize and update the form linkage rule according to different business requirements, and a method for visually configuring the customized form linkage rule is provided, which is beneficial for the user to understand the customized linkage rule, improves the accuracy of form rule customization, better meets the application requirement, and improves the use perception of the user; by rendering the target form based on the preset service logic and the linkage rule through the configuration module 602, secondary development is avoided, the cost of technology or personnel caused by the secondary development is saved, and meanwhile, by dynamically analyzing the linkage rule and performing compatibility processing with the preset service logic, the problem of system performance reduction or compatibility between versions of different systems caused by the fact that the preset service logic and the linkage rule conflict after the target form is rendered based on the preset service logic and the linkage rule is also avoided.
Based on the same principle as the form configuration method and device provided by the embodiment of the application, the embodiment of the application provides a computer device which comprises a memory, a processor and a computer program stored on the memory, wherein the processor executes the computer program to realize the steps of the form configuration method. In addition, the form configuration window with the function of configuring the linkage rules is provided, so that the form linkage rules can be visually defined, the user can understand the user-defined rules, the accuracy of the form rule user-definition is improved, the application requirements are better met, and the use perception of the user is improved.
In addition, the method and the device also solve the problems of system performance reduction or compatibility among versions of different systems caused by the fact that the preset business logic conflicts with the linkage rule after the target form is rendered based on the preset business logic and the linkage rule by dynamically analyzing the linkage rule and carrying out compatibility processing on the linkage rule and the preset business logic.
In an alternative embodiment, an electronic device is provided, as shown in fig. 7, the electronic device 4000 shown in fig. 7 comprising: a processor 4001 and a memory 4003. Processor 4001 is coupled to memory 4003, such as via bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, and the transceiver 4004 may be used for data interaction between the electronic device and other electronic devices, such as transmission of data and/or reception of data. In addition, the transceiver 4004 is not limited to one in practical applications, and the structure of the electronic device 4000 is not limited to the embodiment of the present application.
The Processor 4001 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 4001 may also be a combination that performs a computational function, including, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 4002 may include a path that carries information between the aforementioned components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 4002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The Memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium, other magnetic storage devices, or any other medium that can be used to carry or store a computer program and that can be Read by a computer, without limitation.
The memory 4003 is used for storing computer programs for executing the embodiments of the present application, and is controlled by the processor 4001 to execute. The processor 4001 is used to execute computer programs stored in the memory 4003 to implement the steps shown in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: any electronic device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and a server.
Embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, and when being executed by a processor, the computer program may implement the steps and corresponding contents of the foregoing method embodiments.
Embodiments of the present application further provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps and corresponding contents of the foregoing method embodiments can be implemented.
The terms "first," "second," "third," "fourth," "1," "2," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than illustrated or otherwise described herein.
It should be understood that, although each operation step is indicated by an arrow in the flowchart of the embodiment of the present application, the implementation order of the steps is not limited to the order indicated by the arrow. In some implementation scenarios of the embodiments of the present application, the implementation steps in the flowcharts may be performed in other sequences as desired, unless explicitly stated otherwise herein. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on an actual implementation scenario. Some or all of these sub-steps or stages may be performed at the same time, or each of these sub-steps or stages may be performed at different times, respectively. In a scenario where execution times are different, an execution sequence of the sub-steps or the phases may be flexibly configured according to requirements, which is not limited in the embodiment of the present application.
The foregoing is only an optional implementation manner of a part of implementation scenarios in this application, and it should be noted that, for those skilled in the art, other similar implementation means based on the technical idea of this application are also within the protection scope of the embodiments of this application without departing from the technical idea of this application.

Claims (10)

1. A form configuration method, comprising:
responding to the operation of setting a linkage rule aiming at a target form on a form configuration window, and acquiring the linkage rule of the target form; the linkage rule comprises a linkage condition for controlling at least one control on the target form in a linkage manner and execution logic for executing linkage operation aiming at the at least one control;
and rendering the target form based on preset business logic and the linkage rule.
2. The method of claim 1, wherein the operation responsive to setting the linkage rules for the target form on the form configuration window comprises at least one of:
responding to an operation of setting a target linkage condition for a target form on the form configuration window;
responding to the operation of selecting a target linkage condition on a preset linkage condition aiming at a target form on the form configuration window;
an operation of the target execution logic is set for the target form in response to the form configuration window.
3. The method of claim 1,
a linkage condition corresponding to each control for controlling the input value based on the comparison symbol;
and the execution logic corresponding to each control is used for executing corresponding action logic when corresponding linkage conditions are met.
4. The method of claim 1, wherein the rendering the target form based on the preset business logic and the linkage rule comprises:
and dynamically analyzing the linkage rule, and performing compatibility processing with the service logic.
5. The method of claim 4, wherein the rendering the target form based on the preset business logic and the linkage rule comprises:
responding to a target operation on a target control on a display interface of the target form, and determining that the target operation meets at least one of the business logic and the linkage rule;
and executing action logic corresponding to the target operation aiming at the target control.
6. The method of claim 5, wherein performing action logic corresponding to the target operation with respect to the target control comprises at least one of:
when the target operation is determined to meet the business logic, executing action logic corresponding to the business logic aiming at a target control;
when the target operation is determined to meet the linkage rule, executing action logic corresponding to the linkage rule aiming at the target control;
and when the target operation is determined to meet the business logic and the linkage rule, executing action logic corresponding to the business logic for the target control, and then executing the action logic corresponding to the linkage rule.
7. An apparatus for form configuration, comprising:
the obtaining module is used for responding to the operation of setting the linkage rule aiming at the target form on the form configuration window and obtaining the linkage rule of the target form; the linkage rule comprises a linkage condition for controlling at least one control on the target form in a linkage manner and execution logic for executing linkage operation aiming at the at least one control;
and the configuration module is used for rendering the target form based on preset service logic and the linkage rule.
8. A computer device, comprising:
a memory, a processor, and a computer program stored on the memory;
the processor executes the computer program to implement the steps of the method of any one of claims 1-6.
9. A computer-readable storage medium, comprising:
stored thereon, a computer program which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1-6 when executed by a processor.
CN202111574328.0A 2021-12-21 2021-12-21 Form configuration method, device, equipment, readable storage medium and program product Pending CN114239504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111574328.0A CN114239504A (en) 2021-12-21 2021-12-21 Form configuration method, device, equipment, readable storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111574328.0A CN114239504A (en) 2021-12-21 2021-12-21 Form configuration method, device, equipment, readable storage medium and program product

Publications (1)

Publication Number Publication Date
CN114239504A true CN114239504A (en) 2022-03-25

Family

ID=80760658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111574328.0A Pending CN114239504A (en) 2021-12-21 2021-12-21 Form configuration method, device, equipment, readable storage medium and program product

Country Status (1)

Country Link
CN (1) CN114239504A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114971416A (en) * 2022-07-13 2022-08-30 宁波创元信息科技有限公司 Data acquisition and command scheduling system and method based on intelligent form
CN115186289A (en) * 2022-05-27 2022-10-14 唐旸 Rule-based data permission control method, system, electronic device and medium
CN115509630A (en) * 2022-09-07 2022-12-23 中电金信软件有限公司 Control processing method and device, electronic equipment and medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115186289A (en) * 2022-05-27 2022-10-14 唐旸 Rule-based data permission control method, system, electronic device and medium
CN114971416A (en) * 2022-07-13 2022-08-30 宁波创元信息科技有限公司 Data acquisition and command scheduling system and method based on intelligent form
CN114971416B (en) * 2022-07-13 2022-11-25 宁波创元信息科技有限公司 Data acquisition and command scheduling system and method based on intelligent form
CN115509630A (en) * 2022-09-07 2022-12-23 中电金信软件有限公司 Control processing method and device, electronic equipment and medium
CN115509630B (en) * 2022-09-07 2023-10-13 中电金信软件有限公司 Control processing method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN114239504A (en) Form configuration method, device, equipment, readable storage medium and program product
CN109408058B (en) Front-end auxiliary development method and device based on machine learning
CN109828906B (en) UI (user interface) automatic testing method and device, electronic equipment and storage medium
EP3961426A2 (en) Method and apparatus for recommending document, electronic device and medium
CN111209374A (en) Data query display method and device, computer system and readable storage medium
CN111625567A (en) Data model matching method, device, computer system and readable storage medium
CN108509582B (en) Information reply method, terminal equipment and computer readable storage medium
US11321746B2 (en) Ad simulator browser extension
KR20210045283A (en) Method, Apparatus and System for Automatic Interlocking Between Heterogeneous Platform
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
KR102396110B1 (en) Method, Apparatus and System for Interlocking Between Heterogeneous Shopping Mall
CN110795424B (en) Characteristic engineering variable data request processing method and device and electronic equipment
CN114266233A (en) Form generation method, device, equipment and medium
CN108460159B (en) Information reply method, terminal equipment and computer readable storage medium
CN111831130A (en) Input content recommendation method, terminal device and storage medium
CN114185618B (en) Service tool configuration method, device, computer equipment and storage medium
US20240126978A1 (en) Determining attributes for elements of displayable content and adding them to an accessibility tree
CN114282020A (en) Information display method, device, system, electronic equipment and storage medium
CN115080592A (en) Dynamic display method of credit card operation state and related equipment
TWI607332B (en) Correlation between persistent organic pollutants and microRNAs station
CN112732464A (en) Pasting method and device and electronic equipment
CN114253543A (en) Page configuration method and device, electronic equipment and storage medium
CN114661979A (en) Information processing method and device, equipment and computer readable storage medium
CN113297479A (en) User portrait generation method and device and electronic equipment
CN117278513A (en) Message display realization method and device and electronic equipment

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