CN114510180A - Role authority control method and device of application program and mobile terminal - Google Patents

Role authority control method and device of application program and mobile terminal Download PDF

Info

Publication number
CN114510180A
CN114510180A CN202210086724.7A CN202210086724A CN114510180A CN 114510180 A CN114510180 A CN 114510180A CN 202210086724 A CN202210086724 A CN 202210086724A CN 114510180 A CN114510180 A CN 114510180A
Authority
CN
China
Prior art keywords
data
role
list
displayed
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210086724.7A
Other languages
Chinese (zh)
Inventor
王聪
孙作勇
关东
寇振华
李雷雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aerial Photogrammetry and Remote Sensing Co Ltd
Original Assignee
Aerial Photogrammetry and Remote Sensing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aerial Photogrammetry and Remote Sensing Co Ltd filed Critical Aerial Photogrammetry and Remote Sensing Co Ltd
Priority to CN202210086724.7A priority Critical patent/CN114510180A/en
Publication of CN114510180A publication Critical patent/CN114510180A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a role authority control method, a role authority control device and a mobile terminal of an application program, wherein the method comprises the following steps: acquiring corresponding role authority data according to a user login account; classifying the role authority data according to attribute information to obtain a role data list corresponding to each attribute information; determining a corresponding list control according to the role data list; and determining data content to be displayed from the role data list according to the predefined fields through an adapter, and displaying the data content to be displayed under the functional component of the list control. And matching corresponding functions for users with different roles through the obtained role authority data, so that the display function in the application program is associated with the role of the user, and the function display of the system is controlled according to the role authority of the user.

Description

Role authority control method and device of application program and mobile terminal
Technical Field
The invention relates to the field of software, in particular to a role authority control method and device of an application program and a mobile terminal.
Background
An existing android management Application (App) generally divides the App into a management edition and a construction edition, wherein the management edition mainly uses groups as managers, and the construction edition mainly uses groups as constructors. The manager wants to see the use function of the constructor and needs to install two versions of apps. Functions in the App application are not associated with system user roles, and authority management of users with different roles cannot be realized.
Disclosure of Invention
The application provides a role authority control method and device of an application program and a mobile terminal, so that a display function in the application program is associated with a user role, and system function display is controlled according to the user role authority.
In a first aspect, the present application provides a role authority control method for an application program, where the method includes:
acquiring corresponding role authority data according to a user login account;
classifying the role authority data according to attribute information to obtain a role data list corresponding to each attribute information;
determining a corresponding list control according to the role data list;
and determining data content to be displayed from the role data list according to the predefined fields through an adapter, and displaying the data content to be displayed under the functional component of the list control.
Optionally, the obtaining of the corresponding role permission data according to the user login account includes:
determining the role function of the user login account;
and acquiring the role authority data according to the role function.
Optionally, the role data list includes a plurality of hierarchical levels of role data;
the determining the corresponding list control according to the role data list comprises:
and correspondingly generating a list control of each hierarchy according to the role data list of each hierarchy.
Optionally, the generating the list control of each hierarchy according to the role data list of each hierarchy correspondingly includes:
correspondingly generating functional components of each hierarchy according to the role data lists of each hierarchy;
and correspondingly generating the list control of each hierarchy according to the functional components of each hierarchy.
Optionally, the predefined field includes data to be displayed indicating information and data to be displayed position information, where the data to be displayed indicating information is used to indicate that the data content to be displayed is determined from the character data list, and the data to be displayed position information is used to determine a position of the data content to be displayed on the list control.
Optionally, the determining, by the adapter, data content to be displayed from the role data list according to the predefined field, and displaying the data content to be displayed under the functional component of the list control includes:
determining the data content to be displayed from the role data list according to the indication information of the data to be displayed;
determining the position to be displayed of the data content to be displayed on the list control according to the position information of the data to be displayed;
and displaying the data content to be displayed under the functional component corresponding to the position to be displayed on the list control.
In a second aspect, the present application provides a role authority control apparatus for an application, the apparatus comprising:
the acquisition module is used for acquiring corresponding role authority data according to the user login account;
the classification module is used for classifying the role authority data according to the attribute information to obtain a role data list corresponding to each attribute information;
the determining module is used for determining a corresponding list control according to the role data list;
and the display module is used for determining data content to be displayed from the role data list according to the predefined fields through an adapter and displaying the data content to be displayed under the functional component of the list control.
Optionally, the determining module is configured to generate a functional component of each hierarchy correspondingly according to the role data list of each hierarchy; and correspondingly generating the list control of each hierarchy according to the functional components of each hierarchy.
In a third aspect, the present application provides a mobile terminal, including: the computer program is used for executing the role authority control method of any one application program when the computer program runs through the processor.
In a fourth aspect, a computer-readable storage medium stores a computer program that, when executed on a processor, performs the role authority control method of any one of the above-described application programs.
The application provides a role authority control method, a role authority control device and a mobile terminal of an application program, wherein the method comprises the following steps: acquiring corresponding role authority data according to a user login account; classifying the role authority data according to attribute information to obtain a role data list corresponding to each attribute information; determining a corresponding list control according to the role data list; and determining data content to be displayed from the role data list according to the predefined fields through an adapter, and displaying the data content to be displayed under the functional component of the list control. And matching corresponding functions for users with different roles through the obtained role authority data, so that the display function in the application program is associated with the role of the user, and the function display of the system is controlled according to the role authority of the user.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
FIG. 1 is a flow chart illustrating a role authority control method of an application;
FIG. 2 illustrates a hierarchical view of a list control display for role authority control of an application;
fig. 3 shows a block diagram of a role authority control device of an application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are intended to indicate only specific features, numerals, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the presence of or adding to one or more other features, numerals, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Example 1
An embodiment of the present application provides a role authority control method for an application program, and as shown in fig. 1, the method includes:
s101, acquiring corresponding role authority data according to a user login account;
specifically, the data format of the role authority data is json format authority data, and the json format is a lightweight data exchange format, so that system data transmission and front-end and back-end data interaction are facilitated. After a user is newly established by a system network back-end application program, user role functions are configured through a back end to generate user role authority data. On the android APP software, after a user logs in, the role permission number is acquired from a back-end server through a user login account, subsequent loading processing through an adapter is facilitated, and a function list is obtained
Rendering is performed on the APP, and the function of matching system role control authority is achieved. Android with construction management
For example, the APP includes: administrator authority data and constructor authority data.
S102, classifying the role authority data according to attribute information to obtain a role data list corresponding to each attribute information;
specifically, the role authority data is analyzed, different role authority data correspondingly have corresponding attribute information, for example, the role authority data is classified according to function attribute types, such as a message function, a real-time monitoring function and a work management function, data related to the message function in the role authority data is classified into a role data list 1, data related to the real-time monitoring function in the role authority data is classified into a role data list 2, and data related to the work management function in the role authority data is classified into a role data list 3.
S103, determining a corresponding list control according to the role data list;
specifically, the list control in the application program in this embodiment includes four different hierarchies, as shown in fig. 2, including: the first level uses GridView grid view to display the list control, the second level uses a RecyclerView linear attribute to display the list control, the third level uses a RecyclerView linear grid to display the list control, and the fourth level uses a ListView view to display the list control. The hierarchies are in a sequential nested relation, the first-level list control is mainly distributed into a bottom main function menu, and the display and hiding of the main function menu button are controlled through role authority. And the second-level list control controls the display of the second-level function grouping attributes and displays the display function interface effects corresponding to different roles. And the third-level list control is nested in the second-level function class table and controls the display and the hiding of the third-level function icon buttons. And the third-level list control is used for controlling the display and the hiding of the fourth-level functions through list display after the third-level functions are clicked. Different list control levels have different interface display effects, and the display functions of the list controls corresponding to different roles are also different. The data in the role data list has a plurality of data levels, functions 1, 2, 3 and 4 are displayed in a bottom main function menu in the layout of a first-level list control, the functions 1, 2 and 3 are displayed in the bottom main function menu in the layout of constructors, and the list control of the constructors hides the function 4 when displaying.
Specifically, for example, on the display page of the first-level list control, the display page of the administrator has the following functions: message, work management, real-time monitoring and my; the display page of the constructor has the following display functions: messaging, job management and real-time monitoring. The display function of the early warning prompt display page of the constructor at the second-level list control is as follows: reminding of not going out, reminding of insufficient polling duration and insufficient interval time of polling points; the second-level list control has the following functions for displaying the warning prompt of the manager: the system has the advantages that attendance reminding is not carried out, inspection duration is not enough, inspection point interval time is not enough, and the display function of 'my waiting for handling' is as follows: and the invitation plan is examined and approved, the tasks are remarked unfinished, and the network access equipment is examined and approved. The display functions for the administrator in the third level list control include: quality assessment and archive management, wherein the 'quality assessment' functional display comprises: quality of delivery inspection, line delivery data condition and delivery record, and the function display of "file management" includes: the method comprises the following steps of invited point setting, line patrol section management, line patrol operator management and equipment management; display functions for the constructor in the third level list control include: quality assessment, archive management and line patrol management, wherein the display of the quality assessment function comprises the following steps: quality of delivery inspection, line delivery data condition and delivery record, and the function display of "file management" includes: the method comprises the following steps of invited point setting, line patrol section management, line patrol operator management and equipment management, and the function display of the line patrol management comprises the following steps: line patrol plan, line patrol task, accompanying line patrol and daily line patrol. The "side stop record" display for the constructor in the fourth level list control includes: side station recording (joint welding), side station recording (peeling test), side station recording (repair welding), side station recording (anticorrosion repaired mouth), side station recording (hundred-mouth running-in), side station recording (repair), side station recording (cleaning pipe diameter measurement before back dragging), side station recording (pressure test before back dragging) and side station recording (directional drilling back dragging); the "side stop record" display for the administrator in the fourth level list control includes: the method comprises the following steps of side station recording (joint welding), side station recording (peeling test), side station recording (repair welding), side station recording (anti-corrosion repaired mouth), side station recording (hundred-mouth running-in), side station recording (repair), side station recording (back-dragging front cleaning and diameter measuring), side station recording (back-dragging front pressure test), side station recording (directional drilling back-dragging), side station recording (general section anti-corrosion repaired mouth), side station recording (gas polarization drawing test) and the like. According to the display of different list controls corresponding to the different character data lists, specifically, the hierarchy setting of the list controls can be selected according to actual requirements.
S104, determining data content to be displayed from the role data list according to the predefined fields through an adapter, and displaying the data content to be displayed under the functional component of the list control.
Specifically, through adapter loading processing, data contents corresponding to different role data are displayed under the functional components of the corresponding list control, and finally presented on the APP.
In a specific embodiment, the obtaining of the corresponding role authority data according to the user login account includes:
determining the role function of the user login account;
and acquiring the role authority data according to the role function.
Specifically, after the user logs in, the system and the background can identify the role function to which the user belongs according to the user login account, the APP terminal calls the background service through the interface, the system background can return role authority data of the user, and the role authority data are in the following format:
{
"function_code":"app_workmanager_tutelage_scan"
"function_createBy":"mhadmin"
"function_createTime":"2021-06-02T00:00:00.000+0000"
"function_eventID":"a028416a-b8af-4a50-b0c2-67c783242d6a"
"function_imagePath":"ic_launcher"
"function _ name": code-scanning sign-in "
"parentID":"f3ca5fc4-b52d-40e3-88ec-7c6938e20d09"
"function_sorts":3
"function_status":"0"
"function_type":4
"function_url":"app_workmanager_tutelage_scan"
}
Description of the data: the function _ code represents a function code, the function code content adopts a function menu name _ function name, and the function code content has a unique value and cannot be null; function _ createBy represents a function creator; function _ createTime represents a function creation time; the function _ eventID represents a function ID, is a unique value and cannot be null, and is generated and cannot be repeated when a function is recorded on a system; the function _ imagePath represents a function picture address and a system configuration function icon; function _ name represents a function name, which cannot be null; the parent ID represents a father node function number, and the father node number can be automatically acquired as a superior function ID after selecting the superior function when the system creates the function. When the creating function is a primary function, no father node ID exists, and the father node ID is 0 at this time. The parent node ID data may not be null; function _ sorts represents function ordering, which cannot be null; the function _ status represents the function addition authority, and the addition authority can distinguish whether the login user has the data filling authority of the function. 0 indicates that there is a new privilege and-1 indicates that there is no new privilege. Can not be empty; the function _ type represents a function type, is determined according to a system division function type, and cannot be null. function _ url represents a function link, which is automatically generated after the system configures the function and cannot be empty.
In addition, the embodiment also provides a floating button to control the user to add new authority, and the user can perform data filling through the floating button to add the control authority. Specifically, whether the user has data filling authority is judged according to the function _ status type in the role authority data, when the state value of the function _ status is 0, the user has new authority, and when the state value is-1, the user does not have new authority.
In a particular embodiment, the role data list includes a plurality of tiers of role data;
the determining the corresponding list control according to the role data list comprises:
and correspondingly generating a list control of each hierarchy according to the role data list of each hierarchy.
For example, there are message function data in the classified role data list 1, where the message function data includes received message data and sent message data, and the received message data includes: the message data already read and unread, the message data of sending includes: message data sent and message data not sent. Is distributed in tree shape and has multiple data levels. The corresponding data of different levels correspond to the list controls of different levels, the message function data correspond to a first level list control 1, the message receiving data and the message sending data correspond to a second level list control 2, the read message data and the unread message data correspond to a third level list control 3, and the message sent data and the message not sent data correspond to a third level list control 4.
In a specific embodiment, the generating a list control of each hierarchy according to the role data list of each hierarchy correspondingly includes:
correspondingly generating functional components of each hierarchy according to the role data lists of each hierarchy;
and correspondingly generating the list control of each layer according to the functional components of each layer.
In particular, a number of different functions and corresponding function icons are provided at different locations on the list control at each level. And firstly determining the corresponding function according to the data in the role data list, and then determining that the function is displayed in the list control under a certain level according to the function.
In a specific embodiment, the predefined field includes data to be displayed indicating information and data to be displayed position information, the data to be displayed indicating information is used to indicate that the data content to be displayed is determined from the character data list, and the data to be displayed position information is used to determine the position of the data content to be displayed on the list control.
Specifically, the adapter constructed in the present embodiment performs interface display of the list control according to the content of the predefined field. The content required to be defined and displayed comprises: the display method comprises the steps of Multi Item Entity and Base View Holder, wherein the Multi Item Entity is a functional Entity data class and the Base View Holder is displayed style data, the functional Entity data class corresponds to data content to be displayed, the displayed style data corresponds to a position to be displayed, the display size of a functional icon, the display position of an icon and the like. And calling a permission acquisition interface after the Multi Item Entity logs in by a user to acquire role permission data in a json format, and generating a corresponding Entity class by a json data-to-Entity class tool. The adapter in the embodiment is packaged by self-definition, methods such as on Create View Holder and get Item Count are omitted, Item monitoring and Item View monitoring are set uniformly, and value taking and rendering construction of the uniformly packaged control are achieved. A Base View Holder is constructed, the purpose is to support expansion, the related rendering can be directly carried out by using a View Holder object related custom method through the incoming View ID and data, and chain calling is supported.
In a specific embodiment, the determining, by the adapter, data content to be displayed from the role data list according to the predefined field, and displaying the data content to be displayed under a functional component of the list control includes:
determining the data content to be displayed from the role data list according to the indication information of the data to be displayed;
determining the position to be displayed of the data content to be displayed on the list control according to the position information of the data to be displayed;
and displaying the data content to be displayed under the functional component corresponding to the position to be displayed on the list control.
Specifically, when data is displayed, firstly, data content to be displayed is determined, then, the function corresponding to the data content and the hierarchy of the list control of the function are determined, and then, the role content is displayed according to the defined field indication. Four different list control levels as in FIG. 2 include: the first level uses Grid View Grid View to display the List control, the second level uses a Recycler View linear attribute to display the List control, the third level uses a Recycler View linear Grid to display the List control, and the fourth level uses a List View View to display the List control. The List View control may display items using four different views, through which items may be grouped into columns with or without column headers and accompanying icons and text displayed. The method has the advantages that the display of a large data set can be flexibly realized by the Recycler View, the multiplexing management of the View is better than that of the List View, the forms of a List, a grid, a waterfall flow and the like can be displayed, and the function of item diversification can be realized by different View holders. A Grid View Grid View is a type of graphical control used to display data in a Grid-like manner. The first-level list control is mainly distributed as a bottom main function menu, and the display and hiding of the main function menu button are controlled through role authority. And the second-level list control controls the display of the second-level function grouping attributes and displays the display function interface effects corresponding to different roles. And the third-level list control is nested in the second-level function class table and controls the display and the hiding of the third-level function icon buttons. And the third-level list control is used for controlling the display and the hiding of the fourth-level function through the list display after the third-level function is clicked. Different list control levels have different interface display effects, the display functions of the list controls corresponding to different roles are different, and different functions and data contents are displayed for users with different roles.
In this embodiment 1, corresponding role authority data is acquired according to a user login account; classifying the role authority data according to attribute information to obtain a role data list corresponding to each attribute information; determining a corresponding list control according to the role data list; and determining data content to be displayed from the role data list according to the predefined fields through an adapter, and displaying the data content to be displayed under the functional component of the list control. And matching corresponding functions for users with different roles through the obtained role authority data, so that the display function in the application program is associated with the role of the user, and the function display of the system is controlled according to the role authority of the user.
Example 2
An embodiment of the present application provides a role authority control device for an application, and as shown in fig. 3, the role authority control device 300 for an application includes:
an obtaining module 301, configured to obtain corresponding role authority data according to a user login account;
a classification module 302, configured to classify the role authority data according to attribute information to obtain a role data list corresponding to each attribute information;
a determining module 303, configured to determine a corresponding list control according to the role data list;
and the display module 304 is configured to determine data content to be displayed from the role data list according to the predefined fields through the adapter, and display the data content to be displayed under the functional component of the list control.
In this embodiment, the obtaining module 301 is further configured to determine a role function of the user login account; and acquiring the role authority data according to the role function.
In this embodiment, the character data list includes a plurality of hierarchical layers of character data; the determining module 303 is further configured to generate a list control of each hierarchy according to the role data of each hierarchy.
In this embodiment, the determining module 303 is further configured to generate functional components of each hierarchy correspondingly according to the role data of each hierarchy; and correspondingly generating the list control of each hierarchy according to the functional components of each hierarchy.
In this embodiment, the predefined field includes data to be displayed indicating information and data to be displayed position information, where the data to be displayed indicating information is used to indicate that the data content to be displayed is determined from the character data list, and the data to be displayed position information is used to determine the position of the data content to be displayed on the list control.
In this embodiment, the display module 304 is further configured to determine the content of the data to be displayed from the character data list according to the indication information of the data to be displayed; determining the position to be displayed of the data content to be displayed on the list control according to the position information of the data to be displayed; and displaying the data content to be displayed under the functional component corresponding to the position to be displayed on the list control.
For specific implementation steps, reference may be made to the description related to the role authority control method of the application program provided in embodiment 1, and details are not described herein in order to avoid repetition.
In the role authority control device of the application program in this embodiment 2, corresponding functions are matched for users with different roles according to the obtained role authority data, so that a display function in the application program is associated with a user role, and function display of the system is controlled according to the user role authority. If the manager wants to see the functions used by the acquisition personnel, the manager does not need to install two versions of APP at the same time. The visual function module of control collection personnel, each constructor role is rather than the function couple that corresponds, and individual work is more clear and definite, improves work efficiency.
Example 3
An embodiment of the present application provides a mobile terminal, including: a memory and a processor, wherein the memory stores a computer program, and the computer program executes the role authority control method of the application program according to embodiment 1 when the computer program runs through the processor.
The mobile terminal of the embodiment acquires corresponding role authority data according to a user login account; classifying the role authority data according to attribute information to obtain a role data list corresponding to each attribute information; determining a corresponding list control according to the role data list; and determining data content to be displayed from the role data list according to the predefined fields through an adapter, and displaying the data content to be displayed under the functional component of the list control.
For specific implementation steps, reference may be made to the description related to the role authority control method of the application program provided in embodiment 1, and details are not described herein in order to avoid repetition.
The mobile terminal of the embodiment unifies the management version and the construction version of the existing android management application program into one version, and the function of the application program is associated with the system user role, so that the authority management of users with different roles is realized. If the manager wants to see the functions used by the acquisition personnel, two versions of the APP do not need to be installed at the same time. The visual function module of control collection personnel, each constructor role is rather than the function couple that corresponds, and individual work is more clear and definite, improves work efficiency.
Example 4
An embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program runs on a processor, the computer program performs the role authority control method of the application program described in embodiment 1 above.
For specific implementation steps, reference may be made to the description related to the role authority control method of the application program provided in embodiment 1, and details are not described herein in order to avoid repetition.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A role authority control method of an application program is characterized by comprising the following steps:
acquiring corresponding role authority data according to a user login account;
classifying the role authority data according to attribute information to obtain a role data list corresponding to each attribute information;
determining a corresponding list control according to the role data list;
and determining data content to be displayed from the role data list according to the predefined fields through an adapter, and displaying the data content to be displayed under the functional component of the list control.
2. The method of claim 1, wherein the obtaining of the corresponding role authority data according to the user login account comprises:
determining the role function of the user login account;
and acquiring the role authority data according to the role function.
3. The method of claim 1, wherein the list of role data comprises a plurality of levels of role data;
the determining of the corresponding list control according to the role data list comprises the following steps:
and correspondingly generating a list control of each hierarchy according to the role data list of each hierarchy.
4. The method according to claim 3, wherein the generating of the list control of each hierarchy according to the role data of each hierarchy comprises:
correspondingly generating functional components of each hierarchy according to the role data lists of each hierarchy;
and correspondingly generating the list control of each hierarchy according to the functional components of each hierarchy.
5. The method of claim 1, wherein the predefined field comprises data to be displayed indication information and data to be displayed position information, the data to be displayed indication information is used for indicating that the data content to be displayed is determined from the character data list, and the data to be displayed position information is used for determining a position of the data content to be displayed on the list control.
6. The method of claim 5, wherein the determining, by an adapter, data content to be displayed from the role data list according to predefined fields and displaying the data content to be displayed under a functional component of the list control comprises:
determining the data content to be displayed from the role data list according to the indication information of the data to be displayed;
determining the position to be displayed of the data content to be displayed on the list control according to the position information of the data to be displayed;
and displaying the data content to be displayed under the functional component corresponding to the position to be displayed on the list control.
7. A character authority control apparatus for an application, the apparatus comprising:
the acquisition module is used for acquiring corresponding role authority data according to the user login account;
the classification module is used for classifying the role authority data according to the attribute information to obtain a role data list corresponding to each attribute information;
the determining module is used for determining a corresponding list control according to the role data list;
and the display module is used for determining data content to be displayed from the role data list according to the predefined fields through an adapter and displaying the data content to be displayed under the functional component of the list control.
8. The apparatus according to claim 7, wherein the determining module is configured to generate the functional components of each hierarchy correspondingly according to the role data list of each hierarchy; and correspondingly generating the list control of each hierarchy according to the functional components of each hierarchy.
9. A mobile terminal, comprising: a memory storing a computer program which, when executed by the processor, performs the role authority control method of the application program according to any one of claims 1 to 6, and a processor.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the role authority control method of an application program according to any one of claims 1 to 6.
CN202210086724.7A 2022-01-25 2022-01-25 Role authority control method and device of application program and mobile terminal Pending CN114510180A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210086724.7A CN114510180A (en) 2022-01-25 2022-01-25 Role authority control method and device of application program and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210086724.7A CN114510180A (en) 2022-01-25 2022-01-25 Role authority control method and device of application program and mobile terminal

Publications (1)

Publication Number Publication Date
CN114510180A true CN114510180A (en) 2022-05-17

Family

ID=81550652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210086724.7A Pending CN114510180A (en) 2022-01-25 2022-01-25 Role authority control method and device of application program and mobile terminal

Country Status (1)

Country Link
CN (1) CN114510180A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116821866A (en) * 2023-08-29 2023-09-29 北京轻松致远科技有限责任公司 Role authority control method of application program

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316216A (en) * 2011-09-07 2012-01-11 宇龙计算机通信科技(深圳)有限公司 Terminal adaptive role method and terminal thereof
CN106293729A (en) * 2016-08-01 2017-01-04 珠海格力电器股份有限公司 Mobile terminal controls the method for application program, device and mobile device
CN108279879A (en) * 2018-01-25 2018-07-13 北京卓越智软科技有限公司 Applied software development method towards engine
CN108600177A (en) * 2018-03-27 2018-09-28 北京明朝万达科技股份有限公司 A kind of authority control method and device
CN109214151A (en) * 2018-09-28 2019-01-15 北京赛博贝斯数据科技有限责任公司 The control method and system of user right
CN111641627A (en) * 2020-05-26 2020-09-08 深圳壹账通智能科技有限公司 User role authority management method and device, computer equipment and storage medium
CN113177194A (en) * 2021-04-23 2021-07-27 北京四方继保工程技术有限公司 Method for displaying man-machine interface menu of relay protection device divided according to roles
CN113392423A (en) * 2021-08-17 2021-09-14 深圳市信润富联数字科技有限公司 User authority management method, system and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316216A (en) * 2011-09-07 2012-01-11 宇龙计算机通信科技(深圳)有限公司 Terminal adaptive role method and terminal thereof
CN106293729A (en) * 2016-08-01 2017-01-04 珠海格力电器股份有限公司 Mobile terminal controls the method for application program, device and mobile device
CN108279879A (en) * 2018-01-25 2018-07-13 北京卓越智软科技有限公司 Applied software development method towards engine
CN108600177A (en) * 2018-03-27 2018-09-28 北京明朝万达科技股份有限公司 A kind of authority control method and device
CN109214151A (en) * 2018-09-28 2019-01-15 北京赛博贝斯数据科技有限责任公司 The control method and system of user right
CN111641627A (en) * 2020-05-26 2020-09-08 深圳壹账通智能科技有限公司 User role authority management method and device, computer equipment and storage medium
CN113177194A (en) * 2021-04-23 2021-07-27 北京四方继保工程技术有限公司 Method for displaying man-machine interface menu of relay protection device divided according to roles
CN113392423A (en) * 2021-08-17 2021-09-14 深圳市信润富联数字科技有限公司 User authority management method, system and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116821866A (en) * 2023-08-29 2023-09-29 北京轻松致远科技有限责任公司 Role authority control method of application program
CN116821866B (en) * 2023-08-29 2023-11-10 北京轻松致远科技有限责任公司 Role authority control method of application program

Similar Documents

Publication Publication Date Title
CN109313739B (en) System and method for providing visualization of workflow
US10157052B2 (en) Software change management
US7944445B1 (en) System and method for providing a dynamic expanded timeline
US11233708B1 (en) System, apparatus and method for deploying infrastructure to the cloud
CN109213747B (en) Data management method and device
CN102523129B (en) Universal avionics bus test analysis method and device
CA2677539C (en) Method, system and graphical user interface for configuring a simulator to simulate a plurality of devices
US10168875B2 (en) Displaying dynamic graphical content in graphical user interface (GUI) controls
CN103036769A (en) Method and breathing light for message prompt
US9727209B2 (en) Hierarchical data structure with shortcut list
CN104169902B (en) Synchronous local and remote data
CN114237466B (en) Inspection point configuration method and device
CN107193714B (en) Alarm display method and device
CN103067255A (en) Breathing lamp for reminding message and message reminding method
CN111881037A (en) Test case management method and device and electronic equipment
CN112396302A (en) Engineering quality acceptance management system and method based on field positioning
CN114510180A (en) Role authority control method and device of application program and mobile terminal
US10248733B2 (en) Integration of a catalog application with a monitoring application
CN106294345A (en) The treating method and apparatus of the log content of application program
US8731982B2 (en) System and methodology for sequential navigation and monitoring in a business process or complex task
CN114303134A (en) Method, apparatus and computer readable medium for maintaining visual consistency
CN110489329A (en) A kind of output method of test report, device and terminal device
US9645696B2 (en) Visual editor for defining geo fence boundaries
CN112306862A (en) Front-end automatic test system and method, storage medium and computing equipment
CN113111353B (en) Container mirror library security evaluation system and method based on dependency relationship

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination