Table data processing method and device, equipment, medium and product

By adding parent description records and configuration display logos to the operation records of the table data display page, the problem of data collapse or expansion cannot be achieved in the grid layout is solved, and the display of hierarchical structure is realized, which improves the clarity of data classification and user experience.

CN119292497AActive Publication Date: 2025-01-10BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411549523.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-01-10
Estimated Expiration
2044-10-31

AI Technical Summary

Technical Problem

Existing table data display based on grid layout cannot support the collapse or expansion of data, resulting in poor display effect.

Method used

By adding parent description records to the operation records identified by the same data and configuring the display identifier, updating the list data, and rendering data in combination with the displayable properties of the table data display page, realizing the display of table data in a collapsed or expanded hierarchical structure in the grid layout .

Benefits of technology

It realizes clearer tabular data classification, saves space, facilitates users to quickly locate information, and allows users to dynamically view list data, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292497A_ABST
    Figure CN119292497A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a table data processing method and device, equipment, a medium and a product. The method comprises the steps that in response to a trigger operation for displaying a table data display page, list data of the table data display page is obtained, and the list data comprises at least one operation record corresponding to the table data; adding a parent description record to the at least two operation records of the same data identifier and configuring a display identifier of the parent description record to obtain updated list data; and performing data rendering according to the updated list data and the displayable attribute of the table data display page to obtain target data presented in the table data display page. According to the technical scheme provided by the embodiment of the invention, clearer table data classification can be provided for a user while the table data is displayed in a folded or unfolded hierarchical structure, so that the user can dynamically view the table data through folding or unfolding operation according to own requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of computer processing technology, and in particular, to a table data processing method, device, equipment, medium and product. Background Art

[0002] Currently, when displaying list data based on a grid layout with virtual scrolling, the absolute position of each grid (cell) is usually set, and each grid occupies a specific row and column position. Then, the list data is rendered based on the position and size of each grid, so that the data content of the list data is rendered and displayed in the grid.

[0003] However, this grid-based layout method can only support the display of tiled data, but cannot support the folding or expanding display of data, resulting in poor display effect. Summary of the invention

[0004] The present disclosure provides a table data processing method, apparatus, device, medium and product, so as to display table data in a folded or expanded hierarchical structure in a grid layout while providing users with clearer table data classification, so that users can dynamically view table data through folding or expanding operations according to their own needs.

[0005] In a first aspect, an embodiment of the present disclosure provides a table data processing method, the method comprising:

[0006] In response to a trigger operation for displaying a table data display page, obtaining list data of the table data display page, wherein the list data includes at least one operation record corresponding to the table data, and the operation record includes at least a data identifier of the data to be displayed;

[0007] Adding a parent description record to at least two operation records with the same data identifier and configuring a display identifier of the parent description record to obtain updated list data; wherein the display identifier is used to indicate whether the data to be displayed in the at least two operation records associated with the parent description record is presented in the table data display page;

[0008] Data rendering is performed according to the updated list data and the displayable attributes of the table data display page to obtain target data presented in the table data display page; wherein the target data is data in the data to be displayed in the operation record.

[0009] In a second aspect, an embodiment of the present disclosure further provides a table data processing device, the device comprising:

[0010] A list data acquisition module, configured to acquire list data of the table data display page in response to a trigger operation of displaying the table data display page, wherein the list data includes at least one operation record corresponding to the table data, and the operation record includes at least a data identifier of the data to be displayed;

[0011] A list data updating module, used for adding a parent description record to at least two operation records with the same data identifier and configuring a display identifier of the parent description record to obtain updated list data; wherein the display identifier is used to indicate whether the data to be displayed in the at least two operation records associated with the parent description record is presented in the table data display page;

[0012] The target data display module is used to render data according to the updated list data and the displayable attributes of the table data display page to obtain the target data presented in the table data display page; wherein the target data is the data in the data to be displayed in the operation record.

[0013] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0014] one or more processors;

[0015] a storage device for storing one or more programs,

[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the table data processing method as described in any one of the embodiments of the present disclosure.

[0017] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the table data processing method as described in any one of the embodiments of the present disclosure.

[0018] In a fifth aspect, the embodiments of the present disclosure further provide a computer program product, including a computer program, which, when executed by a processor, implements the table data processing method as described in any one of the embodiments of the present disclosure.

[0019] The technical solution provided by the embodiment of the present disclosure obtains the list data of the table data display page in response to the trigger operation of displaying the table data display page, wherein the list data includes at least one operation record corresponding to the table data, and the operation record includes at least the data identifier of the data to be displayed; a parent description record is added to at least two operation records with the same data identifier and a display identifier of the parent description record is configured to obtain updated list data; wherein the display identifier is used to indicate whether the data to be displayed in at least two operation records associated with the parent description record are presented in the table data display page; data rendering is performed according to the updated list data and the displayable attributes of the table data display page to obtain the target data presented in the table data display page; the target data is the data in the data to be displayed in the operation record, so as to solve the problem in the prior art of using grid layout to display the data to be displayed. The problem of being unable to fold or expand data, resulting in poor display effect, is solved by adding a parent description record to at least two operation records of the same data identifier in the list data and configuring the display identifier of the parent description record, and then rendering the data through the displayable attributes of the table data display page and the updated list data, and in the data rendering process, judging whether to present the data to be displayed in at least two operation records associated with the parent description record in the table data display page through the display identifier, so that the table data can be displayed in a folded or expanded hierarchical structure in the grid layout, which can provide users with clearer table data classification, save space in the grid layout, and facilitate users to locate the location of required information more quickly. At the same time, it can also enable users to dynamically view the list data through folding or expanding operations according to their own needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0021] Figure 1 A flowchart of a table data processing method provided by an embodiment of the present disclosure;

[0022] Figure 2 A timing diagram for characterizing a table data processing method according to an embodiment of the present disclosure;

[0023] Figure 3 A schematic diagram for representing and displaying target data involved in an embodiment of the present disclosure;

[0024] Figure 4 A flowchart of a table data processing method provided by an embodiment of the present disclosure;

[0025] Figure 5 A schematic diagram for representing and displaying target data provided by an embodiment of the present disclosure;

[0026] Figure 6 A schematic diagram of the structure of a table data processing device provided by an embodiment of the present disclosure;

[0027] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0030] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0031] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0034] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0035] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0036] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0037] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0038] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0039] Before introducing the technical solution, an exemplary description of the application scenario can be given. The technical solution can be applied to any scenario where data needs to be displayed in a folded or expanded hierarchical structure. For example, in a table component that supports virtual scrolling, if you want to display table data in a folded or expanded hierarchical structure in a grid layout, you can use the technical solution provided by the embodiment of the present disclosure.

[0040] Figure 1 A flow chart of a table data processing method provided in an embodiment of the present disclosure is applicable to any scenario where table data needs to be displayed in a folded and expanded hierarchical structure. The method can be executed by a table data processing device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, a PC or a server, etc.

[0041] like Figure 1 As shown, the method of this embodiment may specifically include:

[0042] S110. In response to a trigger operation for displaying a table data display page, obtain list data of the table data display page, wherein the list data includes at least one operation record corresponding to the table data, and the operation record includes at least a data identifier of the data to be displayed.

[0043] Among them, the tabular data display page refers to a page that displays multiple operation records in the list data in the form of a table. The multiple operation records in the list data can be arranged in a certain linear order, for example, each operation record is arranged in sequence according to the row dimension. An operation record may correspond to one or more grids. If there is one, the grid includes all the data of the operation record; if there are multiple, it means that each grid includes part of the data of the operation record. The data to be displayed may refer to the specific data in the operation record. The data identifier may be identification information used to distinguish data of different levels. For example, the data identifier may be time, indicating that the data of the same time is located at the same level, or the data identifier may be a department, indicating that the data of the same department is located at the same level, or the data identifier may be a project, indicating that the data of the same project is located at the same level. Alternatively, the data identifier is an identifier that the data to be displayed belongs to the same level. For example, when viewing historical operation records in the table component, the historical operation records include multiple operation records. Each operation record is a row of data in the list data. Each operation record includes information such as change time, operation user, change type, and change content. Any of the change time, operation user, change type, and change details can be used as a data identifier. If the change time is used as the data identifier, it indicates that the operation records of the same change time are at the same level, so that the operation records at the same level can be represented in a grid format and folded or expanded.

[0044] In this embodiment, when a table component for displaying list data is opened, it is considered that a trigger operation for displaying a table data display page has been responded to; or, when the list data to be displayed is imported into the table component, it is considered that a trigger operation for displaying a table data display page has been responded to; or, when a control for displaying a table data display page is triggered, it is considered that a trigger operation for displaying a table data display page has been responded to. Furthermore, the list data to be displayed in the table data display page can be obtained so that the list data can be processed to achieve a folded or expanded hierarchical structure display effect.

[0045] For example, the table component may be a grid component of variable size that supports virtual scrolling, as shown in Figure 2When the user opens the table component, the table component passes the list data to the hierarchical manager, which is responsible for processing the data so that they can be displayed in a hierarchical structure in the form of a table. For example, the list data includes five operation records, and the list data is represented as: {[1, a], [2, a], [3, b], [4, b], [5, c]}; each array is an operation record. At this time, 1, 2, 3, 4, 5 represent the data to be displayed, and a, b, c represent the data identifiers to which the data to be displayed belongs. Based on this, it can be seen that the data 1 and 2 to be displayed correspond to a data identifier a, the data 3 and 4 to be displayed correspond to a data identifier b, and the data identifier of the data 5 to be displayed is c.

[0046] S120: Add a parent description record to at least two operation records with the same data identifier and configure a display identifier of the parent description record to obtain updated list data.

[0047] Among them, the parent description record may refer to the record of the level directly above the operation record, and the parent description record may contain relevant information describing its child records, such as the number of child records, operation information on child records, time, record identifier, etc. In the hierarchical structure, the operation record can be called a child, and the record of the level directly above the child record is the parent description record. The display identifier is used to indicate whether the data to be displayed in at least two operation records associated with the parent description record is presented in the table data display page. The display identifiers of different parent description records can be the same or different.

[0048] In this embodiment, it can be determined whether there are at least two operation records in the list data with the same data identifier. If there are, it means that the at least two operation records corresponding to the data identifier belong to the same level. A parent description record can be created for the at least two operation records corresponding to the data identifier, and the parent description record can be written into the list data. If there is only one operation record in the list data associated with a certain data identifier, a parent description record is not created for it. At the same time, in order to have a folding and unfolding display effect in the future, a display identifier can be configured for each parent description record according to the folding display requirements. The list data after adding the parent description record can be used as the updated list data. At this time, the updated list data includes the operation records corresponding to the parent description record and its children and the operation records that do not have the same data identifier as other operation records, so that when displaying the list data, the parent description record can be displayed to display the parent record of the operation record, and whether to display the at least two operation records associated with the parent description record is determined based on the display identifier. For example, the display identifier is set to 1, indicating that it is not displayed, and the display identifier is set to 2, indicating that it is displayed; or the display identifier is set to empty, indicating that it is not displayed, and the display identifier is set to have a value, indicating that it is displayed.

[0049] For example, see Figure 2 After receiving the list data, the hierarchical manager can calculate the hierarchical relationship between the operation records and the position of each operation record in the hierarchical structure according to the fields in the operation records. Insert the parent description record corresponding to at least two operation records according to the position. For example, in the list data, [1, a], [2, a] have the same data identifier a, then a parent description record 0 is created for these two operation records, and the parent description record 0 can be expressed as [0, '', a]. At the same time, the display identifier of all parent description records is set to: the identifier that the data to be displayed in at least two operation records associated with the parent description record is not presented in the table data display page, which means that the data to be displayed does not follow the parent description record display, and is hidden and displayed in a folded form. For example, the display identifier is set to empty (or represented by other values).

[0050] It should be noted that in order to display a hierarchical list effect, a parent description record can be written before at least two operation records with the same data identifier, so that when displayed, the parent description record can be located above its subordinate operation records, presenting a hierarchical display effect.

[0051] In this embodiment, a parent description record is added to at least two operation records with the same data identifier and a display identifier of the parent description record is configured to obtain updated list data, including: when it is detected that at least two operation records have the same data identifier, the parent description record is inserted at the operation record where the data identifier first appears, and a display identifier is configured for the parent description record; at least two operation records are child operation records under the parent description record; after the operation records with the same data identifier in the list data are processed, the updated list data is obtained.

[0052] Specifically, each operation record in the list data can be traversed to detect whether there are at least two operation records with the same data identifier. If detected, a parent description record can be inserted before (or at an appropriate position) the operation record that is first traversed among the at least two operation records to ensure that the parent description record is in front and the subsequent child operation records are displayed. A display identifier is configured for the parent description record. After traversing the list data, the list data with the parent description record inserted is obtained, so that when the list data is displayed, the parent description record is displayed above the at least two operation records, presenting a hierarchical display effect.

[0053] For example, the original list data is: {[1, a], [2, a], [3, b], [4, b], [5, c]}. There are two operation records with data identification a, then insert a parent description record [0, '', a] before [1, a]. There are two operation records with data identification b, then insert a parent description record [0, '', b] before [3, b], that is, between [3, b] and its previous record [2, a]. After processing, the updated list data is: {[0, '', a], [1, a], [2, a], [3, b], [4, b], [5, c], [0, '', b]}.

[0054] S130 , performing data rendering according to the updated list data and displayable attributes of the table data display page to obtain target data presented in the table data display page.

[0055] The target data is the data in the data to be displayed in the operation record. The displayable attributes may refer to the relevant information used to limit the data displayed in the page, for example, the displayable attributes include but are not limited to font, color, size, background, margin, etc.

[0056] In this embodiment, the displayable properties of the table data display page can be combined to determine which data in the updated list data needs to be rendered, and then render the data. When it comes to rendering the parent description record, it can be determined whether to display the child operation record of the parent description record according to the display identifier of the parent description record. If it is displayed, it can be rendered into a normal display state. If it is not displayed, it can be rendered into a hidden display state to obtain the rendered target data. The target data can be displayed in the table data display page, so that the user can see the list data with a hierarchical structure and a folded display effect.

[0057] In this embodiment, the displayable attributes include the displayable data height of the table data display page. Accordingly, data rendering is performed based on the updated list data and the displayable attributes of the table data display page to obtain the target data presented in the table data display page. The implementation method may be: determining the displayable quantity based on the displayable data height and the data height of each data to be displayed, and reading the row data in the list data in sequence based on the displayable quantity; if the data content of the row data is a parent description record, rendering the parent description record, and rendering at least two operation records associated with the parent description record based on the display identifier of the parent description record to obtain the target data presented in the table data display page.

[0058] The displayable data height refers to the vertical space available for displaying data on the page. The data height of each piece of data to be displayed refers to the vertical space occupied by the data to be displayed on the page. The data height of each piece of data to be displayed can be the same or different.

[0059] Specifically, if the data height of each piece of data to be displayed is the same, the data height of the data to be displayed can be processed as a quotient using the displayable data height, and the quotient value can be used as the displayable quantity. It should be noted that if the calculation result is a decimal, it can be rounded down to the nearest integer to ensure that the complete operation record is displayed. Further, the row data in the list data can be read in sequence according to the displayable quantity. In the process of reading the row data, it is simultaneously detected whether the row data is a parent description record. If so, the parent description record is rendered into a normal display state, and how to render at least two operation records associated with the parent description record is determined according to the display identifier of the parent description record. If the display identifier is a non-display identifier, the operation record is rendered into a hidden display state. If the display identifier is a display identifier, the operation record is rendered into a normal display state. If the row data is an operation record without a parent description record, the operation record is rendered into a normal display state so that it is normally displayed on the page, and the target data is obtained and displayed. It should be noted that if the display mark of the parent description record is an mark that does not display the data to be processed, then the number of at least two operation records associated with the parent description record will not be included in the rendering number. After each record in the normal display state is rendered, the rendering number is automatically increased by 1, so that the rendering number of this rendering is adapted to the displayable number, ensuring that the appropriate number of records can be displayed normally within the given displayable data height.

[0060] It should be noted that if the data height of each piece of data to be displayed is different, when the list data is displayed for the first time, you can start from the first record in the list data (which may be the parent description record or the operation record), and accumulate the data heights of each record that needs to be rendered into a normal display state in sequence, so that the accumulated height matches the height of the displayable data. In this way, the number of records displayed in the table data display page each time may be adjusted dynamically. It should also be noted that a certain amount of margins and padding may be required between operation records and between records and page edges, which may take up additional height. Therefore, the height of the displayable data can also be dynamically adjusted according to these additional heights to ensure the list display effect.

[0061] In this embodiment, at least two operation records associated with the parent description record are rendered according to the display identifier of the parent description record, including: if the display identifier of the parent description record is a first identifier, the data to be displayed in the at least two operation records associated with the parent description record are rendered to a first height; if the display identifier corresponding to the parent description record is a second identifier, the data to be displayed in the at least two operation records associated with the parent description record are rendered to a second height.

[0062] The first identifier is an identifier of the data to be displayed that presents at least two operation records. The first height may be a height of the data to be displayed in a normal display state in the list. The second identifier is an identifier that does not present the data to be displayed in at least two operation records, and the second height may be a height of the data to be displayed in a folded display state in the list.

[0063] Specifically, if the display identifier of the parent description record is detected as the first identifier, it means that its child operation record needs to be presented normally on the page. At this time, the data to be displayed in at least two operation records associated with the parent description record can be rendered as the first height, so that the operation record is displayed at a normal height. If the display identifier of the parent description record is detected as the second identifier, it means that its child operation record needs to be folded and displayed on the page. At this time, the data to be displayed in at least two operation records associated with the parent description record can be rendered as the second height, so that the operation record is displayed at the second height. For example, the first height is set to the normal height. The second height is set to 0 (or a sufficiently small value). The advantage of setting the second height is that the height of the data to be displayed on the page is the second height, which is visually invisible, achieving the effect of folding and hiding the display.

[0064] For example, see Figure 2 When the table component renders to a parent description record, it queries the hierarchy manager to learn the display flag of the record. If the display flag is the first flag, it means that the child operation records of the parent description record are not collapsed, and the table component will render all the child operation records of the parent description record. If the display flag is the second flag, it means that the child operation records of the parent record are collapsed, and the table component will render the child operation records and set the height of the child operation records to 0 to hide them. For a schematic diagram of the target data to be rendered, see Figure 3 , Figure 3 Record A and record C are parent description records, and the child operation records under them are hidden, and the child operation records without parent description records are displayed normally.

[0065] The technical solution provided in this embodiment not only renders the parent description record, but also renders the operation record, and realizes the folding or expanding effect by controlling the height of the child operation record. When the display identifier of the parent description record is the first identifier, its child operation record is in a folded state, and the height of its child operation record is set to the second height, so that they are visually invisible. When the display identifier of the parent description record is the second identifier, when its child operation record is in an expanded state, the height of its child operation record is set to a normal height value, so that they are visually visible. In this way, when the child operation record is folded or expanded, it is not necessary to recalculate the height of the entire list, but only to update the height of the affected record grid, and ensure that when the child operation record is folded and expanded, the position and size of the child operation record can be correctly updated to ensure that the page layout will not become chaotic or unstable due to the folding or expanding operation, thereby improving the usability of the user interface.

[0066] The technical solution provided by the embodiment of the present disclosure obtains the list data of the table data display page in response to the trigger operation of displaying the table data display page, wherein the list data includes at least one operation record corresponding to the table data, and the operation record includes at least the data identifier of the data to be displayed; a parent description record is added to at least two operation records with the same data identifier, and a display identifier of the parent description record is configured to obtain updated list data; wherein the display identifier is used to indicate whether the data to be displayed in at least two operation records associated with the parent description record are presented in the table data display page; data rendering is performed according to the updated list data and the displayable attributes of the table data display page to obtain the target data presented in the table data display page; the target data is the data in the data to be displayed in the operation record, which solves the problem that the grid layout is not displayed in the prior art. The problem of poor display effect caused by the method of folding or expanding data is solved by adding a parent description record to at least two operation records of the same data identifier in the list data and configuring the display identifier of the parent description record. Then, data rendering is performed through the displayable attributes of the table data display page and the updated list data. In the data rendering process, the display identifier is used to determine whether to present the data to be displayed in the at least two operation records associated with the parent description record in the table data display page, so that the table data can be displayed in a folded or expanded hierarchical structure in the grid layout, which can provide users with a clearer classification of operation records, save space in the grid layout, and facilitate users to locate the location of required information more quickly. At the same time, it can also enable users to dynamically view the list data through folding or expanding operations according to their own needs.

[0067] Figure 4A flowchart of a table data processing method provided by an embodiment of the present disclosure. The technical solution of this embodiment, based on the above-mentioned embodiment, can also respond to the trigger operation of the target user in the table data display page, determine the trigger data identifier of the triggered target data, and if the trigger data identifier is the data identifier of the parent description record in the list data, then update the display identifier of the parent description record to re-execute the data rendering operation based on the updated display identifier to obtain the target data in the table data display page. The specific implementation method can refer to the detailed description of the embodiment of the present disclosure. Among them, the technical features that are the same or similar to those in the above-mentioned embodiment will not be repeated here.

[0068] like Figure 4 As shown, the method of this embodiment may specifically include:

[0069] S210 . In response to a trigger operation of a target user in a table data display page, determine a trigger data identifier of the triggered target data.

[0070] The triggering operation includes but is not limited to clicking, touching, sliding and other operations.

[0071] It should be noted that the target data presented in the data page includes the record data of the parent description record and / or the operation record. In this embodiment, the target user can perform a certain operation on the table data display page, such as clicking, touching or selecting a certain record data. When it is detected that the target user has performed a trigger operation on a certain record data in the table data display page, the data identifier corresponding to the triggered record data can be determined as the trigger data identifier.

[0072] Exemplarily, the record data of the parent description record displayed in the data page may be associated with a control for triggering the expansion or collapse of its child operation record, or the control may be configured in the record data of the parent description record. When it is detected that the target user clicks on the control associated with the parent description record, the record data of the triggered parent description record may be used as the triggered target data. The trigger data identifier in the record data of the parent description record may be used to describe the uniqueness of the parent description record.

[0073] S220: If the trigger data identifier is the data identifier of the parent description record in the list data, then update the display identifier of the parent description record to re-execute the data rendering operation based on the updated display identifier to obtain the target data in the table data display page.

[0074] In this embodiment, if it is detected that the trigger data identifier is the data identifier of the parent description record in the list data, it means that the target user wants to expand and view or fold and hide the child operation record of the parent description record. At this time, the display identifier of the parent description record can be updated. For example, if the display identifier is the first identifier, it means that the current child operation record is in an expanded presentation state and needs to be folded and hidden, and the display identifier can be updated to the second identifier. If the display identifier is the second identifier, it means that the current child operation record is in a folded and hidden state and needs to be expanded and presented, and the display identifier can be updated to the first identifier. In other words, updating the display identifier of the parent description record includes: updating the display identifier of the parent description record from the first identifier to the second identifier, or updating the display identifier of the parent description record from the second identifier to the first identifier. Further, when the display identifier of the parent description record is updated, the data rendering operation can be re-executed based on the updated display identifier. After re-rendering, the table data display page will present the updated target data, so that the user can expand or collapse the hierarchical structure by clicking on the record, thereby dynamically viewing or hiding the record data of different levels.

[0075] For example, see Figure 3 , the target user clicks on a parent description record (such as record A) to expand or view the child operation records under its hierarchy. The table component will notify the hierarchy manager to change the display indicator of record A from "collapse indicator (i.e. second indicator)" to "expand indicator (i.e. first indicator)". The hierarchy manager updates the display indicator of record A, and the table component needs to re-render the list data. When rendering the child operation record, the table component notifies the hierarchy manager to determine the display indicator of the parent record to which it belongs. If it is "expand indicator", the table component will render and display all related child operation records. The schematic diagram of the target data presented can be seen in Figure 5 Otherwise, the sub-operation record is rendered and its height is set to 0 to hide it. In this way, the hierarchical structure can be expanded or collapsed to dynamically view or hide data at different levels.

[0076] In this embodiment, the page data processing method further includes: in response to a triggering operation of sliding to display the table data display page, rendering the data according to the sliding position, displayable attributes and updated list data to obtain target data.

[0077] The sliding position is used to represent the starting number of rows to be read from the list data. The sliding position can be used to represent the distance the user has slid or the offset of the current page relative to the entire list data.

[0078] Specifically, a slide bar (or other slide controls) can be pre-configured, and the target user can perform a sliding operation on the table data display page by dragging (such as dragging up and down) the slide bar to realize sliding browsing of the list data. Based on this, when a trigger operation of sliding display of the table data display page is detected, the current sliding position can be determined, and the record to be rendered can be determined based on the sliding position and the displayable data height of the table data display page, as well as the data height of the record after the last record normally presented on the page in the list data, and the rendering operation can be re-executed based on the display identifier of the parent description record. After re-rendering, the target data dynamically rendered according to the user's sliding position and the updated list data will be presented on the table data display page, enabling the user to realize sliding browsing of the list data by sliding the record.

[0079] The technical solution provided by the embodiment of the present disclosure determines the trigger data identifier of the triggered target data in response to the trigger operation of the target user in the table data display page; if the trigger data identifier is the data identifier of the parent description record in the list data, the display identifier of the parent description record is updated to re-execute the data rendering operation based on the updated display identifier to obtain the target data in the table data display page, thereby enabling the target user to fold or expand the record by triggering the target data, thereby dynamically viewing or hiding the sub-operation records.

[0080] Figure 6 A schematic diagram of the structure of a table data processing device provided by an embodiment of the present disclosure is shown in FIG. Figure 6 As shown, the device includes: a list data acquisition module 310, a list data update module 320 and a target data display module 330.

[0081] Among them, the list data acquisition module 310 is used for the list data acquisition module, which is used to respond to the trigger operation of displaying the table data display page, and obtain the list data of the table data display page, wherein the list data includes at least one operation record corresponding to the table data, and the operation record at least includes the data identifier of the data to be displayed; the list data update module 320 is used to add a parent description record for at least two operation records with the same data identifier and configure the display identifier of the parent description record to obtain updated list data; wherein the display identifier is used to indicate whether the data to be displayed in at least two operation records associated with the parent description record is presented in the table data display page; the target data display module 330 is used to render data according to the updated list data and the displayable attributes of the table data display page, and obtain the target data presented in the table data display page; wherein the target data is the data in the data to be displayed in the operation record.

[0082] Based on the above device, optionally, the list data updating module 320 includes:

[0083] A parent description record determination unit is used to insert a parent description record at the operation record where the data identifier first appears when detecting that at least two operation records have the same data identifier, and configure a display identifier for the parent description record; wherein the at least two operation records are child operation records under the parent description record;

[0084] The list data updating unit is used to obtain updated list data after processing the operation records with the same data identifier in the list data is completed.

[0085] Based on the above device, optionally, the displayable attribute includes the displayable data height of the table data display page, and the target data display module 330 includes:

[0086] A row data reading unit, used to determine the displayable quantity according to the displayable data height and the data height of each piece of data to be displayed, and read the row data in the list data in sequence according to the displayable quantity;

[0087] The target data determination unit is used to render the parent description record if the row data is a parent description record, and render at least two operation records associated with the parent description record according to the display identifier of the parent description record to obtain the target data presented in the table data display page.

[0088] Based on the above device, optionally, the target data determination unit includes:

[0089] A first height rendering unit, configured to render the data to be displayed in at least two operation records associated with the parent description record as a first height if the display identifier of the parent description record is a first identifier; wherein the first identifier is an identifier for presenting the data to be displayed in the at least two operation records;

[0090] A second height rendering unit is used to render the data to be displayed of at least two operation records associated with the parent description record to a second height when the display identifier corresponding to the parent description record is a second identifier; wherein the second identifier is an identifier that does not present the data to be displayed in the at least two operation records.

[0091] On the basis of the above device, optionally, the device further includes:

[0092] a trigger data identifier determining unit, configured to determine a trigger data identifier of the triggered target data in response to a trigger operation of a target user in the table data display page;

[0093] A display identifier updating unit is used to update the display identifier of the parent description record if the trigger data identifier is the data identifier of the parent description record in the list data, so as to re-execute the data rendering operation based on the updated display identifier to obtain the target data in the table data display page.

[0094] Based on the above device, optionally, the display identifier updating unit is used to update the display identifier of the parent description record from the first identifier to the second identifier, or to update the display identifier of the parent description record from the second identifier to the first identifier.

[0095] On the basis of the above device, optionally, the device further includes:

[0096] A sliding rendering unit is used to respond to a triggering operation of sliding to display the table data display page, render data according to the sliding position, the displayable attributes and the updated list data, and obtain target data; wherein the sliding position is used to represent the starting reading row number of the list data.

[0097] The technical solution of the disclosed embodiment is to obtain the list data of the table data display page in response to the trigger operation of displaying the table data display page, wherein the list data includes at least one operation record corresponding to the table data, and the operation record includes at least the data identifier of the data to be displayed; add a parent description record to at least two operation records with the same data identifier and configure the display identifier of the parent description record to obtain updated list data; wherein the display identifier is used to indicate whether the data to be displayed in at least two operation records associated with the parent description record is presented in the table data display page; render the data according to the updated list data and the displayable attributes of the table data display page to obtain the target data presented in the table data display page; the target data is the data in the data to be displayed in the operation record, which solves the problem in the prior art that the grid layout cannot be used to display the data to be displayed. The problem of poor display effect caused by folding or expanding data is solved by adding a parent description record to at least two operation records of the same data identifier in the list data and configuring the display identifier of the parent description record, and then rendering the data through the displayable attributes of the table data display page and the updated list data, and in the data rendering process, judging whether to present the data to be displayed in the at least two operation records associated with the parent description record in the table data display page through the display identifier, so that the table data can be displayed in a folded or expanded hierarchical structure in the grid layout, which can provide users with clearer grid data classification, save space in the grid layout, and facilitate users to locate the location of required information more quickly. At the same time, it can also enable users to dynamically view the list data through folding or expanding operations according to their own needs.

[0098] The table data processing device provided in the embodiments of the present disclosure can execute the table data processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0099] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0100] Figure 7 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 7 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0101] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0102] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0103] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0104] The electronic device provided in the embodiment of the present disclosure and the table data processing method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in the embodiment of the present disclosure can be referred to the above embodiment, and the present embodiment has the same beneficial effects as the above embodiment.

[0105] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the table data processing method provided in the above embodiments is implemented.

[0106] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0107] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0108] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0109] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0110] In response to a trigger operation for displaying a table data display page, obtaining list data of the table data display page, wherein the list data includes at least one operation record corresponding to the table data, and the operation record includes at least a data identifier of the data to be displayed;

[0111] Adding a parent description record to at least two operation records with the same data identifier and configuring a display identifier of the parent description record to obtain updated list data; wherein the display identifier is used to indicate whether the data to be displayed in the at least two operation records associated with the parent description record is presented in the table data display page;

[0112] Data rendering is performed according to the updated list data and the displayable attributes of the table data display page to obtain target data presented in the table data display page; wherein the target data is data in the data to be displayed in the operation record.

[0113] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0114] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0115] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0116] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0117] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0118] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0119] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0120] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A table data processing method, characterized in that: include: In response to a trigger operation for displaying a table data display page, obtaining list data of the table data display page, wherein the list data includes at least one operation record corresponding to the table data, and the operation record includes at least a data identifier of the data to be displayed; Adding a parent description record to at least two operation records with the same data identifier and configuring a display identifier of the parent description record to obtain updated list data; wherein the display identifier is used to indicate whether the data to be displayed in the at least two operation records associated with the parent description record is presented in the table data display page; Data rendering is performed according to the updated list data and the displayable attributes of the table data display page to obtain target data presented in the table data display page; wherein the target data is data in the data to be displayed in the operation record.

2. The method according to claim 1, characterized in that The step of adding a parent description record to at least two operation records with the same data identifier and configuring a display identifier of the parent description record to obtain updated list data includes: When it is detected that at least two operation records have the same data identifier, a parent description record is inserted at the operation record where the data identifier first appears, and a display identifier is configured for the parent description record; wherein the at least two operation records are child operation records under the parent description record; After the operation records with the same data identifier in the list data are processed, updated list data are obtained.

3. The method according to claim 1, characterized in that The displayable attribute includes the displayable data height of the table data display page, and the data rendering is performed according to the updated list data and the displayable attribute of the table data display page to obtain the target data presented in the table data display page, including: Determine the displayable quantity according to the displayable data height and the data height of each piece of data to be displayed, and read the row data in the list data in sequence according to the displayable quantity; If the row data is a parent description record, the parent description record is rendered, and at least two operation records associated with the parent description record are rendered according to the display identifier of the parent description record to obtain the target data presented in the table data display page.

4. The method according to claim 3, characterized in that The rendering of at least two operation records associated with the parent description record according to the display identifier of the parent description record includes: If the display identifier of the parent description record is a first identifier, the data to be displayed in at least two operation records associated with the parent description record are rendered as a first height; wherein the first identifier is an identifier for presenting the data to be displayed of the at least two operation records; When the display identifier corresponding to the parent description record is a second identifier, the data to be displayed of at least two operation records associated with the parent description record are rendered to a second height; wherein the second identifier is an identifier that does not present the data to be displayed in the at least two operation records.

5. The method according to claim 1, characterized in that The method further comprises: In response to a trigger operation of a target user in the table data display page, determining a trigger data identifier of the triggered target data; If the trigger data identifier is the data identifier of the parent description record in the list data, the display identifier of the parent description record is updated to re-execute the data rendering operation based on the updated display identifier to obtain the target data in the table data display page.

6. The method according to claim 5, characterized in that The updating of the display mark of the parent description record includes: The display identifier of the parent description record is updated from the first identifier to the second identifier, or the display identifier of the parent description record is updated from the second identifier to the first identifier.

7. The method according to claim 1 or 5, characterized in that: The method further comprises: In response to a triggering operation of sliding and displaying the table data display page, data rendering is performed according to the sliding position, the displayable attributes and the updated list data to obtain target data; The sliding position is used to indicate the starting reading line number of the list data.

8. A table data processing device, characterized in that: include: A list data acquisition module, configured to acquire list data of the table data display page in response to a trigger operation of displaying the table data display page, wherein the list data includes at least one operation record corresponding to the table data, and the operation record includes at least a data identifier of the data to be displayed; A list data updating module, used for adding a parent description record to at least two operation records with the same data identifier and configuring a display identifier of the parent description record to obtain updated list data; wherein the display identifier is used to indicate whether the data to be displayed in the at least two operation records associated with the parent description record is presented in the table data display page; The target data display module is used to render data according to the updated list data and the displayable attributes of the table data display page to obtain the target data presented in the table data display page; wherein the target data is the data in the data to be displayed in the operation record.

9. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the table data processing method according to any one of claims 1 to 7.

10. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the table data processing method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the table data processing method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Hierarchically presenting tabular data

    CN102067111A

  • Display method, device, equipment and system for dynamic lists

    CN106873955A

  • Table rendering display method and device, computer equipment and storage medium

    CN112765947A

  • Data display method and device, computer equipment and storage medium

    CN114003157A

  • Business data processing method and device based on Ant Design, medium and electronic equipment

    CN117111805A