Condition configuration method and device
By supporting the logical relationship configuration within and between the conditional packets in the conditional setting interface, the problem of low configuration efficiency in the prior art is solved, and flexible configuration and efficiency improvement of complex conditions is achieved.
Patent Information
- Application Number
- CN202411304153.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-01-03
AI Technical Summary
The prior art is less efficient when configuring complex conditions, and cannot flexibly configure the logical relationships within and between conditional packets, which limits the complexity and flexibility of conditional configuration.
Provide a conditional configuration method and device. By displaying the conditional setting interface, users can split the conditional grouping and set logical relationships, supporting the logical relationships within the conditional grouping and between the groups to logical or logical and realize the configuration of complex conditions.
Improves the efficiency and flexibility of conditional configuration, so that users do not need to manually write complex conditions, simplifies the configuration process, and supports flexible configuration of complex conditions.
Smart Images

Figure CN119248402A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a conditional configuration method and device. Background Art
[0002] In some scenarios, users are required to configure conditions. For example, in a scenario where table contents are filtered, users are required to set the conditions for filtering the table contents. In another example, in a scenario where conditional judgment nodes need to be added to the workflow during process arrangement, users are also required to set the conditions that need to be judged for the node. In another example, in a permission setting scenario, users are required to set the conditions for permission setting. In another example, when designing an interface, users are required to configure the display conditions and / or hiding conditions of interface elements.
[0003] Currently, the user can manually write the conditions that need to be configured. When the conditions that need to be configured are complex, the configuration efficiency is low.
[0004] Therefore, a solution is urgently needed to solve the above problems. Summary of the invention
[0005] In order to solve or at least partially solve the above technical problems, the present application provides a conditional configuration method and device.
[0006] In a first aspect, the present application provides a condition configuration method, the method comprising:
[0007] In response to the condition setting operation, a condition setting interface is displayed, the condition display interface includes a first area and a second area, the first area is used to set a first condition group, the first condition group includes at least one condition, the at least one condition includes a first condition, the first area includes a first sub-area for setting the first condition, and a second sub-area displaying a first interaction identifier, the first interaction identifier is used to trigger setting of a second condition in the first condition group, the second area includes a second interaction identifier, and the second interaction identifier is used to trigger setting of the second condition group;
[0008] In response to the operation triggered by the first interaction identifier, a first logical relationship candidate is displayed, the first logical relationship candidate includes a logical OR and a logical AND, and the first logical relationship candidate is used to set a logical relationship between the first condition and the second condition.
[0009] Optionally, the method further includes:
[0010] In response to the operation triggered by the second interaction identifier, second logical relationship candidates are displayed, the second logical relationship candidates include logical OR and logical AND, and the second logical relationship candidates are used to set the logical relationship between the first condition grouping and the second condition grouping.
[0011] Optionally, the display style of the first area is different from the display style of the second area.
[0012] Optionally, the method further includes:
[0013] In response to a selection operation triggered for the first option in the first logical relationship candidate items, a third sub-area for setting the second condition is displayed in the first area, and a first logical relationship identifier is displayed in the second sub-area, wherein the first logical relationship identifier is used to indicate that the logical relationship between the first condition and the second condition is the first option.
[0014] Optionally, the method further includes:
[0015] In response to a preset operation triggered for the second sub-area, a first deletion mark is displayed, and the third sub-area is displayed in a first preset style, wherein the third sub-area is displayed in the preset style, and the content marked by the first deletion mark for deletion includes the content in the third sub-area.
[0016] Optionally, the method further includes:
[0017] In response to a selection operation triggered for a second option in the second logical relationship candidate items, a third area is displayed in the condition setting interface, the third area is used to set the second condition grouping, and a second logical relationship identifier is displayed in the second area, the second logical relationship identifier is used to indicate that the logical relationship between the first condition grouping and the second condition grouping is the second option.
[0018] Optionally, the method further includes:
[0019] In response to a preset operation triggered for the second area, a second deletion mark is displayed, and the third area is displayed in a second preset style, wherein the third area is displayed in the preset style, and the content marked by the second deletion mark for deletion includes the content in the third area.
[0020] Optionally, the condition setting interface is used to set the following conditions:
[0021] Conditions to filter the table contents; or,
[0022] The condition that needs to be judged by the conditional judgment node in the workflow; or,
[0023] The conditions for setting permissions; or,
[0024] Conditions under which interface elements are shown and / or hidden.
[0025] Optionally, the condition setting operation is triggered on a node of a workflow in a table, and the workflow is used to automatically execute the workflow based on data in the table.
[0026] In a second aspect, the present application provides a condition configuration device, the device comprising:
[0027] A first display unit, configured to display a condition setting interface in response to a condition setting operation, wherein the condition display interface includes a first area and a second area, wherein the first area is used to set a first condition group, wherein the first condition group includes at least one condition, wherein the at least one condition includes a first condition, wherein the first area includes a first sub-area for setting the first condition, and a second sub-area for displaying a first interaction identifier, wherein the first interaction identifier is used to trigger setting of a second condition in the first condition group, and wherein the second area includes a second interaction identifier, wherein the second interaction identifier is used to trigger setting of the second condition group;
[0028] The second display unit is used to display first logical relationship candidates in response to the operation triggered by the first interaction identifier, wherein the first logical relationship candidates include logical OR and logical AND, and the first logical relationship candidates are used to set the logical relationship between the first condition and the second condition.
[0029] Optionally, the device further comprises:
[0030] The third display unit is used to display second logical relationship candidates in response to the operation triggered by the second interaction identifier, wherein the second logical relationship candidates include logical OR and logical AND, and the second logical relationship candidates are used to set the logical relationship between the first condition grouping and the second condition grouping.
[0031] Optionally, the display style of the first area is different from the display style of the second area.
[0032] Optionally, the device further comprises:
[0033] A fourth display unit is used to display a third sub-area for setting the second condition in the first area in response to a selection operation triggered for the first option in the first logical relationship candidate items, and to display a first logical relationship identifier in the second sub-area, wherein the first logical relationship identifier is used to indicate that the logical relationship between the first condition and the second condition is the first option.
[0034] Optionally, the device further comprises:
[0035] A fifth display unit is used to display a first deletion mark in response to a preset operation triggered for the second sub-area, and to display the third sub-area in a first preset style, wherein the third sub-area is displayed in the preset style, and the content marked by the first deletion mark for deletion includes the content in the third sub-area.
[0036] Optionally, the device further comprises:
[0037] A sixth display unit is used to display a third area in the condition setting interface in response to a selection operation triggered for the second option in the second logical relationship candidate items, wherein the third area is used to set the second condition grouping, and to display a second logical relationship identifier in the second area, wherein the second logical relationship identifier is used to indicate that the logical relationship between the first condition grouping and the second condition grouping is the second option.
[0038] Optionally, the device further comprises:
[0039] The seventh display unit is used to display a second deletion mark in response to a preset operation triggered for the second area, and to display the third area in a second preset style, wherein the third area is displayed in the preset style, and the content marked by the second deletion mark for deletion includes the content in the third area.
[0040] Optionally, the condition setting interface is used to set the following conditions:
[0041] Conditions to filter the table contents; or,
[0042] The condition that needs to be judged by the conditional judgment node in the workflow; or,
[0043] The conditions for setting permissions; or,
[0044] Conditions under which interface elements are shown and / or hidden.
[0045] Optionally, the condition setting operation is triggered on a node of a workflow in a table, and the workflow is used to automatically execute the workflow based on data in the table.
[0046] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a processor and a memory;
[0047] The processor is used to execute instructions stored in the memory so that the electronic device performs the method as described in any one of the first aspects above.
[0048] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, wherein the instructions instruct a device to execute a method as described in any one of the above first aspects.
[0049] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect above.
[0050] Compared with the prior art, the embodiments of the present application have the following advantages:
[0051] The present application provides a condition configuration method. The method includes: in response to a condition setting operation triggered by a user, displaying a condition setting interface. The condition setting interface is used to set the condition. The condition setting interface includes a first area and a second area, the first area is used to set a first condition group, the first condition group may include at least one condition, and the at least one condition may include a first condition. Correspondingly, the first area may include a first sub-area for setting the first condition. In addition, the second sub-area of the first area also displays a first interaction identifier, the first interaction identifier is used to trigger the setting of the second condition in the first condition group. In addition, the second area includes a second interaction identifier, the second interaction identifier is used to trigger the setting of the second condition group. In one example, in response to the operation triggered by the first interaction identifier, a first logical relationship candidate item is displayed, the first logical relationship candidate item is used to set the logical relationship between the first condition and the second condition, and the first logical relationship candidate item includes a logical or and a logical and. That is, in the present application, the logical relationship between the conditions in the condition group may include two options (i.e., a logical or and a logical and), so that the user can realize complex condition configuration through the condition setting interface, without the user having to manually write the complex condition configuration, thereby improving the efficiency of condition configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 A flowchart of a conditional configuration method provided in an embodiment of the present application;
[0054] Figure 2a A schematic diagram of a condition setting interface provided in an embodiment of the present application;
[0055] Figure 2b A schematic diagram of another condition setting interface provided in an embodiment of the present application;
[0056] Figure 2c A schematic diagram of another condition setting interface provided in an embodiment of the present application;
[0057] Figure 2d A schematic diagram of another condition setting interface provided in an embodiment of the present application;
[0058] Figure 2e A schematic diagram of another condition setting interface provided in an embodiment of the present application;
[0059] Figure 2f A schematic diagram of another condition setting interface provided in an embodiment of the present application;
[0060] Figure 2g A schematic diagram of another condition setting interface provided in an embodiment of the present application;
[0061] Figure 3 A schematic diagram of the structure of a condition configuration device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0063] The inventor of the present application has found through research that currently the conditions to be configured can be manually written by the user, and this method can realize flexible configuration of the conditions, but when the conditions to be configured are relatively complex, the efficiency of the condition configuration is low. In order to improve the efficiency of the condition configuration, a condition configuration interface can be provided for the user, in which the user can split the conditions to be set into multiple condition groups, and set each condition group and the logical relationship between the condition groups respectively. In addition, for each condition group, it can also be split into one or more conditions, and the user can set the conditions included in the condition group and the logical relationship between the conditions respectively.
[0064] However, when configuring conditions through the condition configuration interface, the logical relationship between conditions in a condition group can only be logical AND, and the logical relationship between condition groups can only be logical OR, which results in the inability to flexibly configure conditions using the condition configuration interface. For example, only a or b or (c and d) can be configured, but a and (b or c) cannot be configured.
[0065] In view of this, the present application provides a condition configuration method and device, which can realize the configuration of complex conditions while ensuring the efficiency of condition configuration.
[0066] Various non-limiting implementations of the present application are described in detail below in conjunction with the accompanying drawings.
[0067] Exemplary Methods
[0068] See also Figure 1 , which is a flow chart of a conditional configuration method provided in an embodiment of the present application.
[0069] The method provided in the embodiment of the present application may be applied to a client, for example. In this embodiment, the method may include the following steps: S101-S102.
[0070] S101: In response to a condition setting operation, a condition setting interface is displayed, wherein the condition setting interface includes a first area and a second area, wherein the first area is used to set a first condition group, wherein the first condition group includes at least one condition, wherein the at least one condition includes a first condition, wherein the first area includes a first sub-area for setting the first condition, and a second sub-area for displaying a first interaction identifier, wherein the first interaction identifier is used to trigger setting of a second condition in the first condition group, and wherein the second area includes a second interaction identifier, wherein the second interaction identifier is used to trigger setting of the second condition group.
[0071] In one example, a user may trigger a conditional setting operation in a target page displayed by a client. As a specific example, the target page may include a conditional setting control, and a user may trigger a conditional setting operation through the conditional setting control. Accordingly, the client may display the conditional setting interface in response to the conditional setting operation. In another example, in a scenario where a workflow is automatically executed based on data in a table, a user may trigger the conditional setting operation for a node of a workflow in a table. For example, a workflow in a table may include a conditional setting node, and a user may trigger the conditional setting operation through the conditional setting node.
[0072] In one example, the condition setting interface may be displayed in the target page in the form of a pop-up window. In another example, the condition setting interface may be displayed in a certain area of the target page, for example, in the right area of the target page.
[0073] The embodiment of the present application does not specifically limit the target page, and the target page may be related to the scenario set by the condition.
[0074] In one example, in a scenario of filtering table contents, the target page may be a page related to table settings. Accordingly, in this scenario, the condition setting interface may be used to set conditions for filtering table contents. For example, filtering table data in which parameter M is greater than M1.
[0075] In another example, in a scenario where a conditional judgment node needs to be added to the workflow during process orchestration, the target page can be a process orchestration page. Accordingly, in this scenario, the condition setting interface can be used to set the conditions that the conditional judgment node needs to judge. As a specific example, in a scenario where a workflow is associated with a table, the condition setting page can be used to set whether the table content referenced by the preceding node in the workflow meets the preset value condition. Specifically, it includes whether the content of the target cell in the target record of the table meets the preset conditions, whether the target record in the table has been modified, or whether a new target record has been added to the table, etc. For example, when the content of the table cell contains, does not contain, is greater than, less than, equal to, or is not equal to a certain value, the workflow node flows to the first node and / or the second node, or the workflow terminates.
[0076] In another example, in a permission setting scenario, the target page may be a permission setting page. Accordingly, in this scenario, the condition setting interface may be used to set the conditions for permission setting. For example, it may be set that when a user meets condition A, permission 1 is set for the user, and when a user meets condition B, permission 2 is set for the user. The permissions mentioned here include but are not limited to access rights to a certain content, editing rights to access content, sharing rights, etc., which are not listed here one by one.
[0077] In another example, in an interface design scenario, the target page can be an interface information configuration page. Accordingly, in this scenario, the condition setting interface can be used to configure the display conditions and / or hiding conditions of interface elements. The embodiment of the present application does not specifically limit the interface mentioned here, which includes but is not limited to a product details page, a process orchestration interface, etc., which are not described in detail here. The interface elements mentioned here include but are not limited to interactive controls displayed in the interface. For example, for a product details page, interface elements include but are not limited to interactive controls such as favorite controls and sharing controls.
[0078] In this application, reference may be made to Figure 2a To understand, Figure 2a A schematic diagram of a condition setting interface provided in an embodiment of the present application. Figure 2a As shown:
[0079] The condition setting interface includes a first area 210 and a second area 220, wherein the first area 210 includes a first sub-area 211 and a second sub-area 212. The first area 210 is used to set a first condition group, and the first condition group may include at least one condition, such as Figure 2a As shown, the first sub-area 211 is used to set the first condition, such as Figure 2a As shown, the first sub-area 211 includes three input boxes, the first input box is used to input the parameter name, the second input box is used for the operator (such as greater than, equal to, or less than, etc.), and the third input box is used to input the specific value of the parameter. In addition, the second sub-area 212 is used to display the second interaction identifier. Figure 2a In the second area 220, the second interaction identifier may correspond to the identifier "+Add". Figure 2a In the example, the second interaction identifier may also correspond to the identifier “+add”.
[0080] In the present application, the first interaction identifier is used to trigger the setting of the second condition in the first condition group. In addition, the user also needs to set the logical relationship between the first condition and the second condition, wherein the setting of the logical relationship between the first condition and the second condition can also be triggered by the first interaction identifier, and, in the present application, the logical relationship between the first condition and the second condition can be flexibly selected by the user between logical AND and logical OR according to actual needs.
[0081] In the present application, the second interaction identifier is used to trigger the setting of the second conditional grouping. In addition, the user also needs to set the logical relationship between the first conditional grouping and the second conditional grouping, wherein the setting of the logical relationship between the first conditional grouping and the second conditional grouping can also be triggered by the second interaction identifier, and in the present application, the logical relationship between the first conditional grouping and the second conditional grouping can be flexibly selected by the user between logical AND and logical OR according to actual needs.
[0082] In one example, the display style of the area where the condition group currently being edited by the user is located is different from the display style of other areas in the condition setting interface. This makes it easier for the user to distinguish the condition group currently being edited from other content in the condition setting interface. The display style of the area includes, but is not limited to, the background, shadow, and outer border of the area, as well as the display style of the content included in the area. The display style of the content included in the area includes, but is not limited to, the display style of the input box included in the area. In a specific example, the display style of the first area is different from the display style of the second area. For example, refer to Figure 2a It is understood that when the condition group currently edited by the user is the first condition group, the display style of the first area 210 is reflected in that the first area 210 includes a shadow, while the second area 220 does not include a shadow. In addition, in order to facilitate the user to distinguish the first interaction mark and the second interaction mark, the relative position of the first interaction mark in the second sub-area can be different from the relative position of the second interaction mark in the second area. Figure 2a In the example, the first interaction mark is located on the left side of the second sub-area 212 , and the second interaction mark is located in the middle of the second area 220 .
[0083] After the client displays the condition configuration interface, the user can trigger an operation for the first interaction identifier. Next, in conjunction with S102, the specific response of the client after the user triggers an operation for the first interaction identifier and the second interaction identifier is introduced.
[0084] S102: In response to the operation triggered by the first interaction identifier, display a first logical relationship candidate item, wherein the first logical relationship candidate item includes a logical OR and a logical AND, and the first logical relationship candidate item is used to set a logical relationship between the first condition and the second condition.
[0085] In one example, after the user triggers an operation on the first interaction identifier, the client can display a first logical relationship candidate item in response to the trigger operation on the first interaction identifier. The first logical relationship candidate item is used to set a logical relationship between the first condition and the second condition. In an embodiment of the present application, the first logical relationship candidate item includes two options, namely, logical or and logical and. Figure 2b To understand, Figure 2b A schematic diagram of another condition setting interface provided in an embodiment of the present application. Figure 2bAs shown, after the user triggers the operation of "+ add" on the identifier displayed in the second sub-area 212, the client can display the first logical relationship candidate 212a, where "and" in 212a corresponds to logical and, and "or" in 212a corresponds to logical or. In this way, the user can flexibly set the logical relationship between the first condition and the second condition according to actual needs.
[0086] From the above description, it can be known that, by using the scheme of the embodiment of the present application, the logical relationship between the conditions in the condition group can include two options (i.e., logical or and logical and), so that the user can implement complex condition configuration through the condition setting interface, without the need for the user to manually write the complex condition configuration, thereby improving the efficiency of condition configuration. That is, by using this scheme, complex conditions can be configured while ensuring the efficiency of condition configuration, taking into account the flexibility of condition configuration (supporting the configuration of complex conditions) and ease of use (ensuring configuration efficiency and simplifying user operations).
[0087] In one example, the user may also trigger an operation for the second interaction identifier. Figure 1 (not shown) introduces the specific response of the client after the user triggers the operation for the second interaction identifier.
[0088] S103: In response to the operation triggered by the second interaction identifier, display second logical relationship candidate items, wherein the second logical relationship candidate items include logical OR and logical AND, and the second logical relationship candidate items are used to set a logical relationship between the first condition grouping and the second condition grouping.
[0089] In one example, after the user triggers the operation on the second interaction identifier, the client can display the second logical relationship candidate item in response to the trigger operation on the second interaction identifier. The second logical relationship candidate item is used to set the logical relationship between the first condition grouping and the second condition grouping. In the embodiment of the present application, the second logical relationship candidate item also includes two options, namely logical or and logical and. Figure 2c To understand, Figure 2c A schematic diagram of another condition setting interface provided in an embodiment of the present application. Figure 2c As shown, after the user triggers the operation of "+ add" on the identifier displayed in the second area 220, the client can display the second logical relationship candidate 221, where "and" in 221 corresponds to logical and, and "or" in 221 corresponds to logical or. In this way, the user can flexibly set the logical relationship between the first condition grouping and the second condition grouping according to actual needs.
[0090] From the above description, it can be seen that, by utilizing the solution of the embodiment of the present application, not only can the logical relationship between the conditions within a conditional group include two options, but the logical relationship between different conditional groups can also include two options, thereby effectively taking into account the flexibility and ease of use of the conditional configuration.
[0091] In one example, after the client displays the first logical relationship candidate, the user can select one of the two options included in the first logical relationship candidate to set the logical relationship between the first condition and the second condition. As a specific example, the user can trigger a selection operation for the first option in the first logical relationship candidate. The first option can be a logical OR or a logical AND. Accordingly, the client can display a third sub-area for setting the second condition in the first area in response to the selection operation triggered for the first option. Similar to the first sub-area, the third sub-area can also include 3 input boxes, which are not repeated here.
[0092] In addition, the client may also display the first logical relationship identifier in the second sub-area. For example, the client may replace the first interaction identifier displayed in the second sub-area with the first logical relationship identifier. The first logical relationship identifier corresponds to the first option, and the first logical relationship identifier may specifically indicate that the logical relationship between the first condition and the second condition is the first option. For example, if the first option is a logical and, the first logical relationship identifier may be the text "and", and if the first option is a logical or, the first logical relationship identifier may be the text "or".
[0093] In addition, the client can also display a fourth sub-area in the first area, and the fourth sub-area displays a third interaction identifier. The third interaction identifier is used to trigger the setting of the third condition in the first condition group. Regarding the third interaction identifier, its function is the same as the first interaction identifier. Therefore, regarding the third interaction identifier, please refer to the previous description of the first interaction identifier, and no repeated description will be made here.
[0094] For reference Figure 2d To understand, Figure 2d A schematic diagram of another condition setting interface provided in an embodiment of the present application. Figure 2d As shown, the second sub-area 212 displays a first logical relationship identifier 212b. Figure 2d In the example, the first logical relationship identifier is "or". In addition, the first area 210 also displays a third sub-area 213 and a fourth sub-area 214. The third sub-area 213 is similar to the first sub-area 211 and also includes 3 input boxes. The fourth sub-area 214 displays a third interaction identifier. Figure 2d The corresponding identifier is "+Add".
[0095] In one example, after the client displays the third sub-area, the user may set the second condition in the third sub-area.
[0096] In one example, after the client displays the third sub-area and before the user has completed the setting of the second condition, or after the user has completed the setting of the second condition, the user can choose to delete the second condition according to their own needs. As a specific example, the second sub-area may display a first deletion mark, and the user may trigger the operation of deleting the second condition through the first deletion mark. In one example, the second sub-area may directly display the first deletion mark. In another example, the second sub-area may not directly display the first deletion mark, and the user may trigger a preset operation in the second sub-area. The embodiment of the present application does not specifically limit the preset operation, and the preset operation may be a click or hover operation. Accordingly, the client may display the first deletion mark in response to the preset operation triggered for the second sub-area. In this way, it is possible to avoid displaying too many elements in the condition configuration interface, which brings a visual feeling to the user. In the case where the user triggers a preset operation for the second sub-area, the client may also display the third sub-area in a first preset style in response to the preset operation. Among them, the third sub-area is displayed in the preset style, and the content marked by the first deletion mark for deletion includes the content in the third sub-area.
[0097] The first preset style is not specifically limited in the present application embodiment, and the first preset style can be specifically set according to actual conditions. For example, the first preset style can be to display the three input boxes of the third sub-area in a specific color (for example, red). For another example, the first preset style can be to display the three input boxes of the third sub-area in bold.
[0098] In addition, in this scenario, the display style of the second sub-area can be consistent with the display style of the third sub-area to indicate that the content deleted by the first deletion mark also includes the content in the second sub-area. For example, the first logical relationship mark and the first deletion mark displayed in the second sub-area can both be displayed in the aforementioned specific color; for another example, the first logical relationship mark and the first deletion mark displayed in the second sub-area can both be displayed in bold.
[0099] For reference Figure 2e To understand, Figure 2e A schematic diagram of another condition setting interface provided in an embodiment of the present application. Figure 2eAs shown, after the user triggers the preset operation on the second sub-area, the client can display the first deletion mark 212c in the second sub-area 212. In addition, the first logical relationship mark 212b and the first deletion mark 212c displayed in the second sub-area 212 are both displayed in bold, and the three input boxes included in the third sub-area 213 are all displayed in bold, indicating that the scope that can be deleted by the first deletion mark 212c includes the third sub-area 213 and the second sub-area 212. It should be noted that although Figure 2e In the embodiment, the first deletion indicator corresponds to the word "delete", but in practice, the first deletion indicator may also correspond to a deletion icon, which is not specifically limited in the embodiment of the present application.
[0100] In one example, if the user triggers an operation on the first deletion mark, the client can delete the third sub-area and the second sub-area. That is, if the user triggers an operation on the first deletion mark 212c, the content displayed on the condition setting interface can be restored to Figure 2a The content shown.
[0101] In one example, after the client displays the second logical relationship candidate, the user can select one of the two options included in the second logical relationship candidate to implement the setting of the logical relationship between the first condition grouping and the second condition grouping. As a specific example, the user can trigger a selection operation for the second option in the second logical relationship candidate, and the second option can be a logical or or a logical and. Accordingly, the client can display a third area in the condition setting interface in response to the selection operation triggered for the second option. The third area is used to set the second condition grouping. The content included in the third area can be similar to the content included in the first area, and no repeated description is given here.
[0102] In addition, the client may also display a second logical relationship identifier in the second area. For example, the client may replace the second interaction identifier displayed in the second area with the second logical relationship identifier. The second logical relationship identifier corresponds to the second option. The second logical relationship identifier may specifically indicate that the logical relationship between the first condition grouping and the second condition grouping is the second option. For example, if the second option is a logical AND, the second logical relationship identifier may be the text "and", and if the second option is a logical OR, the second logical relationship identifier may be the text "or".
[0103] In addition, the client can also display a fourth interaction identifier in the fourth area included in the condition setting interface, and the fourth interaction identifier is used to trigger the setting of the third condition grouping. Regarding the fourth interaction identifier, its function is the same as the second interaction identifier. Regarding the fourth interaction identifier, please refer to the description of the second interaction identifier in the previous text, and no repeated description is made here. In this scenario, the display styles of the first area, the second area, and the fourth area can be the same. The third area is the currently edited area, and its display style is different from the display styles of the first area, the second area, and the fourth area.
[0104] For reference Figure 2f To understand, Figure 2f A schematic diagram of another condition setting interface provided in an embodiment of the present application. Figure 2f As shown, the second area 220 displays a second logical relationship identifier 222. Figure 2f In the example, the second logical relationship is identified as "and". In addition, the condition setting interface also displays a third area 230 and a fourth area 240. Figure 2f In the third area 230, the content displayed is Figure 2a The content in the first area 210 is the same as that in the first area 210, and will not be repeated here. The fourth area 240 displays a fourth interaction identifier, and the fourth interaction indicates a corresponding identifier "+ add", which is used to trigger the setting of the third condition group. The difference in the display style of each area is reflected in whether it includes a shadow. Figure 2f In the figure, the third area 230 includes a shadow, and the first area 210, the second area 220 and the fourth area 240 do not include a shadow.
[0105] In one example, after the client displays the third area, the user may set a second conditional grouping in the third area.
[0106] In one example, after the client displays the third area and before the user has completed the setting of the second conditional grouping, or after the user has completed the setting of the second conditional grouping, the user can choose to delete the second conditional grouping according to their own needs. As a specific example, the second area can display a second deletion mark, and the user can trigger the operation of deleting the second conditional grouping through the second deletion mark. In one example, the second area can directly display the second deletion mark. In another example, the second area may not directly display the second deletion mark, and the user can trigger a preset operation in the second area. The embodiment of the present application does not specifically limit the preset operation, and the preset operation can be a click or hover operation. Accordingly, the client can display the second deletion mark in response to the preset operation triggered for the second area. In this way, it is possible to avoid displaying too many elements in the conditional configuration interface, which brings a visual feeling to the user. In the case where the user triggers a preset operation for the second area, the client can also display the third area in a second preset style in response to the preset operation. Among them, the third area is displayed in the second preset style, and the content marked by the second deletion mark for deletion includes the content in the third area.
[0107] The second preset style is not specifically limited in the present application embodiment, and the second preset style can be specifically set according to actual conditions. For example, the second preset style can be to display the outer frame of the third area in a specific color (for example, red). For another example, the preset style can be to display the outer frame of the third area in bold.
[0108] In addition, in this scenario, the display style of the second area can be consistent with the display style of the third area to indicate that the content deleted by the second deletion mark also includes the content in the second area. For example, the second logical relationship mark and the second deletion mark displayed in the second area can both be displayed in the aforementioned specific color; for another example, the second logical relationship mark and the second deletion mark displayed in the second area can both be displayed in bold.
[0109] For reference Figure 2g To understand, Figure 2g A schematic diagram of another condition setting interface provided in an embodiment of the present application. Figure 2g As shown, after the user triggers the preset operation for the second area, the client can display the second deletion mark 223 in the second area 220. In addition, the second logical relationship mark 222 and the second deletion mark 223 displayed in the second area 220 are both displayed in bold, and the outer frame of the third area 230 is displayed in bold, to indicate that the scope that can be deleted by the second deletion mark 223 includes the third area 230 and the second area 220. It should be noted that although Figure 2gIn the embodiment, the second deletion mark corresponds to the word "delete", but in practice, the second deletion mark may also correspond to a deletion icon, which is not specifically limited in the embodiment of the present application.
[0110] In one example, if the user triggers an operation on the second deletion mark, the client can delete the third area and the second area. In this scenario, the condition setting interface can be restored to Figure 2a The interface shown.
[0111] about Figure 2a to Figure 2g It should be noted that in Figure 2a to Figure 2g In order to facilitate the understanding of this scheme, there are clear boundaries between each area or each sub-area, such as Figure 2a to Figure 2d ,as well as Figure 2g The dotted line used to distinguish the first sub-region 211 from the second sub-region 212 is also shown in Figure 2e Each sub-region of the first region corresponds to a rounded rectangular frame. Figure 2f Each of the first area, the second area, the third area and the fourth area corresponds to a rounded rectangular frame. However, in practice, there may not be a clear dividing line between the areas or between the sub-areas.
[0112] Exemplary Devices
[0113] Based on the method provided in the above embodiment, the embodiment of the present application further provides a device, which is described below in conjunction with the accompanying drawings.
[0114] See also Figure 3 , Figure 3 A schematic diagram of the structure of a condition configuration device provided in an embodiment of the present application. Figure 3 The device 300 shown can be used to execute the condition configuration method provided by the above method embodiment. The device 300 can specifically include: a first display unit 301 and a second display unit 302.
[0115] The first display unit 301 is used to display a condition setting interface in response to a condition setting operation, wherein the condition display interface includes a first area and a second area, wherein the first area is used to set a first condition group, wherein the first condition group includes at least one condition, wherein the at least one condition includes a first condition, wherein the first area includes a first sub-area used to set the first condition, and a second sub-area displaying a first interaction identifier, wherein the first interaction identifier is used to trigger setting of a second condition in the first condition group, and wherein the second area includes a second interaction identifier, wherein the second interaction identifier is used to trigger setting of the second condition group;
[0116] The second display unit 302 is used to display first logical relationship candidate items in response to the operation triggered by the first interaction identifier, and the first logical relationship candidate items include logical OR and logical AND, and the first logical relationship candidate items are used to set the logical relationship between the first condition and the second condition.
[0117] Optionally, the device further comprises:
[0118] The third display unit is used to display second logical relationship candidates in response to the operation triggered by the second interaction identifier, wherein the second logical relationship candidates include logical OR and logical AND, and the second logical relationship candidates are used to set the logical relationship between the first condition grouping and the second condition grouping.
[0119] Optionally, the display style of the first area is different from the display style of the second area.
[0120] Optionally, the device further comprises:
[0121] A fourth display unit is used to display a third sub-area for setting the second condition in the first area in response to a selection operation triggered for the first option in the first logical relationship candidate items, and to display a first logical relationship identifier in the second sub-area, wherein the first logical relationship identifier is used to indicate that the logical relationship between the first condition and the second condition is the first option.
[0122] Optionally, the device further comprises:
[0123] A fifth display unit is used to display a first deletion mark in response to a preset operation triggered for the second sub-area, and to display the third sub-area in a first preset style, wherein the third sub-area is displayed in the preset style, and the content marked by the first deletion mark for deletion includes the content in the third sub-area.
[0124] Optionally, the device further comprises:
[0125] A sixth display unit is used to display a third area in the condition setting interface in response to a selection operation triggered for the second option in the second logical relationship candidate items, wherein the third area is used to set the second condition grouping, and to display a second logical relationship identifier in the second area, wherein the second logical relationship identifier is used to indicate that the logical relationship between the first condition grouping and the second condition grouping is the second option.
[0126] Optionally, the device further comprises:
[0127] The seventh display unit is used to display a second deletion mark in response to a preset operation triggered for the second area, and to display the third area in a second preset style, wherein the third area is displayed in the preset style, and the content marked by the second deletion mark for deletion includes the content in the third area.
[0128] Optionally, the condition setting interface is used to set the following conditions:
[0129] Conditions to filter the table contents; or,
[0130] The condition that needs to be judged by the conditional judgment node in the workflow; or,
[0131] The conditions for setting permissions; or,
[0132] Conditions under which interface elements are shown and / or hidden.
[0133] Optionally, the condition setting operation is triggered on a node of a workflow in a table, and the workflow is used to automatically execute the workflow based on data in the table.
[0134] Since the device 300 is a device corresponding to the conditional configuration method provided by the above method embodiment, the specific implementation of each unit of the device 300 is based on the same concept as the above method embodiment. Therefore, regarding the specific implementation of each unit of the device 300, you can refer to the relevant description part of the above method embodiment, which will not be repeated here.
[0135] The embodiment of the present application also provides an electronic device, the electronic device comprising a processor and a memory;
[0136] The processor is used to execute the instructions stored in the memory, so that the electronic device executes the conditional configuration method provided by the above method embodiment.
[0137] An embodiment of the present application provides a computer-readable storage medium, including instructions, wherein the instructions instruct a device to execute the conditional configuration method provided in the above method embodiment.
[0138] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the conditional configuration method provided in the above method embodiment.
[0139] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0140] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0141] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A condition configuration method, characterized in that: The method comprises: In response to the condition setting operation, a condition setting interface is displayed, the condition display interface includes a first area and a second area, the first area is used to set a first condition group, the first condition group includes at least one condition, the at least one condition includes a first condition, the first area includes a first sub-area for setting the first condition, and a second sub-area displaying a first interaction identifier, the first interaction identifier is used to trigger setting of a second condition in the first condition group, the second area includes a second interaction identifier, and the second interaction identifier is used to trigger setting of the second condition group; In response to the operation triggered by the first interaction identifier, a first logical relationship candidate is displayed, the first logical relationship candidate includes a logical OR and a logical AND, and the first logical relationship candidate is used to set a logical relationship between the first condition and the second condition.
2. The method according to claim 1, characterized in that The method further comprises: In response to the operation triggered by the second interaction identifier, second logical relationship candidates are displayed, the second logical relationship candidates include logical OR and logical AND, and the second logical relationship candidates are used to set the logical relationship between the first condition grouping and the second condition grouping.
3. The method according to claim 1, characterized in that The display style of the first area is different from the display style of the second area.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In response to a selection operation triggered for the first option in the first logical relationship candidate items, a third sub-area for setting the second condition is displayed in the first area, and a first logical relationship identifier is displayed in the second sub-area, wherein the first logical relationship identifier is used to indicate that the logical relationship between the first condition and the second condition is the first option.
5. The method according to claim 4, characterized in that The method further comprises: In response to a preset operation triggered for the second sub-area, a first deletion mark is displayed, and the third sub-area is displayed in a first preset style, wherein the third sub-area is displayed in the preset style, and the content identified by the first deletion mark for deletion includes the content in the third sub-area.
6. The method according to claim 2, characterized in that The method further comprises: In response to a selection operation triggered for a second option in the second logical relationship candidate items, a third area is displayed in the condition setting interface, the third area is used to set the second condition grouping, and a second logical relationship identifier is displayed in the second area, the second logical relationship identifier is used to indicate that the logical relationship between the first condition grouping and the second condition grouping is the second option.
7. The method according to claim 6, characterized in that The method further comprises: In response to a preset operation triggered for the second area, a second deletion mark is displayed, and the third area is displayed in a second preset style, wherein the third area is displayed in the preset style, and the content marked by the second deletion mark for deletion includes the content in the third area.
8. The method according to claim 1, characterized in that The condition setting interface is used to set the following conditions: Conditions to filter the table contents; or, The condition that needs to be judged by the conditional judgment node in the workflow; or, The conditions for setting permissions; or, Conditions under which interface elements are shown and / or hidden.
9. The method according to claim 1, characterized in that: The condition setting operation is triggered for a node of a workflow in a table, and the workflow is used to automatically execute a workflow based on data in the table.
10. A condition configuration device, characterized in that: The device comprises: A first display unit, configured to display a condition setting interface in response to a condition setting operation, wherein the condition display interface includes a first area and a second area, wherein the first area is used to set a first condition group, wherein the first condition group includes at least one condition, wherein the at least one condition includes a first condition, wherein the first area includes a first sub-area for setting the first condition, and a second sub-area for displaying a first interaction identifier, wherein the first interaction identifier is used to trigger setting of a second condition in the first condition group, and wherein the second area includes a second interaction identifier, wherein the second interaction identifier is used to trigger setting of the second condition group; The second display unit is used to display first logical relationship candidates in response to the operation triggered by the first interaction identifier, wherein the first logical relationship candidates include logical OR and logical AND, and the first logical relationship candidates are used to set the logical relationship between the first condition and the second condition.
11. An electronic device, characterized in that: The electronic device comprises a processor and a memory; The processor is used to execute instructions stored in the memory so that the electronic device executes the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The method comprises instructions, wherein the instructions instruct a device to execute the method according to any one of claims 1 to 9.
Citation Information
Cited By
Initialization method and system for multi-dimensional configuration condition grading structure
CN120832166A
Initialization method and system of multi-dimensional configuration condition grading structure
CN120832166B