Role menu automatic customization method and device based on node importance
By obtaining and analyzing the function entrance and user role permissions of the engineering project information management platform, an automated customized menu is generated, which solves the problems of large workload and low efficiency in system role menu customization in the existing technology, and achieves flexible and efficient menu customization.
Patent Information
- Application Number
- CN202410696744.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-17
AI Technical Summary
The system role menu customization of the existing engineering project information management platform has a large workload and cumbersome operations, and cannot effectively meet the customization needs of each user, resulting in a waste of manpower and time, and a lack of automated customization solutions.
By obtaining the design function entry list of the platform UI, query multiple platform functions and their attribute information, perform source code scanning to obtain function correlation information, select anchor functions based on user role permissions, perform function correlation analysis and sorting, and generate automation Customized menu.
It realizes rapid customization of system role menus according to different needs, improves the customization flexibility and efficiency of the information management platform, and improves user experience and overall system usage efficiency.
Smart Images

Figure CN118656071A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for automatically customizing a role menu based on node importance. Background Art
[0002] The application of informatization and digitalization in engineering project management is becoming more and more extensive and the application level is becoming deeper and deeper. At this stage, the engineering project information management platform usually includes the planning, design, construction and operation and maintenance of the entire life cycle of the engineering project. The platform's participants include designers, builders, supervisors, consultants and other participants, which makes the engineering project information management platform have many functional entrances and complex role permissions. In addition, the changes in different sections, different periods and personnel changes of engineering projects require both data security and effective information management. It is essential to customize the system role menu according to the goals of different users. The scientific and effective organization of the system role menu can not only ensure the security of data services, but also improve the efficiency of personnel using the engineering project information management platform.
[0003] At present, system role menu customization is basically manual customization, which is manually modified based on the general menu template according to the needs of the current role, making the user role menu customization of the engineering project information management platform heavy, cumbersome, and very inefficient, and unable to meet the customization needs of each user; on the other hand, after the system role menu customization of one system is completed, the role menu customization workload of the next system is still not universal, resulting in a large waste of manpower and time. At present, there is no good automated customization method in the industry to solve this problem. Summary of the invention
[0004] To achieve the above objectives, this application provides the following technical solutions:
[0005] According to a first aspect of the present invention, the present invention claims a method for automatically customizing a role menu based on node importance, comprising:
[0006] Obtaining a design function entry list of the platform UI, querying the design function entry list, and obtaining a plurality of platform functions of the platform UI and attribute information of the plurality of platform functions;
[0007] According to the attribute information of the plurality of platform functions, performing source code scanning of the attribute information to obtain function correlation information of the plurality of platform functions;
[0008] Obtaining the role authority of the real-time user, and selecting a function of interest from the multiple platform functions as an anchor function according to the role authority;
[0009] Taking the anchor function as the customization center, analyzing and ranking the other functions in the plurality of platform functions with the anchor function for functional relevance;
[0010] The first N items are selected according to the function association ranking table as a function menu sequence, and a real-time automatic customized menu is generated according to the function menu sequence.
[0011] Further, the obtaining of the design function entry list of the platform UI, querying the design function entry list to obtain a plurality of platform functions of the platform UI and attribute information of the plurality of platform functions, further includes:
[0012] Creating multiple sub-function lists under the root function list, calculating the usage record value of each platform function in the root function list in turn, and saving each platform function in turn into a sub-function list corresponding to its usage record value;
[0013] Calculating a usage record value of a target platform function, and determining a sub-function list where the target platform function is located according to the usage record value of the target platform function, so that an upper-layer application program calls the target platform function in the sub-function list;
[0014] The process of determining the sub-function list where the target platform function is located according to the usage record value of the target platform function is specifically as follows:
[0015] Step A1: Enter the sub-function list corresponding to the lowest bit of the usage record value of the target platform function, and set it as a real-time function list, with the lowest bit set as the real-time bit;
[0016] Step A2: Determine whether the real-time function list has a next-level sub-function list, if yes, proceed to step A3, if no, proceed to step A4;
[0017] Step A3: Enter the next layer of sub-function list corresponding to the higher bit of the real-time bit of the usage record value of the target platform function, take the next layer of sub-function list as the real-time function list, and take the digit of the usage record value corresponding to the real-time function list as the real-time bit, and enter step A2;
[0018] Step A4: determining the real-time function list as the sub-function list where the target platform function is located;
[0019] The process of sequentially calculating the usage record value of each platform function in the root function list is specifically as follows:
[0020] Calculating the usage record value of each platform function in the root function list in sequence according to the platform function name of each platform function;
[0021] The process of sequentially calculating the usage record value of each platform function in the root function list is specifically as follows:
[0022] Encode the platform function usage information of each platform function in the root function list in sequence, and calculate the usage record value of each platform function in sequence according to the code corresponding to each platform function, wherein the platform function usage information includes the first use date of the platform function and the most recent use date of the platform function;
[0023] The process of sequentially saving each of the platform functions into a sub-function list corresponding to its usage record value is specifically as follows:
[0024] Each of the platform functions is sequentially saved in a sub-function list corresponding to the lowest bit of its usage record value.
[0025] Furthermore, the attribute information of the platform function includes a function name of the platform function and a node betweenness of each of the platform functions.
[0026] Furthermore, obtaining the function name of the platform function and the node betweenness of each platform function further includes:
[0027] Taking the platform functions as nodes, an unweighted directed graph model of the engineering project information management platform is established and described in triples;
[0028] Encapsulate the function name of the platform function and the node betweenness of each platform function into a tuple, and collect all platform functions into a platform function set;
[0029] The node betweenness of the node is calculated by obtaining the ratio of the total number of shortest paths passing through the node in the unweighted directed graph model to all the shortest paths in the graph.
[0030] Furthermore, the performing source code scanning of the attribute information according to the attribute information of the plurality of platform functions to obtain the function correlation information of the plurality of platform functions also includes:
[0031] Static code analysis is performed on the engineering project information management platform to obtain the code structure of the engineering project information management platform and the set of code nodes called and depended on by the nodes in the unweighted directed graph model.
[0032] When the data source of the node in the unweighted directed graph model involves a database table, obtaining a set of data tables that the node in the unweighted directed graph model calls and depends on;
[0033] The function association information is recorded as a four-tuple.
[0034] Furthermore, the anchor function is used as a customization center, and other functions in the plurality of platform functions are analyzed for functional relevance with the anchor function and sorted, and further includes:
[0035] Taking the anchor function as the customization center, obtaining other function nodes in the unweighted directed graph model of the engineering project information management platform, and calculating all function correlations of the anchor function;
[0036] When the anchor point function remains unchanged, the functional associations are sorted.
[0037] Furthermore, the first N items are selected according to the function association ranking table as a function menu sequence, and a real-time automatic customized menu is generated according to the function menu sequence, and further includes:
[0038] After the number of functions is determined, the first N functions in the function relevance ranking table composed of the sorted function relevances are taken as an ordered queue;
[0039] Pre-configure the address entries of all functions in the system configuration;
[0040] On the front-end page of the role menu, query the first N functions as an ordered queue, start the front-end custom configuration function, generate the menu according to the ordered queue, and connect the corresponding configuration entry.
[0041] According to a second aspect of the present invention, the present invention claims protection for a device for automatically customizing a role menu based on node importance, comprising:
[0042] A query module, which obtains a design function entry list of the platform UI, queries the design function entry list, and obtains a plurality of platform functions of the platform UI and attribute information of the plurality of platform functions;
[0043] an association module, which performs source code scanning of the attribute information according to the attribute information of the plurality of platform functions to obtain function association information of the plurality of platform functions;
[0044] An anchor selection module obtains the role authority of the real-time user and selects a function of interest from the multiple platform functions as an anchor function according to the role authority;
[0045] A sorting module, taking the anchor function as a customization center, performs functional correlation analysis and sorting on other functions in the plurality of platform functions and the anchor function;
[0046] The menu customization module selects the first N items according to the function association ranking table as the function menu sequence, and generates a real-time automatic customization menu according to the function menu sequence;
[0047] The device for automatically customizing a role menu based on node importance is used to execute the method for automatically customizing a role menu based on node importance.
[0048] The present invention relates to the field of computer technology, and in particular to a method and device for automatically customizing a role menu based on node importance, obtaining a design function entry list of a platform UI, querying the design function entry list, obtaining multiple platform functions and their attribute information; performing source code scanning of attribute information, obtaining function correlation information of multiple platform functions; obtaining the role authority of a real-time user, selecting a function of interest from multiple platform functions as an anchor function according to the role authority; using the anchor function as a customization center, performing function correlation analysis and sorting of other functions with the anchor function; screening the first N as a function menu sequence, and generating a real-time automatic customization menu according to the function menu sequence. The present invention enables users to realize automatic customization, quickly customize the system role menu according to different needs, improve the customization flexibility and efficiency of the information management platform, and improve the user experience and the overall use efficiency of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A workflow diagram of a method for automatically customizing a role menu based on node importance as claimed in the first embodiment of the present application;
[0050] Figure 2 A workflow diagram of a method for automatically customizing a role menu based on node importance as claimed in the second embodiment of the present application;
[0051] Figure 3 A schematic diagram of a template configuration menu before customization of a method for automatically customizing a role menu based on node importance as claimed in the second embodiment of the present application;
[0052] Figure 4 A schematic diagram of a role customized menu of a method for automatically customizing a role menu based on node importance as claimed in the second embodiment of the present application;
[0053] Figure 5 This is a structural module diagram of a device for automatically customizing role menus based on node importance as claimed in the third embodiment of the present application. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0055] The terms "first", "second" and "third" in this application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second" and "third" can explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. All directional indications in the embodiments of the present application (such as up, down, left, right, front, back...) are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0056] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0057] According to the first embodiment of the present invention, the present invention claims a method for automatically customizing a role menu based on node importance, referring to Figure 1 ,include:
[0058] S1, obtaining a design function entry list of a platform UI, querying the design function entry list, and obtaining a plurality of platform functions of the platform UI and attribute information of the plurality of platform functions;
[0059] S2, performing source code scanning of the attribute information according to the attribute information of the plurality of platform functions to obtain function correlation information of the plurality of platform functions;
[0060] S3, obtaining the role authority of the real-time user, and selecting a function of interest from the multiple platform functions as an anchor function according to the role authority;
[0061] S4, taking the anchor function as the customization center, analyzing and ranking the other functions in the plurality of platform functions with the anchor function;
[0062] S5, selecting the first N items according to the function association ranking table as a function menu sequence, and generating a real-time automatic customized menu according to the function menu sequence.
[0063] Furthermore, S1 also includes:
[0064] Creating multiple sub-function lists under the root function list, calculating the usage record value of each platform function in the root function list in turn, and saving each platform function in turn into a sub-function list corresponding to its usage record value;
[0065] Calculating a usage record value of a target platform function, and determining a sub-function list where the target platform function is located according to the usage record value of the target platform function, so that an upper-layer application program calls the target platform function in the sub-function list;
[0066] The process of determining the sub-function list where the target platform function is located according to the usage record value of the target platform function is specifically as follows:
[0067] Step A1: Enter the sub-function list corresponding to the lowest bit of the usage record value of the target platform function, and set it as a real-time function list, with the lowest bit set as the real-time bit;
[0068] Step A2: Determine whether the real-time function list has a next-level sub-function list, if yes, proceed to step A3, if no, proceed to step A4;
[0069] Step A3: Enter the next layer of sub-function list corresponding to the higher bit of the real-time bit of the usage record value of the target platform function, take the next layer of sub-function list as the real-time function list, and take the digit of the usage record value corresponding to the real-time function list as the real-time bit, and enter step A2;
[0070] Step A4: determining the real-time function list as the sub-function list where the target platform function is located;
[0071] The process of sequentially calculating the usage record value of each platform function in the root function list is specifically as follows:
[0072] Calculating the usage record value of each platform function in the root function list in sequence according to the platform function name of each platform function;
[0073] The process of sequentially calculating the usage record value of each platform function in the root function list is specifically as follows:
[0074] Encode the platform function usage information of each platform function in the root function list in sequence, and calculate the usage record value of each platform function in sequence according to the code corresponding to each platform function, wherein the platform function usage information includes the first use date of the platform function and the most recent use date of the platform function;
[0075] The process of sequentially saving each of the platform functions into a sub-function list corresponding to its usage record value is specifically as follows:
[0076] Each of the platform functions is sequentially saved in a sub-function list corresponding to the lowest bit of its usage record value.
[0077] Furthermore, the attribute information of the platform function includes a function name of the platform function and a node betweenness of each of the platform functions.
[0078] Furthermore, obtaining the function name of the platform function and the node betweenness of each platform function further includes:
[0079] Taking the platform functions as nodes, an unweighted directed graph model of the engineering project information management platform is established and described in triples;
[0080] Encapsulate the function name of the platform function and the node betweenness of each platform function into a tuple, and collect all platform functions into a platform function set;
[0081] The node betweenness of the node is calculated by obtaining the ratio of the total number of shortest paths passing through the node in the unweighted directed graph model to all the shortest paths in the graph.
[0082] In this embodiment, it also includes:
[0083] Taking the functions of the platform as nodes, an unweighted directed graph model Map of the engineering project information management platform is established, and the unweighted directed graph model of the engineering project information management platform is described as a triple, denoted as Map =<Name,Function,Vector> .in:
[0084] (1) Name is the name of the unweighted directed graph model of the current system;
[0085] (2) Function is a set of functions, i.e., a node in the unweighted directed graph model Map;
[0086] (3) Vector is the dependency direction between functions, that is, the edge of the unweighted directed graph model Map.
[0087] A function in the platform is a node;
[0088] Steps 1-3, the function is denoted as a binary tuple F = <fname, fb>, where fname is the name of the function and fb is the betweenness centrality of the current function node. All functions form a complete set of platform functions Function = {F1, F2, F3,......, F N}.
[0089] In the unweighted directed graph model Map = <Name, Function, Vector>, for node F i ∈Function, the betweenness centrality fb of node F i is calculated by the ratio of the total number of shortest paths passing through node F i in the unweighted directed graph model Map to the total number of all shortest paths in graph Map.
[0090] Furthermore, S2 also includes:
[0091] Performing static code analysis on the engineering project informatization management platform to obtain the code structure of the engineering project informatization management platform and the set of code nodes on which the nodes in the unweighted directed graph model depend.
[0092] When the data source of a node in the unweighted directed graph model involves a database table, obtaining the set of database tables on which the node in the unweighted directed graph model depends;
[0093] Denoting the function correlation information as a quadruple.
[0094] Among them, in this embodiment, it also includes:
[0095] Performing static code analysis on the engineering project informatization management platform to obtain the code structure of the platform system. In the unweighted directed graph model Map = <Name, Function, Vector), the set of code nodes on which node F i depends is denoted as
[0096] When the data source of function node F i involves a database table, in the unweighted directed graph model Map = <Name, Function, Vector>, the set of database tables on which node F i depends is denoted as
[0097] The function correlation is denoted as a quadruple c - <F1, F2, Overlap Code , Overlap Data >, where Overlap CodeOverlap is the degree of dependency overlap between the code nodes of function F1 and function F2. The default value is 0. That is, when comparing the CodeNodes of function F1 and function F2, if these two functions have the same call dependency on the code node, Overlap Code Add 1; Overlap Data Overlap is the degree of database table dependency overlap between function F1 and function F2. The default value is 0. Compare the DataTables of function F1 and function F2. Whenever these two functions have the same call dependency on the database table, Overlap Data Add 1.
[0098] Furthermore, S4 also includes:
[0099] Taking the anchor function as the customization center, obtaining other function nodes in the unweighted directed graph model of the engineering project information management platform, and calculating all function correlations of the anchor function;
[0100] When the anchor point function remains unchanged, the functional associations are sorted.
[0101] In this embodiment, it also includes:
[0102] Taking the anchor function as the main one, the anchor function is taken as F1, and the other function nodes in the unweighted directed graph model Map of the project information management platform are taken as F2 in turn, and all the functional correlations of the anchor function are obtained.
[0103] When the anchor function F1 remains unchanged, To sort:
[0104] Overlap Code and Overlap Data Add and sort in descending order;
[0105] Overlap Code and Overlap Dota If the addition order is the same, compare the node betweenness of F2 The node betweenness The higher function F2 is preferred, and the node betweenness The higher function F2 is the more important and critical functional node in the unweighted directed graph model Map, and has more selection significance.
[0106] Furthermore, S5 also includes:
[0107] After the number of functions is determined, the first N functions in the function relevance ranking table composed of the sorted function relevances are taken as an ordered queue;
[0108] Pre-configure the address entries of all functions in the system configuration;
[0109] On the front-end page of the role menu, query the first N functions as an ordered queue, start the front-end custom configuration function, generate the menu according to the ordered queue, and connect the corresponding configuration entry.
[0110] According to another embodiment of the method, the following steps are included: Figure 2 :
[0111] Perform static code analysis on the engineering project information management platform, obtain the code structure of the platform system, and establish an unweighted directed graph model Map of the engineering project information management platform; take the platform function as the node F1, calculate the node betweenness fb of each function, and establish the function set Function.
[0112] Traverse the function set Function, for all functions F i Perform static code analysis, or F i The collection of code nodes that are called and depend on And the collection of data tables that the call depends on
[0113] Log in as the owner, select "Image Progress" as the anchor function F1, perform functional correlation analysis with other functions and generate a functional correlation ranking table.
[0114] In the generated relevance ranking table, a total of 20 functions are selected, including the function of "image progress".
[0115] The first 20 functions in the "visual progress" are formed in an ordered queue. In the configuration management of the engineering project information management platform, the function entrances of all functions have been pre-configured. In the custom generation function, the 20 function ordered queues are traversed to generate the menu interface entrance.
[0116] Figure 3 and Figure 4 They are respectively a template configuration menu before customization in an embodiment of the present invention and a role customization menu implemented by the method provided by the present invention.
[0117] According to a second embodiment of the present invention, the present invention claims a device for automatically customizing a role menu based on node importance, referring to Figure 5 ,include:
[0118] A query module, which obtains a design function entry list of the platform UI, queries the design function entry list, and obtains a plurality of platform functions of the platform UI and attribute information of the plurality of platform functions;
[0119] an association module, which performs source code scanning of the attribute information according to the attribute information of the plurality of platform functions to obtain function association information of the plurality of platform functions;
[0120] An anchor selection module obtains the role authority of the real-time user and selects a function of interest from the multiple platform functions as an anchor function according to the role authority;
[0121] A sorting module, taking the anchor function as a customization center, performs functional correlation analysis and sorting on other functions in the plurality of platform functions and the anchor function;
[0122] The menu customization module selects the first N items according to the function association ranking table as the function menu sequence, and generates a real-time automatic customization menu according to the function menu sequence;
[0123] The device for automatically customizing a role menu based on node importance is used to execute the method for automatically customizing a role menu based on node importance.
[0124] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0125] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. The above is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of this application, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present application.
[0126] The specific implementation methods of the invention are described in detail above, but they are only examples, and the present application is not limited to the specific implementation methods described above. For those skilled in the art, any equivalent modification or substitution of the invention is also within the scope of the present application, and therefore, the equalization, modification, and improvement made without departing from the spirit and principle of the present application should be included in the scope of the present application.
Claims
1. A method for automatically customizing a role menu based on node importance, characterized in that: include: Obtaining a design function entry list of the platform UI, querying the design function entry list, and obtaining a plurality of platform functions of the platform UI and attribute information of the plurality of platform functions; According to the attribute information of the plurality of platform functions, performing source code scanning of the attribute information to obtain function correlation information of the plurality of platform functions; Obtaining the role authority of the real-time user, and selecting a function of interest from the multiple platform functions as an anchor function according to the role authority; Taking the anchor function as the customization center, analyzing and ranking the other functions in the plurality of platform functions with the anchor function for functional relevance; The first N items are selected according to the function association ranking table as a function menu sequence, and a real-time automatic customized menu is generated according to the function menu sequence.
2. The method for automatically customizing a role menu based on node importance as claimed in claim 1, characterized in that: The obtaining of the design function entry list of the platform UI, querying the design function entry list to obtain a plurality of platform functions of the platform UI and attribute information of the plurality of platform functions, further includes: Creating multiple sub-function lists under the root function list, calculating the usage record value of each platform function in the root function list in turn, and saving each platform function in turn into a sub-function list corresponding to its usage record value; Calculating a usage record value of a target platform function, and determining a sub-function list where the target platform function is located according to the usage record value of the target platform function, so that an upper-layer application program calls the target platform function in the sub-function list; The process of determining the sub-function list where the target platform function is located according to the usage record value of the target platform function is specifically as follows: Step A1: Enter the sub-function list corresponding to the lowest bit of the usage record value of the target platform function, and set it as a real-time function list, with the lowest bit set as the real-time bit; Step A2: Determine whether the real-time function list has a next-level sub-function list, if yes, proceed to step A3, if no, proceed to step A4; Step A3: Enter the next layer of sub-function list corresponding to the higher bit of the real-time bit of the usage record value of the target platform function, take the next layer of sub-function list as the real-time function list, and take the digit of the usage record value corresponding to the real-time function list as the real-time bit, and enter step A2; Step A4: determining the real-time function list as the sub-function list where the target platform function is located; The process of sequentially calculating the usage record value of each platform function in the root function list is specifically as follows: Calculating the usage record value of each platform function in the root function list in sequence according to the platform function name of each platform function; The process of sequentially calculating the usage record value of each platform function in the root function list is specifically as follows: Encode the platform function usage information of each platform function in the root function list in sequence, and calculate the usage record value of each platform function in sequence according to the code corresponding to each platform function, wherein the platform function usage information includes the first use date of the platform function and the most recent use date of the platform function; The process of sequentially saving each of the platform functions into a sub-function list corresponding to its usage record value is specifically as follows: Each of the platform functions is sequentially saved in a sub-function list corresponding to the lowest bit of its usage record value.
3. The method for automatically customizing a role menu based on node importance as claimed in claim 1, characterized in that: The attribute information of the platform function includes a function name of the platform function and a node betweenness of each of the platform functions.
4. The method for automatically customizing a role menu based on node importance as claimed in claim 3, characterized in that: Acquiring the function name of the platform function and the node betweenness of each of the platform functions also includes: Taking the platform functions as nodes, an unweighted directed graph model of the engineering project information management platform is established and described in triples; Encapsulate the function name of the platform function and the node betweenness of each platform function into a tuple, and collect all platform functions into a platform function set; The node betweenness of the node is calculated by obtaining the ratio of the total number of shortest paths passing through the node in the unweighted directed graph model to all the shortest paths in the graph.
5. The method for automatically customizing a role menu based on node importance as claimed in claim 1, characterized in that: The performing source code scanning of the attribute information according to the attribute information of the plurality of platform functions to obtain the function correlation information of the plurality of platform functions also includes: Static code analysis is performed on the engineering project information management platform to obtain the code structure of the engineering project information management platform and the set of code nodes called and depended on by the nodes in the unweighted directed graph model. When the data source of the node in the unweighted directed graph model involves a database table, obtaining a set of data tables that the node in the unweighted directed graph model calls and depends on; The function association information is recorded as a four-tuple.
6. The method for automatically customizing a role menu based on node importance as claimed in claim 1, characterized in that: The method of using the anchor function as a customization center, analyzing and ranking the other functions in the plurality of platform functions with the anchor function for functional relevance, further includes: Taking the anchor function as the customization center, obtaining other function nodes in the unweighted directed graph model of the engineering project information management platform, and calculating all function correlations of the anchor function; When the anchor point function remains unchanged, the functional associations are sorted.
7. The method for automatically customizing a role menu based on node importance as claimed in claim 1, characterized in that: The first N items are selected according to the function association ranking table as a function menu sequence, and a real-time automatic customized menu is generated according to the function menu sequence, and the method further includes: After the number of functions is determined, the first N functions in the function relevance ranking table composed of the sorted function relevances are taken as an ordered queue; Pre-configure the address entries of all functions in the system configuration; On the front-end page of the role menu, query the first N functions as an ordered queue, start the front-end custom configuration function, generate the menu according to the ordered queue, and connect the corresponding configuration entry.
8. A device for automatically customizing a role menu based on node importance, characterized in that: include: A query module, which obtains a design function entry list of the platform UI, queries the design function entry list, and obtains a plurality of platform functions of the platform UI and attribute information of the plurality of platform functions; an association module, which performs source code scanning of the attribute information according to the attribute information of the plurality of platform functions to obtain function association information of the plurality of platform functions; An anchor selection module obtains the role authority of the real-time user and selects a function of interest from the multiple platform functions as an anchor function according to the role authority; A sorting module, taking the anchor function as a customization center, analyzing the functional relevance of other functions in the plurality of platform functions with the anchor function and sorting them; The menu customization module selects the first N items according to the function association ranking table as the function menu sequence, and generates a real-time automatic customization menu according to the function menu sequence; The device for automatically customizing a role menu based on node importance is used to execute the method for automatically customizing a role menu based on node importance as described in any one of claims 1-7.
