Navigation method, system and device for multi-level directory tree

By building a dynamic data structure and setting user operation permissions, any node is defined as the root node, which solves the problems of lengthy operation processes and incomplete name display in deep-level directory tree navigation, and achieves efficient multi-level directory tree navigation and management.

CN118567768APending Publication Date: 2024-08-30CHINA ELECTRONICS CLOUD DIGITAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410638718.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

When the existing technology processes deep-level directory trees, the user operation process is lengthy and inefficient, and the deep-level names are not fully displayed, resulting in high complexity of user switching operations.

Method used

Nodes are used to build dynamic data structures. Any node is defined as the root node to build a subtree of data nodes, and generates corresponding views. Sets user operation permissions and attributes, responds to operations according to permissions, reorganizes data to update views, and caches node information to improve response speed. .

Benefits of technology

It achieves efficient navigation and management of multi-level directory trees, simplifies user operation processes, improves page display efficiency, and reduces the complexity of users switching between different levels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567768A
    Figure CN118567768A
Patent Text Reader

Abstract

The invention relates to the technical field of directory navigation, and provides a navigation method, system and device for a multi-level directory tree, and the method comprises the following steps: constructing a dynamic data structure by adopting nodes, and constructing a data node subtree by taking a root node as a starting point when a user takes a certain node in the dynamic data structure as the root node; after a user constructs a data node subtree by taking a certain node as a root node, generating a corresponding root node view for the constructed data node subtree; setting a user operation authority and an operation attribute for the node in the dynamic data structure, and when a user initiates a node operation according to the set user operation authority, responding to a corresponding operation to the user according to the set operation attribute; and after the user operates the nodes in the dynamic data structure, reorganizing the data in the dynamic data structure, and updating the root node view according to the reorganized dynamic data structure. According to the invention, efficient navigation and management of the multi-level directory tree can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of directory navigation, and in particular to a navigation method, system and device for a multi-level directory tree. Background Art

[0002] In the design of enterprise-level B-side systems, complex classification systems for industries and their sub-sectors often have hierarchical structures with a depth of seven or eight levels or even more than ten levels. In practical applications, the following two strategies can usually be used for optimization:

[0003] The first strategy is the multi-level drop-down selector method. By deploying multiple drop-down selectors layer by layer, users can clearly filter and locate the required categories layer by layer. The advantage of this strategy is that the selection results of each layer are presented intuitively, and some selectors can be configured to support multi-level linkage, so that when adjusting the options of a certain level separately, the corresponding selection module can be quickly found; in actual application, the disadvantage of this strategy is that users need to go through a series of continuous selection steps, which may lead to a relatively lengthy operation process and low efficiency for deep classification.

[0004] The second strategy is the directory tree view display. The advantage of this strategy is that it uses the directory tree structure to vertically display multi-level information, so that all level names can be seen at a glance in the same visual dimension, and it can be flexibly expanded to add enhanced functions such as batch selection and direct editing. In actual applications, this strategy faces the problem of incomplete name display when facing extremely deep levels. For this, it is usually necessary to use ellipsis to truncate excessively long text, and use technical means to display the complete name when the mouse hovers. When the directory tree cannot be fully expanded within the limited page space, a pop-up window or floating panel is required to display the deep nodes, which greatly increases the complexity of users switching between different levels.

[0005] Therefore, how to provide a more efficient and concise navigation method for a multi-level directory tree has become a technical problem that needs to be solved urgently. Summary of the invention

[0006] In view of this, in order to overcome the deficiencies of the prior art, the present invention aims to provide a navigation method, system and device for a multi-level directory tree.

[0007] According to a first aspect of the present invention, a method for navigating a multi-level directory tree is provided, the method comprising:

[0008] The dynamic data structure is constructed using nodes. When the user uses a node in the dynamic data structure as the root node, a data node subtree is constructed starting from the root node.

[0009] After the user constructs a data node subtree with a certain node as the root node, a corresponding root node view is generated for the constructed data node subtree;

[0010] Set user operation permissions and operation attributes for nodes in the dynamic data structure. When a user initiates a node operation according to the set user operation permissions, respond to the user with the corresponding operation according to the set operation attributes.

[0011] When the user operates a node in the dynamic data structure, the data in the dynamic data structure is reorganized, and the root node view is updated according to the reorganized dynamic data structure.

[0012] Preferably, the navigation method of the multi-level directory tree of the present invention uses nodes to construct a dynamic data structure. When a user uses a node in the dynamic data structure as a root node, a data node subtree is constructed with the root node as the starting point, including: using nodes to construct a dynamic data structure, setting a root node port for each node in the dynamic data structure, when a user uses a node in the dynamic data structure as a root node, a data node subtree is constructed according to the root node port of the root node.

[0013] Preferably, the navigation method of the multi-level directory tree of the present invention generates a corresponding root node view for the constructed data node subtree after the user constructs a data node subtree with a certain node as the root node, and also includes: caching the data node subtree constructed by the user and the corresponding root node view.

[0014] Preferably, in the navigation method of the multi-level directory tree of the present invention, the root node view is used to display the node information of the corresponding root node and the branches under the root node.

[0015] Preferably, in the navigation method of the multi-level directory tree of the present invention, the node operation includes adding a new node, deleting a node or modifying a node.

[0016] Preferably, in the multi-level directory tree navigation method of the present invention, the node operation also includes node status marking.

[0017] Preferably, the navigation method of the multi-level directory tree of the present invention, when a user initiates a node operation according to the set user operation authority, responds to the user with a corresponding operation according to the set operation attributes, including: when a user initiates a node operation, the legitimacy of the user is verified according to the set user operation authority; when the user who initiated the node operation passes the legitimacy verification, responds to the user with a corresponding operation according to the set operation attributes.

[0018] Preferably, the navigation method of the multi-level directory tree of the present invention reorganizes the data in the dynamic data structure after the user operates on the nodes in the dynamic data structure, updates the root node view according to the reorganized dynamic data structure, and also includes: caching the updated dynamic data structure and root node view.

[0019] According to a second aspect of the present invention, a navigation system for a multi-level directory tree is provided, the system includes a navigation server, the navigation server is used to: construct a dynamic data structure using nodes, when a user uses a node in the dynamic data structure as a root node, construct a data node subtree with the root node as the starting point; after the user constructs a data node subtree with a node as the root node, generate a corresponding root node view for the constructed data node subtree; set user operation permissions and operation attributes for the nodes in the dynamic data structure, when the user initiates a node operation according to the set user operation permissions, respond to the corresponding operation to the user according to the set operation attributes; after the user operates the nodes in the dynamic data structure, reorganize the data in the dynamic data structure, and update the root node view according to the reorganized dynamic data structure.

[0020] According to a third aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect of the present invention when executing the program.

[0021] The multi-level directory tree navigation method, system and device of the present invention define any node in the directory tree composed of dynamic data structure as a root node, and construct a data node subtree with the root node, so as to realize efficient navigation and management of the multi-level directory tree. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0023] Figure 1 An exemplary diagram of a navigation system of a multi-level directory tree according to an embodiment of the present invention;

[0024] Figure 2 A flowchart of a method for navigating a multi-level directory tree according to an embodiment of the present invention;

[0025] Figure 3 A schematic diagram of the structure of the device provided by the present invention. DETAILED DESCRIPTION

[0026] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0027] It should be noted that the following embodiments and features in the embodiments may be combined with each other in the absence of conflict; and, based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making any creative work are within the scope of protection of the present disclosure.

[0028] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0029] Figure 1 FIG. 1 is an example diagram of a navigation system of a multi-level directory tree according to an embodiment of the present invention. Figure 1 As shown, the system may include a navigation server 101, a communication network 102 and / or one or more navigation clients 103. Figure 1 The example shown is a plurality of navigation clients 103 .

[0030] The navigation server 101 can be any suitable server for storing information, data, programs and / or any other suitable type of content. In some embodiments, the navigation server 101 can perform appropriate functions. For example, in some embodiments, the navigation server 101 can be used for navigating a multi-level directory tree. As an optional example, in some embodiments, the navigation server 101 can be used to realize navigation of a multi-level directory tree by constructing a data node subtree. For example, the navigation server 101 can be used to: construct a dynamic data structure using nodes, when a user uses a certain node in the dynamic data structure as a root node, construct a data node subtree with the root node as the starting point; after the user constructs a data node subtree with a certain node as the root node, generate a corresponding root node view for the constructed data node subtree; set user operation permissions and operation attributes for nodes in the dynamic data structure, when the user initiates a node operation according to the set user operation permissions, respond to the user with the corresponding operation according to the set operation attributes; when the user operates on a node in the dynamic data structure, reorganize the data in the dynamic data structure, and update the root node view according to the reorganized dynamic data structure.

[0031] As another example, in some embodiments, the navigation server 101 may send a navigation method of a multi-level directory tree to the navigation client 103 for the user to use according to the request of the navigation client 103 .

[0032] As an optional example, in some embodiments, the navigation client 103 is used to provide a visual navigation interface, which is used to receive a user's selection input operation for navigating a multi-level directory tree, and to, in response to the selection input operation, obtain a navigation interface corresponding to the option selected by the selection input operation from the navigation server 101 and display the navigation interface, wherein the navigation interface displays at least information for navigating the multi-level directory tree and operation options for the information for navigating the multi-level directory tree.

[0033] In some embodiments, the communication network 102 can be any suitable combination of one or more wired and / or wireless networks. For example, the communication network 102 can include any one or more of the following: the Internet, an intranet, a wide area network (WAN), a local area network (LAN), a wireless network, a digital subscriber line (DSL) network, a frame relay network, an asynchronous transfer mode (ATM) network, a virtual private network (VPN) and / or any other suitable communication network. The navigation client 103 can be connected to the communication network 102 via one or more communication links (e.g., communication link 104), and the communication network 102 can be linked to the navigation service end 101 via one or more communication links (e.g., communication link 105). The communication link can be any communication link suitable for transmitting data between the navigation client 103 and the navigation service end 101, such as a network link, a dial-up link, a wireless link, a hard-wired link, any other suitable communication link or any suitable combination of such links.

[0034] The navigation client 103 may include any one or more clients that present an interface related to navigating the multi-level directory tree in an appropriate form for use and operation by the user. In some embodiments, the navigation client 103 may include a device of any suitable type. For example, in some embodiments, the navigation client 103 may include a mobile device, a tablet computer, a laptop computer, a desktop computer, and / or any other suitable type of client device.

[0035] Although the navigation server 101 is illustrated as one device, in some embodiments, any suitable number of devices may be used to perform the functions performed by the navigation server 101. For example, in some embodiments, multiple devices may be used to implement the functions performed by the navigation server 101. Alternatively, the functions of the navigation server 101 may be implemented using a cloud service.

[0036] Based on the above system, an embodiment of the present application provides a navigation method for a multi-level directory tree, which is described below through the following embodiments.

[0037] Figure 2 The present invention is a flowchart of a method for navigating a multi-level directory tree according to an embodiment of the present invention.

[0038] The multi-level directory tree navigation method of this embodiment can be executed on the navigation server, and the multi-level directory tree navigation method includes the following steps:

[0039] Step S201: construct a dynamic data structure using nodes. When a user uses a node in the dynamic data structure as a root node, a data node subtree is constructed with the root node as the starting point.

[0040] As an optional example, in the method of this embodiment, a dynamic data structure is constructed using nodes, and a root node port is set for each node in the dynamic data structure. When a user uses a node in the dynamic data structure as a root node, a data node subtree is constructed according to the root node port of the root node. The dynamic data structure in this embodiment includes a tree data structure.

[0041] Step S202: After the user constructs a data node subtree with a certain node as the root node, a corresponding root node view is generated for the constructed data node subtree.

[0042] As an optional example, in the method of this embodiment, after the user constructs a data node subtree with a certain node as the root node, a corresponding root node view is generated for the constructed data node subtree, and the method also includes: caching the data node subtree constructed by the user and the corresponding root node view, and the root node view is used to display the node information of the corresponding root node and the branches under the root node. For large amounts of data and frequent personalized request scenarios, the response speed can be improved by adopting a caching strategy to reduce the database query pressure.

[0043] Step S203: setting user operation permissions and operation attributes for the nodes in the dynamic data structure. When the user initiates a node operation according to the set user operation permissions, responding to the user with the corresponding operation according to the set operation attributes.

[0044] As an optional example, in the method of this embodiment, when a user initiates a node operation, the user is verified for legitimacy according to the set user operation authority. When the user who initiated the node operation passes the legitimacy verification, the corresponding operation is responded to the user according to the set operation attributes. In this embodiment, the node operation includes adding a new node, deleting a node, or modifying a node. In actual applications, those skilled in the art can also select and perform other node operation settings according to the actual application scenario. For example, the node operation also includes a node status mark.

[0045] Step S204: After the user operates a node in the dynamic data structure, the data in the dynamic data structure is reorganized, and the root node view is updated according to the reorganized dynamic data structure.

[0046] As an optional example, in the method of this embodiment, after the user operates on a node in a dynamic data structure, the data in the dynamic data structure is reorganized, and the root node view is updated according to the reorganized dynamic data structure, and the method also includes: caching the updated dynamic data structure and the root node view. The method of this embodiment ensures the accuracy and timeliness of the node information by updating the root node view. For scenarios with large amounts of data and frequent personalized requests, the response speed can be improved by adopting a caching strategy to reduce the pressure on database queries.

[0047] like Figure 3 As shown, the present invention also provides a device, including a processor 310, a communication interface 320, a memory 330 for storing a computer program executable by the processor, and a communication bus 340. The processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340. The processor 310 implements the above-mentioned multi-level directory tree navigation method by running the executable computer program.

[0048] Among them, the computer program in the memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0049] The multi-level directory tree navigation method, system and device of this embodiment define any node in the directory tree composed of dynamic data structure as a root node, and construct a data node subtree with the root node, so as to realize efficient navigation and management of the multi-level directory tree.

[0050] The system embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected based on actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0051] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0052] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A navigation method for a multi-level directory tree, characterized in that: The method comprises: The dynamic data structure is constructed using nodes. When the user uses a node in the dynamic data structure as the root node, a data node subtree is constructed starting from the root node. After the user constructs a data node subtree with a certain node as the root node, a corresponding root node view is generated for the constructed data node subtree; Set user operation permissions and operation attributes for nodes in the dynamic data structure. When a user initiates a node operation according to the set user operation permissions, respond to the user with the corresponding operation according to the set operation attributes. When the user operates a node in the dynamic data structure, the data in the dynamic data structure is reorganized, and the root node view is updated according to the reorganized dynamic data structure.

2. The navigation method of a multi-level directory tree according to claim 1, characterized in that: A dynamic data structure is constructed using nodes. When a user uses a node in the dynamic data structure as a root node, a data node subtree is constructed with the root node as a starting point, including: using nodes to construct a dynamic data structure, setting a root node port for each node in the dynamic data structure, when a user uses a node in the dynamic data structure as a root node, a data node subtree is constructed according to the root node port of the root node.

3. The navigation method of a multi-level directory tree according to claim 1, characterized in that: After the user constructs a data node subtree with a certain node as the root node, a corresponding root node view is generated for the constructed data node subtree, and the method further includes: caching the data node subtree constructed by the user and the corresponding root node view.

4. The navigation method of a multi-level directory tree according to claim 1, characterized in that: The root node view is used to display the node information of the corresponding root node and the branches under the root node.

5. The navigation method of a multi-level directory tree according to claim 1, characterized in that: Node operations include adding nodes, deleting nodes, or modifying nodes.

6. The navigation method of a multi-level directory tree according to claim 1, characterized in that: Node operations also include node status marking.

7. The navigation method of a multi-level directory tree according to claim 1, characterized in that: When a user initiates a node operation according to the set user operation permissions, a corresponding operation is responded to the user according to the set operation attributes, including: when a user initiates a node operation, the legitimacy of the user is verified according to the set user operation permissions; when the user who initiated the node operation passes the legitimacy verification, a corresponding operation is responded to the user according to the set operation attributes.

8. The navigation method of a multi-level directory tree according to claim 1, characterized in that: When the user operates a node in the dynamic data structure, the data in the dynamic data structure is reorganized, and the root node view is updated according to the reorganized dynamic data structure, and the method also includes: caching the updated dynamic data structure and the root node view.

9. A navigation system for a multi-level directory tree, characterized in that: The system includes a navigation server, which is used to: construct a dynamic data structure using nodes, and when a user uses a node in the dynamic data structure as a root node, construct a data node subtree with the root node as the starting point; After the user constructs a data node subtree with a certain node as the root node, a corresponding root node view is generated for the constructed data node subtree; Set user operation permissions and operation attributes for nodes in the dynamic data structure. When a user initiates a node operation according to the set user operation permissions, respond to the user with the corresponding operation according to the set operation attributes. When the user operates a node in the dynamic data structure, the data in the dynamic data structure is reorganized, and the root node view is updated according to the reorganized dynamic data structure.

10. A computer device, characterized in that: The computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method according to any one of claims 1 to 8 when executing the program.