Paging loading method and device for tree data, equipment and storage medium
Set the selection box and expand icon through the node of the tree -shaped data, and use the paging loading method to display the sub -node, solving the long time loading time of the tree data and the selection/cancellation linkage problem, which significantly improves the user experience.
Patent Information
- Application Number
- CN202411958795.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-01-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, although paging loading method is adopted in the prior art, there is still a problem of selecting/unselecting linkage, resulting in a long loading time and affecting the user experience.
Set the mid -selection box and expand icon by any node of the tree -shaped data, and use the subordinate menu page with a preset number threshold to display the sub -node when the icon is selected. At the same time, the linkage management of the selected box state is achieved to ensure the correctness and efficiency of the selected operation.
Under the premise of ensuring the correct logic of the linkage, the loading time of tree data is significantly reduced, the user experience is improved, and the selection/cancellation of the linkage linkage caused by the introduction of pagination is solved.
Smart Images

Figure CN119377516A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data loading optimization, and in particular to a paging loading method, device, equipment and storage medium for tree-shaped data. Background Art
[0002] The data of many businesses are represented in a tree structure, such as provincial and municipal divisions, organizational structures, category data, etc. Since the amount of such data is usually large, loading all nodes at once not only takes a long time, but also puts a lot of pressure on the server, resulting in a waste of resources and seriously affecting the user experience. Existing solutions generally adopt the node lazy loading mode, that is, only all first-level nodes are loaded initially. When the user clicks to expand a node, all child nodes under the node are loaded, and so on. However, as the amount of data increases further, the number of child nodes under certain nodes may be very large, resulting in a long time to load all child nodes when expanding the node even if lazy loading is used. The above problems can be solved by optimizing the loading method from all-at-once loading to paging loading. However, the selection / unselection linkage problem caused by the introduction of paging loading has caused trouble. How to properly solve the above problems has become a topic that the industry needs to solve urgently. Summary of the invention
[0003] The present invention provides a paging loading method, device, equipment and storage medium for tree data, which are used to reduce the loading time of tree data while ensuring the correct linkage logic, so as to significantly improve the user experience.
[0004] According to a first aspect of the present invention, a paging loading method for tree-shaped data is provided, and the paging loading method for tree-shaped data comprises: Set a check box and expansion icon for any node of the tree data; When the expansion icon of a node is selected, a lower-level menu page with a preset number threshold is used to display the child nodes. If the number of child nodes of the node is greater than the preset number threshold, the child nodes are displayed in a paged loading manner; When the check box of a node is checked, the check boxes of all descendant nodes of the node are checked and cannot be selected; When the check box of a node changes from a checked state to an unchecked state, the check boxes of all descendant nodes of the node change to an unchecked and selectable state; When the check box of a node is unchecked and a descendant node of the node is selected, the check box of the selected descendant node is checked and selectable, the check box states of all ancestor nodes of the selected descendant node are changed to half-checked and selectable, and the check boxes of all descendant nodes of the selected descendant node are checked and unselectable.
[0005] In one embodiment, it further includes: When the number of child nodes in the lower menu page of a certain node is less than a preset number threshold, it indicates that all child nodes of the node have been loaded.
[0006] In one embodiment, it further includes: The semi-selected state refers to that the check box of any descendant node of the node is in a selected state.
[0007] In one embodiment, it further includes: The unselectable state refers to a state in which the check box of the node is disabled.
[0008] In one embodiment, it further includes: The expansion icon of the end node of the tree data is hidden.
[0009] In one embodiment, it further includes: The default state of any node is unselected and selectable.
[0010] According to a second aspect of the present invention, there is provided a paging loading device for tree data, comprising: The setting module is used to set a check box and an expansion icon for any node of the tree data; A paging module, for displaying child nodes using a lower-level menu page with a preset number threshold when the expansion icon of a certain node is selected, and for displaying child nodes using a paging loading method if the number of child nodes of the node is greater than the preset number threshold; A selection module is used to select and unselect the check boxes of all descendant nodes of a node when the check box of the node is selected; The unchecked module is used to change the check boxes of all descendant nodes of a node to an unchecked and selectable state when the check box of a node changes from a checked state to an unchecked state; The semi-selected module is used to change the selected box of a node to a selected and selectable state when the selected box of the node is unselected and a descendant node of the node is selected, and the selected box state of all ancestor nodes of the selected descendant node is changed to a semi-selected and selectable state, and the selected boxes of all descendant nodes of the selected descendant node are selected and unselectable.
[0011] In one embodiment, the setting module, the paging module, the selected module, the unselected module and the semi-selected module are controlled to implement any of the above-mentioned paging loading methods for tree data.
[0012] According to a third aspect of the present invention, there is provided an electronic device, the electronic device comprising: a communication interface, a processor, and a memory; The memory is used to store program instructions, and when the program instructions are executed by the processor that is communicatively connected to the memory through the communication interface, any of the above-mentioned paging loading methods for tree-shaped data is implemented.
[0013] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a computer (for example, a processor in the computer), any of the above-mentioned tree data paging loading methods is implemented.
[0014] In summary, the present invention provides a method and device for paging loading of tree data, the method comprising: setting a check box and an expansion icon for any node of the tree data; when the expansion icon of a node is selected, using a lower-level menu page with a preset number threshold to display the child nodes, if the number of child nodes of the node is greater than the preset number threshold, using paging loading to display; when the check box of a node is selected, the check boxes of all descendant nodes of the node are in a selected and unselectable state; when the check box of a node changes from a selected state to an unselected state, the check boxes of all descendant nodes of the node change to an unselected and selectable state. The technical solution of the present application solves the linkage problem of selecting / unselecting child nodes caused by introducing paging loading, reduces the loading time of tree data, and significantly improves the user experience.
[0015] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0016] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A flowchart of a paging loading method for tree data provided by an embodiment of the present invention; Figure 2 A schematic diagram of tree data of a paging loading method of tree data provided by an embodiment of the present invention; Figure 3 A schematic diagram of tree data of another method for paging tree data loading provided by an embodiment of the present invention; Figure 4 A schematic diagram of a selected state, an unselected state and a semi-selected state provided for an embodiment of the present invention; Figure 5 A structural diagram of a paging loading device for tree data provided by an embodiment of the present invention; Figure 6 A structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0020] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0021] like Figure 1 As shown, the present invention provides a paging loading method for tree data, and the paging loading method for tree data includes steps S11-S15: In step S11, a check box and an expansion icon are set for any node of the tree data; In step S12, when the expansion icon of a certain node is selected, a lower-level menu page with a preset number threshold is used to display the child nodes. If the number of child nodes of the node is greater than the preset number threshold, the child nodes are displayed in a paged loading manner; In step S13, when the check box of a certain node is checked, the check boxes of all descendant nodes of the node are checked and cannot be selected; In step S14, when the check box of a certain node changes from a checked state to an unchecked state, the check boxes of all descendant nodes of the node change to an unchecked and selectable state; In step S15, when the check box of a node is in an unchecked state and a descendant node of the node is selected, the check box of the selected descendant node is in a checked and selectable state, the check box states of all ancestor nodes of the selected descendant node are changed to a semi-checked and selectable state, and the check boxes of all descendant nodes of the selected descendant node are in a checked and unselectable state.
[0022] In one embodiment, the operable area of the node is divided into a "check box" and an "expand icon", and the check box state of the node uses multiple state descriptions such as "checked", "unchecked", and "half-checked". "Checked" means the selected state, "unselectable" can be understood as disabled, that is, the user cannot change the state, and "half-checked" usually refers to the ancestor node being in an intermediate state due to the existence of some selected child nodes. In addition, "selectable" means that the user can change the state, "unselectable" means that the user cannot change the state, and the "unselectable state" can also be replaced by "inoperable state". The tree data structure is a non-linear data structure. The tree data structure is widely used to represent information with complex hierarchical relationships, such as geographical regions (provinces, cities, and districts), organizational structures, product classifications, etc., and is widely used in information systems that need to represent hierarchical relationships. For example, geographical regions: provinces under countries, cities under provinces, and districts and counties under cities; organizational structures: companies have departments, departments have teams, and teams have individuals; product classifications: major categories of goods are divided into subcategories, and subcategories are further divided into specific goods. The tree structure can intuitively display the hierarchical relationship of data, which is convenient for users to navigate and manage, as shown in the attached figure. Figure 2 and attached Figure 3 In the user interface of tree data, each node is usually equipped with two main interactive elements: Checkbox: allows users to select or deselect a node. Expand Icon: usually represented by a specific symbol, used to expand or collapse child nodes, as shown in the following figure. Figure 2 and attached Figure 3As shown. Setting a check box and an expansion icon for each node allows users to intuitively select and navigate data. The expansion behavior refers to how the child nodes are loaded and displayed after the user clicks the expansion icon. A preset number threshold is set in advance to determine how many child nodes are loaded at one time when the node is expanded. If the number of child nodes does not exceed the threshold, all child nodes are loaded and displayed at one time. If the number of child nodes exceeds the preset threshold, the child nodes are displayed in batches using paging loading. This can optimize data loading time and server resource utilization. When the number of child nodes is large, paging loading can reduce the pressure of one-time data transmission, increase system response speed, and improve user experience. The preset number threshold needs to be reasonably set according to the specific application scenario. If the threshold is too low, it may lead to too many paging requests and increase the complexity of user operations; if the threshold is too high, it may not effectively reduce the amount of data loaded at a time and affect performance. The implementation of paging loading involves the collaborative work of the front-end and the back-end. The front-end needs to support paging requests and dynamic loading of data, and the back-end needs to provide a paging interface to ensure that data can be transmitted on demand.
[0023] The management of node selection status is a key part of tree data interaction, involving the switching of multiple states and logical associations. When a user selects the checkbox of a node, all child nodes under the node are automatically selected, and the checkbox status of all child nodes is set to "selected and unselectable". When a user unchecks the checkbox of a node, all child nodes under the node are automatically unchecked, and the checkbox status of all child nodes is set to "unselected and selectable". When the checkbox of the parent node is in the "unselected" state, the checkbox status of the selected child node is set to "selected and selectable", the checkbox status of the parent node of the selected child node is changed to "semi-selected and selectable", and the checkbox status of the next-level child node of the selected child node is set to "selected and unselectable". The above management logic ensures the hierarchical consistency of data selection and the intuitiveness of user operations. In a multi-level tree structure, the synchronization and linkage of the selection status are particularly important. When the selection status of a node changes, the status of its associated nodes can also reflect this change in a timely and accurate manner. In a complex tree structure, a single selected and unselected state is difficult to fully describe the selection of a node. The semi-selected and unselectable states are introduced to manage the interactive behavior of nodes in a more detailed manner. The semi-selected state means that the checkbox of any descendant node of the node is in the selected state. When some of the child nodes of the parent node are selected, the parent node enters the semi-selected state. The unselectable state means that the checkbox of the node is disabled. When the checkbox of a node is selected, the checkboxes of all its descendant nodes are set to the "selected and unselectable" state to prevent users from repeating operations on the selected child nodes. Figure 4As shown, the user's purpose is to select "1-2", so the user has two operation methods to choose from. The first method is that the user first selects "1" and then cancels the selection of "1-1"; the second method is that the user directly selects "1-2" first. The result of the first method is that the undisplayed "1-3" and "1-4" are in a selected state, and the result of the second method is that the undisplayed "1-3" and "1-4" are in an unselected state. In some cases, the user only needs to select a small number of sub-nodes from a large number of sub-nodes, or even a usage scenario of a sub-node. The application of the unselectable state ensures the consistency of data selection and avoids user errors by clarifying the user's operation sequence. For example, see the attached Figure 3 , the user selects node "1", and all child nodes of node "1" are in "selected and unselectable" state. The user needs to select node "1" again to set it to unselected state, and all child nodes of "1" will also become unselected state. Then, after receiving the selection instruction of child node '3-1', '3-1' can be set to selected state. This is a forward operation. In conventional technical solutions, there is also a reverse operation, which is to unselect all child nodes of "1" except "3-1". This situation easily leads to overselection or wrong selection. The technical solution of this application can avoid the above situation.
[0024] In order to optimize data loading and user experience, it is necessary to mark at the appropriate time whether all child nodes under a node have been loaded. When the number of child nodes in the menu page of a node is less than the preset number threshold, it is marked that all child nodes of the node have been loaded. The marking mechanism helps to determine whether more child nodes need to be loaded, so that it can respond quickly when the user expands the node and avoid unnecessary paging requests. In a tree data structure, the terminal node (that is, a node without child nodes) does not need an expansion icon because there is no data to display in its lower level. In order to ensure the uniformity and consistency of the system during initial loading, the default state of any node is unselected and optional. The role of the expansion icon is to serve as the entry point for user operations and determine whether to load and display child nodes. Preset threshold and paging loading can efficiently allocate resources and avoid performance bottlenecks when processing a large number of child nodes by setting thresholds and using paging loading. Selecting a node will automatically select all its child nodes to ensure consistency of data selection. Deselecting a node will automatically deselect all its child nodes to maintain data accuracy. When some child nodes are selected, the parent node enters a semi-selected state, providing more detailed selection feedback. The semi-selected state indicates that some child nodes are selected. There is no need to expand icons for terminal nodes, which simplifies the user interface and avoids unnecessary interaction complexity.
[0025] The setting of the check box and the expansion icon in the technical solution of this embodiment enables users to easily select and navigate data. The linkage of the selected state reduces the complexity of manual operations by users and improves operational efficiency. By identifying whether the subnode has been loaded, the user can clearly understand the loading status of the data and avoid the uncertainty of waiting. Lazy loading and paged loading: effectively reduces the pressure of one-time data loading, improves the system response speed, and reduces the server load. The setting of node check boxes and expansion icons, the strategy of node expansion and data loading, the hierarchical management of the selected state, and the definition and application of semi-selected and unselectable states. The technical solution in this embodiment solves the linkage problem of selecting / unselecting subnodes caused by the introduction of paged loading, reduces the loading time of tree data, and significantly improves the user experience.
[0026] In one embodiment, Figure 5 FIG. 1 is a block diagram of a paging loading device for tree data according to an exemplary embodiment. Figure 5 As shown, the paging loading device for tree data includes a setting module 51, a paging module 52, a selected module 53, an unselected module 54 and a semi-selected module 55.
[0027] The setting module 51 is used to set a check box and an expansion icon for any node of the tree data; The paging module 52 is used to display the child nodes using a lower-level menu page with a preset number threshold when the expansion icon of a certain node is selected. If the number of child nodes of the node is greater than the preset number threshold, the child nodes are displayed in a paging loading manner; The selection module 53 is used to, when the selection box of a certain node is selected, select the selection boxes of all descendant nodes of the node and make them selected and unselectable; The unchecked module 54 is used to change the check boxes of all descendant nodes of a node to an unchecked and selectable state when the check box of a node changes from a checked state to an unchecked state; The semi-selected module 55 is used to, when the check box of a certain node is in an unchecked state and a descendant node of the node is selected, change the check box of the selected descendant node to a checked and selectable state, change the check box states of all ancestor nodes of the selected descendant node to a semi-checked and selectable state, and change the check boxes of all descendant nodes of the selected descendant node to a checked and unselectable state.
[0028] The setting module 51, the paging module 52, the selection module 53, the unselected module 54 and the semi-selected module 55 included in the tree data paging loading device block diagram are controlled to execute the tree data paging loading method described in any of the above embodiments.
[0029] like Figure 6 As shown, the present invention provides an electronic device 600, which includes: a communication interface, a processor 601, and a memory 602; The memory 602 is used to store program instructions, which, when executed by the processor 601 that is communicatively connected to the memory 602 through the communication interface, sets a check box and an expansion icon for any node of the tree data; when the expansion icon of a node is selected, a lower-level menu page with a preset number threshold is used to display the child nodes, and if the number of child nodes of the node is greater than the preset number threshold, the display is performed in a page loading manner; when the check box of a node is selected, the check boxes of all descendant nodes of the node are in a selected and unselectable state; when the check box of a node is changed from a selected state to an unselected state, the check boxes of all descendant nodes of the node are changed to an unselected and selectable state; when the check box of a node is in an unselected state and a descendant node of the node is selected, the check box of the selected descendant node is in a selected and selectable state, the check box states of all ancestor nodes of the selected descendant node are changed to a semi-selected and selectable state, and the check boxes of all descendant nodes of the selected descendant node are in a selected and unselectable state.
[0030] The present invention provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, a check box and an expansion icon are set for any node of tree data; when the expansion icon of a certain node is selected, a lower-level menu page with a preset number threshold is used to display the child nodes, and if the number of the child nodes of the node is greater than the preset number threshold, the child nodes are displayed in a paging loading manner; when the check box of a certain node is selected, the check boxes of all descendant nodes of the node are in a selected and unselectable state; when the check box of a certain node is changed from a selected state to an unselected state, the check boxes of all descendant nodes of the node are changed to an unselected and selectable state; when the check box of a certain node is in an unselected state and a descendant node of the node is selected, the check box of the selected descendant node is in a selected and selectable state, the check box states of all ancestor nodes of the selected descendant node are changed to a semi-selected and selectable state, and the check boxes of all descendant nodes of the selected descendant node are in a selected and unselectable state.
[0031] It should be understood that the specific features, operations and details described hereinabove about the method of the present invention may also be similarly applied to the device and system of the present invention, or, vice versa. In addition, each step of the method of the present invention described above may be performed by the corresponding parts or units of the device or system of the present invention.
[0032] It should be understood that each module / unit of the device of the present invention can be implemented in whole or in part by software, hardware, firmware or a combination thereof. Each module / unit can be embedded in the processor of the computer device in the form of hardware or firmware or independent of the processor, or can be stored in the memory of the computer device in the form of software for the processor to call to perform the operation of each module / unit. Each module / unit can be implemented as an independent component or module, or two or more modules / units can be implemented as a single component or module.
[0033] In one embodiment, a computer device is provided, which includes a memory and a processor, and the memory stores computer instructions executable by the processor, and the computer instructions instruct the processor to execute each step of the method of the embodiment of the present invention when executed by the processor. The computer device can be a server, a terminal, or any other electronic device with necessary computing and / or processing capabilities in a broad sense. In one embodiment, the computer device may include a processor, a memory, a network interface, a communication interface, etc. connected through a system bus. The processor of the computer device can be used to provide necessary computing, processing and / or control capabilities. The memory of the computer device may include a non-volatile storage medium and an internal memory. An operating system, a computer program, etc. may be stored in or on the non-volatile storage medium. The internal memory can provide an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface and the communication interface of the computer device can be used to connect and communicate with external devices through a network. The steps of the method of the present invention are executed by the processor.
[0034] The present invention may be implemented as a computer-readable storage medium having a computer program stored thereon, which causes the steps of the method of an embodiment of the present invention to be executed when executed by a processor. In one embodiment, the computer program is distributed on a plurality of computer devices or processors coupled to a network so that the computer program is stored, accessed, and executed in a distributed manner by one or more computer devices or processors. A single method step / operation, or two or more method steps / operations, may be performed by a single computer device or processor or by two or more computer devices or processors. One or more method steps / operations may be performed by one or more computer devices or processors, and one or more other method steps / operations may be performed by one or more other computer devices or processors. One or more computer devices or processors may perform a single method step / operation, or perform two or more method steps / operations.
[0035] It will be appreciated by a person skilled in the art that the method steps of the present invention may be performed by instructing related hardware such as a computer device or a processor through a computer program, and the computer program may be stored in a non-temporary computer-readable storage medium, which causes the steps of the present invention to be performed when the computer program is executed. Depending on the circumstances, any reference to memory, storage, database, or other media herein may include non-volatile and / or volatile memory. Examples of non-volatile memory include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (PROM), flash memory, magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk, etc. Examples of volatile memory include random access memory (RAM), external cache memory, etc.
[0036] The various technical features described above can be combined arbitrarily. Although all possible combinations of these technical features are not described, any combination of these technical features should be considered to be covered by this specification as long as there is no contradiction in such combination.
[0037] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A paging loading method for tree data, characterized in that: include: Set a check box and expansion icon for any node of the tree data; When the expansion icon of a node is selected, a lower-level menu page with a preset number threshold is used to display the child nodes. If the number of child nodes of the node is greater than the preset number threshold, the child nodes are displayed in a paged loading manner; When the check box of a node is checked, the check boxes of all descendant nodes of the node are checked and cannot be selected; When the check box of a node changes from a checked state to an unchecked state, the check boxes of all descendant nodes of the node change to an unchecked and selectable state; When the check box of a node is unchecked and a descendant node of the node is selected, the check box of the selected descendant node is checked and selectable, the check box states of all ancestor nodes of the selected descendant node are changed to half-checked and selectable, and the check boxes of all descendant nodes of the selected descendant node are checked and unselectable.
2. The paging loading method of tree data according to claim 1, characterized in that: Also includes: When the number of child nodes in the lower menu page of a certain node is less than a preset number threshold, it indicates that all child nodes of the node have been loaded.
3. The paging loading method of tree data according to claim 1, characterized in that: Also includes: The semi-selected state refers to that the check box of any descendant node of the node is in a selected state.
4. The paging loading method of tree data according to claim 1, characterized in that: Also includes: The unselectable state refers to a state in which the check box of the node is disabled.
5. The paging loading method of tree data according to claim 1, characterized in that: Also includes: The expansion icon of the end node of the tree data is hidden.
6. The paging loading method of tree data according to claim 1, characterized in that: Also includes: The default state of any node is unselected and selectable.
7. A paging loading device for tree data, characterized in that: include: The setting module is used to set a check box and an expansion icon for any node of the tree data; A paging module, for displaying child nodes using a lower-level menu page with a preset number threshold when the expansion icon of a certain node is selected, and for displaying child nodes using a paging loading method if the number of child nodes of the node is greater than the preset number threshold; A selection module is used to select and unselect the check boxes of all descendant nodes of a node when the check box of the node is selected; The unchecked module is used to change the check boxes of all descendant nodes of a node to an unchecked and selectable state when the check box of a node changes from a checked state to an unchecked state; The semi-selected module is used to change the selected box of a node to a selected and selectable state when the selected box of the node is unselected and a descendant node of the node is selected, and the selected box state of all ancestor nodes of the selected descendant node is changed to a semi-selected and selectable state, and the selected boxes of all descendant nodes of the selected descendant node are selected and unselectable.
8. The paging loading device for tree data according to claim 7, characterized in that: The setting module, the paging module, the selected module, the unselected module and the semi-selected module are controlled to execute the paging loading method for tree data according to any one of claims 1-6.
9. An electronic device, characterized in that: include: Communication interface, processor, memory; The memory is used to store program instructions, and when the program instructions are executed by the processor that is communicatively connected to the memory through the communication interface, the electronic device implements the paging loading method for tree data as described in any one of claims 1 to 6.
10. A computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by a computer, the computer implements the paging loading method for tree data according to any one of claims 1 to 6.
Citation Information
Patent Citations
Paging display method and paging display device for page content
CN114443195A
Tree component-based page display method and device
CN114510671A
Page panel data display method and device, electronic equipment and storage medium
CN115543153A
Check box monitoring method and device, equipment, medium and check box control panel
CN116483237A
Tree data structure and paging loading method thereof
CN116680450A