A paging display method and paging display device for page content
By paginating and displaying each layer of the nodes of the organization tree in the enterprise management system, the problem of inconvenience in query and browsing in the existing technology is solved, and more convenient information query and display is achieved.
Patent Information
- Application Number
- CN202210040886.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-14
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2042-01-14
AI Technical Summary
The paging display scheme of the organizational structure tree in the existing enterprise management system cannot paginate the nodes of the organization tree, resulting in inconvenience of querying and browsing information of the organizational structures at each level.
By paginating each layer of the organization tree, using the root node to obtain the module, the parent node determines the module and the recursive module, and in response to query requests, obtain and paging the nodes of the organization tree, until the leaf node, ensuring the user query interface The content pagination of each node on the upper layer is displayed.
It realizes convenient query and browsing of organizational information at all levels and improves user experience.
Smart Images

Figure CN114443195B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a paging display method and a paging display device for page content. Background Art
[0002] The organization tree is a model architecture that displays the enterprise organization structure in a hierarchical tree structure. By clicking on the organization tree layer by layer to query, you can know the information of each level of the current enterprise's organization. At present, there is an increasing demand for the ability to display the organization tree in pages in the enterprise management system so that the queryer can easily query and browse the information of each level of the organization.
[0003] The existing solution for paging the organizational structure tree in an enterprise management system is generally to paginate the first-level nodes of the organizational tree when the server constructs the first-level nodes of the organizational tree. When constructing the second-level nodes of the organizational tree, the second-level nodes of the organizational tree are no longer paginated. Instead, the organizational tree is expanded to a size that matches the number of second-level nodes based on the current number of second-level nodes.
[0004] However, this solution of displaying the organizational structure tree in pages cannot page nodes at each level of the organizational tree, which makes it inconvenient for the queryer to query and browse the information of each level of the organizational structure. Summary of the invention
[0005] In view of this, the purpose of the embodiments of the present application is to provide a paging display method and a paging display device for page content, which can display each layer of nodes in the organizational tree in pages, thereby overcoming the problem that it is inconvenient for the inquirer to query and browse the information of each layer of organizational structure.
[0006] In a first aspect, an embodiment of the present application provides a method for paging display of page content, the paging display method comprising:
[0007] (A) Responding to a first query request, obtaining at least one root node of the target organization tree under the authority of the current login account, and performing paging processing on the at least one root node to determine the page content displayed on each page of the first-level sub-interface of the user query interface; wherein the root node is a first-level node under the target organization tree; and the user query interface includes multiple layers of sub-interfaces.
[0008] (B) The root node is used as a parent node; the parent node is used to represent the leadership relationship between the upper layer node of the target organization tree and the nodes contained in the lower layer.
[0009] (C) Recursively obtain all child nodes under each parent node in turn, and for each parent node, perform paging processing on all child nodes under the parent node, determine all child nodes under the parent node on the layer corresponding to all child nodes in the user query interface, and the page content displayed by the sub-page corresponding to the parent node until the obtained child node is a leaf node; wherein the sub-page is used to indicate the page corresponding to the parent node on the layer corresponding to the child node in the user query interface; wherein the leaf node is the child node of the last layer of the target organization tree.
[0010] (D) Displaying the page content of the first page on the first-level sub-interface of the user query interface.
[0011] Optionally, in response to the first query request, obtaining at least one root node of the target organization tree under the authority of the current login account includes:
[0012] In response to the first query request, a target organization list under the authority of the current login account is obtained, and at least one root node of the target organization tree is filtered out from the target organization list.
[0013] Optionally, the performing paging processing on the at least one root node to determine the page content displayed on each page on the first-level sub-interface of the user query interface includes:
[0014] Based on the number of the root nodes and the number of nodes displayed on each page of the first-level sub-interface of the preset user query interface, the root nodes are paged to determine the page content displayed on each page of the first-level sub-interface of the user query interface.
[0015] Optionally, for each parent node, paging all child nodes acquired under the parent node is performed to determine the page content displayed on the child page corresponding to the parent node on the layer corresponding to the child node of the user query interface for all child nodes under the parent node, including:
[0016] For each parent node, based on the number of all child nodes under the parent node and the number of nodes displayed on each page of the sub-page corresponding to the parent node on the layer corresponding to the child node of the preset user query interface, the content included in all child nodes under the parent node is paged to determine the page content displayed on the sub-page corresponding to the parent node on the layer corresponding to the child node of the user query interface.
[0017] Optionally, the paging display method further includes:
[0018] In response to the second query request under the current login account, the target parent node requested by the second query request is parsed, and from all child pages, the child pages corresponding to the parent node on the layer corresponding to the child node in the user query interface are searched and displayed.
[0019] In a second aspect, an embodiment of the present application provides a paging display device for page content, the paging display device comprising:
[0020] A root node acquisition module is used to respond to a first query request, obtain at least one root node of the target organization tree under the authority of the current login account, and perform paging processing on the at least one root node to determine the page content displayed on each page on the first-level sub-interface of the user query interface; wherein the root node is the first-level node under the target organization tree; and the user query interface includes multiple layers of sub-interfaces.
[0021] The parent node determination module is used to take the root node as the parent node; the parent node is used to represent the command relationship between the upper layer node of the target organization tree and the nodes contained in the lower layer.
[0022] A recursive module is used to recursively obtain all child nodes under each parent node in turn, and for each parent node, paging all the child nodes under the parent node obtained, and determine the page content displayed by the sub-page corresponding to the parent node on the layer corresponding to all child nodes of the user query interface until the obtained child node is a leaf node; wherein the sub-page is used to indicate the page corresponding to the parent node on the layer corresponding to the child node of all child nodes under each parent node on the user query interface; wherein the leaf node is the child node of the last layer of the target organization tree.
[0023] The first display module is used to display the page content of the first page on the first layer sub-interface of the user query interface.
[0024] Optionally, when the root node acquisition module is used to perform paging processing on the at least one root node to determine the page content displayed on each page on the first-level sub-interface of the user query interface, it is specifically used to:
[0025] Based on the number of root nodes and the number of nodes displayed on each page of the first-level sub-interface of the preset user query interface, the content included in the root node is paged to determine the page content displayed on each page of the first-level sub-interface of the user query interface.
[0026] Optionally, the recursive module is specifically used for:
[0027] For each parent node, based on the number of all child nodes under the parent node and the number of nodes displayed on each page of the sub-page corresponding to the parent node on the layer corresponding to the child node of the preset user query interface, the content included in all child nodes under the parent node is paged to determine the page content displayed on the sub-page corresponding to the parent node on the layer corresponding to the child node of the user query interface.
[0028] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory through the bus, and the processor executes the machine-readable instructions to perform the steps of the paginated display method of page content described in any one of the first aspects.
[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the paging display method of page content described in any one of the first aspects are executed.
[0030] The paging display method and paging display device of page content according to the exemplary embodiment of the present invention can make it easier for the inquirer to inquire and browse the information of each level of organization by displaying each level of node in the organization tree in pages.
[0031] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 A flow chart of a method for displaying page contents in pages provided by an embodiment of the present application is shown;
[0034] Figure 2 An example diagram showing the page content displayed on the sub-page corresponding to the parent node on the layer corresponding to the sub-node of the user query interface for determining all the sub-nodes under the parent node provided by an embodiment of the present application;
[0035] Figure 3A schematic diagram showing the structure of a paging display device for page content provided in an embodiment of the present application is shown;
[0036] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0037] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0038] See also Figure 1 As shown, Figure 1 A flow chart of a method for displaying page content in pages provided in an embodiment of the present application. Here, as an example, the page content includes an organizational tree of an enterprise organizational structure.
[0039] like Figure 1 As shown, in step S101, in response to the first query request, at least one root node of the target organization tree under the authority of the current login account is obtained, and the at least one root node is paged to determine the page content displayed on each page on the first-level sub-interface of the user query interface.
[0040] Here, the first query request is used to express the user's desire to query the target organization tree. As an example, the first query request can be a first query request generated by a query button set on the user query interface, or a first query request generated by inputting a query voice on the user query interface. Here, the target organization tree is an organization tree to be constructed on the user query interface or on the server side. Here, the root node is the first-level node under the target organization tree.
[0041] Here, the user query interface includes multiple layers of sub-interfaces. For example, the sub-interface where the first layer node of the target organization tree is located is the first layer interface of the user query interface, and the sub-interface where the second layer node of the target organization tree is located is the second layer interface of the user query interface. The number of sub-interfaces of the user query interface is consistent with the number of layers of the target organization tree.
[0042] Specifically, a target organization list under the authority of the current login account may be first obtained, and at least one root node of the target organization tree may be screened out from the target organization list.
[0043] Here, the target organization list is a list of target organizations selected from the list of all enterprise organizations pre-set on the server side according to the authority of the current login account. For example, if the first layer of the original organization tree constructed according to the list of all enterprise organizations is property insurance, life insurance, and Sunshine Credit Insurance, the nodes belonging to property insurance on the second layer are provincial branches such as Beijing Branch of Property Insurance and Shandong Branch of Property Insurance, and the nodes belonging to Beijing Branch of Property Insurance on the third layer are Chaoyang Central Branch of Beijing Branch of Property Insurance and Haidian Central Branch of Beijing Branch of Property Insurance, and other prefecture-level branches, and the authority of the current login account is property insurance business authority, then according to the authority of the current login account, the list of property insurance, provincial branches such as Beijing Branch of Property Insurance and Shandong Branch of Property Insurance under Property Insurance, and prefecture-level branches such as Chaoyang Central Branch of Beijing Branch of Property Insurance under provincial branches such as Beijing Branch of Property Insurance are selected from the list of all enterprise organizations pre-set on the server side, and the list is used as the target organization list. However, it should be noted that the authority of the above login account is only exemplary, and other authorities may also be included according to actual conditions, and this application does not make any restrictions here.
[0044] In addition, the root node is the first-level node under the target organization tree. Exemplarily, if the authority of the current login account is property insurance business authority, then the content on the root node of the target organization tree to be constructed is property insurance.
[0045] In addition, as an example, the root node can be paged based on the number of root nodes and the number of nodes displayed on each page on the first-level sub-interface of the preset user query interface to determine the page content displayed on each page on the first-level sub-interface of the user query interface.
[0046] In a specific example, if the root node is property insurance, the number of root nodes is 1, the number of nodes displayed on each page of the first-level sub-interface of the preset user query interface is 2, and the root node "Property Insurance" is paginated, and it is determined that the page content displayed on the first page of the first-level sub-interface of the user query interface is "Property Insurance".
[0047] In a specific example, if the root nodes are Property Insurance, Life Insurance, and Sunshine Insurance, the number of root nodes is 3, and the number of nodes displayed on each page of the first-level sub-interface of the preset user query interface is 2. The root node "Property Insurance" is paginated, and it is determined that the page content displayed on the first page of the first-level sub-interface of the user query interface is "Property Insurance, Life Insurance", and the page content displayed on the second page is determined to be "Sunshine Insurance".
[0048] In step S102, the root node is used as a parent node; the parent node is used to represent the command relationship between the upper layer node of the target organization tree and the nodes contained in the lower layer.
[0049] As an example, after obtaining at least one root node of the target organization tree, each root node is used as a parent node.
[0050] Here, the parent node is used to indicate the leadership relationship of the upper-level node of the target organization tree to the nodes contained in the lower level. For example, for provincial branches such as "Property & Casualty Insurance Beijing Branch" and "Property & Casualty Insurance Shandong Branch", the parent node is "Property & Casualty Insurance"; for prefecture-level branches such as "Property & Casualty Insurance Beijing Branch Chaoyang Central Branch", the parent node is "Property & Casualty Insurance Beijing Branch".
[0051] In step S103, all child nodes under each parent node are obtained in turn in a recursive manner, and for each parent node, all child nodes under the parent node are paged to determine all child nodes under the parent node on the layer corresponding to all child nodes in the user query interface, and the page content displayed on the subpage corresponding to the parent node until the obtained child node is a leaf node.
[0052] The sub-page is used to indicate the page corresponding to the parent node on the layer corresponding to the sub-node in the user query interface for all the sub-nodes under each parent node.
[0053] Specifically, exemplarily, for each parent node, based on the number of all child nodes under the parent node and the number of nodes displayed on each page of the sub-page corresponding to the parent node on the layer corresponding to the child node of a preset user query interface, paging processing can be performed on the content included in all child nodes under the parent node to determine the page content displayed on the sub-page corresponding to the parent node on the layer corresponding to the child node of the user query interface.
[0054] In the following, a specific example will be used to describe in detail how to determine the page content displayed on the sub-page corresponding to the parent node on the layer corresponding to the sub-node of the user query interface for all the sub-nodes under the parent node.
[0055] Figure 2 An example diagram of determining the page content displayed on the sub-page corresponding to the parent node on the layer corresponding to the sub-node of the user query interface provided by an embodiment of the present application is shown.
[0056] like Figure 2As shown, as an example, if the parent node is "Property Insurance Beijing Branch", all the child nodes under the parent node "Property Insurance Beijing Branch" are "Property Insurance Haidian Central Branch", "Property Insurance Chaoyang Central Branch", etc., 9 prefecture-level branches, the number of all child nodes is 9, and the number of nodes displayed on each page of the subpage corresponding to the parent node on the preset user query interface corresponding to the child node is 5, so the 9 child nodes are divided into two groups. All child nodes are at the third level on the target organization tree, so the layer corresponding to all child nodes on the user query interface is the third level, so it is determined that the first page of "Subpage 2" corresponding to the parent node on the third level of the user query interface for all child nodes under the parent node displays the five prefecture-level branches of "Property Insurance Haidian Central Branch", "Property Insurance Chaoyang Central Branch", "Property Insurance Dongcheng Central Branch", "Property Insurance Xicheng Central Branch", and "Property Insurance Fengtai Central Branch", and the content displayed on the second page of "Subpage 2" is the remaining other prefecture-level branches under "Property Insurance Beijing Branch". However, it should be noted that those skilled in the art should be aware that the specific organization name on each of the above nodes and the number of all child nodes under each parent node are merely exemplary and may also include other organization names and the number of all child nodes according to actual circumstances. This application does not impose any limitations on this.
[0057] Step S103 is recursively executed until the child node obtained is a leaf node. That is, starting from obtaining all the child nodes under each root node according to each root node, each child node currently obtained is used as the parent node of the next paging process, and the paging process is recursively executed until the child node obtained is a leaf node, and no recursive processing is performed, and all the child pages corresponding to each parent node are obtained. Here, the leaf node is the child node of the last layer of the target organization tree.
[0058] In step S104, the page content of the first page is displayed on the first layer sub-interface of the user query interface.
[0059] After the above paging process is performed on the server, the server returns all the paging sub-pages to the client, and the page content of the first page on the first-level sub-interface is displayed on the client. When the next page of the first level is clicked, the page content of the second page on the first-level sub-interface is displayed on the client.
[0060] Furthermore, when responding to a second query request under the current login account, the target parent node requested by the second query request is parsed, and all child nodes under the target parent node are searched and displayed from all child pages. The child page corresponding to the parent node on the layer corresponding to the child node in the user query interface is searched and displayed.
[0061] Here, the second query request is used to indicate that the user expects to query the child page of the target parent node. As an example, the second query request may be a second query request generated by a "view" option near each parent node on the user query interface.
[0062] According to the paging display method of the page content of the exemplary embodiment of the present invention, each layer of nodes in the organization tree can be displayed in pages, so that the inquirer can more conveniently inquire and browse the information of each layer of organizations.
[0063] Based on the same inventive concept, an embodiment of the present application also provides a paging display device for page content corresponding to the paging display method for page content.
[0064] See also Figure 3 As shown, Figure 3 The schematic diagram of the structure of a paging display device for page content provided by an exemplary embodiment of the present application is as follows. The paging display device 300 for page content includes:
[0065] The root node acquisition module 301 is used to respond to the first query request, obtain at least one root node of the target organization tree under the authority of the current login account, and perform paging processing on the at least one root node to determine the page content displayed on each page of the first-level sub-interface of the user query interface; wherein the root node is the first-level node under the target organization tree; the user query interface includes multiple sub-interfaces;
[0066] The parent node determination module 302 is used to use the root node as the parent node; the parent node is used to indicate the command relationship between the upper layer node of the target organization tree and the nodes contained in the lower layer;
[0067] The recursive module 303 is used to obtain all the child nodes under each parent node in turn by recursive means, and for each parent node, paging all the child nodes under the parent node obtained, and determine the page content displayed by the sub-page corresponding to the parent node on the layer corresponding to all the child nodes of the user query interface, until the obtained child node is a leaf node; wherein the sub-page is used to indicate the page corresponding to the parent node on the layer corresponding to the child node of the user query interface for all the child nodes under each parent node; wherein the leaf node is the child node of the last layer of the target organization tree;
[0068] The first display module 304 is used to display the page content of the first page on the first layer sub-interface of the user query interface.
[0069] In a possible implementation, the root node acquisition module 301 is specifically used to: respond to the first query request, obtain a target organization list under the authority of the current login account, and filter out at least one root node of the target organization tree from the target organization list.
[0070] In a possible implementation, the root node acquisition module 301 is specifically used to: based on the number of the root nodes and the number of nodes displayed on each page on the first-level sub-interface of the preset user query interface, perform paging processing on the root nodes to determine the page content displayed on each page on the first-level sub-interface of the user query interface.
[0071] In one possible implementation, the recursive module 303 is specifically used to: for each parent node, based on the number of all child nodes under the parent node and the number of nodes displayed on each page of the sub-page corresponding to the parent node on the layer corresponding to the child node of a preset user query interface, perform paging processing on the content included in all child nodes under the parent node, so as to determine the page content displayed on the sub-page corresponding to the parent node on the layer corresponding to the child node of the user query interface of all child nodes under the parent node.
[0072] In a possible implementation manner, the paging display device 300 for page content further includes: a second display module (not shown in FIG. Figure 3 ), the second display module is used to respond to the second query request under the current login account, parse the target parent node requested by the second query request, and search and display all child nodes under the target parent node from all child pages on the layer corresponding to the child node in the user query interface.
[0073] According to the paging display device of the page content of the exemplary embodiment of the present invention, it is possible to enable the inquirer to inquire and browse the information of each level of the organization structure more conveniently by displaying each level of the node of the organization tree in pages.
[0074] See also Figure 4 As shown, Figure 4 A schematic diagram of an electronic device provided in an embodiment of the present application, the electronic device 400 includes: a processor 401, a memory 402 and a bus 403, the memory 402 stores machine-readable instructions executable by the processor 401, when the electronic device is running, the processor 401 communicates with the memory 402 via the bus 403, the processor 401 executes the machine-readable instructions to perform the steps of the paging display method of the page content as described above.
[0075] Specifically, the memory 402 and the processor 401 can be general-purpose memories and processors, which are not specifically limited here. When the processor 401 runs the computer program stored in the memory 402, the paging display method of the page content can be executed.
[0076] Corresponding to the above-mentioned method for displaying page contents in pages, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned method for displaying page contents in pages are executed.
[0077] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0078] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0079] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0080] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that can be executed by a processor. 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. The computer software product is stored in a storage medium, including several instructions for 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 method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0081] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for displaying page contents by paging, characterized in that: The paging display method comprises: (A) responding to a first query request, obtaining at least one root node of a target organization tree under the authority of a current login account, and performing paging processing on the at least one root node to determine the page content displayed on each page of a first-level sub-interface of a user query interface; wherein the root node is a first-level node under the target organization tree; and the user query interface includes multiple sub-interfaces; (B) taking the root node as a parent node; the parent node is used to indicate the command relationship between the upper layer node of the target organization tree and the nodes contained in the lower layer; (C) Recursively obtain all child nodes under each parent node in turn, and for each parent node, perform paging processing on all child nodes under the parent node, and determine the page content displayed by the sub-page corresponding to the parent node on the layer corresponding to all child nodes of the user query interface, until the obtained child node is a leaf node; wherein the sub-page is used to indicate the page corresponding to the parent node on the layer corresponding to the child node of the user query interface; wherein the leaf node is the child node of the last layer of the target organization tree; (D) After the paging process, the server returns all the paging sub-pages to the client, and the client displays the page content of the first page on the first-level sub-interface of the user query interface; The paging process is performed on the at least one root node to determine the page content displayed on each page of the first-level sub-interface of the user query interface, including: Based on the number of the root nodes and the number of nodes displayed on each page of the first-level sub-interface of the preset user query interface, the root nodes are paged to determine the page content displayed on each page of the first-level sub-interface of the user query interface.
2. The paging display method according to claim 1, characterized in that: The step of responding to the first query request and obtaining at least one root node of the target organization tree under the authority of the current login account includes: In response to the first query request, a target organization list under the authority of the current login account is obtained, and at least one root node of the target organization tree is filtered out from the target organization list.
3. The paging display method according to claim 1, characterized in that: The method of performing paging processing on all child nodes under each parent node and determining the page content displayed on the child page corresponding to the parent node on the layer corresponding to the child node of the user query interface for all child nodes under the parent node includes: For each parent node, based on the number of all child nodes under the parent node and the number of nodes displayed on each page of the sub-page corresponding to the parent node on the layer corresponding to the child node of the preset user query interface, the content included in all child nodes under the parent node is paged to determine the page content displayed on the sub-page corresponding to the parent node on the layer corresponding to the child node of the user query interface.
4. The paging display method according to claim 1, characterized in that: The paging display method also includes: In response to the second query request under the current login account, the target parent node requested by the second query request is parsed, and from all child pages, the child pages corresponding to the parent node on the layer corresponding to the child node in the user query interface are searched and displayed.
5. A paging display device for page content, characterized in that: The paging display device comprises: A root node acquisition module, used to respond to the first query request, obtain at least one root node of the target organization tree under the authority of the current login account, and perform paging processing on the at least one root node to determine the page content displayed on each page of the first-level sub-interface of the user query interface; wherein the root node is the first-level node under the target organization tree; the user query interface includes multiple layers of sub-interfaces; A parent node determination module, used to take the root node as a parent node; the parent node is used to indicate the command relationship between the upper layer node of the target organization tree and the nodes contained in the lower layer; A recursive module is used to obtain all child nodes under each parent node in turn by recursive means, and for each parent node, paging all child nodes under the parent node obtained is performed to determine the page content displayed by the sub-page corresponding to the parent node on the layer corresponding to all child nodes of the user query interface, until the obtained child node is a leaf node; wherein the sub-page is used to indicate the page corresponding to the parent node on the layer corresponding to the child node of the user query interface for all child nodes under each parent node; wherein the leaf node is the child node of the last layer of the target organization tree; The first display module is used to control the server to return all the divided sub-pages to the client after the paging process, and control the client to display the page content of the first page on the first layer sub-interface of the user query interface; When the root node acquisition module is used to perform paging processing on the at least one root node to determine the page content displayed on each page on the first-level sub-interface of the user query interface, it is specifically used to: Based on the number of root nodes and the number of nodes displayed on each page of the first-level sub-interface of the preset user query interface, the content included in the root node is paged to determine the page content displayed on each page of the first-level sub-interface of the user query interface.
6. The paging display device according to claim 5, characterized in that: The recursive module is specifically used for: For each parent node, based on the number of all child nodes under the parent node and the number of nodes displayed on each page of the sub-page corresponding to the parent node on the layer corresponding to the child node of the preset user query interface, the content included in all child nodes under the parent node is paged to determine the page content displayed on the sub-page corresponding to the parent node on the layer corresponding to the child node of the user query interface.
7. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the paging display method as described in any one of claims 1 to 4.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the paging display method according to any one of claims 1 to 4 are executed.
Citation Information
Patent Citations
Generation of a modified UI element tree
CN109074271A
