Method, device and equipment for displaying organization structure tree and storage medium

By obtaining the scope of organizational permissions and using long-encoded structural relationships to query the smallest common organizational node, the complexity of permission management for multiple organizational forms is solved, enabling efficient display and querying of organizational structure trees and improving system performance.

CN115328990BActive Publication Date: 2026-01-02KINGDEE SOFTWARE(CHINA) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210903611.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-28
Publication Date
2026-01-02
Estimated Expiration
2042-07-28

AI Technical Summary

Technical Problem

In existing technologies for permission management across multiple organizational structures, the complexity of permission calculations leads to a decline in system performance, making it difficult to perform organizational queries for any combination of organizational structures.

Method used

By obtaining the organizational permission scope of the target user, utilizing the long encoding of the structural relationship of the organizational team entity, querying the least common organizational node and multiple target organizational nodes, and using a prefix matching algorithm for rendering, a target organizational structure tree is established, reducing the complexity of the permission matrix and achieving unified authorization and query.

Benefits of technology

It reduces the burden of permission calculation, improves system performance, and enables efficient authorization and querying of any combination of organizational structures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115328990B_ABST
    Figure CN115328990B_ABST
Patent Text Reader

Abstract

The application discloses a kind of organization structure tree display method, device, equipment and storage medium, by obtaining the authorized scope of the organization authority scope containing target organization form combination, and based on the first structure relationship long coding of organization team entity, the minimum common organization node and multiple target organization nodes in organization authority scope are inquired, to be able to utilize the single organization team entity of describing multiple organization form combinations, the target organization form combination obtained by the combination of multiple organization forms is authorized uniformly, and unified data query is carried out using structure relationship long coding mode, without complex authority matrix, overturns the original multi-entity query mode, realizes the authorization demand and organization query of arbitrary organization form combination, reduces the pressure of authority calculation;Finally, the minimum common organization node and multiple target organization nodes are rendered to show the target organization structure tree, realize the efficient display of target organization structure tree, improve system performance.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, and particularly relates to a display method and device of organization structure tree, equipment and storage medium. BACKGROUND

[0002] The organization model is the basis for enterprises to develop business work, which displays the organization structure tree and the basic data list in the form of left tree right table layout, completes data selection and service layer dependence through the organization structure tree with search function, and displays the node details of the organization structure tree through the basic data list. In order to ensure the security of organization information, corresponding permissions are required when loading the organization structure tree, so that the user can only view the organization nodes within the permission range.

[0003] At present, each organization form of the organization structure tree is an independent entity, and when multiple organization forms need to be authorized, the existing permission algorithm scheme will become extremely complex. The complex permission calculation leads to serious decline of system performance, so it is difficult to realize organization query of arbitrary organization form combination. SUMMARY

[0004] The present application provides a display method, device and equipment of organization structure tree and storage medium, so as to improve the system performance and realize the organization query of arbitrary organization form combination.

[0005] In a first aspect, the present application provides a display method of organization structure tree, comprising:

[0006] Obtaining the organization permission range of the target user, the organization permission range including the authorized range of the target organization form combination, the target organization form combination including at least one organization form of the organization structure tree, and the organization form being used to describe the superior-inferior relationship between multiple organization nodes;

[0007] Based on the first structure relationship long coding of the organization team entity, querying the minimum common organization node and multiple target organization nodes within the organization permission range, the organization team entity being used to describe multiple organization form combinations, and the organization form combination including multiple organization forms;

[0008] Rendering the minimum common organization node and the multiple target organization nodes to display the target organization structure tree.

[0009] In some implementations of the first aspect, based on the first structure relationship long coding of the organization team entity, querying the minimum common organization node and the multiple target organization nodes within the organization permission range, comprising:

[0010] Using the prefix matching algorithm, calculating the minimum common organization node based on the first structure relationship long coding of the organization team entity;

[0011] A prefix matching algorithm is used to calculate a plurality of target organization nodes in the organization authority range based on a target structure long code of a minimum common organization node.

[0012] In some implementations of the first aspect, a prefix matching algorithm is used to calculate a minimum common organization node based on a first structure relationship long code of an organization team entity, including:

[0013] The second structure relationship long code of the target organization form combination is queried from the first structure relationship long code of the organization team entity.

[0014] A prefix matching algorithm is used to calculate a minimum common organization node based on the second structure relationship long code.

[0015] In some implementations of the first aspect, the minimum common organization node and the plurality of target organization nodes are rendered to display a target organization structure tree, including:

[0016] The target organization structure tree is established with the minimum common organization node as a tree vertex and the plurality of target organization nodes as leaf nodes, and the fault nodes of the target organization structure tree are spliced with preset virtual nodes.

[0017] The target organization structure tree is loaded, and a loading page of the target organization structure tree is rendered to display the target organization structure tree.

[0018] In some implementations of the first aspect, loading the target organization structure tree includes:

[0019] Using a lazy loading method, the organization nodes in the target organization structure tree are loaded according to preset loading priority conditions.

[0020] In some implementations of the first aspect, after the minimum common organization node and the plurality of target organization nodes are rendered to display the target organization structure tree, the method further includes:

[0021] In response to a node selection operation acting on the target organization structure tree, the lower-level organization nodes corresponding to the node selection operation are queried in a preset storage space.

[0022] If the lower-level organization nodes are not queried, the prefix matching algorithm is used to refresh the lower-level organization nodes from a preset database to the preset storage space.

[0023] In some implementations of the first aspect, a data list describing the node data of the organization nodes is further displayed on a display page of the target organization structure tree, and after the minimum common organization node and the plurality of target organization nodes are rendered to display the target organization structure tree, the method further includes:

[0024] In response to a data selection operation on the node data, a tree vertex of the to-be-positioned organization node corresponding to the node data is determined;

[0025] Based on the structure long coding of the tree vertex, the to-be-positioned organization node on the target organization structure tree is queried in the preset storage space.

[0026] In some implementations of the first aspect, the organization team entity is stored in the data platform in a software development kit (SDK) manner.

[0027] In the second aspect, the present application provides a display device of an organization structure tree, comprising:

[0028] The acquisition module is configured to acquire an organization authority range of a target user, the organization authority range comprising an authorized range of a target organization form combination, the target organization form combination comprising at least one organization form of the organization structure tree, and the organization form being used to describe a superior-inferior relationship between a plurality of organization nodes.

[0029] The query module is configured to query a minimum common organization node and a plurality of target organization nodes in the organization authority range based on a first structure relationship long coding of the organization team entity, the organization team entity being used to describe a plurality of organization form combinations, and the organization form combination comprising a plurality of organization forms.

[0030] The rendering module is configured to render the minimum common organization node and the plurality of target organization nodes to display the target organization structure tree.

[0031] In the third aspect, the present application provides a computer device comprising a processor and a memory, the memory being configured to store a computer program, and the computer program being configured to implement the display method of the organization structure tree according to the first aspect when executed by the processor.

[0032] In the fourth aspect, the present application provides a computer readable storage medium storing a computer program, and the computer program is configured to implement the display method of the organization structure tree according to the first aspect when executed by a processor.

[0033] In the fifth aspect, the present application provides a computer program product, and when the computer program product is run on a computer device, the computer device is configured to implement the display method of the organization structure tree according to the first aspect when executed.

[0034] Compared with the prior art, the present application has the following beneficial effects:

[0035] The application obtains an organization authority range containing a target organization form combination authorized range, and queries a minimum common organization node and a plurality of target organization nodes in the organization authority range based on a first structure relationship long code of an organization team entity, so as to uniformly authorize the target organization form combination obtained by combining a plurality of organization forms by using the organization team entity describing a plurality of organization form combinations, and reduce the complexity of the authority matrix by using the structure relationship long code mode for uniform query, thereby overturning the original multi-entity query mode, greatly reducing the authority calculation pressure, and realizing the authorization demand and organization query of any organization form combination. Finally, the minimum common organization node and the plurality of target organization nodes are rendered to display the target organization structure tree, realize efficient display of the target organization structure tree, and improve the system performance. BRIEF DESCRIPTION OF DRAWINGS

[0036] Figure 1 A flowchart of an organization structure tree display method according to an embodiment of the application is shown.

[0037] Figure 2 A flowchart of an organization structure tree display method according to another embodiment of the application is shown.

[0038] Figure 3 A flowchart of an organization structure tree display method according to another embodiment of the application is shown.

[0039] Figure 4 A schematic diagram of an organization team entity according to an embodiment of the application is shown.

[0040] Figure 5 A schematic diagram of an organization model displayed in a left tree right table according to an embodiment of the application is shown.

[0041] Figure 6 A structural schematic diagram of an organization structure tree display device according to an embodiment of the application is shown.

[0042] Figure 7 A structural schematic diagram of a computer device according to an embodiment of the application is shown. DETAILED DESCRIPTION

[0043] The technical solutions in the embodiments of the application will be described clearly and completely below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only part of the embodiments of the application, rather than all the embodiments of the application. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the application.

[0044] As described in the related art, each organization form of the current organization structure tree is an independent entity. When multiple organization forms need to be authorized, the permission matrix will become extremely complex, causing a serious decline in system performance. For example, the organization structure tree includes party group organizations, trade union organizations, and administrative organizations, which are all independent organization forms. When a user is only allowed to view part of the organization nodes in the party group organizations, trade union organizations, and administrative organizations, authorization needs to be performed on the three organization forms of the party group organizations, trade union organizations, and administrative organizations respectively to obtain a permission matrix. According to the permission matrix, the organization nodes within the corresponding range of the party group organizations, trade union organizations, and administrative organizations are obtained from the database respectively. When the number of organization forms reaches a certain amount, the permission matrix will become extremely complex, and organization queries based on the complex permission matrix also require a large amount of permission calculation resources, thereby making it difficult to implement organization queries of arbitrary organization form combinations.

[0045] To this end, an embodiment of the present application provides a method for displaying an organization structure tree. The method includes obtaining an organization permission range including an authorized range of a target organization form combination, and querying a minimum common organization node and a plurality of target organization nodes in the organization permission range based on a first structure relationship long code of an organization team entity. The method can uniformly authorize a target organization form combination obtained by combining multiple organization forms using a single organization team entity describing multiple organization form combinations, and can reduce the complexity of the permission matrix by using a structure relationship long code for unified data query. The method overturns the original multi-entity query method, implements authorization requirements and organization queries of arbitrary organization form combinations, reduces permission calculation pressure, and finally renders the minimum common organization node and the plurality of target organization nodes to display the target organization structure tree, thereby achieving efficient display of the target organization structure tree and improving system performance.

[0046] Please refer to Figure 1 , Figure 1 A flowchart of a method for displaying an organization structure tree is provided in an embodiment of the present application. The method for displaying an organization structure tree in the embodiment of the present application can be applied to a computer device, which includes but is not limited to a smartphone, a notebook computer, a tablet computer, a desktop computer, a physical server, a cloud server, and the like. As shown in Figure 1 , the method for displaying an organization structure tree in the embodiment includes steps S101 to S103, which are described in detail as follows.

[0047] In step S101, an organization permission range of a target user is obtained, the organization permission range including an authorized range of a target organization form combination, the target organization form combination including at least one organization form of an organization structure tree, the organization form being used to describe an upper and lower relationship between a plurality of organization nodes.

[0048] In this step, the organization authority scope is the scope of the organization structure tree that the target user is allowed to view. Optionally, the organization authority scope is represented by a structure long code, which is a code data obtained by splicing the structure codes of multiple organization nodes, for example, the structure long code is: 239+I0VKQ3MM!239FSM44R4 / C!23X6B / PXW0VO!298F=KWJ5 / +N!29A18IX95YNA!2F+E6REYSAU0, where each organization node has an independent structure code, and each organization node is connected by a "!" separator (it should be understood that in other embodiments, the separator can also be other symbols such as "#", "-" and the like, which will not be described here) to establish the superior-inferior relationship between the organization nodes.

[0049] The target organization form combination is a combination of one or more authorized organization forms. For example, the authorized organization forms are party group organization, trade union organization, and administrative organization, respectively, and the target organization form combination is a combination of party group organization, trade union organization, and administrative organization. It can be understood that for an organization form that only authorizes part of the organization nodes, the target organization form combination is a combination of an organization form that only includes the authorized organization nodes.

[0050] Optionally, the multiple organization nodes can belong to nodes that have a continuous superior-inferior relationship. For example, organization node A is the direct superior node of organization node B, and organization node B is the direct superior node of organization node C, and organization node A, organization node B, and organization node C have a continuous superior-inferior relationship.

[0051] Optionally, the multiple organization nodes can belong to nodes that have a cross-superior-inferior relationship. For example, organization node A is the direct superior node of organization node B, and organization node B is the direct superior node of organization node C, and organization node A and organization node C have a cross-superior-inferior relationship. Then, when the authorized organization nodes are only A and C, the multiple organization nodes in the organization form have a cross-superior-inferior relationship.

[0052] Optionally, the authority data structure of the organization structure tree (such as the structure long code) is agreed with the data middle platform, and the data middle platform stores the authority data structure for describing the organization authority scope of the target user. The computer device is in communication connection with the data middle platform, and obtains the organization authority scope of the target user from the data middle platform.

[0053] In step S102, based on the first structure relationship long code of the organization team entity, the smallest common organization node and the multiple target organization nodes in the organization authority scope are queried, the organization team entity is used to describe multiple organization form combinations, and the organization form combination includes multiple organization forms.

[0054] In this step, the organization team entity is a single entity for describing various combinations of organizational forms, which can specifically describe all organizational forms of an organizational structure tree. As shown in the structural diagram of the organization team entity, Figure 4 "administrative organization", "project team" and "work group" represent organizational forms, and "laboratory", "product team", "German office", "audit team", "bill team", "Spanish office", "design team" and "R&D team" represent organizational nodes. The organization team entity describes all organizational nodes under various organizational forms, and obtains a target organizational form combination by arbitrarily combining the organizational nodes. The dashed box represents a virtual node.

[0055] Alternatively, the organization team entity is stored in the data platform in the form of a software development kit (SDK) to meet the seamless integration of zero code in the field or the rapid inheritance of a small amount of code to realize the performance tree in the field, so that the downstream no longer needs to call the organization service to generate organizational node information through microservices. The downstream only needs to inherit the base class of the business platform and construct the tree node object, and transmit different node information according to different business scenarios.

[0056] The first structural relationship long code is the data code obtained by splicing the structure codes of the organizational nodes of the various organizational forms. Alternatively, the structure codes of the multiple form organizational nodes are spliced according to the superior-inferior relationship between the form organizational nodes to obtain the first structural relationship code. The minimum common organizational node is the tree vertex (or root node) of the organizational structure tree corresponding to the target organizational form combination. The minimum common organizational node can also be a virtual node. The target organizational node is an organizational node that the user is allowed to view within the organizational authority scope.

[0057] Alternatively, the first structural relationship long code and the structure long code corresponding to the organizational authority scope are matched by using a prefix matching algorithm to obtain the minimum common organizational node and the target organizational node within the organizational authority scope from the database.

[0058] In step S103, the minimum common organizational node and the multiple target organizational nodes are rendered to display the target organizational structure tree.

[0059] In this step, after the minimum common organizational node and the target organizational node are queried in step S102, data is retrieved from the database, and the database returns a data packet including the minimum common organizational node and the target organizational node to the computer device. The data packet is loaded into a preset storage space (such as memory) of the computer device, and then the minimum common organizational node and the target organizational node loaded into the preset storage space are rendered to display the target organizational structure tree.

[0060] In some embodiments, in Figure 1Based on the embodiment shown, the step S102 comprises:

[0061] The minimum common organization node is calculated based on the first structure relationship long code of the organization team entity by using the prefix matching algorithm.

[0062] The target organization nodes within the organization authority scope are calculated based on the target structure long code of the minimum common organization node by using the prefix matching algorithm.

[0063] In this embodiment, the corresponding organization form combination in the organization team entity is determined based on the target organization form combination, the target structure long code of the minimum common organization node is calculated by using the structure relationship long code of the organization form combination through the prefix matching algorithm, and the minimum common organization node is obtained by using the target structure long code to query the database. Since the minimum common organization node is the tree vertex of the organization structure tree, all target organization nodes under the tree vertex can be queried within the known organization authority scope, and therefore the structure code of the target organization node is queried by using the target structure long code of the minimum common organization node, and the target organization node is obtained by using the structure code to query the database.

[0064] Optionally, the prefix matching algorithm comprises: sorting the structure long codes in ascending order, and performing loop iteration; taking the first structure code as a prefix string, and comparing the first structure code with the structure codes behind the structure long code through two-layer loop iteration; matching the prefix string during the comparison, and if the structure code behind is not prefixed by the prefix string, obtaining the structure code of the parent organization node (the structure code of the parent organization node is obtained by removing the string after the last separator in the structure long code) as a new prefix string according to the separator of the structure long code and the current prefix string, and continuing to perform prefix string matching with the structure codes that have not been compared to obtain the final organization node.

[0065] The organization node is queried by using the prefix matching algorithm in this embodiment, the complex authority matrix is simplified, and the program running time is greatly shortened and the program performance is improved.

[0066] Optionally, the calculation process of the minimum common organization node comprises: querying the second structure relationship long code of the target organization form combination from the first structure relationship long code of the organization team entity; and calculating the minimum common organization node of the target organization form combination based on the second structure relationship long code by using the prefix matching algorithm.

[0067] In the optional embodiment, since the organization team entity can describe all organization form combinations, the organization team entity also contains the target organization form combination, and therefore the second structural relationship long code corresponding to the target organization form combination can be queried from the first structural relationship long code.

[0068] In some embodiments, in Figure 1 Based on the embodiment shown, the step S103 comprises:

[0069] The target organization structure tree is established with the minimum common organization node as a tree vertex and the plurality of target organization nodes as leaf nodes, wherein the fault nodes of the target organization structure tree are spliced with preset virtual nodes;

[0070] The target organization structure tree is loaded and a loading page of the target organization structure tree is rendered to display the target organization structure tree.

[0071] In the embodiment, since the organization team entity describes a plurality of organization form combinations in terms of the superior and subordinate organization nodes, the minimum common organization node and the plurality of target organization nodes can be constructed into the target organization structure tree based on the superior and subordinate organization nodes described by the organization team entity. For an organization form that only allows part of the organization nodes to be viewed, the fault nodes are spliced with preset virtual nodes, thereby ensuring the logical integrity of the target organization structure tree.

[0072] Optionally, the loading process of the target organization structure tree comprises loading the organization nodes of the corresponding level in the target organization structure tree according to preset loading priority conditions of the organization structure tree.

[0073] The preset loading priority conditions are loading priority conditions of the organization nodes, which include but are not limited to basic priority and real-time priority. The basic priority is a priority set according to the node level relationship of the organization structure tree, wherein the priority of the topmost organization node (such as the minimum common organization node) is the highest and the priority of the bottommost organization node is the lowest. For example, the preset loading conditions can be the highest priority node and the secondary priority node, so as to load the minimum common organization node and the subordinate organization nodes thereof in the target organization structure tree. The real-time priority is a priority corresponding to the real-time selection of the organization node by the user, for example, on the basis of the basic priority, only the topmost organization node is loaded at present, and when the user selects a subordinate organization node A in real time, the priority of the subordinate organization node A is adjusted to the highest level.

[0074] In order to improve the rendering effect to efficiently display the target organizational structure tree, a preset loading priority condition can be used to load only part of the nodes of the target organizational structure tree, for example, according to a basic priority, only the minimum common organizational node and other common organizational nodes are loaded, and when a user needs to view a subordinate organizational node, the subordinate organizational node is loaded again based on a real-time priority. The above method can effectively solve the problem of browser rendering freezing or interface response timeout due to a large front-end data packet, and improve the system performance.

[0075] In some embodiments, based on the embodiment shown in Figure 1 Figure 2 Another flowchart of a method for displaying an organizational structure tree is shown, wherein the same steps as Figure 1 are not repeated here. As shown in Figure 2 , the step S103 is followed by:

[0076] Step S201: In response to a node selection operation on the target organizational structure tree, querying a lower-level organizational node corresponding to the node selection operation in a preset storage space;

[0077] Step S202: If the lower-level organizational node is not queried, using a prefix matching algorithm to refresh the lower-level organizational node from a preset database to the preset storage space.

[0078] In this embodiment, the node selection operation can be a click operation, for example, clicking an organizational node in the target organizational structure tree by a mouse. It can be understood that at the user interaction level, when a parent-level organizational node is clicked, it means that the lower-level organizational node corresponding to the parent-level organizational node needs to be viewed, so the preset storage space (such as memory) of the computer device is queried to determine whether the lower-level organizational node exists, if it exists, the lower-level organizational node is loaded from the preset storage space and rendered to display the lower-level organizational node; if the preset storage space does not contain the lower-level organizational node, the prefix matching algorithm is used to query the database to obtain the lower-level organizational node from the database and load it into the preset storage space, so that the next time the user views the lower-level organizational node, it is not necessary to calculate and load again, thereby improving the system performance.

[0079] In some embodiments, based on the embodiment shown in Figure 1 Figure 3 Another flowchart of a method for displaying an organizational structure tree is shown, wherein the same steps as Figure 1 are not repeated here. As shown in Figure 2 , the step S103 is followed by:

[0080] ​​Step S301, in response to a data selection operation acting on the node data, determining a tree vertex of the pending positioning organization node corresponding to the node data;

[0081] Step S302, based on the structure long code of the tree vertex, querying the pending positioning organization node on the target organization structure tree in the preset storage space.

[0082] In the embodiment, the display page of the target organization structure tree also displays a data list of the node data describing the organization node, as shown in the schematic diagram of the left tree and right table. Figure 5 In some cases, the target organization structure is rendered in a lazy loading manner, and the data list loads the node data of all organization nodes, so when an organization node in the data list is selected, the organization node in the target organization structure tree needs to be positioned reversely.

[0083] Optionally, according to the structure code of the left tree node where the node data is located, the topmost tree node in the target organization structure tree that has not been loaded is quickly found by using a prefix matching algorithm, and then the left tree node is found from the preset storage space through the structure code of the tree node. If found, no secondary loading is performed, otherwise, the left tree node is obtained from the database in a lazy loading manner and loaded onto the target organization structure tree of the display page.

[0084] In order to perform the display method of the organization structure tree corresponding to the method embodiment, the corresponding functions and technical effects are realized. Referring to Figure 6 , Figure 6 A structural block diagram of an organization structure tree display device provided by an embodiment of the present application is shown. For ease of illustration, only the parts related to the embodiment are shown. The organization structure tree display device provided by the embodiment includes:

[0085] The obtaining module 601 is configured to obtain an organization permission range of a target user, the organization permission range including an authorized range of a target organization form combination, the target organization form combination including at least one organization form of an organization structure tree, the organization form being used to describe the superior-inferior relationship between a plurality of organization nodes;

[0086] The querying module 602 is configured to query a minimum common organization node and a plurality of target organization nodes in the organization permission range based on a first structure relationship long code of an organization team entity, the organization team entity being used to describe a plurality of organization form combinations, the organization form combination including a plurality of organization forms;

[0087] The rendering module 603 is configured to render the minimum common organization node and the plurality of target organization nodes to display a target organization structure tree.

[0088] In some embodiments, the query module 602 comprises:

[0089] a first calculation unit, configured to calculate the minimum common organization node of the target organization form combination based on the first structural relationship long code of the organization team entity by using a prefix matching algorithm;

[0090] a second calculation unit, configured to calculate a plurality of target organization nodes within the organization authority scope based on a target structural long code of the minimum common organization node by using the prefix matching algorithm.

[0091] In some embodiments, the first calculation unit comprises:

[0092] a query subunit, configured to query the second structural relationship long code of the target organization form combination from the first structural relationship long code of the organization team entity;

[0093] a calculation subunit, configured to calculate the minimum common organization node of the target organization form combination based on the second structural relationship long code by using the prefix matching algorithm.

[0094] In some embodiments, the rendering module 603 comprises:

[0095] a building unit, configured to build the target organization structure tree with the minimum common organization node as a tree vertex and a plurality of the target organization nodes as leaf nodes, wherein a fault node of the target organization structure tree is spliced with a preset virtual node;

[0096] a loading unit, configured to load the target organization structure tree and render a loading page of the target organization structure tree to display the target organization structure tree.

[0097] In some embodiments, the loading unit comprises:

[0098] a lazy loading subunit, configured to load an organization node in the target organization structure tree in a lazy loading manner according to a preset loading priority condition.

[0099] In some embodiments, the display device further comprises:

[0100] a second query module, configured to query a lower-level organization node corresponding to a node selection operation acting on the target organization structure tree in a preset storage space in response to the node selection operation;

[0101] a refreshing module, configured to refresh the lower-level organization node from a preset database to the preset storage space by using the prefix matching algorithm if the lower-level organization node is not queried.

[0102] In some embodiments, the display device further comprises:

[0103] determining module, configured to determine a tree vertex of the to-be-positioned organization node corresponding to the node data in response to a data selection operation acting on the node data;

[0104] a third querying module, configured to query the to-be-positioned organization node on the target organization structure tree in a preset storage space based on the structure long coding of the tree vertex.

[0105] In some embodiments, the organization team entity is stored in a data platform in a software development kit (SDK) manner.

[0106] The organization structure tree display device described above can implement the organization structure tree display method of the method embodiments described above. The options in the method embodiments described above are also applicable to this embodiment, and will not be described in detail herein. The remaining content of the embodiments of the present application can be referred to the content of the method embodiments described above, and will not be described in detail in this embodiment.

[0107] Figure 7 A structural schematic diagram of a computer device according to an embodiment of the present application is shown in FIG. 7. As shown in FIG. 7, the computer device 7 according to this embodiment includes at least one processor 70 (only one processor is shown in the figure), a memory 71, and a computer program 72 stored in the memory 71 and executable on the at least one processor 70, wherein the processor 70 implements the steps in any of the method embodiments described above when executing the computer program 72. Figure 7 Figure 7 The computer device 7 can be a smart phone, a tablet computer, a desktop computer, a cloud server, and the like. The computer device can include but is not limited to the processor 70 and the memory 71. Those skilled in the art can understand that the computer device 7 shown in the figure is only an example and does not constitute a limitation on the computer device 7, and can include more or fewer components than those shown in the figure, or combine certain components, or different components, for example, can also include an input / output device, a network access device, and the like.

[0108] The computer device 7 can be a smart phone, a tablet computer, a desktop computer, a cloud server, and the like. The computer device can include but is not limited to the processor 70 and the memory 71. Those skilled in the art can understand that the computer device 7 shown in the figure is only an example and does not constitute a limitation on the computer device 7, and can include more or fewer components than those shown in the figure, or combine certain components, or different components, for example, can also include an input / output device, a network access device, and the like. Figure 7

[0109] ​​The processor 70 can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0110] The memory 71 can be an internal storage unit of the computer device 7 in some embodiments, for example, a hard disk or a memory of the computer device 7. The memory 71 can also be an external storage device of the computer device 7 in other embodiments, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory 71 can include both an internal storage unit and an external storage device of the computer device 7. The memory 71 is used to store an operating system, an application program, a boot loader, data and other programs, for example, program codes of the computer program, etc. The memory 71 can also be used to temporarily store data that has been output or will be output.

[0111] In addition, the embodiments of the present application further provide a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the steps in any of the above method embodiments.

[0112] The embodiments of the present application provide a computer program product. When the computer program product is run on a computer device, the computer device executes the steps in each of the above method embodiments.

[0113] In several embodiments provided in the present application, it can be understood that each block in the flowchart or block diagram can represent a module, a segment or a portion of code which includes one or more executable instructions for implementing the specified logic function. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figure. For example, two blocks noted in succession can in fact be executed substantially concurrently or in the reverse order, depending on the functionality involved.

[0114] The functions described above if implemented in software function modules and sold or used as independent products can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or the part of the present application which essentially contributes to the prior art or the part of the technical solutions of the present application can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk and various media capable of storing program codes.

[0115] The specific embodiments described above further illustrate the purposes, technical solutions and beneficial effects of the present application. It should be understood that the above description is only for specific embodiments of the present application and is not intended to limit the protection scope of the present application. It is particularly pointed out that any modification, equivalent replacement, improvement, etc. made by those skilled in the art within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for displaying an organizational structure tree, characterized in that, include: Obtain the organizational permission scope of the target user, wherein the organizational permission scope includes the authorization scope of the target organizational form combination, wherein the target organizational form combination includes at least one organizational form in the organizational structure tree, and the organizational form is used to describe the hierarchical relationship between multiple organizational nodes; Based on the first structural relationship long encoding of the organization team entity, query the minimum common organization node and multiple target organization nodes within the organization's permission scope. The organization team entity is used to describe multiple combinations of organizational forms, and the combinations of organizational forms include multiple organizational forms. Using the least common organization node as the tree vertex and the multiple target organization nodes as leaf nodes, the least common organization node and the multiple target organization nodes are rendered to display the target organization structure tree. The first structural relationship long encoding based on the organization team entity queries the minimum public organization node and multiple target organization nodes within the organization's permission scope, including: Using a prefix matching algorithm, the least common organizational node is calculated based on the first structural relationship long code of the organizational team entity; Using a prefix matching algorithm, multiple target organization nodes within the organization's permission range are calculated based on the target structure long encoding of the least common organization node.

2. The method for displaying an organization structure tree as described in claim 1, characterized in that, The step of using a prefix matching algorithm to calculate the least common organizational node based on the first structural relationship long encoding of the organizational team entities includes: From the first structural relationship long code of the organizational team entity, query the second structural relationship long code of the target organizational form combination; Using a prefix matching algorithm, based on the second structural relationship long encoding, the minimum common organizational node of the target organizational form combination is calculated.

3. The method for displaying an organizational structure tree as described in claim 1, characterized in that, The rendering of the minimum common organization node and multiple target organization nodes to display the target organization structure tree includes: Establish the target organization structure tree, wherein the fault nodes of the target organization structure tree are spliced ​​together with preset virtual nodes; Load the target organization structure tree and render the loading page of the target organization structure tree to display the target organization structure tree.

4. The method for displaying an organizational structure tree as described in claim 3, characterized in that, Loading the target organization structure tree includes: Based on the preset loading priority conditions of the organization structure tree, load the organization nodes of the corresponding level in the target organization structure tree.

5. The method for displaying an organizational structure tree as described in claim 1, characterized in that, After rendering the minimum common organization node and multiple target organization nodes to display the target organization structure tree, the process further includes: In response to a node selection operation applied to the target organization structure tree, the lower-level organization node corresponding to the node selection operation is queried in a preset storage space; If the lower-level organization node is not found, the lower-level organization node is refreshed from the preset database to the preset storage space using a prefix matching algorithm.

6. The method for displaying an organization structure tree as described in claim 1, characterized in that, The target organization structure tree display page also displays a data list describing the node data of the organization nodes. After rendering the least common organization node and multiple target organization nodes to display the target organization structure tree, the following steps are also included: In response to a data selection operation applied to the node data, determine the tree vertex of the organization node to be located corresponding to the node data; Based on the structural length encoding of the tree vertices, the target organization node on the target organization structure tree is queried in the preset storage space.

7. The method for displaying an organizational structure tree as described in claim 1, characterized in that, The organizational team entity is stored in the data platform using a Software Development Kit (SDK).

8. A display device for an organizational structure tree, characterized in that, include: The acquisition module is used to acquire the organizational permission scope of the target user. The organizational permission scope includes the authorization scope of the target organizational form combination. The target organizational form combination includes at least one organizational form in the organizational structure tree. The organizational form is used to describe the hierarchical relationship between multiple organizational nodes. The query module is used to query the minimum common organizational node and multiple target organizational nodes within the organization's permission scope based on the first structural relationship long encoding of the organizational team entity. The organizational team entity is used to describe multiple combinations of organizational forms, and the combinations of organizational forms include multiple organizational forms. The rendering module is used to render the least common organization node and the multiple target organization nodes, with the least common organization node as the tree vertex and the multiple target organization nodes as leaf nodes, so as to display the target organization structure tree. The query module includes: The first calculation unit is used to calculate the least common organization node based on the first structural relationship long code of the organization team entity using a prefix matching algorithm; The second calculation unit is used to calculate multiple target organization nodes within the organization's permission range based on the target structure long encoding of the least common organization node using a prefix matching algorithm.

9. A computer device, characterized in that, It includes a processor and a memory, the memory being used to store a computer program that, when executed by the processor, implements the method for displaying an organizational structure tree as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the method for displaying an organizational structure tree as described in any one of claims 1 to 7.

11. A computer program product, characterized in that, When a computer program product is run on a computer device, the computer device executes the method for displaying an organizational structure tree as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Node inquiring method and system utilizing same

    CN102567357A

  • Resource management method and device, computer equipment and storage medium

    CN113204427A