Form-based data query method, device, equipment, and storage medium

By providing query item selection function in the form query interface, users can unselect unwanted query items from the drop-down list, realizing the configurability of query items, solving the problem of redundant information in the form query interface, and improving interface display efficiency and user experience.

CN117216352BActive Publication Date: 2025-08-26CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311175584.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-12
Publication Date
2025-08-26
Estimated Expiration
2043-09-12

AI Technical Summary

Technical Problem

In the prior art, the redundant information of multiple query items displayed in the form query interface leads to waste of resources, and the query items required by users cannot be flexibly configured, which affects the interface display efficiency.

Method used

By providing query item selection controls in the form query interface, users can select and unselect unselect unselect query items from the drop-down list, displaying only the query condition setting controls for the target query items to achieve the configurability of the query items.

Benefits of technology

Simplified interface display, saved display resources and space, and improved user experience. Users can flexibly configure query items to obtain required data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117216352B_ABST
    Figure CN117216352B_ABST
Patent Text Reader

Abstract

The present application provides a form-based data query method, apparatus, device, and storage medium that can be used in the field of computer technology. The method includes: displaying a form query interface corresponding to a target form; displaying a drop-down list in the form query interface in response to a query item selection control being triggered; updating and displaying query condition setting controls corresponding to multiple initial query items to query condition setting controls corresponding to at least one target query item in the form query interface in response to at least one option corresponding to an initial query item in the drop-down list being deselected; obtaining target query conditions in response to the query control being triggered; obtaining query results based on the target query conditions, and displaying the query results in the form query interface. For scenarios where the user only wants to query individual content, the present application can deselect unnecessary query items, thereby achieving configurability of query items and simplifying interface display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a form-based data query method, apparatus, device, and storage medium. Background Art

[0002] With the development of computer technology, users can browse information through websites. Website web pages typically display data through forms. Forms are a page element used to facilitate information exchange between users and servers. Forms provide query functionality. Users set query conditions, triggering the device to retrieve and display matching data items from the form. Users can then view the displayed data.

[0003] In the related technology, the device displays multiple query items and query condition setting controls corresponding to each query item in the form query interface. The query item is the header data that can be queried among multiple header data. The user sets the query condition through the query condition setting control, and then triggers the device to send the query condition to the server. The server queries based on the query condition and returns the query results, and the device displays the query results.

[0004] The multiple query items displayed in the above technology are pre-set by the page developer. However, when using the query function, the user may only need a certain query item, while the other query items are redundant for the user, resulting in the interface displaying more redundant information and occupying display resources. Summary of the Invention

[0005] The present application provides a form-based data query method, apparatus, device, and storage medium, which realize the configurability of query items and simplify the interface display.

[0006] In a first aspect, the present application provides a form-based data query method, applied to a user device, the method comprising:

[0007] Displaying a form query interface corresponding to the target form; the form query interface displays a query control, a query item selection control, and query condition setting controls corresponding to multiple initial query items;

[0008] In response to the query item selection control being triggered, a drop-down list is displayed in the form query interface; the drop-down list includes options corresponding to the multiple initial query items, and each of the options is selected;

[0009] In response to at least one option corresponding to an initial query item in the drop-down list being deselected, in the form query interface, query condition setting controls corresponding to the multiple initial query items are updated and displayed as query condition setting controls corresponding to at least one target query item; the target query item is the selected initial query item from the multiple initial query items;

[0010] In response to the query control being triggered, a target query condition is obtained; the target query condition includes query conditions corresponding to the at least one target query item, the query condition includes a query item identifier and a query value, and the query value is set by the user based on the query condition setting control corresponding to the target query item;

[0011] Based on the target query condition, a query result is obtained and displayed in the form query interface, wherein the query result includes target data items in the target form that meet the target query condition.

[0012] Optionally, in the form query interface, updating and displaying the query condition setting controls corresponding to the multiple initial query items as query condition setting controls corresponding to at least one target query item includes:

[0013] In the form query interface, the query condition setting controls corresponding to the multiple initial query items are canceled;

[0014] Obtaining query item content corresponding to each target query item, wherein the query item content includes a query item name, a query item identifier, and a query item type;

[0015] According to the query item contents respectively corresponding to the target query items, query condition setting controls respectively corresponding to the target query items are displayed in the form query interface.

[0016] Optionally, in response to the query control being triggered, before obtaining the target query condition, the method further includes:

[0017] When it is detected that the user has set a query value based on the query condition setting control corresponding to the first target query item, a reference query condition is obtained, where the reference query condition includes the query condition corresponding to the first target query item, and the query condition includes the query item identifier corresponding to the first target query item and the query value;

[0018] Sending a reference query condition to the server, so that the server queries the target form based on the reference query condition;

[0019] receiving a query result sent by the server;

[0020] If the query result includes information indicating that no data item is found, prompt information is displayed; the prompt information is used to prompt that no data item that meets the reference query condition exists in the target form.

[0021] Optionally, the method further includes:

[0022] If the query result includes information indicating that a data item has been found, upon detecting that the user has set a query value based on the query condition setting control corresponding to the second target query item, obtaining an updated reference query condition and sending the updated reference query condition to the server; and so on until the query control is triggered;

[0023] The updated reference query condition includes the query condition corresponding to the first target query item and the query condition corresponding to the second target query item, and the query condition corresponding to the second target query item includes the query item identifier corresponding to the second target query item and the query value.

[0024] Optionally, the form query interface further displays a save control; the method further includes:

[0025] In response to the save control being triggered, acquiring the target query condition, and determining the target query condition as a common query condition;

[0026] Sending the currently logged-in account and the commonly used query conditions to the server, so that the server stores the account, the commonly used query conditions, and the condition identifiers corresponding to the commonly used query conditions in a corresponding manner;

[0027] The options corresponding to the commonly used query conditions are displayed in the form query interface.

[0028] Optionally, the method further includes:

[0029] In response to an option corresponding to any common query condition in the form query interface being triggered, obtaining a condition identifier corresponding to the common query condition and a query item content corresponding to a common query item; the common query item is a query item corresponding to the common query condition, and the query item content includes a query item name, a query item identifier, a query item type, and a query value;

[0030] In the form query interface, according to the query item content, the query condition setting control corresponding to the commonly used query item is displayed; the query value is displayed in the query condition setting control;

[0031] Sending the account number and the condition identifier to the server, so that the server obtains the commonly used query conditions stored corresponding to the account number and the condition identifier, and queries the target form based on the commonly used query conditions;

[0032] Receive the query results sent by the server and display the query results in the form query interface.

[0033] Optionally, the form query interface further displays a clear control; the method further includes:

[0034] In response to the clear control being triggered, sending a clear request to the server, the clear request carrying the account number, so that the server deletes the commonly used query conditions stored corresponding to the account number;

[0035] In the form query interface, options corresponding to commonly used query conditions are canceled.

[0036] Optionally, the form query interface further displays a delete control corresponding to the common query condition; the method further includes:

[0037] In response to the deletion control being triggered, sending a deletion request for the common query condition to the server, so that the server deletes the stored common query condition;

[0038] In the form query interface, the options corresponding to the commonly used query conditions are canceled.

[0039] In a second aspect, the present application provides a form-based data query device, which is provided in a user device and includes:

[0040] The first display module is used to display a form query interface corresponding to the target form; the form query interface displays a query control, a query item selection control, and query condition setting controls corresponding to multiple initial query items;

[0041] A second display module is configured to display a drop-down list in the form query interface in response to the query item selection control being triggered; the drop-down list includes options corresponding to the multiple initial query items, and each of the options is selected;

[0042] a third display module configured to update and display, in response to at least one option corresponding to an initial query item in the drop-down list being deselected, query condition setting controls corresponding to the multiple initial query items as query condition setting controls corresponding to at least one target query item in the form query interface; the target query item being the selected initial query item from the multiple initial query items;

[0043] an acquisition module, configured to acquire a target query condition in response to the query control being triggered; the target query condition including query conditions corresponding to the at least one target query item, the query condition including a query item identifier and a query value, the query value being set by a user based on a query condition setting control corresponding to the target query item;

[0044] The fourth display module is used to obtain query results based on the target query conditions and display the query results in the form query interface. The query results include target data items in the target form that meet the target query conditions.

[0045] In a third aspect, the present application provides a user equipment, comprising: a processor, a memory and a transceiver respectively communicatively connected to the processor;

[0046] The memory stores computer-executable instructions; the transceiver is used to send and receive data with the server;

[0047] The processor executes the computer-executable instructions stored in the memory to implement the form-based data query method as described in any one of the first aspects.

[0048] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the form-based data query method described in any one of the first aspects.

[0049] In a fifth aspect, the present application provides a computer program product, comprising computer-executable instructions, which, when executed by a processor, implement the form-based data query method described in any one of the first aspects.

[0050] The form-based data query method, apparatus, device and storage medium provided in the present application display multiple query items by default when the form query interface is initially displayed. On this basis, a configurable query item function is provided. For scenarios where the user only wants to query individual content, the user triggers the query item selection control to trigger the user device to display a drop-down list, so that the user can deselect unnecessary query items from the drop-down list, thereby canceling the display of unnecessary query items and only displaying them based on at least one target query item, thereby triggering the user device to query data for the target form based on the at least one target query item, thereby realizing the configurability of the query items and simplifying the interface display. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0052] Figure 1 is a schematic diagram showing an application scenario according to an exemplary embodiment;

[0053] Figure 2 is a flowchart illustrating a form-based data query method according to an exemplary embodiment;

[0054] Figure 3 is a flow chart illustrating a form-based data query method according to another exemplary embodiment;

[0055] Figure 4 is a schematic diagram of a form query interface according to an exemplary embodiment;

[0056] Figure 5 is a structural diagram of a form-based data query device according to an exemplary embodiment;

[0057] Figure 6 The figure is a schematic structural diagram of a user equipment according to an exemplary embodiment.

[0058] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION

[0059] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0060] The terms "first," "second," etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. In the description of the following embodiments, "plurality" means more than two, unless otherwise specifically defined.

[0061] 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 used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0062] In order to clearly understand the technical solution of the present application, the solution of the prior art is first introduced in detail.

[0063] With the development of computer technology, users can browse information through websites. The corresponding web pages of the websites generally display data through forms. Forms are a page element used to realize information exchange between users and servers. A form consists of header data (headerData) and body data (list). The header data includes multiple column names, and the body data includes multiple data items. Each data item contains data items belonging to each column name. For ease of understanding, the form can also be called a table. The form provides a query function. By setting query conditions, the user triggers the device to query and display the data items that meet the conditions from the form, so that the user can view the displayed data items.

[0064] In the related technology, the device displays multiple query items and query condition setting controls corresponding to each query item in the form query interface. The query item is the header data that can be queried among multiple header data. The user sets the query condition through the query condition setting control, and then triggers the device to send the query condition to the server. The server queries based on the query condition and returns the query results, and the device displays the query results.

[0065] The multiple query items displayed in the above technology are pre-set by the page developer. However, when using the query function, the user may only need a certain query item, while the other query items are redundant for the user, resulting in the interface displaying more redundant information and occupying display resources.

[0066] In response to the problem of redundant information displayed in existing interfaces, which occupies display resources, the inventors discovered that, in order to solve this problem, only the query items required by the user can be displayed. To determine which query items are required by the user, human-computer interaction can be used. Furthermore, a query item selection function can be provided for the user to select the query items they need, thereby only displaying the query items selected by the user. Specifically, when the form query interface is initially displayed, multiple query items are displayed by default. On this basis, a query item configurability function is provided. In scenarios where the user only wants to query certain content, the user triggers the query item selection control, which triggers the user device to display a drop-down list. The user can then deselect the unnecessary query items from the drop-down list, thereby deselecting the unnecessary query items and displaying only the query items based on at least one target query item. This triggers the user device to query data for the target form based on the at least one target query item, thus achieving query item configurability and simplifying the interface display.

[0067] The following introduces the application scenarios of the form-based data query method provided in the embodiment of the present application.

[0068] Figure 1 FIG. 1 is a schematic diagram showing an application scenario according to an exemplary embodiment. Figure 1 As shown, the application scenario includes: user equipment 1 and server 2. Each device is connected through a network.

[0069] Among them, user device 1 is the device used by the form operation user. For the convenience of description, the form operation user is referred to as user below. Server 2 is a server that provides background services for user device 1. There are multiple user devices 1, and the application scenarios corresponding to each user device 1 are similar. Server 2 is connected to multiple user devices 1 through the network. For the convenience of representation, Figure 1 Take a user device 1 as an example. In this embodiment, when a user performs a data query on a target form, the user device 1 is triggered to display a form query interface corresponding to the target form. The form query interface displays a query item selection control. The user triggers the query item selection control to trigger the user device 1 to display a drop-down list. The user deselects at least one unnecessary initial query item from the drop-down list to trigger the user device 1 to update the form query interface based on the at least one target query item. The user can then set a target query condition based on the at least one target query item, and trigger the query control to trigger the user device 1 to obtain the query results and display the query results for the user to view. Exemplarily, the user device 1 sends the target query condition to the server 2, so that the server 2 queries the target form based on the target query condition and returns the query results.

[0070] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0071] Figure 2 This is a flow chart of a form-based data query method according to an exemplary embodiment. The execution subject of the form-based data query method provided in this application is a form-based data query device, which is integrated into a user device. For example, the user device is a computer, a mobile phone or other smart terminal. Figure 2 As shown, the form-based data query method provided in this embodiment includes the following steps:

[0072] Step S101 : displaying a form query interface corresponding to a target form; the form query interface displays a query control, a query item selection control, and query condition setting controls corresponding to a plurality of initial query items.

[0073] The target form is any form that provides a form query function, for example, the target form is an office supplies purchase form, a student admission information form, a commuting mode record form or other forms.

[0074] Among them, the form query interface corresponding to the target form is used to query the target form. When the form query interface is initially displayed, the query condition setting controls corresponding to multiple initial query items are displayed in the form query interface by default. These multiple initial query items are multiple column names that can be queried in the header data of the target form. The query condition setting control is used to set the query value corresponding to the initial query item. For example, if the initial query item is the student name, the corresponding query condition setting control is an input text box. The user enters A in the input text box to query the data items containing "A" in the student name in the target form.

[0075] The form query interface also displays a query item selection control for selecting a query item to be displayed. The form query interface also displays a query control for triggering a query on a target form.

[0076] Exemplarily, a user device displays a form operation interface corresponding to a target form, wherein a query control is displayed in the form operation interface. When a user desires to query the target form, the query control is triggered. In response to the query control being triggered, the user device displays a form query interface corresponding to the target form. The query control in the form operation interface and the query control in the form query interface are different controls. The query control in the form operation interface is used to trigger the display of the form query interface, while the query control in the form query interface is used to trigger a query on the target form.

[0077] Step S102: In response to the query item selection control being triggered, a drop-down list is displayed in the form query interface; the drop-down list includes options corresponding to a plurality of initial query items, and each option is selected.

[0078] In this embodiment, there may be a query item that the user does not need among the multiple initial query items. In this case, the user can trigger a query item selection control and reselect a query item as needed. When the query item selection control is triggered, the user device displays a drop-down list that displays options corresponding to the multiple initial query items. If an option is selected, indicating that the user needs the initial query item corresponding to the option, a query condition setting control corresponding to the initial query item needs to be displayed in the form query interface. If an option is not selected, indicating that the user does not need the initial query item corresponding to the option, a query condition setting control corresponding to the initial query item does not need to be displayed in the form query interface.

[0079] Step S103, in response to the option corresponding to at least one initial query item in the drop-down list being deselected, in the form query interface, the query condition setting controls corresponding to the multiple initial query items are updated and displayed as query condition setting controls corresponding to at least one target query item; the target query item is the initial query item selected from the multiple initial query items.

[0080] In this embodiment, the user selects the desired initial query item from a drop-down list based on their needs. Since the options corresponding to multiple initial query items in the drop-down list are all selected, the user can deselect the options corresponding to the unnecessary initial query items. As a result, the user device updates the query condition setting controls corresponding to the multiple initial query items displayed in the form query interface to query condition setting controls corresponding to at least one target query item. In this way, the information displayed in the form query interface is the information required by the user, and by removing redundant information, the interface display is simplified, saving display resources and display space.

[0081] It should be noted that the query condition setting controls corresponding to the at least one target query item after the update display are all in an unset state. The unset state indicates that the user has not set a query value based on the query condition setting control.

[0082] Step S104, in response to the query control being triggered, obtaining the target query condition; the target query condition includes query conditions corresponding to at least one target query item, the query condition includes a query item identifier and a query value, and the query value is set by the user based on the query condition setting control corresponding to the target query item.

[0083] The query item identifier uniquely identifies the target query item, while the query value is set by the user using the query condition setting control. For example, the query item identifier is the formCode of the target query item. When the user device initializes the form query interface, it retrieves the query item content corresponding to each initial query item from the server and saves it locally. The query item content includes the query item identifier.

[0084] In this embodiment, after step S103, the user sets a query condition control based on the query condition corresponding to at least one target query item, sets a query value, and then triggers the query control. Accordingly, the user device retrieves the stored query item identifier, combines the query item identifier and the query value into a query condition corresponding to the target query item, and combines the query condition corresponding to the at least one target query item into a target query condition.

[0085] Step S105 , based on the target query condition, obtain the query result, and display the query result in the form query interface, the query result including the target data items in the target form that meet the target query condition.

[0086] Exemplarily, a method for a user device to obtain a query result based on a target query condition includes: the user device sending a query request to a server, the query request carrying the target query condition; the server receiving the query request, querying a target form based on the target query condition, obtaining a query result, and sending the query result to the user device, which then receives the query result. The query result includes information indicating that a data item was found or information indicating that a data item was not found. If the query result includes information indicating that a data item was found, the query result also includes target data items in the target form that meet the target query condition.

[0087] For example, the form query interface further displays a target form, wherein the target form includes header data and body data, wherein the header data includes multiple column names, and the body data includes multiple data items. When displaying the query results in the form query interface, the header data corresponding to the target form displayed in the form query interface can be retained, and the body data can be updated and displayed as the target data items, and the target data items are displayed in the same display style as the body data, thereby making it easier for users to view the query results.

[0088] In this embodiment, when the form query interface is initially displayed, multiple query items are displayed by default. On this basis, a configurable query item function is provided. For scenarios where the user only wants to query individual content, the user triggers the query item selection control to trigger the user device to display a drop-down list, so that the user can deselect unnecessary query items from the drop-down list, thereby canceling the display of unnecessary query items and only displaying them based on at least one target query item, thereby triggering the user device to query data for the target form based on the at least one target query item, thereby realizing the configurability of the query items and simplifying the interface display.

[0089] The form-based data query method provided by this application is exemplified below with a specific embodiment. Figure 3is a flow chart showing a form-based data query method according to another exemplary embodiment. Figure 3 As shown, this embodiment Figure 2 Based on the illustrated embodiment, step S103 is refined. The form-based data query method provided by this embodiment includes the following steps.

[0090] Step S201 : displaying a form query interface corresponding to a target form; the form query interface displays a query control, a query item selection control, and query condition setting controls corresponding to a plurality of initial query items.

[0091] In step S202 , in response to the query item selection control being triggered, a drop-down list is displayed in the form query interface; the drop-down list includes options corresponding to a plurality of initial query items, and each option is selected.

[0092] In this embodiment, the implementation of step S201 - step S202 is similar to the implementation of step S101 - step S102 in the previous embodiment, and will not be repeated here.

[0093] After step S202, in response to the option corresponding to at least one initial query item in the drop-down list being deselected, the user device updates the query condition setting controls corresponding to the multiple initial query items in the form query interface to query condition setting controls corresponding to at least one target query item. Optionally, this step may include the following steps S203-S205.

[0094] Step S203 : in response to at least one option corresponding to the initial query item in the drop-down list being deselected, query condition setting controls corresponding to the plurality of initial query items are deselected in the form query interface.

[0095] Step S204: obtaining query item content corresponding to at least one target query item, wherein the query item content includes a query item name, a query item identifier, and a query item type.

[0096] The query item type (type) includes at least one of a text type (input), a numeric type (number), a date type (date), and a multiple-choice type (select). The date type can be a single date or a date range (dateRange), supporting year, month, day, hour, minute, and second. It should be noted that when the query item type is a multiple-choice type, the query item content also includes multiple option data (selectData), which is displayed in the multiple-select drop-down box.

[0097] Step S205 : displaying query condition setting controls corresponding to the target query items in the form query interface according to the query item contents corresponding to the target query items.

[0098] Exemplarily, the user device displays the query condition setting control according to a preset display style corresponding to the query item type, and when displaying the query condition setting control, also displays the query item name (name) to facilitate the user's differentiation between different query condition setting controls. Exemplarily, the preset display style corresponding to the text type is a text input box, the preset display style corresponding to the multiple-option type is a multiple-select drop-down box, the preset display style corresponding to the numeric type is a numeric input box, and the preset display style corresponding to the date type is a date picker.

[0099] For example, Figure 4 is a schematic diagram of a form query interface according to an exemplary embodiment. Figure 4 As shown, the form query interface displays a query item selection control, query item names corresponding to multiple target query items, query condition setting controls, a query control, and a target form. The target form includes header data and table body data. The header data includes multiple column names, and the table body data includes multiple data items. The query item selection control displays the control content "Query item [column name] selection, default is all" to help users understand its function. The query item names corresponding to the multiple target query items are: Query Item 1, Query Item 2, Query Item 3, Query Item 4, Query Item 5, and Query Item 6. Query Item 1, Query Item 5, and Query Item 6 are all text types, and the query condition setting control displays a text input box. Query Item 2 is a date type, and the query condition setting control displays a date selector. Query Item 3 is a numeric type, and the query condition setting control displays a numeric input box. Query Item 4 is a multiple-choice type, and the query condition setting control displays a multiple-select drop-down box.

[0100] In this embodiment, a display solution for target query items is provided, which saves interface display resources and display space by canceling the display of query condition setting controls corresponding to multiple initial query items and displaying the corresponding query condition setting controls according to the query item content corresponding to each target query item.

[0101] It should be noted that when the user device initially displays the form query interface, the query condition setting controls corresponding to the multiple initial query items are displayed in a manner similar to the implementation of displaying the query condition setting controls corresponding to the at least one target query item, and will not be further described here. Exemplarily, the user device obtains the query item content corresponding to each initial query item and displays the query condition setting controls corresponding to each initial query item in the form query interface based on the query item content corresponding to each initial query item.

[0102] Step S206, in response to the query control being triggered, obtaining the target query condition; the target query condition includes query conditions corresponding to at least one target query item, the query condition includes a query item identifier and a query value, and the query value is set by the user based on the query condition setting control corresponding to the target query item.

[0103] Step S207: Based on the target query condition, query results are obtained and displayed in the form query interface; the query results include target data items in the target form that meet the target query condition.

[0104] In this embodiment, the implementation of step S206-step S207 is similar to the implementation of step S104-step S105 in the previous embodiment, and will not be repeated here.

[0105] Based on the above embodiment, in an optional embodiment, each time the user triggers the user device to query the target form, the query conditions need to be reset, but this operation method is relatively cumbersome and the user experience is not good. In another optional embodiment, the form query interface also provides a function of saving the query conditions as commonly used query conditions, and accordingly, the form query interface also displays a save control; the form-based data query method provided by the present application also includes: in response to the save control being triggered, obtaining the target query conditions, and determining the target query conditions as commonly used query conditions; sending the currently logged-in account and commonly used query conditions to the server, so that after receiving the account and the commonly used query conditions, the server stores the account, the commonly used query conditions, and the condition identifiers corresponding to the commonly used query conditions; and the user device also displays options corresponding to the commonly used query conditions in the form query interface.

[0106] After the user sets a query value based on the query condition setting control corresponding to at least one target query item, if the user wishes to use the query value again in future queries, the save control is triggered, thereby causing the user device to save the target query condition as a common query condition in the aforementioned manner for subsequent use. In this embodiment, the user device is currently logged into an account, which identifies the user performing the form operation. When the user device sends the common query condition to the server, it also sends the account. Accordingly, the server generates a condition identifier corresponding to the common query condition and stores the account, common query condition, and condition identifier in a corresponding manner. This allows the user device to retrieve the common query condition stored corresponding to the account with the help of the server the next time it initializes the form query interface, thereby displaying the common query condition stored corresponding to the account in the form query interface. The condition identifier is used to refer to the common query condition and can uniquely identify the common query condition.

[0107] Among them, the commonly used query conditions are determined by the target query conditions. Since the target query conditions include query conditions corresponding to at least one target query item, the commonly used query conditions include query conditions corresponding to at least one commonly used query item. The query conditions include query item identifiers and query values. When displaying options corresponding to the commonly used query conditions, the displayed option content includes at least one group of information, each group of information corresponds to a query condition, and each group of information includes a query value and a query item name corresponding to the commonly used query item referred to by the query item identifier.

[0108] In this embodiment, before the user device displays the options corresponding to the common query conditions determined by the target query conditions in the form query interface, at least one common query condition may have been displayed in the form query interface. This at least one common query condition is a common query condition triggered and generated by the account during the historical query process for the target form. Then, the options corresponding to the common query conditions determined by the target query conditions and the options corresponding to the at least one common query condition can be displayed in different styles so that the user can distinguish which are the latest generated and which are historically generated.

[0109] See also Figure 4 The form query interface also displays a save control "Save" and multiple common query conditions. Each common query condition includes multiple groups of information, and each group of information includes a query item name and a query value.

[0110] In the above optional embodiment, the form query interface also provides the function of saving the query conditions as commonly used query conditions. In this way, if the user wants to use the target query conditions in future queries, the save control is triggered, thereby triggering the user device to save the target query conditions as commonly used query conditions with the help of the server, so that the commonly used query conditions can be used later, and the commonly used query conditions are also displayed in the form query interface for user viewing.

[0111] Based on the above optional embodiment, each time the interface is initialized, the user device obtains the condition identifier corresponding to the commonly used query condition and the query item content corresponding to the commonly used query item from the server, thereby displaying the options corresponding to the commonly used query condition. Accordingly, when the form query interface displays options corresponding to at least one commonly used query condition, any of the at least one commonly used query condition may be a query condition that the user has triggered and saved during a previous query process, or a query condition that the user has triggered and saved during the current query process. When the user wishes to query the target form using the commonly used query condition, they can trigger the option corresponding to the commonly used query condition.

[0112] In an optional implementation, the form-based data query method provided by the present application also includes: in response to an option corresponding to any commonly used query condition in the form query interface being triggered, obtaining a condition identifier corresponding to the commonly used query condition and a query item content corresponding to the commonly used query item; the commonly used query item is a query item corresponding to the commonly used query condition, and the query item content includes a query item name, a query item identifier, a query item type, and a query value; in the form query interface, the query condition setting control corresponding to the commonly used query item is displayed according to the query item content; the query value is displayed in the query condition setting control; the account and condition identifier are sent to the server; accordingly, the server obtains the commonly used query conditions stored corresponding to the account and condition identifier, and queries the target form based on the commonly used query conditions to obtain the query results, and then sends the query results to the user device; the user device receives the query results sent by the server and displays the query results in the form query interface.

[0113] Among them, in the form query interface, the implementation method of displaying the query condition setting controls corresponding to the commonly used query items according to the query item content is the same as the implementation method of displaying the query condition setting controls corresponding to each target query item in step S205 according to the query item content corresponding to each target query item. In the form query interface, the implementation method of displaying the query condition setting controls corresponding to each target query item is the same, which will not be repeated here.

[0114] It should be noted that before the option corresponding to the commonly used query condition is triggered, the form query interface displays a query item name and a query condition setting control corresponding to at least one target query item. The triggering of the option corresponding to the commonly used query condition indicates that the user wants to use the commonly used query condition to query the target form. Then, the at least one displayed target query item is useless to the user. Then, the user device can update the query item name and query condition setting control corresponding to the at least one target query item to the query item name and query condition setting control corresponding to the commonly used query item, and display the query value corresponding to the commonly used query item in the query condition setting control. The commonly used query item is the commonly used query item corresponding to the triggered commonly used query condition.

[0115] In this embodiment, the user does not need to trigger the query control separately. Instead, the user device automatically sends a query request to the server. The query request carries the account number and condition identifier, so that the server receives the query request and queries the target form.

[0116] In this embodiment, by displaying options corresponding to at least one commonly used query condition in the form query interface, when the user wants to query the target form through the commonly used query condition, the user can trigger the option corresponding to the commonly used query condition, thereby triggering the query of the target form. In this way, for scenarios where the same condition is frequently queried, the user does not need to set additional query conditions, which simplifies user operations and achieves the effect of writing the query conditions once and using them multiple times, saving the time of resetting the conditions each time and improving the user experience.

[0117] Based on the above optional embodiments, in an optional implementation method, the form query interface also displays deletion controls corresponding to each commonly used query condition. The form-based data query method provided in the present application also includes: in response to the deletion control corresponding to any commonly used query condition being triggered, sending a deletion request for the commonly used query condition to the server, and the deletion request carries the condition identifier corresponding to the commonly used query condition. Accordingly, the server receives the deletion request and deletes the commonly used query condition stored corresponding to the condition identifier; and the user device cancels the display of the options corresponding to the commonly used query conditions in the form query interface.

[0118] See also Figure 4 The form query interface also displays the delete control "×" corresponding to each commonly used query condition.

[0119] The above implementation method provides a solution for deleting commonly used query conditions. Users can trigger the user device to cancel the display of options corresponding to a certain unnecessary commonly used query condition according to their own needs, and enable the server to delete the stored commonly used query condition. By providing the deletion function, users can flexibly adjust the options corresponding to the displayed commonly used query conditions.

[0120] Based on the above optional embodiments, in an optional implementation method, the form query interface also displays a clear control; the form-based data query method provided in the present application also includes: in response to the clear control being triggered, the user device sends a clear request to the server, the clear request carries an account, the server receives the clear request, and deletes the commonly used query conditions stored corresponding to the account; the user device cancels the display of options corresponding to the commonly used query conditions in the form query interface.

[0121] See also Figure 4 , a clear control “Clear” is also displayed in the form query interface.

[0122] The above implementation method provides a solution for clearing commonly used query conditions. When the user no longer needs the commonly used query conditions, he can trigger the clear control, thereby triggering the one-click clearing of the options corresponding to the commonly used query conditions. When there are a large number of commonly used query conditions, there is no need to trigger the deletion of the options corresponding to the commonly used query conditions one by one, which simplifies user operations and improves operational efficiency.

[0123] In an optional embodiment, the present application also provides a function of providing a reminder if an instant query yields no results. In an optional implementation, before obtaining a target query condition in response to a query control being triggered, the form-based data query method provided by the present application further includes: obtaining a reference query condition each time it is detected that a user has set a query value based on a query condition setting control corresponding to a target query item, the reference query condition including a query item identifier and a query value corresponding to the target query item; sending the reference query condition to a server so that the server queries the target form based on the reference query condition; and receiving a query result sent by the server. Accordingly, the user device determines a subsequent operation based on the information included in the query result.

[0124] In the first case, if the query result includes information indicating that no data item was found, the user device displays a prompt message; the prompt message is used to indicate that there is no data item that meets the reference query condition in the target form.

[0125] In the second case, if the query result includes information indicating that a data item has been found, it is detected whether the user has set a query value based on a query condition setting control corresponding to the target query item.

[0126] And so on, until the query control is triggered.

[0127] This embodiment performs a query with the help of the server each time a query value is obtained, and thus continues to detect user operations when a data item is queried; when no data item is queried, a prompt message is displayed to the user to remind him that there is no data item that meets the reference query conditions in the target form, so that the user can modify the query value in time, avoiding invalid operations such as the user continuing to set the query value but the data item no longer exists.

[0128] In another optional implementation, before obtaining the target query condition in response to a query control being triggered, the form-based data query method provided by the present application further includes: upon detecting that a user has set a query value based on a query condition setting control corresponding to a first target query item, obtaining a reference query condition, the reference query condition including the query condition corresponding to the first target query item, the query condition including a query item identifier and a query value corresponding to the first target query item; sending the reference query condition to a server, so that the server queries the target form based on the reference query condition; and receiving a query result sent by the server. Accordingly, the user device determines based on information represented by the query result.

[0129] In the first case, if the query result includes information indicating that no data item was found, the user device displays a prompt message; the prompt message is used to indicate that there is no data item that meets the reference query condition in the target form.

[0130] This embodiment provides a function of prompting when an instant query has no results. When the first query value set by the user is obtained, the server is used to perform a query. Therefore, when no data item is found, a prompt message is displayed to remind the user that there is no data item in the target form that meets the reference query conditions. In this way, the user can modify the query value in time, avoiding invalid operations in which the user continues to set the query value but the data item no longer exists.

[0131] In the second case, if the query result includes information used to indicate that the data item was queried, the user operation is continued to be detected. When it is detected that the user has set the query value based on the query condition setting control corresponding to the second target query item, the updated reference query condition is obtained and sent to the server; and so on until the query control is triggered.

[0132] The updated reference query condition includes the query condition corresponding to the first target query item and the query condition corresponding to the second target query item. The query condition corresponding to the second target query item includes the query item identifier and query value corresponding to the second target query item.

[0133] In this case, the reference query conditions used in each instant query include all query values ​​set by the user. Compared with the above optional implementation method, the query results obtained by this implementation method are more accurate.

[0134] In this application, the form query interface may also display other information according to the actual needs of the user, and this embodiment does not limit this. For example, see Figure 4The form query interface also displays an "Expand" control, which is used to expand and display commonly used query conditions. If the expand control is triggered again, the commonly used query conditions are collapsed to save display space. The table body data of the target form in the form query interface changes dynamically based on the query conditions.

[0135] In this application, a user device implements data interaction with a server by calling an interface provided by the server. For example, a user device calls an interface for querying form data, sends the target query criteria to the server as interface parameters, then parses the data returned by the server and passes it as parameters to a dynamic table query component to construct a display of the target data item. Another example is a user device calling an interface for obtaining commonly used query criteria, then parses the data returned by the server to obtain data corresponding to the commonly used query criteria and construct a display of the commonly used query criteria.

[0136] In this application, when developing a component for dynamic form query, the page developer creates and develops the component for dynamic form query in the component folder (or other named component folder), and then introduces and uses the component in the required location. When the component for dynamic form query is used subsequently, the user device passes the form data and the form query method into the component in the form of parameters. The form data parameters received in the component are used to build the form query interface; the form query method received in the component is called when querying, so that when the outer layer receives the call, it will execute the method to rebuild the form query interface.

[0137] Figure 5 is a structural diagram of a form-based data query device according to an exemplary embodiment. Figure 5 As shown, in this embodiment, the form-based data query device 300 can be set in the user equipment, and the form-based data query device 300 includes:

[0138] The first display module 301 is used to display the form query interface corresponding to the target form; the form query interface displays a query control, a query item selection control, and a query condition setting control corresponding to a plurality of initial query items;

[0139] The second display module 302 is configured to display a drop-down list in the form query interface in response to the query item selection control being triggered; the drop-down list includes options corresponding to the multiple initial query items, and each option is selected;

[0140] The third display module 303 is configured to update and display, in the form query interface, query condition setting controls corresponding to the multiple initial query items as query condition setting controls corresponding to at least one target query item in response to the option corresponding to at least one initial query item in the drop-down list being deselected; the target query item being the selected initial query item from the multiple initial query items;

[0141] An acquisition module 304 is configured to acquire a target query condition in response to the query control being triggered; the target query condition includes a query condition corresponding to at least one target query item, the query condition including a query item identifier and a query value, the query value being set by the user based on the query condition setting control corresponding to the target query item;

[0142] The fourth display module 305 is used to obtain query results based on the target query conditions and display the query results in the form query interface. The query results include target data items in the target form that meet the target query conditions.

[0143] Optionally, the third display module 303 is used to:

[0144] In the form query interface, the query condition setting controls corresponding to multiple initial query items are removed from display;

[0145] Obtaining query item content corresponding to each target query item, wherein the query item content includes a query item name, a query item identifier, and a query item type;

[0146] According to the query item content corresponding to each target query item, the query condition setting controls corresponding to each target query item are displayed in the form query interface.

[0147] Optionally, the apparatus 300 further includes:

[0148] The acquisition module 304 is further configured to acquire a reference query condition upon detecting that the user has set a query value based on the query condition setting control corresponding to the first target query item, the reference query condition including the query condition corresponding to the first target query item, the query condition including the query item identifier and the query value corresponding to the first target query item;

[0149] A sending module, configured to send a reference query condition to a server, so that the server can query a target form based on the reference query condition;

[0150] A receiving module, used for receiving the query results sent by the server;

[0151] The fifth display module is used to display prompt information if the query result includes information indicating that no data item is found; the prompt information is used to prompt that there is no data item that meets the reference query conditions in the target form.

[0152] Optionally, the apparatus 300 further includes:

[0153] The acquisition module 304 is further configured to acquire an updated reference query condition if the query result includes information indicating that a data item has been found and when it is detected that the user has set a query value based on the query condition setting control corresponding to the second target query item;

[0154] The sending module is further used to send the updated reference query conditions to the server;

[0155] The acquisition module 304 and the sending module are further used to repeatedly execute the above steps, and so on, until the query control is triggered;

[0156] The updated reference query condition includes the query condition corresponding to the first target query item and the query condition corresponding to the second target query item. The query condition corresponding to the second target query item includes the query item identifier and query value corresponding to the second target query item.

[0157] Optionally, the form query interface further displays a save control; the apparatus 300 further includes:

[0158] The acquisition module 304 is further configured to acquire a target query condition in response to the save control being triggered, and determine the target query condition as a commonly used query condition;

[0159] The sending module is further used to send the currently logged-in account and common query conditions to the server, so that the server can store the account, common query conditions and condition identifiers corresponding to the common query conditions in a corresponding manner;

[0160] The sixth display module is used to display options corresponding to commonly used query conditions in the form query interface.

[0161] Optionally, the apparatus 300 further includes:

[0162] The acquisition module 304 is further configured to, in response to an option corresponding to any common query condition in the form query interface being triggered, acquire a condition identifier corresponding to the common query condition and query item content corresponding to the common query item; the common query item is a query item corresponding to the common query condition, and the query item content includes a query item name, a query item identifier, a query item type, and a query value;

[0163] The seventh display module is used to display the query condition setting controls corresponding to the commonly used query items according to the query item content in the form query interface; the query condition setting controls display the query values;

[0164] The sending module is further used to send the account number and condition identifier to the server, so that the server obtains the commonly used query conditions stored corresponding to the account number and condition identifier, and queries the target form based on the commonly used query conditions;

[0165] The receiving module is also used to receive the query results sent by the server and display the query results in the form query interface.

[0166] Optionally, the form query interface further displays a clear control; the apparatus 300 further includes:

[0167] The sending module is further configured to send a clear request to the server in response to the clear control being triggered, wherein the clear request carries the account number, so that the server deletes the commonly used query conditions stored corresponding to the account number;

[0168] The cancel display module is used to cancel the display of common query conditions in the form query interface.

[0169] Optionally, a delete control corresponding to commonly used query conditions is also displayed in the form query interface; the apparatus 300 further includes:

[0170] The sending module is further configured to send a deletion request for the commonly used query conditions to the server in response to the deletion control being triggered, so that the server deletes the stored commonly used query conditions;

[0171] The cancel display module is used to cancel the display of options corresponding to commonly used query conditions in the form query interface.

[0172] The form-based data query device provided in this embodiment can execute the technical solution of the corresponding method embodiment. Its implementation principle and technical effects are similar to those of the corresponding method embodiment and will not be repeated here.

[0173] The present application also provides a user device, which is intended to be a user terminal in various forms, such as a computer, a smart phone, a laptop computer, a desktop computer, a workstation, a personal digital assistant, and other suitable computers.

[0174] Figure 6 FIG. 1 is a schematic diagram showing the structure of a user equipment according to an exemplary embodiment. Figure 6 As shown, the user equipment 400 includes: a processor 401, and a memory 402 and a transceiver 403 respectively communicatively connected to the processor 401.

[0175] The memory 402 stores computer-executable instructions; the transceiver 403 is used to send and receive data with the server; the processor 401 executes the computer-executable instructions stored in the memory 402 to implement the form-based data query method provided in this application.

[0176] In the embodiment of the present application, the memory 402 and the transceiver 403 are respectively connected to the processor 401 via a bus. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.

[0177] The components, their connections and relationships, and their functions shown herein are merely examples and are not intended to limit the implementation of the present application described and / or claimed herein. The various components are interconnected using different buses and can be mounted on a common motherboard or in other ways as needed.

[0178] In an exemplary embodiment, a computer-readable storage medium is further provided, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the form-based data query method provided in the present application.

[0179] In an exemplary embodiment, a computer program product is further provided, comprising computer-executable instructions. When the computer-executable instructions in the computer program product are executed by a processor, the computer-executable instructions are used to implement the form-based data query method provided in the present application.

[0180] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all optional embodiments, and the actions and modules involved are not necessarily required by this application.

[0181] It should be further noted that, although the various steps in the flowchart are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these sub-steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0182] It should be understood that the above-described device embodiments are merely illustrative, and the device of the present application may also be implemented in other ways. For example, the division of units / modules in the above-described embodiments is merely a logical functional division, and actual implementations may employ other division methods. For example, multiple units, modules, or components may be combined or integrated into another system, or some features may be omitted or not implemented.

[0183] In addition, unless otherwise specified, the functional units / modules in the various embodiments of the present application may be integrated into a single unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The aforementioned integrated units / modules may be implemented in the form of hardware or software program modules.

[0184] If the integrated unit / module is implemented in hardware, the hardware may be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes, but is not limited to, transistors, memristors, etc. Unless otherwise specified, the processor may be any appropriate 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 components. Unless otherwise specified, the memory can be implemented by any type of volatile or non-volatile memory device or a combination of them, such as a USB flash drive, random-access memory (RAM), static random-access memory (SRAM), dynamic random-access memory (DRAM), enhanced dynamic random-access memory (EDRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), resistive random access memory (RRAM), high-bandwidth memory (HBM), hybrid memory cube (HMC), etc. Cube), magnetic storage, flash memory, magnetic disk, optical disk, mobile hard disk or disk and other media that can store program code.

[0185] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution 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 enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application.

[0186] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a particular embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined in any way. To keep the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0187] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0188] It should be understood that the present application is not limited to the exact structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A form-based data query method, characterized in that: Applied to user equipment, the method includes: Displaying a form query interface corresponding to the target form; the form query interface displays a query control, a query item selection control, and query condition setting controls corresponding to multiple initial query items; In response to the query item selection control being triggered, a drop-down list is displayed in the form query interface; the drop-down list includes options corresponding to the multiple initial query items, and each of the options is selected; In response to at least one option corresponding to an initial query item in the drop-down list being deselected, in the form query interface, query condition setting controls corresponding to the multiple initial query items are updated and displayed as query condition setting controls corresponding to at least one target query item; the target query item is the selected initial query item from the multiple initial query items; In response to the query control being triggered, a target query condition is obtained; the target query condition includes query conditions corresponding to the at least one target query item, the query condition includes a query item identifier and a query value, and the query value is set by the user based on the query condition setting control corresponding to the target query item; Based on the target query condition, query results are obtained, and the query results are displayed in the form query interface, wherein the query results include target data items in the target form that meet the target query condition; In the form query interface, updating and displaying the query condition setting controls corresponding to the multiple initial query items as query condition setting controls corresponding to at least one target query item includes: In the form query interface, the query condition setting controls corresponding to the multiple initial query items are canceled; Obtaining query item content corresponding to each target query item, wherein the query item content includes a query item name, a query item identifier, and a query item type; According to the query item contents respectively corresponding to the target query items, query condition setting controls respectively corresponding to the target query items are displayed in the form query interface.

2. The method according to claim 1, characterized in that In response to the query control being triggered, before obtaining the target query condition, the method further includes: When it is detected that the user has set a query value based on the query condition setting control corresponding to the first target query item, a reference query condition is obtained, where the reference query condition includes the query condition corresponding to the first target query item, and the query condition includes the query item identifier corresponding to the first target query item and the query value; Sending a reference query condition to a server, so that the server queries the target form based on the reference query condition; receiving a query result sent by the server; If the query result includes information indicating that no data item is found, prompt information is displayed; the prompt information is used to prompt that no data item that meets the reference query condition exists in the target form.

3. The method according to claim 2, characterized in that The method further comprises: If the query result includes information indicating that a data item has been found, upon detecting that the user has set a query value based on the query condition setting control corresponding to the second target query item, obtaining an updated reference query condition and sending the updated reference query condition to the server; and so on until the query control is triggered; The updated reference query condition includes the query condition corresponding to the first target query item and the query condition corresponding to the second target query item, and the query condition corresponding to the second target query item includes the query item identifier corresponding to the second target query item and the query value.

4. The method according to claim 1, wherein The form query interface also displays a save control; the method further includes: In response to the save control being triggered, acquiring the target query condition, and determining the target query condition as a common query condition; Sending the currently logged-in account and the commonly used query conditions to the server, so that the server stores the account, the commonly used query conditions, and the condition identifiers corresponding to the commonly used query conditions in a corresponding manner; The options corresponding to the commonly used query conditions are displayed in the form query interface.

5. The method according to claim 4, characterized in that The method further comprises: In response to an option corresponding to any common query condition in the form query interface being triggered, obtaining a condition identifier corresponding to the common query condition and a query item content corresponding to a common query item; the common query item is a query item corresponding to the common query condition, and the query item content includes a query item name, a query item identifier, a query item type, and a query value; In the form query interface, according to the query item content, the query condition setting control corresponding to the commonly used query item is displayed; the query value is displayed in the query condition setting control; Sending the account number and the condition identifier to the server, so that the server obtains the commonly used query conditions stored corresponding to the account number and the condition identifier, and queries the target form based on the commonly used query conditions; Receive the query results sent by the server and display the query results in the form query interface.

6. The method according to claim 5, characterized in that The form query interface also displays a clear control; the method further includes: In response to the clear control being triggered, sending a clear request to the server, the clear request carrying the account number, so that the server deletes the commonly used query conditions stored corresponding to the account number; In the form query interface, options corresponding to commonly used query conditions are canceled.

7. The method according to claim 4, characterized in that The form query interface also displays a delete control corresponding to the common query condition; the method further includes: In response to the deletion control being triggered, sending a deletion request for the common query condition to the server, so that the server deletes the stored common query condition; In the form query interface, the options corresponding to the commonly used query conditions are canceled.

8. A data query device based on a form, characterized in that: The device is set in a user equipment, and the device includes: The first display module is used to display a form query interface corresponding to the target form; the form query interface displays a query control, a query item selection control, and query condition setting controls corresponding to multiple initial query items; A second display module is configured to display a drop-down list in the form query interface in response to the query item selection control being triggered; the drop-down list includes options corresponding to the multiple initial query items, and each of the options is selected; a third display module configured to update and display, in response to at least one option corresponding to an initial query item in the drop-down list being deselected, query condition setting controls corresponding to the multiple initial query items as query condition setting controls corresponding to at least one target query item in the form query interface; the target query item being the selected initial query item from the multiple initial query items; an acquisition module, configured to acquire a target query condition in response to the query control being triggered; the target query condition including query conditions corresponding to the at least one target query item, the query condition including a query item identifier and a query value, the query value being set by a user based on a query condition setting control corresponding to the target query item; a fourth display module, configured to obtain query results based on the target query condition and display the query results in the form query interface, wherein the query results include target data items in the target form that meet the target query condition; The third display module is used to: In the form query interface, the query condition setting controls corresponding to the multiple initial query items are canceled; Obtaining query item content corresponding to each target query item, wherein the query item content includes a query item name, a query item identifier, and a query item type; According to the query item contents respectively corresponding to the target query items, query condition setting controls respectively corresponding to the target query items are displayed in the form query interface.

9. A user equipment, characterized in that: include: a processor, and a memory and a transceiver respectively communicatively connected to the processor; The memory stores computer-executable instructions; the transceiver is used to send and receive data with the server; The processor executes the computer-executable instructions stored in the memory to implement the form-based data query 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-executable instructions, which, when executed by a processor, are used to implement the form-based data query method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data query method and device

    CN112580065A

  • Data query method and device and electronic equipment

    CN116450920A