CN117195181A - Control authority control method and device, computer equipment, storage medium - Google Patents
Control authority control method and device, computer equipment, storage medium Download PDFInfo
- Publication number
- CN117195181A CN117195181A CN202311183123.9A CN202311183123A CN117195181A CN 117195181 A CN117195181 A CN 117195181A CN 202311183123 A CN202311183123 A CN 202311183123A CN 117195181 A CN117195181 A CN 117195181A
- Authority
- CN
- China
- Prior art keywords
- target
- control
- business
- user
- permission
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000015654 memory Effects 0.000 claims abstract description 36
- 230000006870 function Effects 0.000 claims description 16
- 238000010586 diagram Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
Landscapes
- Storage Device Security (AREA)
Abstract
Description
技术领域Technical field
本发明涉及图形用户界面技术领域,具体涉及控件权限的控制方法及其装置、计算机设备、存储介质。The present invention relates to the technical field of graphical user interfaces, and specifically to a method and device for controlling control permissions, computer equipment, and storage media.
背景技术Background technique
相关技术中,对于业务页面中的控件权限的控制,其控件绑定的数据行通常是通过广播的方式获取大量的订阅数据,将大量的订阅数据缓存在客户端中,然后从大量的订阅数据中查询到的,可见,该方式不仅导致大量的客户端内存被占用,而且还会降低控件权限的控制效率。In related technologies, for the control of control permissions in business pages, the data rows bound to the controls usually obtain a large amount of subscription data through broadcasting, cache the large amount of subscription data in the client, and then obtain the large amount of subscription data from the From the query, it can be seen that this method not only causes a large amount of client memory to be occupied, but also reduces the control efficiency of control permissions.
发明内容Contents of the invention
有鉴于此,本发明提供了一种控件权限的控制方法及其装置、计算机设备、存储介质,不仅能够减少对客户端内存的使用,还能够提高控件权限的控制效率。In view of this, the present invention provides a method for controlling control permissions, a device, a computer device, and a storage medium, which can not only reduce the use of client memory, but also improve the control efficiency of control permissions.
第一方面,本发明提供了一种控件权限的控制方法,所述方法包括:In a first aspect, the present invention provides a method for controlling control permissions. The method includes:
获取第一权限信息和第二权限信息,所述第一权限信息用于指示用户身份与用户角色的对应关系,所述第二权限信息用于指示业务信息与业务页面中控件的使用权限的对应关系,所述业务信息包括所述用户角色、业务操作类型以及所述控件的业务使用状态;Obtain first permission information and second permission information. The first permission information is used to indicate the correspondence between the user identity and the user role. The second permission information is used to indicate the correspondence between the business information and the usage permission of the control in the business page. Relationship, the business information includes the user role, business operation type and the business usage status of the control;
获取目标业务页面,所述目标业务页面中包括至少一个数据行;Obtain a target business page, where the target business page includes at least one data row;
对所述目标业务页面进行解析,得到当前用户的用户身份和所述目标业务页面中的目标控件;Parse the target business page to obtain the user identity of the current user and the target control in the target business page;
若基于消息部件确定所述目标业务页面中存在选中的目标数据行,获取当前业务操作类型;If it is determined based on the message component that the selected target data row exists in the target business page, obtain the current business operation type;
基于所述当前用户的用户身份以及所述当前业务操作类型,在所述第一权限信息和第二权限信息中进行匹配,确定所述目标控件对应于所述目标数据行的目标使用权限。Based on the user identity of the current user and the current business operation type, matching is performed in the first permission information and the second permission information to determine the target usage permission of the target control corresponding to the target data row.
本发明实施例提供的控件权限的控制方法,通过设置消息部件,能够在获取第一权限信息、第二权限信息以及目标业务页面之后,利用消息部件捕获所述目标业务页面中被选中的目标数据行,然后获取当前业务操作类型,基于所述当前用户的用户身份以及所述当前业务操作类型,在所述第一权限信息和第二权限信息中进行匹配,确定所述目标控件对应于所述目标数据行的目标使用权限,而无需缓存大量的订阅数据,从大量的订阅数据中查找数据行,这不仅减少了对客户端内存的使用,同时还提高控件权限的控制效率。The method for controlling control permissions provided by the embodiment of the present invention, by setting a message component, can use the message component to capture the selected target data in the target business page after obtaining the first permission information, the second permission information and the target business page. OK, then obtain the current business operation type, match the first permission information and the second permission information based on the user identity of the current user and the current business operation type, and determine that the target control corresponds to the The target usage permissions of the target data rows do not need to cache a large amount of subscription data, and find data rows from a large amount of subscription data. This not only reduces the use of client memory, but also improves the control efficiency of control permissions.
在一些可选的实施方式中,所述基于所述当前用户的用户身份以及所述当前业务操作类型,在所述第一权限信息和第二权限信息中进行匹配,确定所述目标控件对应于所述目标数据行的目标使用权限,包括:In some optional implementations, the first permission information and the second permission information are matched based on the user identity of the current user and the current business operation type, and it is determined that the target control corresponds to The target usage rights of the target data row include:
将所述当前用户的用户身份与所述第一权限信息进行匹配;Match the user identity of the current user with the first permission information;
若所述当前用户的用户身份与所述第一权限信息相匹配,得到所述当前用户的目标用户角色;If the user identity of the current user matches the first permission information, the target user role of the current user is obtained;
将所述当前业务操作类型和所述目标用户角色与所述第二权限信息进行匹配,确定所述目标控件对应于所述目标数据行的目标使用权限。The current business operation type and the target user role are matched with the second permission information to determine that the target control corresponds to the target usage permission of the target data row.
本发明实施例提供的控件权限的控制方法,将当前用户的用户身份与第一权限信息进行匹配,能够在当前用户的用户身份与第一权限信息相匹配时,得到当前用户的目标用户角色,再通过将当前业务操作类型和目标用户角色与第二权限信息进行匹配,能够确定目标控件对应于目标数据行的目标使用权限,由此实现了控件级权限的控制,与菜单级权限控制不冲突。而且该控件权限控制可以不受模块编码影响,具有低耦合性,易于在各angularjs系统中移植使用,具有较好的通用性。The method for controlling control permissions provided by the embodiment of the present invention matches the user identity of the current user with the first permission information, and can obtain the target user role of the current user when the user identity of the current user matches the first permission information. Then, by matching the current business operation type and target user role with the second permission information, it is possible to determine the target usage permission of the target control corresponding to the target data row, thus realizing control-level permission control without conflicting with menu-level permission control. . Moreover, the control permission control is not affected by module coding, has low coupling, is easy to transplant and use in various angularjs systems, and has good versatility.
在一些可选的实施方式中,所述第二权限信息中的所述业务操作类型包括第一业务操作类型,所述将所述当前业务操作类型和所述目标用户角色与所述第二权限信息进行匹配,确定所述目标控件对应于所述目标数据行的目标使用权限,包括:In some optional implementations, the business operation type in the second permission information includes a first business operation type, and the current business operation type and the target user role are combined with the second permission information. The information is matched to determine the target usage rights of the target control corresponding to the target data row, including:
若所述目标用户角色与所述第二权限信息中的所述用户角色相匹配,且所述目标用户角色为预设用户角色,且所述当前业务操作类型与所述第一业务操作类型相匹配,确定所述第二权限信息中所述目标控件对应的所述业务使用状态;If the target user role matches the user role in the second permission information, and the target user role is a preset user role, and the current business operation type is consistent with the first business operation type, Match and determine the service usage status corresponding to the target control in the second permission information;
若所述目标控件对应的业务使用状态为可用状态,确定所述目标控件对应于所述目标数据行的目标使用权限为可用权限。If the business usage status corresponding to the target control is an available status, it is determined that the target usage permission of the target control corresponding to the target data row is an available permission.
本发明实施例提供的控件权限的控制方法,在目标用户角色与第二权限信息中的用户角色相匹配,且目标用户角色为预设用户角色,且当前业务操作类型与第一业务操作类型相匹配的情况下,能够确定第二权限信息中目标控件对应的业务使用状态,再通过判断目标控件对应的业务使用状态,以确定目标控件对应于目标数据行的目标使用权限,若目标控件对应的业务使用状态为可用状态,确定目标控件对应于目标数据行的目标使用权限为可用权限,由此实现了控件级权限的控制。In the method for controlling control permissions provided by the embodiment of the present invention, the target user role matches the user role in the second permission information, and the target user role is a preset user role, and the current business operation type matches the first business operation type. In the case of matching, the business usage status corresponding to the target control in the second permission information can be determined, and then the business usage status corresponding to the target control is determined to determine the target usage permission of the target control corresponding to the target data row. If the target control corresponds to The business usage status is the available status, and it is determined that the target usage permission of the target control corresponding to the target data row is the available permission, thus realizing control of control-level permissions.
在一些可选的实施方式中,所述方法还包括:In some optional implementations, the method further includes:
若所述目标用户角色与预设用户角色不匹配,且所述业务使用状态为可用状态,确定所述目标控件对应于所述目标数据行的目标使用权限为可用权限。If the target user role does not match the preset user role and the business usage status is an available status, it is determined that the target usage permission of the target control corresponding to the target data row is an available permission.
本发明实施例提供的控件权限的控制方法,在目标用户角色与预设用户角色不匹配的情况下,若业务使用状态为可用状态,目标控件对应于目标数据行的目标使用权限为可用权限。In the method for controlling control permissions provided by embodiments of the present invention, when the target user role does not match the preset user role, if the business usage status is the available status, the target usage permission of the target control corresponding to the target data row is the available permission.
在一些可选的实施方式中,当所述消息部件中的目标数据行发生变化,所述方法还包括:In some optional implementations, when the target data row in the message component changes, the method further includes:
对所述目标控件对应的权限配置参数进行解析,得到动态状态参数,所述动态状态参数用于指示所述目标数据行发生变化;Parse the permission configuration parameters corresponding to the target control to obtain dynamic state parameters. The dynamic state parameters are used to indicate changes in the target data row;
根据所述动态状态参数重新确定所述目标控件的业务使用状态;Re-determine the service usage status of the target control according to the dynamic status parameter;
根据所述业务使用状态,对所述目标控件对应于所述目标数据行的目标使用权限进行更新。According to the business usage status, the target usage permission of the target control corresponding to the target data row is updated.
本发明实施例提供的控件权限的控制方法,在消息部件中的目标数据行发生变化的情况下,可以通过对目标控件对应的权限配置参数进行解析,得到动态状态参数,此时,动态状态参数能够影响目标控件的业务使用状态,因此,可以根据动态状态参数重新确定目标控件的业务使用状态,最后可以根据业务使用状态,对目标控件对应于目标数据行的目标使用权限进行更新。In the method for controlling control permissions provided by the embodiment of the present invention, when the target data row in the message component changes, the dynamic state parameters can be obtained by parsing the permission configuration parameters corresponding to the target control. At this time, the dynamic state parameters It can affect the business usage status of the target control. Therefore, the business usage status of the target control can be re-determined based on the dynamic status parameters. Finally, the target usage permissions of the target control corresponding to the target data row can be updated based on the business usage status.
在一些可选的实施方式中,所述方法还包括:In some optional implementations, the method further includes:
若基于消息部件确定所述目标业务页面中不存在选中的目标数据行,基于所述当前用户的用户身份、所述第一权限信息和所述第二权限信息确定所述目标控件的初始使用权限。If it is determined based on the message component that there is no selected target data row in the target business page, determine the initial use permission of the target control based on the user identity of the current user, the first permission information and the second permission information. .
在一些可选的实施方式中,所述基于所述当前用户的用户身份、所述第一权限信息和所述第二权限信息确定所述目标控件的初始使用权限,包括:In some optional implementations, determining the initial usage permission of the target control based on the user identity of the current user, the first permission information, and the second permission information includes:
将所述当前用户的用户身份与所述第一权限信息进行匹配;Match the user identity of the current user with the first permission information;
若所述当前用户的用户身份与所述第一权限信息相匹配,得到所述当前用户的目标用户角色;If the user identity of the current user matches the first permission information, the target user role of the current user is obtained;
将所述目标用户角色与所述第二权限信息进行匹配,确定所述目标控件的初始使用权限。Match the target user role with the second permission information to determine the initial usage permission of the target control.
在一些可选的实施方式中,所述确定所述第二权限信息中所述目标控件对应的所述业务使用状态,包括:In some optional implementations, determining the service usage status corresponding to the target control in the second permission information includes:
基于函数let crushStatus=ref(value:"pool|edit|"+(poolSelectRow.value.Status==4)+"|crushstatus|"),确定所述第二权限信息中所述目标控件对应的所述业务使用状态。Based on the function let crushStatus=ref(value:"pool|edit|"+(poolSelectRow.value.Status==4)+"|crushstatus|"), determine the corresponding value of the target control in the second permission information Business usage status.
第二方面,本发明提供了一种控件权限的控制装置,包括:In a second aspect, the present invention provides a control device for control authority, including:
第一获取模块,用于获取第一权限信息和第二权限信息,所述第一权限信息用于指示用户身份与用户角色的对应关系,所述第二权限信息用于指示业务信息与业务页面中控件的使用权限的对应关系,所述业务信息包括所述用户角色、业务操作类型以及所述控件的业务使用状态;The first acquisition module is used to obtain the first permission information and the second permission information. The first permission information is used to indicate the corresponding relationship between the user identity and the user role. The second permission information is used to indicate the business information and the business page. The corresponding relationship between the usage rights of the control in the control, and the business information includes the user role, business operation type, and the business usage status of the control;
第二获取模块,用于获取目标业务页面,所述目标业务页面中包括至少一个数据行;The second acquisition module is used to acquire the target business page, where the target business page includes at least one data row;
解析模块,用于对所述目标业务页面进行解析,得到当前用户的用户身份和所述目标业务页面中的目标控件;A parsing module, used to parse the target business page to obtain the user identity of the current user and the target control in the target business page;
第三获取模块,用于若基于消息部件确定所述目标业务页面中存在选中的目标数据行,获取当前业务操作类型;The third acquisition module is used to acquire the current business operation type if it is determined based on the message component that there is a selected target data row in the target business page;
第一使用权限确定模块,用于基于所述当前用户的用户身份以及所述当前业务操作类型,在所述第一权限信息和第二权限信息中进行匹配,确定所述目标控件对应于所述目标数据行的目标使用权限。A first usage authority determination module, configured to match the first authority information and the second authority information based on the user identity of the current user and the current business operation type, and determine that the target control corresponds to the Target usage rights for the target data row.
在一些可选的实施方式中,第一使用权限确定模块具体包括:In some optional implementations, the first usage rights determination module specifically includes:
第一匹配子模块,用于将所述当前用户的用户身份与所述第一权限信息进行匹配;The first matching sub-module is used to match the user identity of the current user with the first permission information;
第一用户角色确定子模块,用于若所述当前用户的用户身份与所述第一权限信息相匹配,得到所述当前用户的目标用户角色;The first user role determination submodule is used to obtain the target user role of the current user if the user identity of the current user matches the first permission information;
第一使用权限确定子模块,用于将所述当前业务操作类型和所述目标用户角色与所述第二权限信息进行匹配,确定所述目标控件对应于所述目标数据行的目标使用权限。The first usage permission determination sub-module is used to match the current business operation type and the target user role with the second permission information, and determine the target usage permission of the target control corresponding to the target data row.
在一些可选的实施方式中,所述第二权限信息中的所述业务操作类型包括第一业务操作类型,使用权限确定子模块具体包括:In some optional implementations, the business operation type in the second permission information includes the first business operation type, and the usage permission determination submodule specifically includes:
业务使用状态确定单元,用于若所述目标用户角色与所述第二权限信息中的所述用户角色相匹配,且所述目标用户角色为预设用户角色,且所述当前业务操作类型与所述第一业务操作类型相匹配,确定所述第二权限信息中所述目标控件对应的所述业务使用状态;The service usage status determining unit is configured to determine if the target user role matches the user role in the second permission information, and the target user role is a preset user role, and the current business operation type is the same as the user role in the second permission information. The first service operation type matches, and the service usage status corresponding to the target control in the second permission information is determined;
使用权限确定单元,用于若所述目标控件对应的业务使用状态为可用状态,确定所述目标控件对应于所述目标数据行的目标使用权限为可用权限。A usage authority determining unit is configured to determine that the target usage authority of the target control corresponding to the target data row is an available authority if the business usage status corresponding to the target control is an available state.
在一些可选的实施方式中,控件权限的控制装置还包括:In some optional implementations, the control permission control device also includes:
第二使用权限确定模块,用于若所述目标用户角色与预设用户角色不匹配,且所述业务使用状态为可用状态,确定所述目标控件对应于所述目标数据行的目标使用权限为可用权限。The second usage authority determination module is used to determine that the target usage authority of the target control corresponding to the target data row is if the target user role does not match the preset user role and the business usage status is an available state. Available permissions.
在一些可选的实施方式中,当所述消息部件中的目标数据行发生变化,控件权限的控制装置还包括:In some optional implementations, when the target data row in the message component changes, the control permission control device further includes:
动态状态参数确实模块,用于对所述目标控件对应的权限配置参数进行解析,得到动态状态参数,所述动态状态参数用于指示所述目标数据行发生变化;A dynamic state parameter confirmation module is used to parse the permission configuration parameters corresponding to the target control to obtain dynamic state parameters. The dynamic state parameters are used to indicate changes in the target data row;
业务使用状态确定模块,用于根据所述动态状态参数重新确定所述目标控件的业务使用状态;A business usage status determination module, configured to re-determine the business usage status of the target control according to the dynamic status parameters;
更新模块,用于根据所述业务使用状态,对所述目标控件对应于所述目标数据行的目标使用权限进行更新。An update module, configured to update the target usage rights of the target control corresponding to the target data row according to the business usage status.
在一些可选的实施方式中,控件权限的控制装置还包括:In some optional implementations, the control permission control device also includes:
第三使用权限确定模块,用于若基于消息部件确定所述目标业务页面中不存在选中的目标数据行,基于所述当前用户的用户身份、所述第一权限信息和所述第二权限信息确定所述目标控件的初始使用权限。The third usage authority determination module is configured to determine based on the user identity of the current user, the first authority information and the second authority information if it is determined based on the message component that there is no selected target data row in the target business page. Determine the initial usage rights of the target control.
在一些可选的实施方式中,第三使用权限确定模块具体包括:In some optional implementations, the third usage rights determination module specifically includes:
第二匹配子模块,用于将所述当前用户的用户身份与所述第一权限信息进行匹配;The second matching submodule is used to match the user identity of the current user with the first permission information;
第二用户角色确定子模块,用于若所述当前用户的用户身份与所述第一权限信息相匹配,得到所述当前用户的目标用户角色;The second user role determination submodule is used to obtain the target user role of the current user if the user identity of the current user matches the first permission information;
第二使用权限确定子模块,用于将所述目标用户角色与所述第二权限信息进行匹配,确定所述目标控件的初始使用权限。The second usage permission determination sub-module is used to match the target user role with the second permission information and determine the initial usage permission of the target control.
在一些可选的实施方式中,业务使用状态确定单元具体包括:In some optional implementations, the service usage status determination unit specifically includes:
业务使用状态确定子单元,用于基于函数let crushStatus=ref(value:"pool|edit|"+(poolSelectRow.value.Status==4)+"|crushstatus|"),确定所述第二权限信息中所述目标控件对应的所述业务使用状态。The service usage status determination subunit is used to determine the second permission information based on the function let crushStatus=ref(value:"pool|edit|"+(poolSelectRow.value.Status==4)+"|crushstatus|") The service usage status corresponding to the target control in .
第三方面,本发明提供了一种计算机设备,包括:存储器和处理器,存储器和处理器之间互相通信连接,存储器中存储有计算机指令,处理器通过执行计算机指令,从而执行上述第一方面或其对应的任一实施方式的控件权限的控制方法。In a third aspect, the present invention provides a computer device, including: a memory and a processor. The memory and the processor are communicatively connected to each other. Computer instructions are stored in the memory, and the processor executes the computer instructions to execute the first aspect. Or the method for controlling control permissions in any of its corresponding embodiments.
第四方面,本发明提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机指令,计算机指令用于使计算机执行上述第一方面或其对应的任一实施方式的控件权限的控制方法。In a fourth aspect, the present invention provides a computer-readable storage medium. Computer instructions are stored on the computer-readable storage medium. The computer instructions are used to cause the computer to execute the control authority of the above-mentioned first aspect or any of its corresponding embodiments. control method.
附图说明Description of the drawings
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the specific embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description The drawings illustrate some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting any creative effort.
图1为本申请实施例提供的一种可选的控件权限的控制系统的示意图;Figure 1 is a schematic diagram of an optional control authority control system provided by an embodiment of the present application;
图2是根据本发明实施例的一种控件权限的控制方法的流程图;Figure 2 is a flow chart of a method for controlling control permissions according to an embodiment of the present invention;
图3是根据本发明实施例的一种目标业务页面的示意图;Figure 3 is a schematic diagram of a target business page according to an embodiment of the present invention;
图4是根据本发明实施例的另一种控件权限的控制方法的流程图;Figure 4 is a flow chart of another control method for controlling permissions according to an embodiment of the present invention;
图5是根据本发明实施例的再一种控件权限的控制方法的流程图;Figure 5 is a flow chart of yet another control method for controlling permissions according to an embodiment of the present invention;
图6是本申请实施例提供的一种控件权限的控制装置的示意图;Figure 6 is a schematic diagram of a control device for control authority provided by an embodiment of the present application;
图7是本发明实施例提供的一种可选的计算机设备的结构示意图。FIG. 7 is a schematic structural diagram of an optional computer device provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the scope of protection of the present invention.
参照图1,图1为本申请实施例提供的一种可选的控件权限的控制系统的示意图,该控件权限的控制系统包括终端101。Referring to FIG. 1 , FIG. 1 is a schematic diagram of an optional control authority control system provided by an embodiment of the present application. The control authority control system includes a terminal 101 .
示例性地,终端101可以获取第一权限信息和第二权限信息,第一权限信息用于指示用户身份与用户角色的对应关系,第二权限信息用于指示业务信息与业务页面中控件的使用权限的对应关系,业务信息包括用户角色、业务操作类型以及控件的业务使用状态,然后获取目标业务页面,目标业务页面中包括至少一个数据行,并对目标业务页面进行解析,得到当前用户的用户身份和目标业务页面中的目标控件,若基于消息部件确定目标业务页面中存在选中的目标数据行,获取当前业务操作类型,接着基于当前用户的用户身份以及当前业务操作类型,在第一权限信息和第二权限信息中进行匹配,确定目标控件对应于目标数据行的目标使用权限,最后,终端101的目标业务页面上能够显示目标控件对应于目标数据行的目标使用权限,以便于当前用户能够基于该目标控件对目标数据行进行操作。For example, the terminal 101 can obtain first permission information and second permission information. The first permission information is used to indicate the corresponding relationship between the user identity and the user role, and the second permission information is used to indicate the business information and the use of controls in the business page. Corresponding relationship of permissions, business information includes user role, business operation type and business usage status of the control, and then obtains the target business page, which includes at least one data row, and parses the target business page to obtain the user of the current user For the target control in the identity and target business page, if it is determined based on the message component that there is a selected target data row in the target business page, the current business operation type is obtained, and then based on the user identity of the current user and the current business operation type, in the first permission information Match with the second permission information to determine the target usage permission of the target control corresponding to the target data row. Finally, the target usage permission of the target control corresponding to the target data row can be displayed on the target business page of the terminal 101, so that the current user can Operate the target data row based on the target control.
终端101可为笔记本电脑、台式计算机等,在此不再一一例举。The terminal 101 can be a laptop computer, a desktop computer, etc., and no examples are given here.
值得注意的是,控件权限的控制一般是web自己实现的,不会再与后端进行绑定交互。It is worth noting that the control of control permissions is generally implemented by the web itself and will not be bound and interacted with the backend.
对于业务页面中的控件权限的控制,当前实现方式主要有两种,第一种是直接通过disabled属性,对控件是否可用进行控制。这种方式,只能在业务量较小的系统使用。因为此时每个控件的权限,必须要写死在业务,相当于把微小的权限控制,放在了每个页面,后期维护是相当难的;第二种是通过公有配置校验控件,对具有相同操作方式的控件进行权限控制。其中,第二种方式绑定数据的方式是绑定动态数据,即根据动态数据的字段去确认控件是否可用,例如必须字段是开启状态,控件才可用。但是该动态数据是通过数据订阅的方式获取,即动态数据通过广播的方式获取,可见,订阅动态数据是直接从整个作用域,浏览某个消息的变化,不用看消息来源,但是需要从海量的内容中慢慢浏览。因此,该方式不仅导致大量的客户端内存被占用,而且还会降低控件权限的控制效率。There are currently two main implementation methods for controlling control permissions in business pages. The first is to directly control whether the control is available through the disabled attribute. This method can only be used in systems with small business volumes. Because at this time, the permissions of each control must be hard-coded in the business, which is equivalent to placing tiny permission controls on each page, and later maintenance is quite difficult; the second is to verify the control through public configuration, which is Controls with the same operating mode are used for permission control. Among them, the second way to bind data is to bind dynamic data, that is, to confirm whether the control is available based on the fields of the dynamic data. For example, the field must be turned on before the control is available. However, the dynamic data is obtained through data subscription, that is, the dynamic data is obtained through broadcasting. It can be seen that subscribing to dynamic data is to browse the changes of a message directly from the entire scope, without looking at the source of the message, but it needs to be obtained from a massive amount of Browse slowly through the content. Therefore, this method not only causes a large amount of client memory to be occupied, but also reduces the control efficiency of control permissions.
基于此,本发明实施例提供了一种控件权限的控制方法及其装置、计算机设备、存储介质,不仅能够减少对客户端内存的使用,还能够提高控件权限的控制效率。Based on this, embodiments of the present invention provide a method for controlling control permissions, a device, a computer device, and a storage medium, which can not only reduce the use of client memory, but also improve the control efficiency of control permissions.
根据本发明实施例,提供了一种控件权限的控制方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, an embodiment of a control authority control method is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and, Although a logical sequence is shown in the flowcharts, in some cases the steps shown or described may be performed in a sequence different from that herein.
在本实施例中提供了一种控件权限的控制方法,可用于上述终端。图2是根据本发明实施例的控件权限的控制方法的流程图,如图2所示,该流程包括如下步骤:This embodiment provides a method for controlling control permissions, which can be used in the above terminal. Figure 2 is a flow chart of a method for controlling control permissions according to an embodiment of the present invention. As shown in Figure 2, the process includes the following steps:
步骤S201,获取第一权限信息和第二权限信息。Step S201: Obtain first authority information and second authority information.
其中,第一权限信息用于指示用户身份与用户角色的对应关系,第二权限信息用于指示业务信息与业务页面中控件的使用权限的对应关系,业务信息包括用户角色、业务操作类型以及控件的业务使用状态。Among them, the first permission information is used to indicate the corresponding relationship between the user identity and the user role, and the second permission information is used to indicate the corresponding relationship between the business information and the usage permission of the controls in the business page. The business information includes user roles, business operation types and controls. business usage status.
具体的,每一个用户身份都具有一个唯一的用户角色,例如,用户身份可以是superuser(超级用户)、admin_user(普通用户),resource_user(资源用户)、readonly_user(只读用户)、device_user(设备用户)中的任意一种用户角色。每一个用户角色对应的控件的使用权限是不同的,同一个用户角色可以具有多种控件的使用权限。Specifically, each user identity has a unique user role. For example, the user identity can be superuser (super user), admin_user (ordinary user), resource_user (resource user), readonly_user (read-only user), device_user (device user). ). The usage rights of controls corresponding to each user role are different. The same user role can have the usage rights of multiple controls.
在一种可选的实现方式中,第一权限信息可以通过如下方式配置,即In an optional implementation, the first permission information can be configured in the following way, namely
export const buttonPermissionsOption={export const buttonPermissionsOption={
//设备发现。键名(业务模块):键值(用户角色)//Device discovery. Key name (business module): key value (user role)
pool:"super_user,root,admin_user"pool:"super_user,root,admin_user"
………………
}}
其中,pool代表存储池功能,super_user,admin_user代表存储池功能只有超级用户和普通用户使用。Among them, pool represents the storage pool function, super_user, and admin_user represent the storage pool function that can only be used by super users and ordinary users.
又如,第一权限信息通过如下方式配置,即For another example, the first permission information is configured in the following way, namely
export const buttonPermissionsOption={export const buttonPermissionsOption={
//设备发现。键名(业务模块):键值(用户角色)//Device discovery. Key name (business module): key value (user role)
pool:"super_user,root,admin_user,readonly user,resource user,device_user"pool:"super_user,root,admin_user,readonly user,resource user,device_user"
………………
}}
其中,pool代表存储池功能,super_user,root,admin_user,readonly user,resource user,device_user代表存储池功能可以由超级用户、普通用户、只读用户、资源用户以及设备用户使用。Among them, pool represents the storage pool function, super_user, root, admin_user, readonly user, resource user, and device_user represent the storage pool function that can be used by super users, ordinary users, read-only users, resource users, and device users.
在一些可选的实现方式中,第二权限信息为value|action|state|dynamicName,其中,value为用户角色,即当前用户的用户角色是否与第一权限信息中的用户角色匹配。action为业务操作类型,用户角色包括create、edit、delete和all,其中,create代表新建业务;edit代表编辑业务;delete代表删除业务;all代表不限制业务,也即皆可用。state为业务使用状态,当state为true,则代表控件为不可用状态;当state为false,则代表控件为可用状态。此处可能是开关影响控件的业务使用状态,例如业务操作类型为编辑业务,那么开启共享开关,即state为false,才能进行编辑,也可能为列值判断,例如存储池正常状态,才能进行缩容操作等。dynamicName为动态状态参数,该动态状态参数用于后续步骤消息部件中的目标数据行发生变化时使用,在此不再赘述。需要说明的是,动态状态参数的优先级高于业务使用状态的优先级,业务使用状态的优先级高于业务操作类型的优先级。In some optional implementations, the second permission information is value|action|state|dynamicName, where value is the user role, that is, whether the user role of the current user matches the user role in the first permission information. Action is a business operation type, and user roles include create, edit, delete, and all. Among them, create represents a new business; edit represents an editing business; delete represents a deletion of a business; and all represents unlimited business, that is, all are available. state is the business use state. When state is true, it means that the control is in an unavailable state; when state is false, it means that the control is in an available state. Here it may be that the switch affects the business usage status of the control. For example, the business operation type is editing business, then the sharing switch is turned on, that is, the state is false before editing can be performed. It may also be a column value judgment. For example, the storage pool is in a normal state before shrinking can be performed. Capacity operation, etc. dynamicName is a dynamic state parameter, which is used when the target data row in the message component changes in subsequent steps, and will not be described again here. It should be noted that the priority of dynamic status parameters is higher than the priority of business usage status, and the priority of business usage status is higher than the priority of business operation type.
示例性地,新建业务具体可以配置为let createStatus=ref(value:"pool|create");编辑业务具体可以配置为let editstatus=ref(value:"pool|edit");其中,编辑业务会自动关联数据行。For example, the new business can be specifically configured as let createStatus=ref(value:"pool|create"); the editing business can be specifically configured as let editstatus=ref(value:"pool|edit"); among which, the editing business will automatically Related data rows.
示例性地,业务使用状态可以通过函数let capInfoStatus=ref(value:"pool|edit|"+(deployType.indexof('san')<0))得到,其中,deployType为部署方式,因为deployType是已知,所以将deployType.indexof('san')<0的结果直接赋值给state。其中,deployType.indexof('san')<0)表示的是当前没有部署块业务,因此,status为true(即将true赋值给state),所以控件为不可用状态。For example, the business usage status can be obtained through the function let capInfoStatus=ref(value:"pool|edit|"+(deployType.indexof('san')<0)), where deployType is the deployment mode, because deployType is already You know, so the result of deployType.indexof('san')<0 is directly assigned to state. Among them, deployType.indexof('san')<0) means that there is currently no deployment block business. Therefore, status is true (that is, true is assigned to state), so the control is in an unavailable state.
示例性地,业务使用状态还可以通过函数let crushStatus=ref(value:"pool|edit|"+(poolSelectRow.value.status==4)+"|crushstatus|")得到,其中,poolSelectRow.value.status是个动态值,如果poolSelectRow.value.status是4,则代表存储池异常,就不能进行缩容,此时,poolSelectRow.value.status转换为true或者false,以此判断该控件是否可用。另外,因为只有在操作中选中了数据行,才可通过poolSelectRow.value.status判断控件是否可用,又因为state当前是动态变化的,因此,此时需要借助dynamicName,这里dynamicName命名“crushstatus”,在消息部件中的目标数据行发生变化时使用。For example, the service usage status can also be obtained through the function let crushStatus=ref(value:"pool|edit|"+(poolSelectRow.value.status==4)+"|crushstatus|"), where poolSelectRow.value. status is a dynamic value. If poolSelectRow.value.status is 4, it means that the storage pool is abnormal and cannot be reduced. At this time, poolSelectRow.value.status is converted to true or false to determine whether the control is available. In addition, because only when the data row is selected during the operation, poolSelectRow.value.status can be used to determine whether the control is available, and because the state is currently changing dynamically, you need to use dynamicName at this time. Here the dynamicName is named "crushstatus". Used when the target data row in the message part changes.
需要说明的是,消息部件中的目标数据行发生变化时,除了将数据行放到消息部件中(即store.selectRows),并且将crushstatus也要放到消息部件的状态容器(即store.state)里保存。It should be noted that when the target data row in the message component changes, in addition to placing the data row in the message component (i.e. store.selectRows), the crushstatus must also be placed in the status container of the message component (i.e. store.state) Save in.
步骤S202,获取目标业务页面。Step S202: Obtain the target business page.
当终端加载了目标业务页面,即可以获取目标业务页面,其中,目标业务页面中包括至少一个数据行,比如,如图3所示,目标业务页面中包括多个数据行,该数据行中包括名称、创建时间等信息。When the terminal loads the target business page, it can obtain the target business page, where the target business page includes at least one data row. For example, as shown in Figure 3, the target business page includes multiple data rows, and the data row includes Name, creation time and other information.
步骤S203,对目标业务页面进行解析,得到当前用户的用户身份和目标业务页面中的目标控件。Step S203: Parse the target business page to obtain the user identity of the current user and the target control in the target business page.
若当前用户登录了目标业务页面,或者当前用户在终端上加载了目标业务页面,即可对目标业务页面进行解析,得到当前用户的用户身份和目标业务页面中所有的目标控件。其中,目标控件即目标业务页面上的控件,比如,如图3所示的“删除”、“回滚”、“下刷”等控件。If the current user logs in to the target business page, or the current user loads the target business page on the terminal, the target business page can be parsed to obtain the user identity of the current user and all target controls in the target business page. Among them, the target control is the control on the target business page, such as "delete", "rollback", "swipe down" and other controls as shown in Figure 3.
在一些可选的实现方式中,可以调用v-permisson=“crushStatus”以将控件与目标业务页面进行绑定,即将let crushStatus=ref(value:"pool|edit|"+(poolSelectRow.value.status==4)+"|crushstatus|")的配置,传递给permission组件,通过permission组件对控件权限进行控制。In some optional implementations, you can call v-permisson="crushStatus" to bind the control to the target business page, that is, let crushStatus="ref(value:"pool|edit|"+(poolSelectRow.value.status ==4)+"|crushstatus|") configuration is passed to the permission component, and the control permissions are controlled through the permission component.
需要说明的是,只要控件绑定了v-permission,就代表着页面加载元素强制使用permission组件的统一控制逻辑。It should be noted that as long as the control is bound to v-permission, it means that the page loading element is forced to use the unified control logic of the permission component.
步骤S204,若基于消息部件确定目标业务页面中存在选中的目标数据行,获取当前业务操作类型。Step S204: If it is determined based on the message component that the selected target data row exists in the target business page, obtain the current business operation type.
示例性的,每次目标业务页面中存在选中的目标数据行,消息部件会使用store.selectRows方法对目标数据行进行捕获,并对目标数据行进行存储。For example, every time there is a selected target data row in the target business page, the message component will use the store.selectRows method to capture the target data row and store the target data row.
具体地,目标业务页面中,每次表格组件有数据行时,都将数据行中的数据内容赋值给指定数组,比如,将数据行中的数据内容放到store.selectRows中储存。Specifically, in the target business page, every time the table component has a data row, the data content in the data row is assigned to the specified array. For example, the data content in the data row is stored in store.selectRows.
其中,可以在permission组件内部调用消息部件的gridStoreHook.$subscribe(multation,store)判断目标业务页面中是否有数据行被选中,gridStoreHook是消息源,subscribe为订阅方法。若目标业务页面中有数据行被选中,比如,从没有数据行选中了一行数据行,或者从一行数据行选择了两行数据行,都会主动执行函数gridStoreHook.$subscribe(multation,store)。Among them, gridStoreHook.$subscribe(multation, store) of the message component can be called inside the permission component to determine whether there is a data row selected in the target business page. gridStoreHook is the message source, and subscribe is the subscription method. If a data row is selected in the target business page, for example, a data row is selected from no data row, or two data rows are selected from one data row, the function gridStoreHook.$subscribe(multation, store) will be actively executed.
步骤S205,基于当前用户的用户身份以及当前业务操作类型,在第一权限信息和第二权限信息中进行匹配,确定目标控件对应于目标数据行的目标使用权限。Step S205: Match the first permission information and the second permission information based on the user identity of the current user and the current business operation type to determine the target usage permission of the target control corresponding to the target data row.
其中,当前业务操作类型可以是全选目标业务页面中的数据行,或者选中多行数据行,或者选中某一行数据行等等,其中,被选中的数据行即目标数据行。The current business operation type may be to select all data rows in the target business page, or to select multiple data rows, or to select a certain data row, etc., where the selected data row is the target data row.
另外,通过将当前用户的用户身份与第一权限信息匹配,将当前用户的用户身份与第一权限信息匹配的结果以及当前业务操作类型与第二权限信息中进行匹配,可以确定目标控件对应于目标数据行的目标使用权限。In addition, by matching the user identity of the current user with the first permission information, matching the result of matching the user identity of the current user with the first permission information, and matching the current business operation type with the second permission information, it can be determined that the target control corresponds to Target usage rights for the target data row.
本实施例提供的控件权限的控制方法,通过设置消息部件,能够在获取第一权限信息、第二权限信息以及目标业务页面之后,利用消息部件捕获目标业务页面中被选中的目标数据行,然后获取当前业务操作类型,基于当前用户的用户身份以及当前业务操作类型,在第一权限信息和第二权限信息中进行匹配,确定目标控件对应于目标数据行的目标使用权限,而无需缓存大量的订阅数据,从大量的订阅数据中查找数据行,即是说,不用再监控所有业务作用域的数据变化,只需要监控受实际业务影响的有针对性的控件权限的状态变化,这不仅减少了对客户端内存的使用,同时还提高控件权限的控制效率。The control permission control method provided by this embodiment, by setting the message component, can use the message component to capture the selected target data row in the target business page after obtaining the first permission information, the second permission information and the target business page, and then Obtain the current business operation type, match the first permission information and the second permission information based on the current user's user identity and the current business operation type, and determine that the target control corresponds to the target usage permission of the target data row without the need to cache a large number of Subscription data, search for data rows from a large amount of subscription data, that is to say, you no longer need to monitor data changes in all business scopes, you only need to monitor the status changes of targeted control permissions affected by the actual business, which not only reduces The use of client memory also improves the control efficiency of control permissions.
在本实施例中提供了一种控件权限的控制方法,可用于上述的终端。图4是根据本发明实施例的控件权限的控制方法的流程图,如图4所示,该流程包括如下步骤:This embodiment provides a method for controlling control permissions, which can be used in the above-mentioned terminal. Figure 4 is a flow chart of a method for controlling control permissions according to an embodiment of the present invention. As shown in Figure 4, the process includes the following steps:
步骤S401,获取第一权限信息和第二权限信息。Step S401: Obtain first permission information and second permission information.
详细请参见图2所示实施例的步骤S201,在此不再赘述。For details, please refer to step S201 in the embodiment shown in Figure 2, which will not be described again here.
步骤S402,获取目标业务页面。Step S402: Obtain the target business page.
详细请参见图2所示实施例的步骤S202,在此不再赘述。Please refer to step S202 in the embodiment shown in Figure 2 for details, which will not be described again here.
步骤S403,对目标业务页面进行解析,得到当前用户的用户身份和目标业务页面中的目标控件。Step S403: Parse the target business page to obtain the user identity of the current user and the target control in the target business page.
详细请参见图2所示实施例的步骤S203,在此不再赘述。Please refer to step S203 in the embodiment shown in Figure 2 for details, which will not be described again here.
步骤S404,若基于消息部件确定目标业务页面中存在选中的目标数据行,获取当前业务操作类型。Step S404: If it is determined based on the message component that the selected target data row exists in the target business page, obtain the current business operation type.
详细请参见图2所示实施例的步骤S204,在此不再赘述。Please refer to step S204 in the embodiment shown in Figure 2 for details, which will not be described again here.
步骤S405,基于当前用户的用户身份以及当前业务操作类型,在第一权限信息和第二权限信息中进行匹配,确定目标控件对应于目标数据行的目标使用权限。Step S405: Based on the user identity of the current user and the current business operation type, match the first permission information and the second permission information to determine the target usage permission of the target control corresponding to the target data row.
具体地,上述步骤S405包括:Specifically, the above step S405 includes:
步骤S4051,将当前用户的用户身份与第一权限信息进行匹配。Step S4051: Match the user identity of the current user with the first permission information.
具体地,可以用_.includes(a,role)方法判断当前用户是否具有对于目标业务页面的业务操作权限,如果_.includes(a,role)返回的结果是true,代表当前用户具有该存储池(即目标业务页面)的业务操作权限,其中,a为用户身份,role为用户角色。通过_.includes(a,role)方法来判断第一权限信息中是否包含当前用户的用户角色。相反,如果_.includes(a,role)为false,表征匹配不成功,即当前用户不具有对于目标业务页面的业务操作权限。Specifically, you can use the _.includes(a,role) method to determine whether the current user has business operation permissions for the target business page. If the result returned by _.includes(a,role) is true, it means that the current user has the storage pool. (i.e. the target business page) business operation permissions, where a is the user identity and role is the user role. Use the _.includes(a,role) method to determine whether the first permission information contains the user role of the current user. On the contrary, if _.includes(a, role) is false, it means that the matching is unsuccessful, that is, the current user does not have business operation permissions for the target business page.
步骤S4052,若当前用户的用户身份与第一权限信息相匹配,得到当前用户的目标用户角色。Step S4052: If the user identity of the current user matches the first permission information, obtain the target user role of the current user.
将当前用户的用户身份与第一权限信息进行匹配,即将当前用户的用户身份与第一权限信息中的用户身份进行匹配,若当前用户的用户身份与第一权限信息中的某个用户身份相匹配时,可以基于第一权限信息中的用户身份在用户身份与用户角色的对应关系中查找到对应的目标用户角色。Match the user identity of the current user with the first authority information, that is, match the user identity of the current user with the user identity in the first authority information. If the user identity of the current user matches a user identity in the first authority information, When matching, the corresponding target user role can be found in the corresponding relationship between the user identity and the user role based on the user identity in the first permission information.
步骤S4053,将当前业务操作类型和目标用户角色与第二权限信息进行匹配,确定目标控件对应于目标数据行的目标使用权限。Step S4053: Match the current business operation type and the target user role with the second permission information to determine the target usage permission of the target control corresponding to the target data row.
当前业务操作类型可以为新建业务、编辑业务、删除业务或者不限制业务(即all),其中,编辑业务和删除业务均与目标数据行关联,新建业务和不限制业务可以与目标数据行无关。The current business operation type can be new business, edit business, delete business or unrestricted business (i.e. all). Among them, edit business and delete business are both associated with the target data row, while new business and unrestricted business may have nothing to do with the target data row.
在包括步骤S4051至步骤S4053的实施例中,通过将当前用户的用户身份与第一权限信息进行匹配,能够在当前用户的用户身份与第一权限信息相匹配时,得到当前用户的目标用户角色,再通过将当前业务操作类型和目标用户角色与第二权限信息进行匹配,能够确定目标控件对应于目标数据行的目标使用权限,由此实现了控件级权限的控制,与菜单级权限控制不冲突。而且该控件权限控制可以不受模块编码影响,具有低耦合性,易于在各angularjs系统中移植使用,具有较好的通用性。In the embodiment including steps S4051 to S4053, by matching the user identity of the current user with the first authority information, the target user role of the current user can be obtained when the user identity of the current user matches the first authority information. , and then by matching the current business operation type and target user role with the second permission information, it can be determined that the target control corresponds to the target usage permission of the target data row, thereby realizing control-level permission control, which is different from menu-level permission control. conflict. Moreover, the control permission control is not affected by module coding, has low coupling, is easy to transplant and use in various angularjs systems, and has good versatility.
在一些可选的实施方式中,第二权限信息中的业务操作类型包括第一业务操作类型,上述步骤S4053具体包括:In some optional implementations, the business operation type in the second permission information includes the first business operation type, and the above step S4053 specifically includes:
步骤a1,若目标用户角色与第二权限信息中的用户角色相匹配,且目标用户角色为预设用户角色,且当前业务操作类型与第一业务操作类型相匹配,确定第二权限信息中目标控件对应的业务使用状态。Step a1: If the target user role matches the user role in the second permission information, and the target user role is the preset user role, and the current business operation type matches the first business operation type, determine the target in the second permission information. The business usage status corresponding to the control.
其中,第一业务操作类型为不限制业务,预设用户角色为只读用户。确定第二权限信息中目标控件对应的业务使用状态的方式请参见图2所示实施例的步骤S201,在此不再赘述。Among them, the first business operation type is unrestricted business, and the default user role is read-only user. For the method of determining the service usage status corresponding to the target control in the second permission information, please refer to step S201 of the embodiment shown in Figure 2, which will not be described again here.
步骤a2,若目标控件对应的业务使用状态为可用状态,确定目标控件对应于目标数据行的目标使用权限为可用权限。Step a2: If the business usage status corresponding to the target control is the available status, determine that the target usage permission corresponding to the target data row of the target control is the available permission.
在一些可选的实施方式中,若目标用户角色与预设用户角色不匹配,且业务状态为可用状态,确定目标控件对应于目标数据行的目标使用权限为可用权限。In some optional implementations, if the target user role does not match the preset user role and the business status is the available status, it is determined that the target usage permission of the target control corresponding to the target data row is the available permission.
进一步地,在一些可选的实施方式中,当消息部件中的目标数据行发生变化,即消息部件捕获的选中的目标数据行发生变化时,可以对目标控件对应的权限配置参数进行解析,得到动态状态参数,其中,动态状态参数用于指示目标数据行发生变化,然后根据动态状态参数重新确定目标控件的业务使用状态,此时,可以将业务使用状态放入store.state中储存,最后根据业务使用状态,对目标控件对应于目标数据行的目标使用权限进行更新。Further, in some optional implementations, when the target data row in the message component changes, that is, when the selected target data row captured by the message component changes, the permission configuration parameters corresponding to the target control can be parsed to obtain Dynamic state parameters, where the dynamic state parameters are used to indicate changes in the target data row, and then re-determine the business usage status of the target control based on the dynamic status parameters. At this time, the business usage status can be stored in store.state, and finally based on Business usage status, update the target usage permission of the target control corresponding to the target data row.
具体地,当消息部件中的目标数据行发生变化,目标数据行会被放到消息部件中(即store.selectRows),对目标控件对应的权限配置参数进行解析,可以得到动态状态参数,因此,可以将crushstatus也要放到消息部件的状态容器(即store.state)里保存,因此,可以循环查询store.state内是否存在动态状态参数,当store.state内存在动态状态参数,可以取出动态状态参数对应的业务使用状态,此时,业务使用状态即为通过当前业务操作得到的最新状态,新得到的业务使用状态会覆盖初始化的业务使用状态,其中,业务使用状态可以直接控制着控件的显隐。Specifically, when the target data row in the message component changes, the target data row will be placed in the message component (i.e. store.selectRows). The permission configuration parameters corresponding to the target control are parsed to obtain the dynamic status parameters. Therefore, The crushstatus can also be saved in the state container of the message component (i.e. store.state). Therefore, you can loop to query whether there are dynamic state parameters in store.state. When there are dynamic state parameters in store.state, you can take out the dynamic state. The business usage status corresponding to the parameter. At this time, the business usage status is the latest status obtained through the current business operation. The newly obtained business usage status will overwrite the initialized business usage status. Among them, the business usage status can directly control the display of the control. hidden.
其中,可以在permission组件内部调用消息部件的gridStoreHook.$subscribe(multation,store)判断目标数据行是否发生变化,gridStoreHook是消息源,subscribe为订阅方法。若目标数据行发生变化,比如,从没有数据行选中了一行数据行,或者从一行数据行选择了两行数据行,都会主动执行函数gridStoreHook.$subscribe(multation,store)。Among them, gridStoreHook.$subscribe(multation, store) of the message component can be called inside the permission component to determine whether the target data row has changed. gridStoreHook is the message source, and subscribe is the subscription method. If the target data row changes, for example, a data row is selected from no data row, or two data rows are selected from one data row, the function gridStoreHook.$subscribe(multation, store) will be actively executed.
在一些可选的实施方式中,若基于消息部件确定目标业务页面中不存在选中的目标数据行,基于当前用户的用户身份、第一权限信息和第二权限信息确定目标控件的初始使用权限。In some optional implementations, if it is determined based on the message component that the selected target data row does not exist in the target business page, the initial usage permission of the target control is determined based on the current user's user identity, first permission information, and second permission information.
在一些可选的实施方式中,通过调用v-permisson=“crushStatus”,将pool解析成value(即用户角色),也即将第一权限信息中匹配到的目标用户角色解析成第二权限信息中的用户角色;将字符edit解析成action(即业务操作类型),即将当前业务操作类型解析成第二权限信息中的业务操作类型,主要作用是确定是否关联数据行;将crushStatus的判断结果解析成state(即业务使用状态),即传递过来的业务使用状态。如果上述解析的项不存在,那么自动将业务使用状态转化为false处理,state为false即目标控件为可用状态。In some optional implementations, by calling v-permisson="crushStatus", the pool is parsed into value (i.e. user role), that is, the target user role matched in the first permission information is parsed into the second permission information. user role; parse the character edit into action (i.e. business operation type), that is, parse the current business operation type into the business operation type in the second permission information. The main function is to determine whether the data row is associated; parse the judgment result of crushStatus into state (that is, business usage status), that is, the business usage status passed over. If the above parsed item does not exist, the business usage status is automatically converted to false for processing. If the state is false, the target control is available.
进一步地,如果v-permission没有值,该目标控件的目标使用权限为可用权限,即目标控件置亮。Furthermore, if v-permission has no value, the target usage permission of the target control is the available permission, that is, the target control is lit.
另外,通过将字符edit解析成action,可以判断当前业务操作类型是否关联数据行,比如,若action为创建业务或者不限制业务,那么可以判断当前业务操作类型未关联数据行。In addition, by parsing the character edit into action, it can be determined whether the current business operation type is associated with a data row. For example, if the action is to create a business or not restrict a business, then it can be determined that the current business operation type is not associated with a data row.
在一些可选的实施方式中,基于当前用户的用户身份、第一权限信息和第二权限信息确定目标控件的初始使用权限,具体可以是将当前用户的用户身份与第一权限信息进行匹配,若当前用户的用户身份与第一权限信息相匹配,得到当前用户的目标用户角色,最后将目标用户角色与第二权限信息进行匹配,确定目标控件的初始使用权限。In some optional implementations, the initial usage permissions of the target control are determined based on the current user's user identity, first permission information, and second permission information. Specifically, the user identity of the current user can be matched with the first permission information, If the user identity of the current user matches the first permission information, the target user role of the current user is obtained. Finally, the target user role is matched with the second permission information to determine the initial usage permission of the target control.
比如,若当前用户的用户身份与第一权限信息不匹配,确定目标控件的初始使用权限为不可用权限。For example, if the user identity of the current user does not match the first permission information, determine that the initial usage permission of the target control is an unavailable permission.
进一步地,若目标用户角色与第二权限信息匹配,则需要通过当前业务操作类型以及目标控件对应的业务使用状态进行目标控件的初始使用权限的确定。Further, if the target user role matches the second permission information, the initial usage permission of the target control needs to be determined based on the current business operation type and the business usage status corresponding to the target control.
在一些可选的实现方式中,在目标业务页面中没有数据行被选中时,目标控件的初始使用权限还可以通过很多种方式确定,比如,第二权限信息中的业务操作类型还包括第二业务操作类型,若当前业务操作类型与第二业务操作类型或者第一业务操作类型不匹配,和/或者目标控件对应的业务使用状态为不可用状态,该目标控件的初始使用权限为不可用权限,其中,第二业务操作类型为创建业务;又如,若当前业务操作类型与第二业务操作类型匹配,且当前用户的用户身份为只读用户,该目标控件的初始使用权限为不可用权限,即目标控件渲染成灰色。In some optional implementations, when no data row is selected in the target business page, the initial usage permission of the target control can also be determined in many ways. For example, the business operation type in the second permission information also includes the second Business operation type. If the current business operation type does not match the second business operation type or the first business operation type, and/or the business usage status corresponding to the target control is unavailable, the initial use permission of the target control is unavailable permission. , where the second business operation type is create business; for another example, if the current business operation type matches the second business operation type, and the user identity of the current user is a read-only user, the initial usage permission of the target control is unavailable permission , that is, the target control is rendered gray.
可以理解的是,本申请实施例中的第一权限信息和第二权限信息可以另行配置,业务内部控件权限自行管控;控件权限的逻辑内部处理、数据行订阅机制等实现组件化可完全通用;另外,本申请实施例中的状态变化监控的机制处理,让控件能够随业务场景的实际值进行变化,可以无论应用场景多复杂,都可以通用。It can be understood that the first permission information and the second permission information in the embodiment of this application can be configured separately, and the internal control permissions of the business can be controlled by themselves; the logical internal processing of control permissions, the data row subscription mechanism, etc. can be implemented as components and can be fully universal; In addition, the status change monitoring mechanism processing in the embodiment of the present application allows the control to change with the actual value of the business scenario, and can be used universally no matter how complex the application scenario is.
为了更加清楚的说明对控件权限进行控制的过程,下面以具体的示例进行说明。In order to explain more clearly the process of controlling control permissions, a specific example is used to illustrate below.
参照图5,首先,当前用户在目标业务页面上进行页面操作,然后基于消息部件确定目标业务页面中存在选中的目标数据行,即订阅了目标数据行,可以将目标数据行存储至数据存储单元,此时,可以对目标业务页面上的目标控件进行权限解析,即解析目标控件的业务信息(即用户角色、业务操作类型以及控件的业务使用状态),在对目标控件进行解析之前需要配置第一权限信息和第二权限信息。解析完目标控件之后,需要将目标控件与控制组件(即permission组件)绑定,将目标控件与预设函数v-permission关联,然后通过控制组件基于当前用户的用户身份以及当前业务操作类型,在第一权限信息和第二权限信息中进行匹配,确定目标控件对应于目标数据行的目标使用权限,即将用户身份与第一权限信息进行角色匹配,若当前用户的用户身份与第一权限信息相匹配,得到当前用户的目标用户角色,将当前业务操作类型和目标用户角色与第二权限信息进行匹配,若目标用户角色与第二权限信息中的用户角色相匹配,且目标用户角色为预设用户角色,且当前业务操作类型与第一业务操作类型相匹配,确定第二权限信息中目标控件对应的业务使用状态,若目标控件对应的业务使用状态为可用状态,则进行控件权限处理,即确定目标控件对应于目标数据行的目标使用权限为可用权限,最后,将该控件的使用权限通过渲染的形式反馈到业务页面进行显示。Referring to Figure 5, first, the current user performs page operations on the target business page, and then determines based on the message component that the selected target data row exists in the target business page, that is, the target data row is subscribed, and the target data row can be stored in the data storage unit , at this time, you can perform permission parsing on the target control on the target business page, that is, parse the business information of the target control (ie, user role, business operation type, and business usage status of the control). Before parsing the target control, you need to configure the third First authority information and second authority information. After parsing the target control, you need to bind the target control to the control component (ie, permission component), associate the target control with the preset function v-permission, and then use the control component based on the user identity of the current user and the current business operation type. Match the first permission information and the second permission information to determine that the target control corresponds to the target usage permission of the target data row, that is, match the user identity with the first permission information. If the user identity of the current user matches the first permission information, Match, obtain the target user role of the current user, and match the current business operation type and target user role with the second permission information. If the target user role matches the user role in the second permission information, and the target user role is default User role, and the current business operation type matches the first business operation type, determine the business usage status corresponding to the target control in the second permission information, if the business usage status corresponding to the target control is available, perform control permission processing, that is It is determined that the target usage permission of the target control corresponding to the target data row is the available permission. Finally, the usage permission of the control is fed back to the business page for display in the form of rendering.
参照图6,本申请的一个实施例还提供了一种控件权限的控制装置,包括:Referring to Figure 6, one embodiment of the present application also provides a control device for control permissions, including:
第一获取模块601,用于获取第一权限信息和第二权限信息,第一权限信息用于指示用户身份与用户角色的对应关系,第二权限信息用于指示业务信息与业务页面中控件的使用权限的对应关系,业务信息包括用户角色、业务操作类型以及控件的业务使用状态;The first acquisition module 601 is used to obtain the first permission information and the second permission information. The first permission information is used to indicate the corresponding relationship between the user identity and the user role, and the second permission information is used to indicate the relationship between the business information and the controls in the business page. Correspondence of usage rights, business information includes user role, business operation type and business usage status of the control;
第二获取模块602,用于获取目标业务页面,目标业务页面中包括至少一个数据行;The second acquisition module 602 is used to acquire the target business page, which includes at least one data row;
解析模块603,用于对目标业务页面进行解析,得到当前用户的用户身份和目标业务页面中的目标控件;The parsing module 603 is used to parse the target business page and obtain the user identity of the current user and the target control in the target business page;
第三获取模块604,用于若基于消息部件确定目标业务页面中存在选中的目标数据行,获取当前业务操作类型;The third acquisition module 604 is used to acquire the current business operation type if it is determined based on the message component that there is a selected target data row in the target business page;
第一使用权限确定模块605,用于基于当前用户的用户身份以及当前业务操作类型,在第一权限信息和第二权限信息中进行匹配,确定目标控件对应于目标数据行的目标使用权限。The first usage permission determination module 605 is configured to match the first permission information and the second permission information based on the user identity of the current user and the current business operation type, and determine the target usage permission of the target control corresponding to the target data row.
在一些可选的实施方式中,第一使用权限确定模块605具体包括:In some optional implementations, the first usage rights determination module 605 specifically includes:
第一匹配子模块,用于将当前用户的用户身份与第一权限信息进行匹配;The first matching sub-module is used to match the user identity of the current user with the first permission information;
第一用户角色确定子模块,用于若当前用户的用户身份与第一权限信息相匹配,得到当前用户的目标用户角色;The first user role determination submodule is used to obtain the target user role of the current user if the user identity of the current user matches the first permission information;
第一使用权限确定子模块,用于将当前业务操作类型和目标用户角色与第二权限信息进行匹配,确定目标控件对应于目标数据行的目标使用权限。The first usage permission determination sub-module is used to match the current business operation type and target user role with the second permission information, and determine the target usage permission of the target control corresponding to the target data row.
在一些可选的实施方式中,第二权限信息中的业务操作类型包括第一业务操作类型,使用权限确定子模块具体包括:In some optional implementations, the business operation type in the second permission information includes the first business operation type, and the usage permission determination submodule specifically includes:
业务使用状态确定单元,用于若目标用户角色与第二权限信息中的用户角色相匹配,且目标用户角色为预设用户角色,且当前业务操作类型与第一业务操作类型相匹配,确定第二权限信息中目标控件对应的业务使用状态;The business usage status determination unit is configured to determine the first business operation type if the target user role matches the user role in the second permission information, and the target user role is a preset user role, and the current business operation type matches the first business operation type. 2. The business usage status corresponding to the target control in the permission information;
使用权限确定单元,用于若目标控件对应的业务使用状态为可用状态,确定目标控件对应于目标数据行的目标使用权限为可用权限。The usage permission determination unit is used to determine that the target usage permission corresponding to the target data row of the target control is the available permission if the business usage status corresponding to the target control is available.
在一些可选的实施方式中,控件权限的控制装置还包括:In some optional implementations, the control permission control device also includes:
第二使用权限确定模块,用于若目标用户角色与预设用户角色不匹配,且业务使用状态为可用状态,确定目标控件对应于目标数据行的目标使用权限为可用权限。The second usage permission determination module is used to determine that the target usage permission of the target control corresponding to the target data row is the available permission if the target user role does not match the preset user role and the business usage status is available.
在一些可选的实施方式中,当消息部件中的目标数据行发生变化,控件权限的控制装置还包括:In some optional implementations, when the target data row in the message component changes, the control permission control device also includes:
动态状态参数确实模块,用于对目标控件对应的权限配置参数进行解析,得到动态状态参数,动态状态参数用于指示目标数据行发生变化;The dynamic state parameter confirmation module is used to parse the permission configuration parameters corresponding to the target control to obtain dynamic state parameters. The dynamic state parameters are used to indicate changes in the target data row;
业务使用状态确定模块,用于根据动态状态参数重新确定目标控件的业务使用状态;The business usage status determination module is used to re-determine the business usage status of the target control based on dynamic status parameters;
更新模块,用于根据业务使用状态,对目标控件对应于目标数据行的目标使用权限进行更新。The update module is used to update the target usage rights of the target control corresponding to the target data row according to the business usage status.
在一些可选的实施方式中,控件权限的控制装置还包括:In some optional implementations, the control permission control device also includes:
第三使用权限确定模块,用于若基于消息部件确定目标业务页面中不存在选中的目标数据行,基于当前用户的用户身份、第一权限信息和第二权限信息确定目标控件的初始使用权限。The third usage permission determination module is used to determine the initial usage permission of the target control based on the current user's user identity, first permission information and second permission information if it is determined based on the message component that the selected target data row does not exist in the target business page.
在一些可选的实施方式中,第三使用权限确定模块具体包括:In some optional implementations, the third usage rights determination module specifically includes:
第二匹配子模块,用于将当前用户的用户身份与第一权限信息进行匹配;The second matching sub-module is used to match the user identity of the current user with the first permission information;
第二用户角色确定子模块,用于若当前用户的用户身份与第一权限信息相匹配,得到当前用户的目标用户角色;The second user role determination submodule is used to obtain the target user role of the current user if the user identity of the current user matches the first permission information;
第二使用权限确定子模块,用于将目标用户角色与第二权限信息进行匹配,确定目标控件的初始使用权限。The second usage permission determination sub-module is used to match the target user role with the second permission information and determine the initial usage permission of the target control.
在一些可选的实施方式中,业务使用状态确定单元具体包括:In some optional implementations, the service usage status determination unit specifically includes:
业务使用状态确定子单元,用于基于函数let crushStatus=ref(value:"pool|edit|"+(poolSelectRow.value.Status==4)+"|crushstatus|"),确定所述第二权限信息中所述目标控件对应的所述业务使用状态。The service usage status determination subunit is used to determine the second permission information based on the function let crushStatus=ref(value:"pool|edit|"+(poolSelectRow.value.Status==4)+"|crushstatus|") The service usage status corresponding to the target control in .
上述控件权限的控制装置与控件权限的控制方法基于相同的发明构思,通过设置消息部件,能够在获取第一权限信息、第二权限信息以及目标业务页面之后,利用消息部件捕获目标业务页面中被选中的目标数据行,然后获取当前业务操作类型,基于当前用户的用户身份以及当前业务操作类型,在第一权限信息和第二权限信息中进行匹配,确定目标控件对应于目标数据行的目标使用权限,而无需缓存大量的订阅数据,从大量的订阅数据中查找数据行,这不仅减少了对客户端内存的使用,同时还提高控件权限的控制效率。The above-mentioned control device for controlling permissions and the method for controlling control permissions are based on the same inventive concept. By setting the message component, after obtaining the first permission information, the second permission information and the target business page, the message component can be used to capture the target business page. Select the target data row, and then obtain the current business operation type. Based on the user identity of the current user and the current business operation type, match the first permission information and the second permission information to determine the target use of the target control corresponding to the target data row. Permissions are obtained without the need to cache a large amount of subscription data and to find data rows from a large amount of subscription data. This not only reduces the use of client memory, but also improves the control efficiency of control permissions.
本实施例中的控件权限的控制装置是以功能模块的形式来呈现,这里的模块是指专用集成电路(Application Specific Integrated Circuit,简称ASIC),执行一个或多个软件或固定程序的处理器和存储器,和/或其他可以提供上述功能的器件。The control device for control authority in this embodiment is presented in the form of a functional module. The module here refers to an Application Specific Integrated Circuit (ASIC for short), a processor and a processor that executes one or more software or fixed programs. memory, and/or other devices that can provide the above functions.
上述各个模块和单元的更进一步的功能描述与上述对应实施例相同,在此不再赘述。Further functional descriptions of the above-mentioned modules and units are the same as those in the above-mentioned corresponding embodiments, and will not be described again here.
本发明实施例还提供一种计算机设备,具有上述图6所示的控件权限的控制装置。An embodiment of the present invention also provides a computer device having a control device with the control authority shown in FIG. 6 .
请参阅图7,图7是本发明可选实施例提供的一种计算机设备的结构示意图,如图7所示,该计算机设备包括:一个或多个处理器10、存储器20,以及用于连接各部件的接口,包括高速接口和低速接口。各个部件利用不同的总线互相通信连接,并且可以被安装在公共主板上或者根据需要以其它方式安装。处理器可以对在计算机设备内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在一些可选的实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可以连接多个计算机设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图7中以一个处理器10为例。Please refer to Figure 7. Figure 7 is a schematic structural diagram of a computer device provided by an optional embodiment of the present invention. As shown in Figure 7, the computer device includes: one or more processors 10, a memory 20, and a device for connecting The interfaces of each component include high-speed interfaces and low-speed interfaces. Various components communicate with each other using different buses and can be installed on a common motherboard or in other ways as needed. The processor may process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative implementations, multiple processors and/or multiple buses may be used with multiple memories and multiple memories, if desired. Likewise, multiple computer devices may be connected, each device providing part of the necessary operation (eg, as a server array, a set of blade servers, or a multi-processor system). Figure 7 takes a processor 10 as an example.
处理器10可以是中央处理器,网络处理器或其组合。其中,处理器10还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路,可编程逻辑器件或其组合。上述可编程逻辑器件可以是复杂可编程逻辑器件,现场可编程逻辑门阵列,通用阵列逻辑或其任意组合。The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The above-mentioned hardware chip can be an application-specific integrated circuit, a programmable logic device or a combination thereof. The above-mentioned programmable logic device may be a complex programmable logic device, a field programmable logic gate array, a general array logic or any combination thereof.
其中,存储器20存储有可由至少一个处理器10执行的指令,以使至少一个处理器10执行实现上述实施例示出的方法。The memory 20 stores instructions that can be executed by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
存储器20可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据一种小程序落地页的展现的计算机设备的使用所创建的数据等。此外,存储器20可以包括高速随机存取存储器,还可以包括非瞬时存储器,例如至少一个磁盘存储器件、闪存器件、或其他非瞬时固态存储器件。在一些可选的实施方式中,存储器20可选包括相对于处理器10远程设置的存储器,这些远程存储器可以通过网络连接至该计算机设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 20 may include a stored program area and a stored data area, wherein the stored program area may store an operating system and an application program required for at least one function; the stored data area may store the use of the computer device according to the presentation of a small program landing page. The data created etc. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some optional implementations, the memory 20 may optionally include memories remotely located relative to the processor 10 , and these remote memories may be connected to the computer device through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
存储器20可以包括易失性存储器,例如,随机存取存储器;存储器也可以包括非易失性存储器,例如,快闪存储器,硬盘或固态硬盘;存储器20还可以包括上述种类的存储器的组合。The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memories.
该计算机设备还包括通信接口30,用于该计算机设备与其他设备或通信网络通信。The computer device also includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
本发明实施例还提供了一种计算机可读存储介质,上述根据本发明实施例的方法可在硬件、固件中实现,或者被实现为可记录在存储介质,或者被实现通过网络下载的原始存储在远程存储介质或非暂时机器可读存储介质中并将被存储在本地存储介质中的计算机代码,从而在此描述的方法可被存储在使用通用计算机、专用处理器或者可编程或专用硬件的存储介质上的这样的软件处理。其中,存储介质可为磁碟、光盘、只读存储记忆体、随机存储记忆体、快闪存储器、硬盘或固态硬盘等;进一步地,存储介质还可以包括上述种类的存储器的组合。可以理解,计算机、处理器、微处理器控制器或可编程硬件包括可存储或接收软件或计算机代码的存储组件,当软件或计算机代码被计算机、处理器或硬件访问且执行时,实现上述实施例示出的方法。Embodiments of the present invention also provide a computer-readable storage medium. The above-mentioned method according to the embodiment of the present invention can be implemented in hardware or firmware, or can be recorded in a storage medium, or can be implemented as original storage downloaded through the network. Computer code in a remote storage medium or a non-transitory machine-readable storage medium and to be stored in a local storage medium such that the methods described herein may be stored on a computer using a general purpose computer, a special purpose processor, or programmable or special purpose hardware Such software processing on storage media. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk or a solid state drive, etc.; further, the storage medium may also include a combination of the above types of memories. It can be understood that a computer, processor, microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by the computer, processor or hardware, the above implementations are implemented. The method illustrated.
虽然结合附图描述了本发明的实施例,但是本领域技术人员可以在不脱离本发明的精神和范围的情况下做出各种修改和变型,这样的修改和变型均落入由所附权利要求所限定的范围之内。Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the appended rights. within the scope of the requirements.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311183123.9A CN117195181A (en) | 2023-09-13 | 2023-09-13 | Control authority control method and device, computer equipment, storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311183123.9A CN117195181A (en) | 2023-09-13 | 2023-09-13 | Control authority control method and device, computer equipment, storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117195181A true CN117195181A (en) | 2023-12-08 |
Family
ID=88986613
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311183123.9A Pending CN117195181A (en) | 2023-09-13 | 2023-09-13 | Control authority control method and device, computer equipment, storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117195181A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119071450A (en) * | 2024-10-09 | 2024-12-03 | 深圳市臻火科技有限公司 | Projector control method, device, medium and electronic device based on user identity |
-
2023
- 2023-09-13 CN CN202311183123.9A patent/CN117195181A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119071450A (en) * | 2024-10-09 | 2024-12-03 | 深圳市臻火科技有限公司 | Projector control method, device, medium and electronic device based on user identity |
CN119071450B (en) * | 2024-10-09 | 2025-02-11 | 深圳市臻火科技有限公司 | Projector control method, device, medium and electronic device based on user identity |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10812566B2 (en) | Distributed steam processing | |
CN108829459B (en) | Nginx server-based configuration method and device, computer equipment and storage medium | |
US10037430B2 (en) | System and method for controlling the on and off state of features of business logic at runtime | |
CN102571940A (en) | Remote application installation system, method, intelligent terminal and application server | |
US9483493B2 (en) | Method and system for accessing a distributed file system | |
CN110673920A (en) | Internationalization processing method and device, computer equipment and storage medium | |
CN111064626B (en) | Configuration updating method, device, server and readable storage medium | |
CN111274191A (en) | Method for managing ceph cluster and cloud local storage coordinator | |
CN117195181A (en) | Control authority control method and device, computer equipment, storage medium | |
CN110781137A (en) | Directory reading method and device for distributed system, server and storage medium | |
CN109445966B (en) | Event processing method, device, medium and computing equipment | |
CN113726581B (en) | Method and device for restoring factory configuration of network equipment and network equipment | |
CN115774700A (en) | File sharing method and device, computer equipment and storage medium | |
CN109756484B (en) | Object storage-based gateway control method, control device, gateway and medium | |
CN109165078B (en) | Virtual distributed server and access method thereof | |
WO2024251107A1 (en) | Container orchestration method, data access method, and electronic device and storage medium | |
CN110659035A (en) | Method and device for batch mounting of mirror images based on BMC | |
CN118488069A (en) | A cloud phone hot start method and cloud phone management platform | |
CN113422791B (en) | Cloud service configuration method and device, electronic equipment and computer readable storage medium | |
CN114070889B (en) | Configuration method, traffic forwarding device, storage medium, and program product | |
US11449512B2 (en) | Value help functionality in distributed cloud environment | |
CN117992074A (en) | Data processing method, device and storage medium | |
CN117319476A (en) | Implementation method, service end, application capability end and system of multi-system terminal | |
CN112835527A (en) | Expansion method and device based on MINIO cloud storage and electronic equipment | |
CN119089434B (en) | Authority data processing method, system and storage 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 |