Form-based data screening method, device and equipment and storage medium
By displaying progressively filtering controls and filter items in the form filtering interface, users can select filtering conditions step by step, solving the problem of cumbersome operation in existing technologies and realizing an intuitive and simplified data filtering process.
Patent Information
- Application Number
- CN202311175576.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-12
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2043-09-12
AI Technical Summary
In existing technologies, users need to trigger header data to display dropdown options, making data filtering operations unintuitive and cumbersome.
This paper provides a form-based data filtering method. By displaying progressively filtering controls and filter items in the form filtering interface, users can select filtering conditions step by step, simplifying the operation and intuitively viewing the filtering results.
It achieves a step-by-step filtering effect, eliminating the need for users to trigger each header data individually, simplifying the operation process and improving the intuitiveness and practicality of data filtering.
Smart Images

Figure CN117216388B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a form-based data filtering method, apparatus, device, and storage medium. Background Technology
[0002] With the development of computer technology, users can browse information through websites. Website webpages typically display data using forms, which are page elements used to facilitate information interaction between users and servers. Forms offer filtering functions; users set filter criteria, triggering the device to select and display data items that meet those criteria, allowing users to view the displayed data.
[0003] In related technologies, the device sets the filterable header data in the form as a drop-down list. The user selects the desired option from the multiple options displayed in the drop-down list to obtain the filter conditions. Then, the device sends the filter conditions to the server. The server filters based on the filter conditions and returns the filter results. The device then displays the filter results.
[0004] In the aforementioned technology, users need to trigger the header data to activate multiple options in the drop-down menu displayed on the device. The data display is not intuitive, and the operation is relatively cumbersome. Summary of the Invention
[0005] This application provides a form-based data filtering method, apparatus, device, and storage medium that achieves a step-by-step filtering effect, allowing users to gradually find the data they want, thus enhancing its practicality.
[0006] In a first aspect, this application provides a form-based data filtering method applied to a user device, the method comprising:
[0007] In response to the triggering of the first filter control in the form data interface corresponding to the target form, a form filter interface is displayed; the form filter interface displays a hierarchical filter control and a first filter area; the first filter area displays a second filter control and multiple first options corresponding to each of the multiple first filter items.
[0008] In response to the triggering of the second filter control, a first filter result is obtained based on the first filter condition, and the first filter result is displayed; the first filter condition includes at least one selected first option, and the first filter result includes target data items in the target form that meet the first filter condition;
[0009] In response to the hierarchical filtering control being triggered, a second filtering region is displayed in a lower region of the first filtering region; the second filtering region displays a third filtering control and at least one second option corresponding to each of the at least one second filtering option; and the second options displayed in the second filtering region at least include the at least one selected first option.
[0010] In response to the third filtering control being triggered, a second filtering result is obtained based on a second filtering condition, and the first filtering result is updated and displayed as the second filtering result; the second filtering condition includes the at least one selected second option, and the second filtering result includes target data items in the first filtering result that meet the second filtering condition.
[0011] Optionally, in response to the second filtering control being triggered, a first filtering result is obtained based on a first filtering condition, including:
[0012] In response to the second filtering control being triggered, the first filtering condition is obtained.
[0013] A first filtering request is sent to a server, the first filtering request carrying the first filtering condition, so that the server performs filtering on the target form based on the first filtering condition in response to the first filtering request to obtain the first filtering result.
[0014] The first filtering result sent by the server is received.
[0015] Optionally, in response to the third filtering control being triggered, a second filtering result is obtained based on a second filtering condition, including:
[0016] In response to the third filtering control being triggered, the second filtering condition is obtained.
[0017] A second filtering request is sent to the server, the second filtering request carrying the second filtering condition, so that the server performs filtering on the first filtering result based on the second filtering condition in response to the second filtering request to obtain the second filtering result.
[0018] The second filtering result sent by the server is received.
[0019] Optionally, the method further includes:
[0020] In response to the hierarchical filtering control being triggered, the second filtering control is removed from display in the first filtering region.
[0021] Optionally, the form filtering interface further displays a clear control; and the method further includes:
[0022] In response to the emptying control being triggered, the form filtering interface is initialized and displayed.
[0023] Optionally, the first filtering area further displays an exporting control; in response to the second filtering control being triggered, the first filtering result is obtained based on the at least one selected first option, and after the first filtering result is displayed in the form data display area, the method further comprises:
[0024] In response to the exporting control being triggered, the first filtering result is exported to obtain the first filtering result in a preset format.
[0025] Optionally, the plurality of first filtering options belong to a selection type; the first filtering area further displays an input box corresponding to at least one first filtering option belonging to an input type, and a date selection control corresponding to at least one first filtering option belonging to a date type.
[0026] In a second aspect, the present application provides a form-based data filtering device applied to a user equipment, the device comprising:
[0027] A first display module is configured to display a form filtering interface in response to a first filtering control in a form data interface corresponding to a target form being triggered; the form filtering interface displays a hierarchical filtering control and a first filtering area; the first filtering area displays a second filtering control and a plurality of first options corresponding to each of a plurality of first filtering options;
[0028] A first obtaining module is configured to obtain a first filtering result based on a first filtering condition in response to the second filtering control being triggered, and display the first filtering result; the first filtering condition comprises at least one selected first option, and the first filtering result comprises target data items in the target form that meet the first filtering condition;
[0029] A second display module is configured to display a second filtering area in a lower area of the first filtering area in response to the hierarchical filtering control being triggered; the second filtering area displays a third filtering control and at least one second option corresponding to each of at least one second filtering option; the second options displayed in the second filtering area at least include the at least one selected first option;
[0030] A second obtaining module is configured to obtain a second filtering result based on a second filtering condition in response to the third filtering control being triggered, and update and display the first filtering result as the second filtering result; the second filtering condition comprises at least one selected second option, and the second filtering result comprises target data items in the first filtering result that meet the second filtering condition.
[0031] In a third aspect, the present application provides a user equipment, comprising: a processor, and a transceiver, which are communicatively connected with the processor respectively;
[0032] The memory stores computer-executable instructions; and the transceiver is configured to transceive data with a server.
[0033] The processor executes the computer-executable instructions stored in the memory to implement the form-based data filtering method according to any one of the first aspect.
[0034] In a fourth aspect, the present application provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the form-based data filtering method according to any one of the first aspect.
[0035] In a fifth aspect, the present application provides a computer program product, which comprises computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the form-based data filtering method according to any one of the first aspect.
[0036] The form-based data filtering method, device, equipment and storage medium provided by the present application provide a form filtering interface for filtering a target form. A user can filter the target form by performing a corresponding triggering operation in the form filtering interface. The form filtering interface displays a plurality of options corresponding to each filtering item, so that the user can comprehensively and intuitively view the options. In this way, the user does not need to trigger the table header data one by one, thereby simplifying the user operation. On this basis, the form filtering interface also displays a hierarchical filtering control. After the target form is filtered for the first time, if the user still wants to further filter, the hierarchical filtering control can be triggered, so that the second filtering is performed on the basis of the first filtering result obtained in the first filtering, to obtain a second filtering result. In this way, the user can gradually find the desired data, and the practicability is higher. BRIEF DESCRIPTION OF DRAWINGS
[0037] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0038] Figure 1 is a schematic diagram of an application scenario according to an exemplary embodiment;
[0039] Figure 2 is a flowchart of a form-based data filtering method according to an exemplary embodiment;
[0040] Figure 3 is a flow diagram of a form-based data filtering method according to another example embodiment;
[0041] Figure 4 is a schematic diagram of a form filtering interface according to an example embodiment;
[0042] Figure 5 is a schematic diagram of a form filtering interface according to another example embodiment;
[0043] Figure 6 is a structural schematic diagram of a form-based data filtering apparatus according to an example embodiment;
[0044] Figure 7 is a structural schematic diagram of a user device according to an example embodiment.
[0045] The specific embodiments of the present application have been shown and described in the above drawings and text, and will be described in more detail in the following. These drawings and text are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0046] The example embodiments will be described in detail herein with reference to the accompanying drawings. In the following description, the same numbers refer to the same or similar elements unless otherwise represented. The embodiments described in the following example embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present application, as detailed in the appended claims.
[0047] The terms "first", "second", and the like are used only for descriptive purposes, and are not to be construed as indicating or implying relative importance or a specific number of the technical features indicated. In the description of the following embodiments, the meaning of "a plurality of" is two or more, unless otherwise specifically limited.
[0048] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards, and provide corresponding operation portal for user to choose authorization or refusal.
[0049] In order to clearly understand the technical solutions of the present application, the prior art solutions are first described in detail.
[0050] With the development of computer technology, users can browse information through a website, and the webpage corresponding to the website generally displays data through a form. The form is a page element for realizing information interaction between a user and a server. The form is composed of header data and list data. The header data includes a plurality of column names, and the list data includes a plurality of data items. Each data item contains a data item belonging to each column name. For ease of understanding, the form can also be referred to as a table. The form provides a filtering function. A user sets a filtering condition, triggers a device to filter data items meeting the condition from the form, and displays the data items, so that the user can view the displayed data items.
[0051] In the related art, a device sets header data capable of being filtered in a form as a drop-down box style. A user selects a required option from a plurality of options displayed in the drop-down box to obtain a filtering condition, and then triggers the device to send the filtering condition to a server. The server filters the form based on the filtering condition and returns a filtering result. The device displays the filtering result.
[0052] In the above technology, the user needs to trigger the header data to trigger the device to display a plurality of options in the drop-down box. The data display is not intuitive, and the operation is relatively cumbersome.
[0053] To solve the problem that the data display is not intuitive and the operation is relatively cumbersome in the prior art, the inventors have found in research that, to solve the problem, a plurality of options corresponding to each header data capable of being filtered can be directly displayed for a user to select, without the user triggering the header data one by one, which is more intuitive. Specifically, the present application provides a form filtering interface for filtering a target form. A user realizes filtering of the target form by performing a corresponding triggering operation in the form filtering interface. A plurality of options corresponding to each filtering option are displayed in the form filtering interface for the user to comprehensively and intuitively view. In this way, the user does not need to trigger the header data one by one, simplifying the user operation. On this basis, a step-by-step filtering control is also displayed in the form filtering interface. After a first filtering of the target form, if the user still wants to further filter, the user can trigger the step-by-step filtering control, so as to perform a second filtering on the basis of a first filtering result obtained in the first filtering, to obtain a second filtering result, and so on, until a result satisfying the user is filtered out, realizing the effect of step-by-step filtering. In this way, the user can gradually find the desired data, and the practicality is stronger.
[0054] The application scenario of the form-based data filtering method provided by the embodiments of the present application is introduced below.
[0055] Figure 1 is a schematic diagram of an application scenario according to an example embodiment. As shown in Figure 1As shown, the application scenario includes: a user device 1 and a server 2. The devices are connected through a network.
[0056] The user device 1 is a device used by a form operation user, and the form operation user is referred to as a user for brevity in the following description. The server 2 is a server that provides background services for the user device 1. In an application scenario, the number of user devices 1 is multiple, and the application scenarios corresponding to the respective user devices 1 are similar. For brevity, Figure 1 An example of a user device 1 is taken. In this embodiment, when the user needs to filter a target form, the user device 1 is triggered to display a form filtering interface. Then, the user triggers the user device 1 to perform a first filtering in the form filtering interface, obtains a first filtering result, and if the user wants to further filter on the basis of the first filtering, triggers a step-by-step filtering control, thereby triggering the user device 1 to perform a second filtering on the basis of the first filtering result, obtains a second filtering result, and the user device 1 displays each filtering result for the user to view. Optionally, the user device 1 sends filtering conditions to the server each time the filtering is performed, so as to obtain the filtering result with the aid of the server.
[0057] The technical solutions of the present application and how the technical solutions solve the above technical problems will be described in detail in the following specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes can not be described again in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.
[0058] Figure 2 is a flowchart of a form-based data filtering method according to an exemplary embodiment. The form-based data filtering method provided by the present application is executed by a form-based data filtering device integrated in a user device. For example, the user device is a computer, a mobile phone, or other smart terminals. As Figure 2 As shown, the form-based data filtering method provided by the present embodiment includes the following steps.
[0059] Step S101, in response to a first filtering control in a form data interface corresponding to a target form being triggered, a form filtering interface is displayed; the form filtering interface displays a step-by-step filtering control and a first filtering area; the first filtering area displays a second filtering control and a plurality of first selection items corresponding to a plurality of first selection items, respectively.
[0060] The target form is any form that provides a form query function, for example, an office supplies procurement form, a student admission information form, a commuting method record form, or other forms.
[0061] The form data interface is used to display form data corresponding to the target form, and the form data includes header data and body data. In the related art, filtering is directly performed on the form data interface. In order to save interface display resources and display space, the column name in the header data that supports filtering is usually set as a drop-down box, and the corresponding options are displayed only when the drop-down box is triggered by the user. In this way, the user needs to trigger each displayed drop-down box one by one to completely see the options, and the operation is relatively cumbersome. In the present application, a first filtering control is arranged in the form data interface, and the first filtering control is used to trigger the display of a form filtering interface. When the user wants to filter the target form, the first filtering control can be triggered to trigger the user equipment to display the form filtering interface. Exemplarily, the first filtering control is a button with the word "filter" displayed.
[0062] The form filtering interface is used to filter the target form. Exemplarily, the form filtering interface can be a separate interface or a pop-up window. The hierarchical filtering control displayed in the form filtering interface is used to trigger the display of the next level of filtering area. The first filtering area refers to the first level of filtering area. If the form filtering interface currently displays the first filtering area, the user equipment displays the second filtering area when the hierarchical filtering control is triggered. The second filtering area refers to the second level of filtering area. If the form filtering interface currently displays the first filtering area and the second filtering area, the user equipment displays the third filtering area when the hierarchical filtering control is triggered. The third filtering area refers to the third level of filtering area. Similarly, in the subsequent process, the next level of filtering area is displayed when the hierarchical filtering control is triggered, and the process is similar to the above process, which will not be described here. Exemplarily, the hierarchical filtering control is a button with the word "hierarchical filtering" or "further filtering" or other words for prompting the function of the control.
[0063] The second filtering control displayed in the first filtering area is used to trigger the filtering of the target form. Exemplarily, the second filtering control is a button with the word "filter" displayed. The plurality of first filtering options are column names in the header data that support filtering. The plurality of first options corresponding to each first filtering option are also the plurality of options displayed in the drop-down box when the column name is triggered in the related art. For example, the first filtering option is an enrolled school, and the plurality of first options corresponding thereto include school 1, school 2 and school 3. For another example, the first filtering option is an enrolled major, and the plurality of first options corresponding thereto include major 1, major 2 and major 3.
[0064] It should be noted that when the plurality of first options corresponding to each first filtering option are displayed, the user equipment can also display the plurality of first options belonging to the same first filtering option together, and also display the filtering option name corresponding to the first filtering option, that is, the column name, so as to distinguish the options for the user.
[0065] In this embodiment, the user views the plurality of first options corresponding to each first filtering item through the form filtering interface, selects the desired first option, and triggers the second filtering control to trigger the user equipment to filter the target form. Accordingly, the user equipment performs step S102.
[0066] In step S102, in response to the second filtering control being triggered, the first filtering result is obtained based on the first filtering condition, and the first filtering result is displayed. The first filtering condition includes at least one selected first option, and the first filtering result includes target data items in the target form that meet the first filtering condition.
[0067] In this embodiment, the first filtering condition includes at least one selected first option, and the first filtering condition includes at least one selected first option. In addition, the first filtering condition includes the filtering item content corresponding to the first filtering item to which each selected first option belongs. The filtering item content includes a filtering item identifier and a filtering item name. The process of obtaining the first filtering result based on the first filtering condition includes filtering target data items in the target form that meet the first filtering condition to obtain the first filtering result. The first filtering result includes information indicating that the data items are filtered or information indicating that the data items are not filtered. In the case where the first filtering result includes information indicating that the data items are filtered, the first filtering result further includes target data items in the target form that meet the first filtering condition.
[0068] In this embodiment, the form filtering interface also displays form data, which includes header data and body data, and the form data is displayed in a table format. For example, the process of displaying the first filtering result includes updating the body data displayed in the form filtering interface to the first filtering result. It should be noted that in the case where the first filtering result includes information indicating that the data items are filtered, only the body data can be updated and displayed as the target data items, and the information indicating that the data items are filtered need not be displayed, so as to save display resources and display space.
[0069] In one application scenario, after the first filtering, in the case where the first filtering result includes information indicating that the data items are filtered, the user can further filter the target form, i.e., filter the first filtering result obtained by the first filtering. Accordingly, the user equipment performs step S103.
[0070] In another application scenario, in the case that the first filtering result includes information indicating that no data item is filtered out, it indicates that there is no data item in the target form that meets the first filtering condition, in which case, the target form cannot be further filtered, and accordingly, the user device grays out the hierarchical filtering control to indicate that the hierarchical filtering control is currently unavailable. In this case, the user can reselect the desired first option in the first filtering area and trigger the second filtering control to trigger the user device to filter the target form, and accordingly, the user device performs step S102.
[0071] In step S103, in response to the hierarchical filtering control being triggered, a second filtering area is displayed below the first filtering area; the second filtering area displays a third filtering control and at least one second option corresponding to each second filtering option of the at least one second filtering option, and the second options displayed in the second filtering area at least include the at least one selected first option.
[0072] The third filtering control displayed in the second filtering area is used to trigger filtering of the first filtering result. For example, the third filtering control is a button displaying the word "filter". The plurality of second filtering options includes two types of filtering options, the first type of filtering option is the first filtering option to which the selected first option belongs in the last filtering, and the second type of filtering option is the first filtering option that is not selected in the last filtering, which means that the corresponding plurality of first options are not selected. The at least one second option corresponding to the first type of filtering option is the selected first option in the last filtering, and the second option corresponding to the second type of filtering option is the entire first option corresponding to the second type of filtering option.
[0073] The display style of the second filtering area is similar to that of the first filtering area, which will not be described here.
[0074] In this embodiment, the user views each second option through the form filtering interface, selects the desired second option, and triggers the third filtering control to trigger the user device to filter the first filtering result, and accordingly, the user device performs step S104.
[0075] In step S104, in response to the third filtering control being triggered, a second filtering result is obtained based on a second filtering condition, and the first filtering result is updated and displayed as the second filtering result; the second filtering condition includes the at least one selected second option, and the second filtering result includes the target data item in the first filtering result that meets the second filtering condition.
[0076] The second filtering condition includes, in addition to the at least one selected second option, a filtering item content corresponding to a second filtering item to which each selected second option belongs, and the filtering item content includes a filtering item identifier and a filtering item name. The process of obtaining the second filtering result based on the second filtering condition includes: filtering, in the first filtering result, a target data item that meets the second filtering condition to obtain the second filtering result. The second filtering result includes information indicating a filtered data item or information indicating an unfiltered data item. In the case where the second filtering result includes information indicating a filtered data item, the second filtering result further includes the target data item in the first filtering result that meets the second filtering condition.
[0077] In an application scenario, in the case where the second filtering result includes information indicating an unfiltered data item, it indicates that there is no data item in the first filtering result that meets the second filtering condition. In this case, the target form cannot be further filtered, and accordingly, the user device grays out the hierarchical filtering control to indicate that the hierarchical filtering control is currently unavailable. In this case, the user can reselect a needed second option in the second filtering area and trigger the third filtering control to trigger the user device to filter the target form, and accordingly, the user device performs step S104.
[0078] In another application scenario, after the second filtering, in the case where the second filtering result includes information indicating a filtered data item, the user can still want to further filter the target form, that is, to filter on the basis of the second filtering result obtained after the second filtering. In this case, the user can trigger the hierarchical filtering control, and accordingly, the user device displays a third filtering area, and the filtering process through the third filtering area is described with reference to steps S103-S104 and will not be described herein again.
[0079] By analogy, after the first filtering, if the user wants to further filter the target form, the user can trigger the hierarchical filtering control to trigger the user device to display an Nth filtering area, and the filtering process through the Nth filtering area is described with reference to steps S103-S104 and will not be described herein again. N is a positive integer greater than 1.
[0080] In the embodiment, a form filtering interface is provided for filtering a target form, and a user filters the target form by triggering a corresponding operation in the form filtering interface. The form filtering interface displays a plurality of options corresponding to each filtering item, so that the user can comprehensively and intuitively view the options. In this way, the user does not need to trigger the table header data one by one, and the user operation is simplified. On this basis, the form filtering interface also displays a hierarchical filtering control. After the target form is filtered for the first time, if the user still wants to further filter, the hierarchical filtering control can be triggered to perform a second filtering based on the first filtering result obtained in the first filtering, and obtain a second filtering result. In this way, the user can gradually find the desired data, and the practicability is higher.
[0081] Figure 3 is a flow diagram of a form-based data filtering method according to another exemplary embodiment. As shown in Figure 3 the embodiment, the form-based data filtering method provided in the embodiment includes the following steps. Figure 2
[0082] Step S201: In response to the first filtering control in the form data interface corresponding to the target form being triggered, a form filtering interface is displayed. The form filtering interface displays a hierarchical filtering control and a first filtering area. The first filtering area displays a second filtering control and a plurality of first options corresponding to each first filtering item in a plurality of first filtering items.
[0083] In the embodiment, the implementation of step S201 is the same as that of step S101 in the previous embodiment, and thus will not be described herein.
[0084] In an optional implementation, the plurality of first filtering items belong to a selection type. The first filtering area also displays an input box corresponding to at least one first filtering item belonging to an input type, and a date selection control corresponding to at least one first filtering item belonging to a date type.
[0085] Considering that there are various types of first filtering items, when the filtering condition setting control corresponding to the first filtering item is displayed, the display can be distinguished according to the type of the first filtering item. If the first filtering item belongs to a selection type, the filtering condition setting control is displayed as an option, so that the user can select, for example, a first option. If the first filtering item belongs to an input type, the filtering condition setting control is displayed as an input box, so that it can be used for input. If the first filtering item belongs to a date type, the filtering condition setting control is displayed as a date selection control, for example, a date selector, so that it can be used for selection.
[0086] In the present implementation, the first filtering condition setting control is displayed according to the type of the first filtering option, so that the user can flexibly set the filtering condition, thereby improving the flexibility of the filtering condition setting and enriching the interface display content.
[0087] In an optional implementation, the process of displaying the form filtering interface includes: the user device acquires the form data and the filtering option data by calling the interface provided by the server, and renders the current interface according to the form data and the filtering option data to obtain the form filtering interface. The iuputData array in the filtering option data is used to construct the display of the input type first filtering option; the selectData array in the filtering option data is used to construct the display of the selection type first filtering option; and the dateData array in the filtering option data is used to construct the display of the date type first filtering option. Each type of array includes the filtering option identifier (code) and the filtering option name (name). If the first filtering option belongs to the selection type, the array further includes the option data (optionData).
[0088] In the present application, the data filtering process under each type is the same, and the present embodiment takes the selection type first filtering option as an example to describe the data filtering process.
[0089] After step S201, the user views the plurality of first options corresponding to each first filtering option through the form filtering interface, selects the required first option, and triggers the second filtering control to trigger the user device to filter the target form. Correspondingly, the user device acquires the first filtering result based on the first filtering condition and displays the first filtering result in response to the second filtering control being triggered. Optionally, the implementation of the present step includes steps S202-S205.
[0090] Step S202: In response to the second filtering control being triggered, the first filtering condition is acquired.
[0091] The first filtering condition includes at least one selected first option, and the first filtering condition further includes the filtering option content corresponding to the first filtering option to which each selected first option belongs, the filtering option content including the filtering option identifier and the filtering option name.
[0092] Step S203: A first filtering request is sent to the server, the first filtering request carrying the first filtering condition, so that the server filters the target form based on the first filtering condition in response to the first filtering request to obtain the first filtering result.
[0093] The user equipment sends a first screening request to the server by calling an interface of the server. The server sends the first screening result to the user equipment after obtaining the first screening result. The first screening result includes target data items in the target form that meet the first screening condition.
[0094] In step S204, the first screening result sent by the server is received.
[0095] The above steps S202-S204 provide an implementation manner of obtaining a first screening result based on a first screening condition. The user equipment serves as a medium for human-computer interaction, sends the first screening condition to the server through data interaction with the server, and obtains the first screening result by screening the target form through the server.
[0096] In step S205, the first screening result is displayed.
[0097] In step S206, in response to the hierarchical screening control being triggered, a second screening area is displayed below the first screening area. The second screening area displays third screening controls and at least one second option corresponding to each second screening item in the at least one second screening item. The second options displayed in the second screening area at least include the at least one selected first option.
[0098] The implementation manners of steps S205-S206 are described above in steps S102-S103, and will not be described here.
[0099] Since the first screening result has been obtained through the first screening area before, and the hierarchical screening control is triggered by the user, it indicates that the user wants to further screen the target form. Therefore, the user can further screen through the second screening area, and the user is highly likely to no longer use the first screening area. Based on this, the form-based data screening method provided in the present application further includes: in response to the hierarchical screening control being triggered, the second screening control is no longer displayed in the first screening area. Alternatively, the second screening control can be grayed out to indicate that the control is unavailable.
[0100] In the case where the hierarchical screening control is triggered, by no longer displaying the second screening control, the user can be prevented from being mistakenly triggered, and interface redundancy information can be reduced, thereby improving the simplicity and aesthetics of interface display.
[0101] After step S206, the user views the second options through the form filtering interface, selects the desired second option, and triggers the third filtering control to trigger the user device to filter the first filtering result. Accordingly, the user device, in response to the third filtering control being triggered, obtains a second filtering result based on a second filtering condition, and updates the first filtering result to the second filtering result. Optionally, the implementation of this step includes steps S207-S210.
[0102] Step S207, in response to the third filtering control being triggered, the second filtering condition is obtained.
[0103] The second filtering condition includes at least one selected second option. In addition to the at least one selected second option, the second filtering condition also includes the filtering item content corresponding to the second filtering item to which each selected second option belongs, and the filtering item content includes a filtering item identifier and a filtering item name.
[0104] Step S208, a second filtering request is sent to the server, and the second filtering request carries the second filtering condition, so that the server, in response to the second filtering request, filters the first filtering result based on the second filtering condition to obtain the second filtering result.
[0105] The user device sends the second filtering request to the server by calling the interface of the server. After obtaining the second filtering result, the server sends the second filtering result to the user device. The second filtering result includes target data items in the first filtering result that meet the second filtering condition.
[0106] Step S209, the second filtering result sent by the server is received.
[0107] The above steps S207-S209 provide an implementation of obtaining a second filtering result based on a second filtering condition. The user device acts as a medium for human-computer interaction, sends the second filtering condition to the server through data interaction with the server, filters the first filtering result through the server, and obtains the second filtering result.
[0108] Step S210, the first filtering result is updated to the second filtering result.
[0109] On the basis of the above-mentioned embodiments, after the screening is completed, the user can want to return to the form data interface, and accordingly, the form screening interface also displays a return control. Illustratively, the style of the clear control is a button displaying the word "return". When the user wants to return to the form data interface, the user device can trigger the return control, and the user device updates the form screening interface to display the form data interface in response to the return control being triggered. When developing the form screening interface, the page developer can configure a corresponding jump link for the return control, so that when the return control is triggered, the user device jumps according to the configured link, thereby displaying the form data interface.
[0110] In an application scenario, if the user has a re-screening demand after one or more screenings, the return control can be triggered, and then the first screening control in the form data interface is triggered, so that the user device re-executes the first screening operation. Figure 2 or Figure 3 The form-based data screening method provided in the embodiments.
[0111] In another application scenario, the form screening interface also displays a clear control; accordingly, the form-based data screening method provided in the present application further includes: in response to the clear control being triggered, initializing and displaying the form screening interface. Illustratively, the style of the clear control is a button displaying the word "clear".
[0112] The embodiments consider that the user can have a re-screening demand after one or more screenings, and by displaying the clear control in the form screening interface, the user can one-key clear the previously set screening conditions and screening results when the user wants to re-screen, so that the form screening interface returns to the initialized state, and the user can re-trigger the screening in the form screening interface. It can be seen that the form screening interface provided in the present application also provides a clear function, and the operation is relatively convenient.
[0113] On the basis of the above-mentioned embodiments, in an application scenario, after obtaining the screening result, the user can need to further analyze the screening result, and therefore the user has a demand for exporting the screening result. Accordingly, each screening area also displays an export control. Illustratively, the style of the export control is a button displaying the word "export". Then, after obtaining the screening result, the form-based data screening method provided in the present application further includes: in response to the export control in any screening area being triggered, exporting the screening result corresponding to the screening area to obtain a screening result in a preset format. Illustratively, the preset format is an Excel table format or other formats meeting the user's demand.
[0114] Taking the first screening area as an example, the first screening area displays an export control, and then the user device exports the first screening result in response to the export control being triggered to obtain a first screening result in a preset format.
[0115] The embodiment provides a derivation function for the screening result of each time, and the result is displayed in a preset format, so that the user can utilize the data.
[0116] On the basis of the above embodiment, in an application scenario, for each screening area, a folding display and unfolding display function is further provided. When any screening area is initialized to be displayed, the screening area further displays a folding control. The user equipment folds the screening area to display, so that the screening condition setting control corresponding to the screening item is not displayed in the screening area, so as to save the interface display space and display resources. The user equipment further switches the folding control to be displayed as an unfolding control. Correspondingly, the user equipment unfolds the screening area to display, so that the screening condition setting control corresponding to the screening item is displayed in the screening area.
[0117] Figure 4 is a schematic diagram of a form screening interface according to an example embodiment. As shown in Figure 4 The form screening interface displays a return control "Return to Table Data Page", a clearing control "Clear", a step-by-step screening control "Further Screening", a first screening area and form data when being initialized. The first screening area includes a second screening control "Screening", a derivation control "Derivation", a folding control "Fold", and screening condition setting controls corresponding to a plurality of types of first screening items. The first screening items of the input type include screening item 1, screening item 2 and screening item 3, and the input type is provided with an input box "Input Screening Content". The first screening items of the option type include screening item 4 and screening item 5, and the option type is provided with a plurality of options. The first screening items of the date type include screening item 6, screening item 7 and screening item 8, and the date type is provided with a date selector. The form data includes table header data and table body data. The table header data includes a plurality of column names, and the table body data includes a plurality of data items. At this time, since the form has not been screened, the form data contains complete form data.
[0118] After the user obtains the first screening result through the first screening area, the step-by-step screening control can be triggered to display the second screening area. Figure 5 is a schematic diagram of a form screening interface according to another example embodiment. As shown in Figure 5As shown, the first filtering area is in a collapsed state, and a display expansion control "Expand" is shown. The second filtering area includes a third filtering control "Filter", an export control "Export", a collapse control "Collapse", and filtering condition setting controls corresponding to second filtering items of various types. The second filtering items of input type include filtering item 1, and an input box "Input filtering content" is set correspondingly. The second filtering items of option type include filtering item 4 and filtering item 5, and multiple options are set correspondingly. The second filtering items of date type include filtering item 6 and filtering item 7, and date selectors are set correspondingly. At this time, since the first filtering has been performed on the form, the form data contains the table header data and multiple data items meeting the first filtering condition.
[0119] The following is described through a simple case. In a medical scenario, if medical staff needs to filter case data of a hospital to help some medical users find or inspire data search, since the medical staff may be fuzzy about the range of data before filtering, the required data can be gradually filtered through step-by-step filtering, and the filtering result of each time can be viewed for facilitating comparison between data, and each filtering result can be exported for facilitating data utilization and analysis by the user.
[0120] The present application provides a step-by-step filtering scheme for form data. A form filtering interface is composed of operation controls, filtering conditions of each time, and filtering results. After the user sets the current filtering condition, the filtering item content of the next time with data significance and the current filtering result are formed, supporting the user to perform the filtering operation again, gradually narrowing the data range, step-by-step filtering, and locating the required data. In view of the problem that the user's target is fuzzy when filtering, the user can gradually find the desired data through the present application. On the one hand, the filtering condition of each time is formed according to the filtering result of the last time, and the filtering items without data and the options without data are gradually removed, ensuring that the user performs effective filtering, the display form is more intuitive than the table header filtering, meeting the user's demand for narrowing the data range to locate the required data, and having great significance for data utilization and analysis. On the other hand, the content of the filtering condition is divided into input type, selection type, and date type for display, and the division of the three types is more conducive to the user to locate the filtering item than the display without classification. On the other hand, the filtering condition and the filtering result of each time are displayed one by one, and the filtering condition and the result of the next time are formed after the filtering operation, and the user can view the filtering result of each time, which has more value for data utilization or analysis.
[0121] Figure 6 is a structural schematic diagram of a form-based data filtering device according to an example embodiment, as shown in Figure 6As shown, in this embodiment, the form-based data filtering apparatus 300 can be arranged in a user device, and the form-based data filtering apparatus 300 comprises:
[0122] a first display module 301 configured to display a form filtering interface in response to a first filtering control in a form data interface corresponding to a target form being triggered; the form filtering interface displays a hierarchical filtering control and a first filtering region; the first filtering region displays a second filtering control and a plurality of first options respectively corresponding to each of a plurality of first filtering items;
[0123] a first acquisition module 302 configured to acquire a first filtering result based on a first filtering condition in response to the second filtering control being triggered, and display the first filtering result; the first filtering condition comprises at least one selected first option, and the first filtering result comprises target data items in the target form that meet the first filtering condition;
[0124] a second display module 303 configured to display a second filtering region in a lower region of the first filtering region in response to the hierarchical filtering control being triggered; the second filtering region displays a third filtering control and at least one second option respectively corresponding to each of at least one second filtering item, and the second options displayed in the second filtering region at least include the at least one selected first option;
[0125] a second acquisition module 304 configured to acquire a second filtering result based on a second filtering condition in response to the third filtering control being triggered, and update the first filtering result to the second filtering result; the second filtering condition comprises at least one selected second option, and the second filtering result comprises target data items in the first filtering result that meet the second filtering condition.
[0126] Optionally, the first acquisition module 302 is configured to:
[0127] acquire the first filtering condition in response to the second filtering control being triggered;
[0128] send a first filtering request to a server, the first filtering request carrying the first filtering condition, so that the server filters the target form based on the first filtering condition in response to the first filtering request to obtain the first filtering result;
[0129] receive the first filtering result sent by the server.
[0130] Optionally, the second acquisition module 304 is configured to:
[0131] acquire the second filtering condition in response to the third filtering control being triggered;
[0132] The server is sent a second screening request, and the second screening request carries a second screening condition, so that the server screens the first screening result based on the second screening condition to obtain a second screening result in response to the second screening request;
[0133] The second screening result sent by the server is received.
[0134] Optionally, the apparatus 300 further comprises:
[0135] The display canceling module is configured to cancel display of the second screening control in the first screening area in response to the hierarchical screening control being triggered.
[0136] Optionally, the form screening interface further displays a clearing control; and the apparatus 300 further comprises:
[0137] The clearing module is configured to initialize display of the form screening interface in response to the clearing control being triggered.
[0138] Optionally, the first screening area further displays an exporting control; and the apparatus 300 further comprises:
[0139] The exporting module is configured to export the first screening result to obtain the first screening result in a preset format in response to the exporting control being triggered.
[0140] Optionally, the plurality of first screening items belong to a selection type; the first screening area further displays an input box corresponding to at least one first screening item belonging to an input type and a date selection control corresponding to at least one first screening item belonging to a date type.
[0141] The form-based data screening apparatus provided in the embodiment can implement the technical solutions of the corresponding method embodiments, and has similar implementation principles and technical effects to the corresponding method embodiments, which will not be described herein again.
[0142] Embodiments of the present application also provide a user equipment. The user equipment is intended for various forms of user terminals, such as computers, smart phones, laptop computers, desktop computers, workstations, personal digital assistants, and other suitable computers.
[0143] Figure 7 is a structural schematic diagram of a user equipment according to an exemplary embodiment. As Figure 7 shown, the user equipment 400 comprises a processor 401 and a memory 402 and a transceiver 403 which are respectively connected in communication with the processor 401.
[0144] The memory 402 stores computer execution instructions; the transceiver 403 is configured to transceive data with a server; and the processor 401 executes the computer execution instructions stored in the memory 402 to implement the form-based data screening method provided in the present application.
[0145] In the embodiments of the present application, the memory 402 and the transceiver 403 are connected to the processor 401 through a bus, respectively. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in the figure, but it does not mean that there is only one bus or only one type of bus.
[0146] The components shown herein, their connections and relationships, and their functions, are merely examples and are not intended to limit the implementations described and / or claimed herein. The various components are interconnected by various buses, and can be mounted on a common main board or otherwise mounted as appropriate.
[0147] In the exemplary embodiments, a computer readable storage medium is also provided, and the computer readable storage medium stores computer execution instructions. When the computer execution instructions are executed by a processor, the computer execution instructions are used to implement the form-based data filtering method provided by the present application.
[0148] In the exemplary embodiments, a computer program product is also provided, and the computer program product includes computer execution instructions. When the computer execution instructions in the computer program product are executed by a processor, the computer execution instructions are used to implement the form-based data filtering method provided by the present application.
[0149] It should be noted that, for the foregoing method embodiments, in order to simply describe, they are all expressed as a combination of a series of actions, but those skilled in the art should know that the present application is not limited to the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0150] It should be understood that the steps in the flowchart diagrams and combinations of steps in the flowchart diagrams can be performed in various orders unless otherwise specified or required by the context. Furthermore, although individual steps of the flowcharts are shown in a particular order, the steps can be performed in another order, or at least some of the steps can be performed in parallel or with at least portions of the steps being performed in an interleaved manner. In addition, at least some of the steps in the flowcharts can include multiple sub-steps or stages, which can be performed in a different order, at different times, or in an interleaved manner.
[0151] It should be understood that the above-described apparatus embodiments are merely illustrative, and the apparatus of the present application can also be implemented in other manners. For example, the division of units / modules in the above-described embodiments is merely a logical function division, and the actual implementation can be in another manner. For example, multiple units / modules or components can be combined, or can be integrated into another system, or some features can be omitted or not executed.
[0152] In addition, unless otherwise specified or required by the context, each functional unit / module in each embodiment of the present application can be integrated in one unit / module, or can be physically present separately, or two or more units / modules can be integrated together. The above-mentioned integrated unit / module can be realized in the form of hardware or in the form of a software program module.
[0153] If implemented in hardware, the integrated units / modules can be digital circuitry, analog circuitry, or a combination of both. The physical implementation can include transistors, resistors, capacitors, inductors, and other electronic components. Unless otherwise specified, the processor can be any suitable hardware processor, such as a central processing unit (CPU), a graphics processing unit (GPU), an application specific integrated circuit (ASIC), a digital signal processor (DSP), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic component. Unless otherwise specified, the memory can be any suitable type of volatile or non-volatile memory, or a combination thereof, such as a U disk, a random-access memory (RAM), a static random-access memory (SRAM), a dynamic random-access memory (DRAM), an enhanced dynamic random-access memory (EDRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a resistive random access memory (RRAM), a high-bandwidth memory (HBM), a hybrid memory cube (HMC), a magnetic memory, a flash memory, a magnetic disk, an optical disk, a mobile hard disk, or other medium capable of storing program code.
[0154] The integrated units / modules, if implemented in the form of software program modules and sold or used as independent products, can be stored in a computer readable memory. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a memory and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application.
[0155] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described, however, as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present application.
[0156] Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. The application is intended to cover any variations, uses or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the application pertains. The specification and examples are to be regarded as illustrative only, and the true scope and spirit of the application are indicated by the following claims.
[0157] It should be understood that the application is not limited to the precise construction that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the application. The scope of the application should be limited only by the appended claims.
Claims
1. A form-based data filtering method, characterized by, The method is applied to a user equipment, and comprises: In response to a first filtering control in a form data interface corresponding to a target form being triggered, a form filtering interface is displayed; the form filtering interface displays a hierarchical filtering control and a first filtering area; the first filtering area displays a second filtering control and a plurality of first filtering items, each of which corresponds to a plurality of first options; In response to the second filtering control being triggered, a first filtering result is obtained based on a first filtering condition, and the first filtering result is displayed; the first filtering condition includes at least one selected first option, and the first filtering result includes target data items in the target form that meet the first filtering condition; In response to the hierarchical filtering control being triggered, a second filtering area is displayed in a lower area of the first filtering area; the second filtering area displays a third filtering control and at least one second filtering item, each of which corresponds to at least one second option, and the second options displayed in the second filtering area include at least the at least one selected first option; In response to the third filtering control being triggered, a second filtering result is obtained based on a second filtering condition, and the first filtering result is updated and displayed as the second filtering result; the second filtering condition includes at least one selected second option, and the second filtering result includes target data items in the first filtering result that meet the second filtering condition.
2. The method of claim 1, wherein, The method further comprises: In response to the second filtering control being triggered, the first filtering condition is obtained; A first filtering request is sent to a server, the first filtering request carrying the first filtering condition, so that the server filters the target form based on the first filtering condition in response to the first filtering request to obtain the first filtering result; The first filtering result sent by the server is received.
3. The method of claim 2, wherein, The method further comprises: In response to the third filtering control being triggered, the second filtering condition is obtained; A second filtering request is sent to the server, the second filtering request carrying the second filtering condition, so that the server filters the first filtering result based on the second filtering condition in response to the second filtering request to obtain the second filtering result; The second filtering result sent by the server is received.
4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises: In response to the hierarchical filtering control being triggered, the second filtering control is not displayed in the first filtering area.
5. The method according to any one of claims 1 to 3, characterized in that, The form filtering interface also displays a clear control; the method further comprises: In response to the clear control being triggered, the form filtering interface is initialized and displayed.
6. The method according to any one of claims 1 to 3, characterized in that, The first filtering area also displays an export control; after the first filtering result is obtained based on the first filtering condition and displayed in response to the second filtering control being triggered, the method further comprises: In response to the export control being triggered, the first filtering result is exported to obtain the first filtering result in a preset format.
7. The method according to any one of claims 1 to 3, characterized in that, The first filtering options belong to a selection type; the first filtering interface further displays an input box corresponding to at least one first filtering option belonging to an input type and a date selection control corresponding to at least one first filtering option belonging to a date type.
8. A form-based data filtering apparatus, comprising: The device is applied to a user equipment, and the device comprises: The first display module is configured to display a form filtering interface in response to a first filtering control in a form data interface corresponding to a target form being triggered; the form filtering interface displays a hierarchical filtering control and a first filtering region; the first filtering region displays a second filtering control and a plurality of first filtering options, each of which corresponds to a plurality of first options; The first acquisition module is configured to acquire a first filtering result based on a first filtering condition in response to the second filtering control being triggered, and display the first filtering result; the first filtering condition comprises at least one selected first option, and the first filtering result comprises target data items in the target form that meet the first filtering condition; The second display module is configured to display a second filtering region in a lower region of the first filtering region in response to the hierarchical filtering control being triggered; the second filtering region displays a third filtering control and at least one second filtering option, each of which corresponds to at least one second option; the second options displayed in the second filtering region at least include the at least one selected first option; The second acquisition module is configured to acquire a second filtering result based on a second filtering condition in response to the third filtering control being triggered, and update and display the first filtering result as the second filtering result; the second filtering condition comprises at least one selected second option, and the second filtering result comprises target data items in the first filtering result that meet the second filtering condition. 9.A user equipment, comprising: Comprise: A processor, a memory and a transceiver connected to the processor in communication, respectively; The memory stores computer execution instructions; the transceiver is used to transceive data between the server; The processor executes the computer execution instructions stored in the memory to realize the form-based data filtering method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to realize the form-based data filtering method according to any one of claims 1 to 7.