[go: up one dir, main page]

CN120179122B - A page control method and system based on front-end and back-end coordination - Google Patents

A page control method and system based on front-end and back-end coordination

Info

Publication number
CN120179122B
CN120179122B CN202510282197.0A CN202510282197A CN120179122B CN 120179122 B CN120179122 B CN 120179122B CN 202510282197 A CN202510282197 A CN 202510282197A CN 120179122 B CN120179122 B CN 120179122B
Authority
CN
China
Prior art keywords
menu
page
user
module
authentication
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.)
Active
Application number
CN202510282197.0A
Other languages
Chinese (zh)
Other versions
CN120179122A (en
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.)
Guangdong Huiyun Technology Co ltd
Original Assignee
Guangdong Huiyun Technology 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 Guangdong Huiyun Technology Co ltd filed Critical Guangdong Huiyun Technology Co ltd
Priority to CN202510282197.0A priority Critical patent/CN120179122B/en
Publication of CN120179122A publication Critical patent/CN120179122A/en
Application granted granted Critical
Publication of CN120179122B publication Critical patent/CN120179122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Storage Device Security (AREA)

Abstract

本发明公开了一种基于前后端协调合作的页面控制方法,用于对应用系统的资源进行权限控制,应用系统的资源包括功能菜单和各个界面的按钮控件,方法包括:基于前端请求接口进行系统菜单处理,包括:系统菜单查询、系统菜单生成以及系统菜单修改;通过后端请求接口基于系统菜单处理进行系统菜单管理维护,从而进行菜单级权限控制;系统菜单管理维护基于菜单模块管理功能模块实现,菜单模块管理模块用于维护应用系统的系统菜单、菜单图标和按钮,并通过角色与系统菜单的映射,集中管理多个应用系统的角色‑系统菜单权限;S3,基于菜单级权限控制,通过菜单模块管理功能模块对页面的操作动作进行管理维护。还公开系统、电子设备及计算机可读存储介质。

The present invention discloses a page control method based on front-end and back-end coordination and cooperation, which is used to control the permissions of application system resources. The application system resources include function menus and button controls on various interfaces. The method includes: performing system menu processing based on a front-end request interface, including system menu query, system menu generation, and system menu modification; performing system menu management and maintenance based on system menu processing through a back-end request interface, thereby performing menu-level permission control; system menu management and maintenance is implemented based on a menu module management function module, which is used to maintain the system menu, menu icons, and buttons of the application system, and centrally manage the role-system menu permissions of multiple application systems through mapping roles to system menus; S3, based on menu-level permission control, managing and maintaining page operations through the menu module management function module. Also disclosed are a system, an electronic device, and a computer-readable storage medium.

Description

Page control method and system based on front-end and back-end coordination cooperation
Technical Field
The invention relates to the technical field of page control of system menus, in particular to a page control method and system based on front-end and back-end coordination cooperation.
Background
In the age of high-speed development of information technology at present, the number of application systems and data platforms in enterprises is increased, the service and functional designs of different platforms are different, and as the authority systems of the platforms are self-built and have no unified authority design and standard authority management, the problems of disordered authority management and unclear hierarchical division are caused, and the problems are obvious in operation and maintenance systems and can cause very serious management problems.
In addition, under the condition of aiming at different projects and roles, the operation and maintenance system needs to carry out different page authorization limits and menu management, so that different divisions and different presentations are often needed through multiple times of separation management and page shielding, and the steps and the development of the mashup are too much, so that the workload and the convenience are greatly influenced.
Disclosure of Invention
The invention provides a page control method and a page control system based on front-end and back-end coordination cooperation, which are used for controlling authority of all resources of an application system, such as function menus of the application system, button controls of all interfaces and the like, wherein the menus are stored in a database, then the front-end requests the interfaces to inquire the system menus, then the dynamic route generates the menus, the problem that the modified menus or menu icons do not need to be modified and can be directly modified on the system is solved, an independent menu module manages and maintains the menus and buttons of the application system, the role-menu authorities of a plurality of systems are managed and maintained in a centralized manner through the mapping of roles and the menus, and on the basis of the menu-level authority control, the operation actions on the page are also managed and maintained, namely unified authority management of operations such as adding, deleting, changing and checking on the page is simple, and the authority control can be more careful and accurate.
The invention provides a page control method based on front-end and back-end coordination cooperation, which is used for controlling authority of resources of an application system, wherein the resources of the application system comprise function menus of the application system and button controls of all interfaces, and the page control method comprises the following steps:
s1, carrying out system menu processing based on a front-end request interface, wherein the system menu processing comprises system menu inquiry, system menu generation and system menu modification;
S2, performing system menu management maintenance based on the system menu processing through a back-end request interface so as to perform menu level authority control, wherein the system menu management maintenance is realized based on a menu module management function module, and the independent menu module management function module is used for maintaining system menus, menu icons and buttons of the application system and centrally managing role-system menu authorities of a plurality of application systems through mapping roles and the system menus;
and S3, based on the menu level authority control, the menu module management function module is used for managing and maintaining the operation action of the page at the same time.
Preferably, the S1 includes:
S11, after all route data are obtained through a front-end request interface, system menu inquiry is carried out based on the route data, wherein the system menu is stored in one or more database tables;
S12, generating the system menu through dynamic routing;
and S13, carrying out menu content modification or menu icon modification on the generated system menu, wherein the menu content modification or the menu icon modification is directly modified on the system menu without modifying codes.
Preferably, the S2 includes:
S21, controlling data, wherein the back-end returns all tiled data corresponding to the routing data through a back-end return interface, and the system menu module management function module generates a menu list based on the tiled data, wherein the menu list comprises fields of menu names, such as menu identification, type, access path, component path, icon, sorting, whether hiding and whether enabling;
S22, performing function layer judgment based on the acquired tiled data, wherein the function layer judgment comprises a user or a user group which can access a specific page or function through authority control in a view function in Django Rest or Flask back-end framework;
S23, performing Vue instruction control, wherein in front-end and back-end separation application of Vue.js, a v-if instruction is used for determining whether to render a menu item or not according to a data set correspondingly formed by rights in the view function;
s24, carrying out interface layer unified interception based on the authentication interceptor, wherein the method comprises the steps of judging whether a user has access to a specific resource or not according to a URL path based on an interception request, and carrying out the interface layer unified interception on the user without access to the specific resource, wherein the specific resource comprises a protected resource and an address which can be accessed without user authentication.
Preferably, the front-end and back-end separation application of the Vue. Js is realized based on vue prototype chains corresponding to the routing data, and a plurality of vue prototype chains are directly connected with the menu management module, so that efficient menu management and page control are realized.
Preferably, the S24 includes:
Confirming whether the access address of the page needs to authenticate the user identity, and if so, configuring the public access address and carrying out a first accessible annotation in the configuration file;
The user identity authentication method comprises the steps of authenticating the user identity based on a double authentication mode of user name authentication and password authentication, and storing records which pass authentication and succeed and fail without passing authentication in the database table;
Configuring a public access address and performing a first accessible annotation in a configuration file under the condition that user identity does not need to be authenticated, wherein configuring the first public access address for an address which can be accessed without user authentication and performing the accessible annotation in the configuration file, and based on the accessible annotation, an unauthenticated user can access the configured first public access address;
The configuring the public access address and making the first accessible annotation in the configuration file includes further including configuring a second public access address for the protected resource and making a conditional access annotation in the configuration file, the accessible annotation being defined based on the condition, only authenticated users having access to the configured second public access address.
Preferably, the authentication interceptor is used for intercepting when a user requests to access the protected resource, and comprises checking whether the URL requested by the user is in a public access address list, allowing access to the protected resource if the URL requested by the user is in the public access address list, checking whether the user passes identity verification if the URL requested by the user is not in the public access address list, allowing access to the protected resource if the URL requested by the user passes the identity verification, and refusing access to the protected resource if the URL requested by the user passes the identity verification.
Preferably, the S3 includes:
s31, packaging the view function based on a decorator;
s32, determining whether to execute the packaged view function based on the authority of the user, wherein the packaged view function is executed and used for simultaneously managing and maintaining the operation actions of the page through the menu module management function module, namely, the operation buttons on the page, namely, the unified authorization management of operations such as adding, deleting, changing, checking and the like.
The second aspect of the present invention provides a page control system based on front-end and back-end coordination cooperation, comprising:
The front-end processing module (101) is used for carrying out system menu processing based on the front-end request interface, wherein the system menu processing comprises system menu inquiry, system menu generation and system menu modification;
The system menu management maintenance is realized based on a menu module management function module, and the independent menu module management function module is used for maintaining a system menu, menu icons and buttons of the application system and centrally managing role-system menu authorities of a plurality of application systems through mapping of roles and the system menu;
And the page control module (103) is used for managing and maintaining the operation actions of the page through the menu module management function module based on the menu level authority control, namely, the operation buttons on the page, namely, the unified authority management of operations such as adding, deleting, changing, checking and the like.
A third aspect of the invention provides an electronic device comprising a processor and a memory, the memory storing a plurality of instructions, the processor being for reading the instructions and performing the method according to the first aspect.
A fourth aspect of the invention provides a computer readable storage medium storing a plurality of instructions readable by a processor and for performing the method of the first aspect.
The method, the system and the electronic equipment provided by the invention have the following beneficial effects:
(1) The invention is based on platform, and can manage menu or finer granularity authority, such as a button, a drop-down frame, an icon and the like through independent menu modules and related technical schemes.
(2) The configurability is improved, and the modification of the menu style and related interface information can be directly completed on the system without modifying the system code.
(3) The integration, sharing and interaction of various information of the page can be realized through menu control on the platform, page display is controlled, and powerful support is provided for platform construction.
Drawings
FIG. 1 is a flow chart of a method for controlling a page based on front-end and back-end coordination cooperation according to an embodiment of the invention;
FIG. 2 is a block diagram of an implementation flow of step S2 according to an embodiment of the present invention;
FIG. 3 is a diagram of a front-end and back-end coordination based page control system architecture in accordance with an embodiment of the present invention;
FIG. 4 is a schematic diagram of a front-to-back end coordination-based page control system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to better understand the above technical solutions, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
Example 1
As shown in fig. 1, in one aspect, the present invention provides a page control method based on front-end and back-end coordination, which is used for performing authority control on resources of an application system, where the resources of the application system include a function menu of the application system and button controls of each interface, and the page control method includes:
s1, carrying out system menu processing based on a front-end request interface, wherein the system menu processing comprises system menu inquiry, system menu generation and system menu modification;
as a preferred embodiment, the S1 includes:
S11, after all route data are obtained through a front-end request interface, system menu inquiry is carried out based on the route data, wherein the system menu is stored in one or more database tables;
in this embodiment, as shown in fig. 2, all the obtained routing data are three, namely, routing data 1, routing data 2 and routing data 3, and the database tables are three, namely, database table 1, database table 2 and database table 3.
S12, generating the system menu through dynamic routing;
and S13, carrying out menu content modification or menu icon modification on the generated system menu, wherein the menu content modification or the menu icon modification is directly modified on the system menu without modifying codes.
S2, performing system menu management maintenance based on the system menu processing through a back-end request interface so as to perform menu level authority control, wherein the system menu management maintenance is realized based on a menu module management function module, and the independent menu module management function module is used for maintaining system menus, menu icons and buttons of the application system and centrally managing role-system menu authorities of a plurality of application systems through mapping roles and the system menus;
The implementation flow diagram of step S2 shown in fig. 2.
As a preferred embodiment, the S2 includes:
S21, controlling data, wherein the back-end returns all tiled data corresponding to the routing data through a back-end return interface, and the system menu module management function module generates a menu list based on the tiled data, wherein the menu list comprises fields of menu names, such as menu identification, type, access path, component path, icon, sorting, whether hiding and whether enabling;
S22, performing function layer judgment based on the obtained tiled data, wherein the function layer judgment comprises a user or a user group which can access a specific page or function through authority control in a view function in Django Rest or Flask back-end framework.
In this embodiment, taking Django Rest back-end frames as an example, the decorator @ permission_ classes in the back-end frames can be used to set the permissions of the function view. The rights of the function view commonly used include:
AllowAny allowing any user to access the view, i.e., without authentication and authorization;
IsAuthenticated requiring the user to authenticate before accessing the view, i.e., the user must log in;
IsAdminUser requiring that the user be an administrator user to access the view;
IsAuthenticatedOrReadOnly requiring the user to perform authentication during write operations (e.g., create, update, delete), while allowing any user access for read-only operations (e.g., get list, view details);
In addition to the above commonly used rights classes, django Rest back-end frameworks also support custom rights classes to meet more complex rights requirements.
S23, performing Vue instruction control, wherein in front-end and back-end separation application of Vue.js, a v-if instruction is used for determining whether to render a menu item or not according to a data set correspondingly formed by rights in the view function;
In this embodiment, the front-end and back-end separation application of the vue.js is implemented based on vue prototype chains corresponding to the routing data. The plurality of vue prototype chains are directly connected with the menu management module, so that efficient menu management and page control are realized.
S24, carrying out interface layer unified interception based on an authentication interceptor, wherein the method comprises the steps of judging whether a user has access to a specific resource or not according to a URL path based on an interception request, and carrying out the interface layer unified interception on the user without access to the specific resource, wherein the specific resource comprises a protected resource and an address which can be accessed without user authentication;
As a preferred embodiment, the S24 includes:
Confirming whether the access address of the page needs to authenticate the user identity, and if so, configuring the public access address and carrying out a first accessible annotation in the configuration file;
The user identity authentication method comprises the steps of authenticating the user identity based on a double authentication mode of user name authentication and password authentication, and storing records which pass authentication and succeed and fail without passing authentication in the database table;
Configuring a public access address and performing a first accessible annotation in a configuration file under the condition that user identity does not need to be authenticated, wherein configuring the first public access address and performing the accessible annotation in the configuration file for an address (such as a login page) which can be accessed without user authentication, and based on the accessible annotation, an unauthenticated user can access the configured first public access address;
As a preferred embodiment, the configuring the public access address and making the first accessible annotation in the configuration file includes further including configuring a second public access address for the protected resource (e.g., a home page or an exit button) and making a conditional access annotation in the configuration file based on which only authenticated users can access the configured second public access address.
As a preferred embodiment, the authentication interceptor is configured to intercept when a user requests access to a protected resource, and includes:
The authentication interceptor checks whether the URL requested by the user is in the public access address list, allows access to the protected resource if the URL requested by the user is in the public access address list, checks whether the user has passed the authentication if the URL requested by the user is not in the public access address list, allows access to the protected resource if the user has passed the authentication, and denies access to the protected resource if the user has passed the authentication.
Through the steps, whether the user has the right to access the specific resource can be effectively judged according to the URL path, so that the network resource is protected from being accessed by unauthorized users.
And S3, based on the menu level authority control, the menu module management function module is used for simultaneously managing and maintaining the operation actions of the page, namely, the operation buttons on the page, namely, the unified authority management of operations such as adding, deleting, changing, checking and the like.
As a preferred embodiment, the S3 includes:
S31, based on the decorator wrapping the view function, in Django Rest back end framework, a simple decorator wrapping view function is provided using the function-based video to ensure that the view function will receive the Request instead of the Django generic HttpRequest object and return a Response instead of the Django generic HttpRequest object, while allowing the way this Request is handled to be set.
The decorator is an api_view decorator, accepting parameters of the HTTP method list to which the view should respond. Authentication u class (.. authentication_class (.+ -.), the @ color_ classes (...) or @ transmission_ classes (..); each decorator has a parameter that must be a list of classes or a tuple of classes.
S32, determining whether to execute the packaged view function based on the authority of the user, wherein the packaged view function is executed and used for simultaneously managing and maintaining the operation actions of the page through the menu module management function module, namely, the operation buttons on the page, namely, the unified authorization management of operations such as adding, deleting, changing, checking and the like.
Example two
As shown in fig. 3-4, the present embodiment provides a page control system based on front-end and back-end coordination cooperation, including:
The front-end processing module 101 is configured to perform system menu processing based on the front-end request interface, where the system menu processing includes system menu query, system menu generation, and system menu modification;
The system menu management maintenance is realized based on a menu module management function module, and the independent menu module management function module is used for maintaining a system menu, menu icons and buttons of the application system and centrally managing role-system menu authorities of a plurality of application systems through mapping of roles and the system menu;
The page control module 103 manages and maintains the operation actions of the page through the menu module management function module based on the menu level authority control, namely, the operation buttons on the page, namely, the unified authority management of operations such as adding, deleting, changing, checking and the like.
The invention also provides a memory storing a plurality of instructions for implementing the method according to the first embodiment.
As shown in fig. 5, the present invention further provides an electronic device, including a processor 301 and a memory 302 connected to the processor 301, where the memory 302 stores a plurality of instructions, and the instructions may be loaded and executed by the processor, so that the processor can execute the method according to the first embodiment.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention. It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (9)

1. The page control method based on front-end and back-end coordination cooperation is characterized by being used for performing authority control on resources of an application system, wherein the resources of the application system comprise function menus of the application system and button controls of all interfaces, and the page control method comprises the following steps:
s1, carrying out system menu processing based on a front-end request interface, wherein the system menu processing comprises system menu inquiry, system menu generation and system menu modification;
S2, performing system menu management maintenance based on the system menu processing through a back-end request interface so as to perform menu level authority control, wherein the system menu management maintenance is realized based on a menu module management function module, and the independent menu module management function module is used for maintaining system menus, menu icons and buttons of the application system and centrally managing role-system menu authorities of a plurality of application systems through mapping roles and the system menus;
the step S2 comprises the following steps:
S21, controlling data, wherein the back end returns all tiled data corresponding to route data through a back end return interface, the menu module management function module generates a menu list based on the tiled data, and the menu list comprises fields of menu identification, types, access paths, component paths, icons, sorting, whether hiding and whether starting are carried out, wherein the types are used for judging whether a piece of data is a button, a menu page or a catalog, and whether hiding is used for judging whether the data is displayed in a navigation menu of the menu list or not, because some detail pages are not required to be displayed in the navigation menu but are required to be returned by the back end;
S22, performing function layer judgment based on the acquired tiled data, wherein the function layer judgment comprises a user or a user group which can access a specific page or function through authority control in a view function in Django Rest or Flask back-end framework;
s23, performing Vue instruction control, wherein in front-end and back-end separation application of Vue.js, a v-if instruction is used for determining whether to render a menu item or not according to a data set formed by rights in the view function;
S24, carrying out interface layer unified interception based on an authentication interceptor, wherein the method comprises the steps of judging whether a user has access to a specific resource or not according to a URL path based on an interception request, and carrying out the interface layer unified interception on the user without access to the specific resource, wherein the specific resource comprises a protected resource and an address which can be accessed without user authentication;
and S3, based on the menu level authority control, the menu module management function module is used for managing and maintaining the operation action of the page at the same time.
2. The method for controlling a page based on front-end and back-end coordination according to claim 1, wherein S1 comprises:
S11, after all route data are obtained through a front-end request interface, system menu inquiry is carried out based on the route data, wherein the system menu is stored in one or more database tables;
S12, generating the system menu through dynamic routing;
and S13, carrying out menu content modification or menu icon modification on the generated system menu, wherein the menu content modification or the menu icon modification is directly modified on the system menu without modifying codes.
3. The method for controlling the page based on the front-end and back-end coordination cooperation according to claim 2, wherein the front-end and back-end separation application of the Vue. Js is realized based on vue prototype chains corresponding to the routing data, and a plurality of vue prototype chains are directly connected with a menu management module, so that efficient menu management and page control are realized.
4. A method for controlling a page based on front-end and back-end coordination according to claim 3, wherein S24 comprises:
Confirming whether the access address of the page needs to authenticate the user identity, and if so, configuring the public access address and carrying out a first accessible annotation in the configuration file;
The user identity authentication method comprises the steps of authenticating the user identity based on a double authentication mode of user name authentication and password authentication, and storing records which pass authentication and succeed and fail without passing authentication in the database table;
Configuring a public access address and performing a first accessible annotation in a configuration file under the condition that user identity does not need to be authenticated, wherein configuring the first public access address for an address which can be accessed without user authentication and performing the accessible annotation in the configuration file, and based on the accessible annotation, an unauthenticated user can access the configured first public access address;
The configuring the public access address and making the first accessible annotation in the configuration file includes further including configuring a second public access address for the protected resource and making a conditional access annotation in the configuration file, the accessible annotation being defined based on the condition, only authenticated users having access to the configured second public access address.
5. The method for controlling a page based on front-end and back-end coordination of claim 4, wherein the authentication interceptor is configured to intercept when a user requests access to a protected resource, and comprises checking whether a URL requested by the user is in a public access address list, allowing access to the protected resource if the URL requested by the user is in the public access address list, checking whether the user has passed authentication if the URL requested by the user is not in the public access address list, allowing access to the protected resource if the user has passed authentication, and otherwise denying access to the protected resource.
6. The method for controlling a page based on front-end and back-end coordination according to claim 5, wherein S3 comprises:
s31, packaging the view function based on a decorator;
s32, deciding whether to execute the packaged view function based on the authority of the user, wherein the packaged view function is executed and used for simultaneously managing and maintaining the operation actions of the page through the menu module management function module, namely, the operation buttons on the page, and the unified authorization management of operations including adding, deleting, changing and checking.
7. A front-end and back-end coordination based page control system for implementing the method of any of claims 1-6, comprising:
The front-end processing module (101) is used for carrying out system menu processing based on the front-end request interface, wherein the system menu processing comprises system menu inquiry, system menu generation and system menu modification;
The system menu management maintenance is realized based on a menu module management function module, and the independent menu module management function module is used for maintaining a system menu, menu icons and buttons of the application system and centrally managing role-system menu authorities of a plurality of application systems through mapping of roles and the system menu;
and the page control module (103) is used for managing and maintaining the operation actions of the page through the menu module management function module based on the menu level authority control, namely, the operation buttons on the page, including unified authorization management of operations of adding, deleting, changing and checking.
8. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions, the processor configured to read the instructions and perform the method of any of claims 1-6.
9. A computer readable storage medium storing a plurality of instructions readable by a processor and for performing the method of any one of claims 1-6.
CN202510282197.0A 2025-03-11 2025-03-11 A page control method and system based on front-end and back-end coordination Active CN120179122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510282197.0A CN120179122B (en) 2025-03-11 2025-03-11 A page control method and system based on front-end and back-end coordination

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510282197.0A CN120179122B (en) 2025-03-11 2025-03-11 A page control method and system based on front-end and back-end coordination

Publications (2)

Publication Number Publication Date
CN120179122A CN120179122A (en) 2025-06-20
CN120179122B true CN120179122B (en) 2025-10-03

Family

ID=96030399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510282197.0A Active CN120179122B (en) 2025-03-11 2025-03-11 A page control method and system based on front-end and back-end coordination

Country Status (1)

Country Link
CN (1) CN120179122B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110941779A (en) * 2019-11-20 2020-03-31 东软集团股份有限公司 Page loading method and device, storage medium and electronic equipment
CN111475803A (en) * 2020-04-15 2020-07-31 南京甄视智能科技有限公司 Background authority management system and management method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118862035A (en) * 2024-07-12 2024-10-29 北方健康医疗大数据科技有限公司 A system integrating unified identity authentication and rights management

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110941779A (en) * 2019-11-20 2020-03-31 东软集团股份有限公司 Page loading method and device, storage medium and electronic equipment
CN111475803A (en) * 2020-04-15 2020-07-31 南京甄视智能科技有限公司 Background authority management system and management method

Also Published As

Publication number Publication date
CN120179122A (en) 2025-06-20

Similar Documents

Publication Publication Date Title
US10880292B2 (en) Seamless transition between WEB and API resource access
US11762970B2 (en) Fine-grained structured data store access using federated identity management
US11019068B2 (en) Quorum-based access management
US10484385B2 (en) Accessing an application through application clients and web browsers
US10263994B2 (en) Authorized delegation of permissions
US8910048B2 (en) System and/or method for authentication and/or authorization
US7647625B2 (en) System and/or method for class-based authorization
US10397213B2 (en) Systems, methods, and software to provide access control in cloud computing environments
JP6981824B2 (en) Common authentication management service
US20150180854A1 (en) System and/or method for authentication and/or authorization via a network
US20070198522A1 (en) Virtual roles
JP2013008229A (en) Authentication system, authentication method and program
EP1946239A2 (en) System and/or method for role-based authorization
CN115422526B (en) Role authority management method, device and storage medium
CN112487392A (en) Method for realizing authority control of management system by front end
US20250103739A1 (en) Fine granularity control of data access and usage across multi-tenant systems
CN117097540A (en) Campus identity verification safety management method based on intelligent network connection
CN118297765A (en) Campus information management system
US10257263B1 (en) Secure remote execution of infrastructure management
KR20070076342A (en) User Group Role / Permission Management System and Access Control Methods in a Grid Environment
CN120179122B (en) A page control method and system based on front-end and back-end coordination
CN114692126A (en) Big data unified authorization access method, device, electronic equipment and medium
US8214499B2 (en) System and method for enabling software applications as a service in a non-intrusive manner
CN120579175A (en) A rights management method, device, equipment and medium
CN119128918A (en) User authority management method, device, electronic device and medium

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
GR01 Patent grant