Data item selection method, device, storage medium and computer equipment
By displaying a set of function controls and data filtering rules, target data items can be quickly filtered out, solving the problem of inflexible data selection operations in the existing technology and improving user operation experience and selection efficiency.
Patent Information
- Application Number
- CN202210837078.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-15
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2042-07-15
AI Technical Summary
The data selection operation in the existing technology is inflexible and cannot adapt to complex and changing application scenarios, resulting in cumbersome and repetitive operations, which increases the operator's experience and burden.
By displaying the function control set and the data item set, the data filtering rules associated with the function control are queried based on the user selection instruction, the data item status is determined, and the target data items are filtered out according to the filtering rules and set to the checked state.
It optimizes the user operation experience, improves the efficiency of data item selection, enables users to efficiently locate target data items at the touch of a button, and reduces the changes in data items caused by selection linkage.
Smart Images

Figure CN115146129B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a method, device, storage medium and computer equipment for checking data items. Background Art
[0002] As business volume grows, the amount of data in business systems is also increasing. During data processing, multiple data items need to be checked. Currently, the checkboxes for data items support selecting all, selecting a single item, and deselecting all. This is not adaptable to complex and ever-changing application scenarios, especially when the data structure is too complex and the data volume is too large. This severely impacts the operator experience, making operations cumbersome and repetitive, increasing the operator burden. Summary of the Invention
[0003] The present invention provides a method, device, storage medium, and computer device for selecting data items, which can solve the problem of inflexible data selection operations in the prior art, resulting in low selection efficiency. The technical solution is as follows:
[0004] In a first aspect, an embodiment of the present application provides a method for selecting a data item, the method comprising:
[0005] Displaying the function control set and the data item set through the display unit;
[0006] Selecting a function control from the function control set based on a user's selection instruction;
[0007] Query the data filtering rules associated with the selected function control;
[0008] determining a status of a current data item in the set of data items;
[0009] filtering out target data items from the data item set based on the state of the current data item and the associated data filtering rule;
[0010] Set the target data item to a checked state.
[0011] In a second aspect, an embodiment of the present application provides a device for selecting a data item, the device comprising:
[0012] A push unit, configured to display a function control set and a data item set via a display unit;
[0013] a selection unit, configured to select a function control from the function control set based on a user's selection instruction;
[0014] A query unit, used for querying data filtering rules associated with a selected functional control;
[0015] a determining unit, configured to determine a status of a current data item in the data item set;
[0016] a filtering unit, configured to filter out a target data item from the data item set based on the state of the current data item and the associated data filtering rule;
[0017] The setting unit is used to set the target data item to a checked state.
[0018] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0019] In a fourth aspect, an embodiment of the present application provides a computer device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0020] The beneficial effects of the technical solutions provided by some embodiments of the present application include at least:
[0021] The extension includes a function control set with multiple function controls. The user selects a function control from the function control set according to actual needs, and then determines the target data item based on the data filtering rules associated with the selected function control and the current data item, and sets the target data item to a checked state. This application can optimize the user's operating experience and efficiently locate the target data items that the user is concerned about. It can quickly select the target data items that the user is concerned about. Compared with the prior art, which locates the data items and then filters and screens them layer by layer before locating the target data items, this application will not cause changes in the data items caused by mutual interference during the operation of the located data items due to selection linkage problems, so that users can efficiently locate data items at the touch of a button and improve the efficiency of checking data items. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 This is a schematic diagram of the network architecture provided by the embodiment of the present application;
[0024] Figure 2 Schematic diagram of a method for selecting data items provided in an embodiment of the present application;
[0025] Figure 3This is a schematic diagram of a user interface for selecting a directly superior node provided in an embodiment of the present application;
[0026] Figure 4 This is a schematic diagram of a user interface for selecting all parent nodes provided in an embodiment of the present application;
[0027] Figure 5 This is a schematic diagram of a user interface for selecting a directly subordinate node provided in an embodiment of the present application;
[0028] Figure 6 This is a schematic diagram of a user interface for selecting all subordinate nodes provided in an embodiment of the present application;
[0029] Figure 7 This is a schematic diagram of a user interface for selecting a peer node provided in an embodiment of the present application;
[0030] Figure 8 This is a structural diagram of a data item selection device provided by this application;
[0031] Figure 9 This is a structural diagram of a computer device provided by this application. DETAILED DESCRIPTION
[0032] In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
[0033] It should be noted that the method for checking data items provided in this application is generally executed by a computer device, and accordingly, the device for checking data items is generally set in the computer device.
[0034] Figure 1 An exemplary system architecture of a data item selection method or a data item selection device applicable to the present application is shown.
[0035] like Figure 1 As shown, the system architecture may include: a computer device 101 and a server 102. The computer device 101 and the server 102 may communicate via a network, which is used as a medium for providing communication links between the above-mentioned units. The network may include various types of wired communication links or wireless communication links, for example: wired communication links include optical fibers, twisted pairs, or coaxial cables, and wireless communication links include Bluetooth communication links, wireless fidelity (Wi-Fi) communication links, or microwave communication links.
[0036] Among them, the server 102 stores descriptive information of the data item set, which includes the parameter values of each data item and the data structure of the data item set. The data structure can be a tree-shaped result. The computer device 101 can obtain the descriptive information from the server 102 and then display the data item set through the display unit.
[0037] It should be noted that the computer device 101 and the server 102 can be hardware or software. When the computer device 101 and the server 102 are hardware, they can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the computer device 101 and the server 102 are software, they can be implemented as multiple software or software modules (for example, to provide distributed services) or as a single software or software module, without specific limitation herein.
[0038] Various communication client applications can be installed on the computer device of the present application, such as: video recording applications, video playback applications, voice interaction applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0039] The computer device can be hardware or software. When the computer device is hardware, it can be various computer devices with a display screen, including but not limited to smartphones, tablet computers, laptop computers, and desktop computers. When the computer device is software, it can be installed in the computer devices listed above. It can be implemented as multiple software or software modules (for example, to provide distributed services) or as a single software or software module, which is not specifically limited here.
[0040] When the computer device is hardware, it may also be equipped with a display device and a camera. The display device can be any device capable of displaying a video, and the camera is used to capture video streams. For example, the display device may be a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink screen, a liquid crystal display (LCD), or a plasma display panel (PDP). Users can use the display device on the computer device to view displayed text, images, videos, and other information.
[0041] It should be understood that Figure 1 The number of computer devices, networks, and servers in the embodiment is only illustrative. Any number of computer devices, networks, and servers may be used as needed.
[0042] The following will be combined with the Figure 2 , the data item selection method provided in the embodiment of the present application is described in detail. Among them, the data item selection device in the embodiment of the present application can be Figure 1 Computer equipment shown.
[0043] See Figure 2 , provides a flow chart of a method for selecting a data item in an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps:
[0044] S201: Display a function control set and a data item set via a display unit.
[0045] The function control set includes multiple function controls, each of which is a graphical control. Text can be set on the graphical control to represent its function. Each function control is associated with a data filtering rule, which represents the rule for filtering data items in the data item set. The data item set can be multiple data items forming a tree structure. Each data item in the data item set is called a node, and the tree structure has at least two layers. For nodes not on the last layer, the node may be associated with one or more subordinate nodes; for nodes not on the first layer, the node is associated with a superior node; nodes on the same layer are called sibling nodes.
[0046] Furthermore, the method for displaying a function control set includes: displaying a drop-down box on a user interface of a computer device, and displaying a function control set in a dialog box in response to a user's drop-down instruction, wherein the function control set includes a plurality of function controls.
[0047] In one or more possible embodiments, before S201, the process further includes: filtering out a tree-shaped data set from a data source based on a data filtering condition input by a user, where the data filtering condition includes a date, a unit, a business type, etc. For example, a conditional filtering box is provided on the user interface, and the user enters a parameter value for filtering in the conditional filtering box.
[0048] S202: Select a function control from the function control set based on a user's selection instruction.
[0049] Among them, the selection instruction can be triggered by the user through an input device such as a touch screen, mouse or keyboard. Based on the selection instruction, a function control is selected from the function control set, and the computer device can highlight the selected function control to facilitate the user to distinguish it.
[0050] In one or more possible embodiments, the method further includes:
[0051] The number of times a user uses each function control in a function control set within a preset time period is counted, and each function control is sorted in descending order according to the number of times used, that is, the function control with the most usage times is arranged in front, so that the arrangement of the function controls is more in line with the user's usage habits and is convenient for the user to choose.
[0052] S203: Query the data filtering rules associated with the selected function control.
[0053] The computer device pre-stores or pre-configures a mapping relationship between the function control and the data filtering rule, and queries the data filtering rule associated with the function control selected in S202 according to the mapping relationship.
[0054] S204: Determine the status of the current data item in the data item set.
[0055] The current data item is the selected data item in the data item set. The number of current data items can be one or more, and the selected current data item can be displayed in a highlighted manner. The status of the current data item is either checked or unchecked. Checked data items can be distinguished by a check mark. For example, a box is set in front of each data item. When the data item is checked, a check mark √ is displayed in the box; if it is unchecked, no check mark is displayed in the box.
[0056] S205: Filter out target data items from the data item set based on the status of the current data item and the associated data filtering rule.
[0057] S206: Set the target data item to a checked state.
[0058] The associated data regularity rule indicates checking the current node, checking the immediate upper node, checking all upper nodes, checking the immediate lower node, checking all lower nodes, or checking the same-level node.
[0059] Check the current node: If the current data item is unchecked, when the corresponding function control is selected, the current data item will be switched to the unchecked state; if the current data item is checked, when the corresponding function control is selected, the current data item will be switched to the checked state.
[0060] Check the direct parent node: If the current data item is unchecked or checked, when the corresponding function control is selected, the current data item and the parent node of the current data item are used as the target data items.
[0061] For example, see Figure 3In the user interface diagram shown, the currently selected data items are numbered according to the sequence number: data item 9, data item 17, and data item 19. After clicking the drop-down instruction in the drop-down box "Selection method", a function control set is displayed, which includes the following function controls: automatically check the direct superior, automatically check all superiors, automatically check the direct subordinates, automatically check all subordinates, and automatically check the same level. When the function control "automatically check the direct superior" is selected, the direct superior node of data item 9 is determined to be data item 4, the direct superior node of data item 17 is data item 11, and the direct superior node of data item 19 is data item 18. Then, the current data items 4, 9, 11, 17, 18, and 19 are selected as target data items and set to a checked state, and check marks √ are added to the boxes of the above data items.
[0062] Check all parent nodes: If the current data item is unchecked or unchecked, when the corresponding function control is selected, the current data item and all parent nodes of the current data item are used as target data items.
[0063] For example, see Figure 4 In the user interface diagram shown, the current data item selected in the data item set is data item 17. When the function control "Automatically check all superiors" is selected, all superior nodes of data item 17 are determined to be: data item 11 (direct superior node), data item 10, data item 4, data item 3 and data item 2. The above data items and data item 17 are used as target data items, and the target data items are set to a checked state. A check mark √ is added to the box of each data item.
[0064] Check the directly subordinate nodes: If the current data item is unchecked or checked, when the corresponding function control is selected, the current data item and the directly subordinate nodes of the current data item are used as target data items.
[0065] For example, see Figure 5 In the user interface diagram shown, the currently selected data items in the data item set are data item 2, data item 10, and data item 18. The direct subordinate node of data item 2 is determined to be data item 3, the direct subordinate node of data item 10 is data item 11, and the direct subordinate node of data item 18 is data item 19. Data item 2, data item 3, data item 10, data item 11, data item 18, and data item 19 are used as target data items. The target data items are set to a checked state, and a check mark √ is added to the box of each data item.
[0066] Check all subordinate nodes: If the current data item is unchecked or checked, when the corresponding function control is selected, the current data item and all subordinate nodes of the current data item will be used as target data items.
[0067] For example, see Figure 6 In the user interface diagram shown, the currently selected data items in the data item set are data item 4 and data item 11. It is determined that all subordinate nodes of data item 4 are: data item 5 to data item 9, and all subordinate nodes of data item 11 are data item 12 to data item 17. Data items 4 to data item 9 and data items 11 to 17 are used as target data items, and the target data items are set to a checked state. A check mark √ is added to the box of each data item.
[0068] Check the same-level nodes: If the current data item is unchecked or checked, when you select the corresponding function control, the current data item and the same-level nodes of the current data item will be used as the target data items.
[0069] For example, see Figure 7 In the user interface diagram shown, the currently selected data item in the data item set is data item 4, the peer node of data item 4 is determined to be data item 10, data item 4 and data item 10 are used as target data items, the target data items are set to a checked state, and a check mark √ is added to the box of each data item.
[0070] In one or more possible embodiments, it further includes:
[0071] Configuring function controls and associated data filtering rules, and adding the configured function controls to a function control collection, allows users to flexibly configure data filtering rules based on actual operational needs, thereby improving adaptability to various usage scenarios.
[0072] In one or more possible embodiments, the method further includes: performing a calculation on the parameter value of the target data item, and displaying the calculation result on a display unit. For example, a formula editing control is provided on the user interface, and the user edits the calculation formula in the formula editing control, then obtains the parameter value of the target data item, performs a calculation using the calculation formula to obtain a calculation result, and displays the calculation result on the display unit.
[0073] When checking a data item, the embodiment of the present application expands a function control set including multiple function controls according to business needs and user usage habits. The user selects a function control from the function control set according to actual needs, and then determines the target data item based on the data filtering rules associated with the selected function control and the current data item, and sets the target data item to a checked state. The present application can optimize the user's operating experience and efficiently locate the target data items that the user is interested in, and can quickly select the target data items that the user is interested in. Compared with the prior art, which locates the data item and then filters and screens it layer by layer before locating the target data item, the present application will not cause changes in the data items due to mutual interference caused by selection linkage problems during the operation of the located data items, so that the user can efficiently locate the data items at the touch of a button and improve the efficiency of checking the data items.
[0074] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0075] See Figure 8 , which shows a schematic diagram of the structure of a device for selecting data items provided by an exemplary embodiment of the present application, hereinafter referred to as device 8. Device 8 can be implemented as all or part of a computer device through software, hardware, or a combination of both. Device 8 includes a push unit 801, a selection unit 802, a query unit 803, a determination unit 804, a filtering unit 805, and a setting unit 806.
[0076] The push unit 801 is configured to display the function control set and the data item set via the display unit;
[0077] A selection unit 802, configured to select a function control from the function control set based on a user's selection instruction;
[0078] A query unit 803 is used to query data filtering rules associated with the selected function control;
[0079] a determining unit 804, configured to determine a status of a current data item in the data item set;
[0080] A filtering unit 805 is configured to filter out target data items from the data item set based on the state of the current data item and the associated data filtering rule;
[0081] The setting unit 806 is configured to set the target data item to a checked state.
[0082] In one or more possible embodiments, it further includes:
[0083] Configuration unit, used to configure function controls and associated data filtering rules;
[0084] Add the configured function control to the function control set.
[0085] In one or more possible embodiments, the data item set is a tree-shaped data item set, and the associated data filtering rule represents selecting the current node, selecting the direct upper node, selecting all upper nodes, selecting the direct lower node, selecting all lower nodes, or selecting a peer node.
[0086] In one or more possible embodiments, the function control set is generated based on a user's pull-down instruction on a pull-down box.
[0087] In one or more possible embodiments, it further includes:
[0088] The filtering unit is used to filter out a tree-shaped data set from a data source based on a data filtering condition input by a user.
[0089] In one or more possible embodiments, it further includes:
[0090] The sorting unit is used to count the number of times a user uses each function control in the function control set within a preset time period, and sort each function control in descending order according to the number of times.
[0091] In one or more possible embodiments, it further includes:
[0092] The operation unit is used to operate the parameter value of the target data item and display the operation result through the display unit.
[0093] It should be noted that the device 8 provided in the above embodiment, when executing the method for selecting data items, is merely illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the above functions. In addition, the data item selection device and the data item selection method provided in the above embodiment are based on the same concept. The implementation process is detailed in the method embodiment and will not be repeated here.
[0094] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0095] The present application also provides a computer storage medium that can store multiple instructions, which are suitable for being loaded and executed by a processor as described above. Figure 2 The method steps of the embodiment shown, the specific execution process can be found in Figure 2 The detailed description of the illustrated embodiment will not be repeated here.
[0096] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for checking data items as described in the above embodiments.
[0097] See Figure 9 , provides a schematic diagram of the structure of a computer device according to an embodiment of the present application. Figure 9 As shown, the computer device 900 may include: at least one processor 901 , at least one network interface 904 , a user interface 903 , a memory 905 , and at least one communication bus 902 .
[0098] The communication bus 902 is used to implement connection and communication between these components.
[0099] The user interface 903 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 903 may also include a standard wired interface and a wireless interface.
[0100] The network interface 904 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0101] The processor 901 may include one or more processing cores. The processor 901 utilizes various interfaces and circuits to connect the various components within the entire computer device 900. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 905, and accessing data stored in the memory 905, the processor 901 performs various functions of the computer device 900 and processes data. Optionally, the processor 901 may be implemented using at least one hardware form selected from the group consisting of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 901 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is responsible for handling wireless communications. It is understood that the modem may not be integrated into the processor 901 and may be implemented separately on a single chip.
[0102] Among them, the memory 905 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 905 includes a non-transitory computer-readable storage medium. The memory 905 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 905 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 905 may also be optionally at least one storage device located away from the aforementioned processor 901. As Figure 9 As shown, the memory 905 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program.
[0103] exist Figure 9 In the computer device 900 shown, the user interface 903 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 901 can be used to call the application stored in the memory 905 and specifically execute the following Figure 2 The specific process can be referred to the method shown in Figure 2 As shown, no further details are given here.
[0104] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The program can be stored in a computer-readable storage medium, and when executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory, or a random access memory.
[0105] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A method for selecting a data item, characterized in that: include: Displaying a function control set and a data item set through a display unit; the data item set is a tree structure; Selecting a function control from the function control set based on a user's selection instruction; the function control set includes the following function controls: selecting only the current node, automatically checking the immediate superior, automatically checking all superiors, automatically checking the immediate subordinates, automatically checking all subordinates, and automatically checking the same level; Query the data filtering rules associated with the selected function control; Determine the state of a current data item in the data item set; the current data item is a selected data item in the data item set, and the selected current data item is represented by highlighting; the state of the current data item is a checked state or an unchecked state; filtering out target data items from the data item set based on the associated data filtering rule; The state of the target data item is set to be the same as the state of the current data item.
2. The method according to claim 1, characterized in that Also includes: Configure functional controls and associated data filtering rules; Add the configured function control to the function control set.
3. The method according to claim 1, characterized in that The data item set is a tree-shaped data item set, and the associated data filtering rule represents selecting the current node, selecting the direct upper node, selecting all upper nodes, selecting the direct lower node, selecting all lower nodes, or selecting a node at the same level.
4. The method according to claim 1, 2 or 3, characterized in that: The function control set is generated based on a user's pull-down instruction on the drop-down box.
5. The method according to claim 1, wherein Before displaying the function control set and the data item set through the display unit, the method further includes: Filter out a tree-shaped data set in the data source based on the data filtering conditions entered by the user.
6. The method according to claim 1 or 2 or 3 or 5, characterized in that Also includes: The number of times a user uses each function control in the function control set within a preset time period is counted, and each function control is sorted in descending order according to the number of times.
7. The method according to claim 6, characterized in that Also includes: The parameter value of the target data item is operated, and the operation result is displayed through the display unit.
8. A device for selecting data items, characterized in that: include: A push unit, configured to display a function control set and a data item set via a display unit; The data item set is a tree structure; A selection unit, configured to select a function control from the function control set based on a user's selection instruction; the function control set includes the following function controls: select only the current node, automatically check the direct superior, automatically check all superiors, automatically check the direct subordinate, automatically check all subordinates, and automatically check the same level; A query unit is used to query the data filtering rules associated with the selected function control; the current data item is the selected data item in the data item set, and the selected current data item is represented by a highlighted state; the state of the current data item is a checked state or an unchecked state; a determining unit, configured to determine a status of a current data item in the data item set; a filtering unit, configured to filter out target data items from the data item set based on the associated data filtering rule; A setting unit is configured to set the state of the target data item to be the same as the state of the current data item.
9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 7.
10. A computer device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps according to any one of claims 1 to 7.
Citation Information
Patent Citations
Use control system and method based on tree diagram organizational structure selector
CN113625920A