[0030] In order to make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. range.
[0031] The embodiment of the present invention provides a method for locating an organization node. The method may include the following steps:
[0032] S1: When receiving the instruction to expand the organizational structure, expand the organizational structure;
[0033] S2: When receiving the instruction to collect the target organization node in the above organization structure, determine whether the target organization node has been saved, and if so, send the saved prompt message; if not, execute step S3;
[0034] S3: Obtain the node information of the target organization node in the organization structure, and collect the target organization node;
[0035] S4: When receiving the instruction to expand the target organization node, filter out the target organization node from all the favorite organization nodes, and expand the target organization node.
[0036] In this embodiment, in order to facilitate receiving instructions, corresponding changes can be made in the interface part, such as: adding a right-click menu-favorite item in the organizational structure to perform collection operations on nodes; adding a favorite shortcut key in the organizational structure to perform operations on nodes Collection operation; add a collection page to display collection information.
[0037] In an embodiment of the present invention, the node information in step S3 includes but is not limited to the node ID of the target organization node and the node ID of the parent node of the target organization node.
[0038] In this embodiment, the node information may also include the name of the target organization node and the name of the parent node of the target organization node.
[0039] In an embodiment of the present invention, the specific process of step S3 includes: obtaining node information of the target organization node in the organizational structure, and storing the node information in a database;
[0040] The specific process of step S4 includes: when an instruction to expand the target organization node is received, read the database, make the database identify and read the node information of the target organization node, and expand the target organization node.
[0041] Such as figure 1 As shown, the embodiment of the present invention provides a method for locating an organization node, which is explained from the interaction of the interface part, the logic part and the database part. The method includes: the user expands the organization structure for the first time through the work interface or locates the organization node the user needs through quick search for the first time, selects the organization node that needs to be favorited, and performs the favorite operation. The favorite operation can be performed through the right-click menu-favorite item and click favorite shortcut Press the key to proceed, when the logic part receives the above operation, it is received, it is judged whether the organization node has been collected, if it is, the reminder information that has been collected is sent; if not, the node information of the organization node is obtained, and the node information is stored in the database . The user can trigger the organization favorite page through the work interface, and the logic part reads the favorite organization node in the database and displays it on the interface, allowing the user to view the favorite organization node. The user can also trigger the organization favorite page through the work interface, and the logical part reads the organization node from the database and displays it on the interface, and then quickly and accurately locates the organization node. The user selects the organization node through the interface, and the database obtains the selected organization All node information of the node is returned to the interface.
[0042] Such as figure 2 As shown, the embodiment of the present invention provides a positioning system for organizing nodes. The system includes: an expansion module, a judgment module, a collection module, and a reading module, wherein:
[0043] The expansion module is used to expand the organizational structure when the expansion target organization node is received;
[0044] The judging module is used for judging whether the target organization node has been bookmarked when receiving the instruction to save the target organization node in the above-mentioned organizational structure, if so, sending a reminder that it has been saved; if not, triggering the collection module;
[0045] The collection module is used to obtain the node information of the target organization node in the organization structure, and collect the target organization node;
[0046] The reading module, when receiving the instruction to expand the target organization node, filter out the target organization node from all the favorite organization nodes, and expand the target organization node.
[0047] In an embodiment of the present invention, the node information includes but is not limited to the node ID of the target organization node and the node ID of the parent node of the target organization node.
[0048] In an embodiment of the present invention, the collection module is specifically configured to obtain node information of the target organization node in the organizational structure, and store the node information in the database;
[0049] The reading module is specifically configured to read the database when an instruction to expand the target organization node is received, so that the database recognizes and reads the node information of the target organization node, and expands the target organization node.
[0050] The information exchange and execution process among the various modules in the above system are based on the same concept as the method embodiment of the present invention. For specific content, please refer to the description in the method embodiment of the present invention, which will not be repeated here.
[0051] The embodiment of the present invention provides a readable medium, the readable medium includes: an execution instruction, when the processor of the storage controller executes the execution instruction, the storage controller executes the organization node described in any of the above embodiments The positioning method.
[0052] The embodiment of the present invention provides a storage controller, which includes: a processor, a memory, and a bus; the processor and the memory are connected through the bus;
[0053] When the storage controller is running, the processor executes the execution instructions stored in the storage, so that the storage controller executes the method for locating an organization node described in any of the foregoing embodiments.
[0054] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the relationship between these entities or operations. There is any such actual relationship or sequence. Moreover, the terms "include", "include" 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 not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other same factors in the process, method, article, or equipment including the element.
[0055] A person of ordinary skill in the art can understand that all or part of the steps in the above method embodiments can be implemented by a program instructing relevant hardware. The foregoing program can be stored in a computer readable storage medium. When the program is executed, it is executed. Including the steps of the foregoing method embodiment; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk and other media that can store program codes.
[0056] Finally, it should be noted that the above are only preferred embodiments of the present invention, which are only used to illustrate the technical solutions of the present invention, and are not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are all included in the protection scope of the present invention.