CN113138826A - Data loading method based on tree structure and related equipment - Google Patents
Data loading method based on tree structure and related equipment Download PDFInfo
- Publication number
- CN113138826A CN113138826A CN202110470204.1A CN202110470204A CN113138826A CN 113138826 A CN113138826 A CN 113138826A CN 202110470204 A CN202110470204 A CN 202110470204A CN 113138826 A CN113138826 A CN 113138826A
- Authority
- CN
- China
- Prior art keywords
- tree structure
- node
- event
- data
- target tree
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a data loading method and related equipment based on a tree structure, wherein the method comprises the steps of obtaining data to be displayed; binding the data to be displayed with a preset initial tree structure class to obtain a target tree structure; when a node event aiming at the target tree structure is monitored, analyzing the node event to obtain an event object; and when the node event is determined to be a node expansion event based on the event response information corresponding to the target tree structure, loading and displaying a first-level child node corresponding to the event object according to the target tree structure. The invention reduces the number of the nodes needing to be loaded in each node expansion event, and can quickly load and display the nodes needing to be expanded even if a large amount of data exists.
Description
Technical Field
The present invention relates to the field of data processing, and in particular, to a data loading method and related device based on a tree structure.
Background
A tree view (TreeView) is used to display data organized in a tree structure. A Treeview control tree diagram is composed of nodes (TreeNode) and connecting lines, wherein the nodes are basic constituent units of Treeview and comprise texts and data, the texts are names of the nodes, and the data are amorphous pointers and can point to data structures associated with the nodes. Meanwhile, with respect to each node, the child node of the node is the attribute of the node.
The Windows Presentation Foundation (WPF) is a UI framework that can create a desktop client application, and a control TreeView for showing a tree directory structure exists in the WPF, and is used for loading a plurality of nodes at one time. However, under the condition that the control loads millions of nodes at one time, if the TreeView scroll bar is dragged or the node tree is unfolded quickly, the control cannot react timely, so that the WPF application program is jammed or even dead, and the fluency of desktop interface use and user experience are affected.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a data loading method based on a tree structure, aiming at the defects of the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a tree structure based data loading method, the method comprising:
acquiring data to be displayed;
binding the data to be displayed with a preset initial tree structure class to obtain a target tree structure;
when a node event aiming at the target tree structure is monitored, analyzing the node event to obtain an event object;
and when the node event is determined to be a node expansion event based on the event response information corresponding to the target tree structure, loading and displaying a first-level child node corresponding to the event object according to the target tree structure.
The data loading method based on the tree structure, wherein the data to be displayed is bound with a preset target tree structure class to obtain a target tree structure, specifically comprising:
carrying out information binding on the data node information of the data to be displayed and the tree node information of the tree structure class to obtain an initial tree structure;
and adjusting the node relation of the initial tree structure according to the node relation corresponding to the data node information to obtain a target tree structure.
The data loading method based on the tree structure is characterized in that the binding mode of the information binding is an MVVM mode.
The data loading method based on the tree structure comprises the following steps:
and when a data change instruction for the data to be displayed is detected, adjusting the tree node information of the target tree structure according to the data change instruction.
The data loading method based on the tree structure, wherein before the analyzing the node event to obtain the event object when the node event aiming at the target tree structure is monitored, the method further comprises:
replacing a default deployment behavior corresponding to the target tree structure with a preset custom deployment behavior, and,
and replacing the default double-click behavior corresponding to the target tree structure with the preset custom double-click behavior to obtain the event response information corresponding to the target tree structure.
The data loading method based on the tree structure is characterized in that the primary child nodes comprise visualization nodes; the loading and displaying the first-level child nodes corresponding to the event object according to the target tree structure specifically includes:
determining a primary child node corresponding to the event object according to the target tree structure;
determining a visual node corresponding to the display window in the first-level child nodes according to the display parameters of the current display window;
and loading and displaying the visual nodes.
The data loading method based on the tree structure, where loading and displaying the first-level child node corresponding to the event object according to the target tree structure, specifically includes:
loading the primary child node according to the target tree structure;
judging whether the primary child node comprises a child node or not according to the target tree structure;
if yes, displaying the primary child node and displaying a preset expansion prompt;
and if not, displaying the primary child node. A data loading method and device based on a tree structure are provided, wherein the data loading method and device based on the tree structure specifically include:
the acquisition module is used for acquiring data to be displayed;
the binding module is used for binding the data to be displayed with a preset initial tree structure class to obtain a target tree structure;
the analysis module is used for analyzing the node event aiming at the target tree structure to obtain an event object when the node event is monitored;
and the loading display module is used for loading and displaying the first-level child nodes corresponding to the event object according to the target tree structure when the node event is determined to be the node expansion event based on the event response information corresponding to the target tree structure.
A computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps in the tree structure based data loading method as described in any above.
A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the tree structure based data loading method as described in any one of the above.
Has the advantages that: compared with the prior art, the invention provides a data loading method based on a tree structure and related equipment. The data to be displayed, namely the data to be displayed, is acquired first. And then binding the data to be displayed with a blank tree preset by the WPF platform to generate a tree structure. And after the tree structure is generated, modifying the event response information corresponding to the tree structure. And monitoring the display window, and only loading and displaying the child nodes directly connected with the node, namely the primary child nodes, based on the modified event response information when the node display is monitored for a certain node. Subsequent nodes showing the primary child nodes are not loaded, so that the number of child nodes needing to be loaded is greatly reduced, and the response efficiency is improved.
Drawings
Fig. 1 is a first flowchart of a data loading method based on a tree structure according to the present invention.
Fig. 2 is a second flowchart of the tree structure-based data loading method according to the present invention.
Fig. 3 is a schematic structural diagram of a data loading apparatus based on a tree structure according to the present invention.
Fig. 4 is a schematic structural diagram of a terminal device provided in the present invention.
Detailed Description
The invention provides a data loading method based on a tree structure and related equipment, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail below by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The inventor finds that, in the WPF platform control, TreeView can load a plurality of nodes at one time. Under the condition that the control loads millions of nodes at one time, if a TreeView scroll bar is dragged or a node tree is unfolded quickly, the control cannot react timely, so that the WPF application program is blocked or even killed, and the use fluency and the user experience of a desktop interface are affected.
In order to solve the above problem, in the embodiment of the present invention, data to be displayed is acquired; binding the data to be displayed with a preset initial tree structure class to obtain a target tree structure; when a node event aiming at the target tree structure is monitored, analyzing the node event to obtain an event object; and when the node event is determined to be a node expansion event based on the event response information corresponding to the target tree structure, loading and displaying a first-level child node corresponding to the event object according to the target tree structure.
For example, the embodiment of the present invention may be applied to display of a disk directory, so that when a user needs to look up a directory of a disk, the user can display the directory in the form of a tree diagram.
It can be understood that, besides the disk directory, data that can be displayed in a tree diagram, such as an address book, mind map data, etc., can be used as the data to be displayed, which is acquired by the present invention.
It should be noted that the above application scenarios are only presented to facilitate understanding of the present invention, and the embodiments of the present invention are not limited in any way in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
The invention will be further explained by the description of the embodiments with reference to the drawings.
As shown in fig. 1, the present implementation provides a data loading method based on a tree structure, which may include the following steps:
and S10, acquiring the data to be displayed.
Specifically, in this embodiment, the data to be displayed is a disk directory, and a disk is scanned first to obtain the disk directory in the disk.
And S20, binding the data to be displayed with a preset initial tree structure class to obtain a target tree structure.
Specifically, Microsoft Visual Studio development tools, such as Microsoft Visual Studio 2017/2019, are pre-installed, and an initial tree structure class is created through these development tools that does not contain any presentation data.
And then, data to be displayed, namely the disk directory, and the initial tree structure class are subjected to data binding to generate a target tree structure class. The specific process comprises the following steps:
and A10, carrying out information binding on the data node information of the data to be displayed and the tree node information of the tree structure class to obtain a target tree structure.
Specifically, taking the disk C as an example, it is first determined whether the disk C includes the subfolder, and the name, the attribute, and other information of the subfolder. And taking the disk C and each subfolder as nodes, taking the information as data node information, and performing information binding with node information in a preset tree structure class. For example, the disk C includes two sub-folders named "folder one" and "folder two", a root node in a preset tree structure class is first corresponded to the disk C, for example, the root node is modified to "disk C", and meanwhile, the "folder one" and the "folder two" are corresponded to the sub-nodes of the tree structure class, and the sub-nodes are modified to "folder one" and "folder two".
Further, in this embodiment, in order to cope with the change of the data to be displayed, an MVVM (Model-View Model) mode is adopted as the binding mode.
The MVVM mode provides an abstraction for the state and behavior of the View, and the displayed View is separated from the service logic, so that the modification of the binding source, namely the data to be displayed, can be reflected to the interface, and the modification on the interface can be fed back to the binding source. In this embodiment, for one view, i.e. the target tree structure, a view model, i.e. the ViewModel, corresponding to the view is created. In this embodiment, a target tree structure is stored in the ViewModel, and when a data change instruction for the data to be displayed is detected, tree node information of the target tree structure is adjusted according to the data change instruction. Therefore, the data change instruction can be from modification of the data to be displayed in the background, and can also be from an instruction issued by a user based on an interface.
And A20, adjusting the node relation of the initial tree structure according to the node relation corresponding to the data node information to obtain a target tree structure.
Specifically, according to the node relationship corresponding to the obtained data node information, the connection relationship between the nodes of the initial tree structure, that is, the node relationship, is corresponding to the node relationship of the data node information, so as to obtain the target tree structure.
In the disk C, the "folder one" and the "folder two" are in a parallel relationship, so that the corresponding node relationship is a sibling relationship, and the corresponding nodes are sibling nodes. The node relation corresponding to the folder one and the disk C is a parent-child relation, and the nodes corresponding to the folder one and the disk C are child nodes and root nodes. Therefore, the nodes 'folder one' and 'folder two' in the initial tree node are connected with the nodes corresponding to the disk C in the upper and lower levels. And corresponding the node relations in all the initial tree structures to the point relations corresponding to the data node information to obtain the target tree structure.
And S40, when the node event aiming at the target tree structure is monitored, analyzing the node event to obtain an event object.
Specifically, the terminal monitors an event on the page, and if the monitored event is a node event for the target tree structure, an operation corresponding to the node event needs to be executed. The node event refers to an instruction event for processing a child node of a certain node, such as a left-key double click and a right-key double click. First, the node event is analyzed to obtain an event object corresponding to the node event, that is, which node the user wishes to process.
And S40, when the node event is determined to be a node expansion event based on the event response information corresponding to the target tree structure, loading and displaying a first-level child node corresponding to the event object according to the target tree structure.
Specifically, taking the disk C as an event object as an example, after the event object is obtained, what kind of processing needs to be performed on the node by the node event is analyzed, and the conventional processing includes renaming, deleting, copying, and the like. The judgment mode is to judge through event response information, the event response information refers to what kind of operation should be performed subsequently for the event, and the event response information includes operation behavior information corresponding to each node event.
In this embodiment, the node event includes a node expansion event, and the node expansion event includes a custom node expansion event and a default node expansion event. For example, double clicking the position of the node on the interface, and clicking the display icon corresponding to the node.
The self-defined node expansion event refers to the fact that a self-defined expansion behavior is created in advance and replaces the response behavior corresponding to the node expansion event on the basis of the original target tree structure.
Therefore, as shown in fig. 2, before the node expansion event is monitored, the event response template of the TreeView control is also modified in this embodiment. Firstly, a custom expansion event is created to replace the original expansion event of the TreeView. In the operation corresponding to the custom node expansion event, the default node expansion behavior in the TreeView is to load and display child nodes of all event objects, replace the default node expansion behavior with the custom expansion behavior in the embodiment, and the custom expansion behavior in the embodiment is to expand only the primary child nodes of the event objects. The first level child nodes are the child nodes directly connected to the event object in the target tree structure, such as the previous "folder one" and "folder two".
In TreeView of the WPF platform, a default node expansion event is that a user double clicks on a node, and the default node expansion operation is that all child nodes of an event object are loaded. After the original node is expanded, the self-contained double-click event of the TreeView does not work, the double-click event needs to be customized, and the subsequent service logic is rewritten. In this embodiment, the default double-click behavior corresponding to the target tree structure is replaced with the preset custom double-click behavior, so that node expansion can be performed on a double-click event subsequently. In this embodiment, the user-defined double-click behavior is set in an additional behavior manner.
Therefore, when the node event is determined to be a node expansion event based on the event response information corresponding to the target tree structure, the first-level child nodes corresponding to the event object are loaded and displayed according to the target tree structure instead of loading all child nodes of the event object, the number of child nodes loaded each time is reduced, and the loading efficiency is improved.
Further, because the size of the display window on the interface is limited, when a large number of child nodes are loaded, only the child node corresponding to the size of the display window can be displayed, and other child nodes can be displayed only by first executing pull-down, adjusting the size of the display window, and the like by the user, therefore, in the first implementation manner of this embodiment, the process of loading and displaying the first-level child node of the event object is as follows:
determining a corresponding loading child node of the event object according to the target tree structure;
determining a visual node corresponding to the display window in the loading child nodes according to the display parameters of the current display window;
and loading and displaying the visual nodes.
Specifically, all directly connected first-level child nodes corresponding to the event object are determined as loading child nodes based on the target tree structure.
And simultaneously acquiring display parameters of the current display window, wherein the display parameters comprise parameters such as the size of the window, the size of fonts in the window, the position coordinates of the event object in the current display window and the like. And then judging the visual nodes in the loading child nodes based on the display parameters. For example, according to the display parameters, it may be determined that the number of the primary child nodes that can be loaded is 5, and then, according to a preset node display order, it is determined to load the visual nodes in the child nodes.
And finally, only the visual nodes in the loaded sub-nodes are loaded and displayed, so that the number of the loaded sub-nodes is reduced.
In addition, when there are children in the displayed primary child node, for example, "folder one" includes "folder three" and "folder four", the restriction of the node expansion function needs to be performed on the displayed primary child node. Therefore, in the second implementation manner of the present embodiment, the display process is as follows:
loading the primary child node according to the target tree structure;
judging whether the primary child node comprises a child node or not according to the target tree structure;
if yes, displaying the primary child node and displaying a preset expansion prompt;
and if not, displaying the primary child node.
Specifically, first, according to the target tree structure, the first-level child nodes in all the child nodes are determined and loaded. And then judging whether the loaded primary child node has a corresponding child node or not according to the target tree structure. For example, the sub-folder is not included in "folder two", which means that there is no corresponding sub-node in "folder two" in the target tree structure. And "folder one" contains two subfolders, which have two corresponding child nodes.
And if the child folder is included, namely the first-level child node comprises the child node, displaying the first-level child node, and displaying a preset expansion prompt, wherein the expansion prompt is used for prompting a user, and the first-level child node also comprises the child node and can be continuously expanded.
If the child folder is not included, the primary child node does not include child nodes, and only the primary child node is displayed. At the same time, at the back end, no correspondence is made to the node deployment events.
Further, in a third embodiment of the present invention, in the displaying process, the first embodiment and the second embodiment are combined, and the process is as follows:
determining a corresponding loading child node of the event object according to the target tree structure;
determining a visual node corresponding to the display window in the loading child nodes according to the display parameters of the current display window;
loading the visual node;
judging whether the visual nodes comprise child nodes or not according to the target tree structure;
if yes, displaying the visual node and displaying a preset expansion prompt;
and if not, displaying the visualization node.
The specific process is similar to the first implementation manner and the second implementation manner, and therefore, the detailed description is omitted here.
Based on the above data loading method based on the tree structure, this embodiment provides a data loading method device based on the tree structure, where as shown in fig. 3, the data loading method device based on the tree structure includes:
the acquisition module is used for acquiring data to be displayed;
the binding module is used for binding the data to be displayed with a preset initial tree structure class to obtain a target tree structure;
the analysis module is used for analyzing the node event aiming at the target tree structure to obtain an event object when the node event is monitored;
and the loading display module is used for loading and displaying the first-level child nodes corresponding to the event object according to the target tree structure when the node event is determined to be the node expansion event based on the event response information corresponding to the target tree structure.
Wherein the binding module is specifically configured to:
carrying out information binding on the data node information of the data to be displayed and the tree node information of the tree structure class to obtain an initial tree structure;
and adjusting the node relation of the initial tree structure according to the node relation corresponding to the data node information to obtain a target tree structure.
And the binding mode of the information binding is an MVVM mode.
The data loading device based on the tree structure further includes an update module, and the update module is specifically configured to:
and when a data change instruction for the data to be displayed is detected, adjusting the tree node information of the target tree structure according to the data change instruction.
The data loading device based on the tree structure further includes a modification module, and the modification module is specifically configured to:
replacing a default deployment behavior corresponding to the target tree structure with a preset custom deployment behavior, and,
and replacing the default double-click behavior corresponding to the target tree structure with the preset custom double-click behavior to obtain the event response information corresponding to the target tree structure.
Wherein the loading display module is specifically configured to:
determining a primary child node corresponding to the event object according to the target tree structure;
determining a visual node corresponding to the display window in the first-level child nodes according to the display parameters of the current display window;
and loading and displaying the visual nodes.
Wherein the load display module is further configured to:
loading the primary child node according to the target tree structure;
judging whether the primary child node comprises a child node or not according to the target tree structure;
if yes, displaying the primary child node and displaying a preset expansion prompt;
and if not, displaying the primary child node.
Based on the above tree structure-based data loading method, the present embodiment provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps in the tree structure-based data loading method according to the above embodiment.
Based on the above data loading method based on the tree structure, the present invention further provides a terminal device, as shown in fig. 4, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the target setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be used as the transient computer readable storage medium.
In addition, the specific processes loaded and executed by the instruction processors in the computer-readable storage medium and the terminal device are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A data loading method based on a tree structure is characterized by comprising the following steps:
acquiring data to be displayed;
binding the data to be displayed with a preset initial tree structure class to obtain a target tree structure;
when a node event aiming at the target tree structure is monitored, analyzing the node event to obtain an event object;
and when the node event is determined to be a node expansion event based on the event response information corresponding to the target tree structure, loading and displaying a first-level child node corresponding to the event object according to the target tree structure.
2. The tree structure-based data loading method according to claim 1, wherein the binding the data to be displayed with a preset target tree structure class to obtain a target tree structure specifically comprises:
carrying out information binding on the data node information of the data to be displayed and the tree node information of the tree structure class to obtain an initial tree structure;
and adjusting the node relation of the initial tree structure according to the node relation corresponding to the data node information to obtain a target tree structure.
3. The tree structure-based data loading method of claim 2, wherein the binding mode of the information binding is an MVVM mode.
4. The tree structure-based data loading method of claim 1, wherein the method further comprises:
and when a data change instruction for the data to be displayed is detected, adjusting the tree node information of the target tree structure according to the data change instruction.
5. The tree structure-based data loading method according to any one of claims 1 to 4, wherein before analyzing the node event of the target tree structure when the node event is monitored to obtain an event object, the method further comprises:
replacing a default deployment behavior corresponding to the target tree structure with a preset custom deployment behavior, and,
and replacing the default double-click behavior corresponding to the target tree structure with the preset custom double-click behavior to obtain the event response information corresponding to the target tree structure.
6. The tree structure-based data loading method of claim 5, wherein the level one child node comprises a visualization node; the loading and displaying the first-level child nodes corresponding to the event object according to the target tree structure specifically includes:
determining a primary child node corresponding to the event object according to the target tree structure;
determining a visual node corresponding to the display window in the first-level child nodes according to the display parameters of the current display window;
and loading and displaying the visual nodes.
7. The tree structure-based data loading method according to claim 5, wherein the loading and displaying the first-level child node corresponding to the event object according to the target tree structure specifically includes:
loading the primary child node according to the target tree structure;
judging whether the primary child node comprises a child node or not according to the target tree structure;
if yes, displaying the primary child node and displaying a preset expansion prompt;
and if not, displaying the primary child node.
8. A data loading method and device based on a tree structure are characterized in that the data loading method and device based on the tree structure specifically comprise the following steps:
the acquisition module is used for acquiring data to be displayed;
the binding module is used for binding the data to be displayed with a preset initial tree structure class to obtain a target tree structure;
the analysis module is used for analyzing the node event aiming at the target tree structure to obtain an event object when the node event is monitored;
and the loading display module is used for loading and displaying the first-level child nodes corresponding to the event object according to the target tree structure when the node event is determined to be the node expansion event based on the event response information corresponding to the target tree structure.
9. A computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of the tree structure based data loading method according to any one of claims 1 to 7.
10. A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the tree structure based data loading method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110470204.1A CN113138826A (en) | 2021-04-28 | 2021-04-28 | Data loading method based on tree structure and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110470204.1A CN113138826A (en) | 2021-04-28 | 2021-04-28 | Data loading method based on tree structure and related equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113138826A true CN113138826A (en) | 2021-07-20 |
Family
ID=76816355
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110470204.1A Pending CN113138826A (en) | 2021-04-28 | 2021-04-28 | Data loading method based on tree structure and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113138826A (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105512338A (en) * | 2015-12-31 | 2016-04-20 | 北京格林伟迪科技股份有限公司 | Method and device for realizing navigation tree with large data volume nodes on web front end |
CN105787126A (en) * | 2016-03-29 | 2016-07-20 | Tcl集团股份有限公司 | K-d (k-dimensional) tree generation method and k-d tree generation device |
CN105867919A (en) * | 2016-03-28 | 2016-08-17 | 浙江大学 | Front end data bidirectional binding realization method based on accessor hijack |
CN106302008A (en) * | 2016-08-05 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Data-updating method and device |
CN106325686A (en) * | 2015-07-09 | 2017-01-11 | 中标软件有限公司 | Quick switching method in tree-form navigation and navigation tree thereof |
CN108037967A (en) * | 2017-11-27 | 2018-05-15 | 深圳市丰巢科技有限公司 | A kind of menu loading method and electronic equipment based on more parent-child structures |
CN108416681A (en) * | 2017-11-28 | 2018-08-17 | 中国平安财产保险股份有限公司 | A kind of methods of exhibiting, storage medium and the server of insurance quote information |
CN110597810A (en) * | 2019-08-30 | 2019-12-20 | 深圳壹账通智能科技有限公司 | Data processing method, device, terminal and storage medium |
CN111752540A (en) * | 2020-06-28 | 2020-10-09 | 北京百度网讯科技有限公司 | Tree component generation method, device, equipment and computer storage medium |
CN111813403A (en) * | 2020-07-09 | 2020-10-23 | 北京亚鸿世纪科技发展有限公司 | Method and device for managing dragging component data in large-screen data visualization development |
CN111949905A (en) * | 2020-06-23 | 2020-11-17 | 贝壳技术有限公司 | Rendering method and device for popup window of tree component |
CN112328837A (en) * | 2020-10-28 | 2021-02-05 | 北京鸿腾智能科技有限公司 | Data display method, device, equipment and storage medium |
CN112396400A (en) * | 2020-11-23 | 2021-02-23 | 航天新长征大道科技有限公司 | Automatic generation method and device of dynamic navigation tree, terminal and storage medium |
CN112711418A (en) * | 2021-02-05 | 2021-04-27 | 北京宇信科技集团股份有限公司 | Front-end interface layout method and device for multiple components, electronic equipment and storage medium |
-
2021
- 2021-04-28 CN CN202110470204.1A patent/CN113138826A/en active Pending
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106325686A (en) * | 2015-07-09 | 2017-01-11 | 中标软件有限公司 | Quick switching method in tree-form navigation and navigation tree thereof |
CN105512338A (en) * | 2015-12-31 | 2016-04-20 | 北京格林伟迪科技股份有限公司 | Method and device for realizing navigation tree with large data volume nodes on web front end |
CN105867919A (en) * | 2016-03-28 | 2016-08-17 | 浙江大学 | Front end data bidirectional binding realization method based on accessor hijack |
CN105787126A (en) * | 2016-03-29 | 2016-07-20 | Tcl集团股份有限公司 | K-d (k-dimensional) tree generation method and k-d tree generation device |
CN106302008A (en) * | 2016-08-05 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Data-updating method and device |
CN108037967A (en) * | 2017-11-27 | 2018-05-15 | 深圳市丰巢科技有限公司 | A kind of menu loading method and electronic equipment based on more parent-child structures |
CN108416681A (en) * | 2017-11-28 | 2018-08-17 | 中国平安财产保险股份有限公司 | A kind of methods of exhibiting, storage medium and the server of insurance quote information |
CN110597810A (en) * | 2019-08-30 | 2019-12-20 | 深圳壹账通智能科技有限公司 | Data processing method, device, terminal and storage medium |
CN111949905A (en) * | 2020-06-23 | 2020-11-17 | 贝壳技术有限公司 | Rendering method and device for popup window of tree component |
CN111752540A (en) * | 2020-06-28 | 2020-10-09 | 北京百度网讯科技有限公司 | Tree component generation method, device, equipment and computer storage medium |
CN111813403A (en) * | 2020-07-09 | 2020-10-23 | 北京亚鸿世纪科技发展有限公司 | Method and device for managing dragging component data in large-screen data visualization development |
CN112328837A (en) * | 2020-10-28 | 2021-02-05 | 北京鸿腾智能科技有限公司 | Data display method, device, equipment and storage medium |
CN112396400A (en) * | 2020-11-23 | 2021-02-23 | 航天新长征大道科技有限公司 | Automatic generation method and device of dynamic navigation tree, terminal and storage medium |
CN112711418A (en) * | 2021-02-05 | 2021-04-27 | 北京宇信科技集团股份有限公司 | Front-end interface layout method and device for multiple components, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
李俊飞;陈皓;赵卫东;: "树形结构数据输入输出控件的设计与实现", 计算机工程与设计, vol. 32, no. 09, pages 3054 - 3058 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11385786B2 (en) | Spin control user interface for selecting options | |
US6065012A (en) | System and method for displaying and manipulating user-relevant data | |
JP4879566B2 (en) | System and method for interactively linking data with shapes in a diagram | |
JP5084314B2 (en) | Information processing apparatus, information processing method, information processing program, and recording medium for recording information processing program | |
TWI531953B (en) | Temporary formatting and charting of selected data | |
US7644370B2 (en) | Method of componentisation of a graphically defined formula | |
JP2004259286A (en) | Optimization of display and navigation in multidirection of hierarchical data, and display area consumption | |
US20100318943A1 (en) | Unified Interface for Display and Modification of Data Arrays | |
TW200406692A (en) | Semiconductor test data analysis system | |
CN113515275A (en) | WYSIWYG cloud industrial configuration software system and development method thereof | |
CN106815010B (en) | Method and device for operating database | |
CN113138826A (en) | Data loading method based on tree structure and related equipment | |
US11250058B2 (en) | Providing an easily navigable visual representation of a graph | |
CN111079382A (en) | Form rendering method and system based on MVVM (multifunction virtual machine) mode | |
CN113031947B (en) | Configuration data management method and device used in interface design tool | |
WO2019085354A1 (en) | Excel system interface-based database linkage method, electronic device, and storage medium | |
CN114693854A (en) | Modeling system, method, electronic device and storage medium based on domain drive design | |
US20050039122A1 (en) | Methodology and system for rendering dynamic images | |
CN113672210A (en) | Triangular icon code generation method and device and readable storage medium | |
JP2011076561A (en) | Parts catalog creation support device, program, and parts catalog creation support method | |
CN113609083B (en) | File storage method, device, electronic equipment and computer readable storage medium | |
WO2021176982A1 (en) | Display method, control program, and device | |
CN113918152B (en) | Low-code application development method and equipment in page building process | |
JP7501092B2 (en) | Auxiliary method, control program and device | |
JP2002268882A (en) | Web application system and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |