WO2021042525A1 - Tab page permission synchronous updating method, apparatus and device, and storage medium - Google Patents
Tab page permission synchronous updating method, apparatus and device, and storage medium Download PDFInfo
- Publication number
- WO2021042525A1 WO2021042525A1 PCT/CN2019/117207 CN2019117207W WO2021042525A1 WO 2021042525 A1 WO2021042525 A1 WO 2021042525A1 CN 2019117207 W CN2019117207 W CN 2019117207W WO 2021042525 A1 WO2021042525 A1 WO 2021042525A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- tab page
- target
- hidden
- tab
- permission
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
Definitions
- This application relates to the technical field of function optimization, and in particular to a method, device, device, and readable storage medium for synchronously updating tab page permissions.
- the main purpose of this application is to provide a method, device, device, and readable storage medium for synchronizing and updating tab page permissions, aiming to solve the problem of error reporting when reloading related tab pages that the user has opened before due to permission changes, which affects users Experienced technical issues.
- this application provides a method for synchronously updating tab page permissions.
- the method includes the following steps:
- the hidden authority parameter is adjusted to be consistent with the target authority parameter.
- the step before the step of obtaining the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page when the permission setting operation acting on the target tab page is received, the step includes:
- the target tab page is loaded according to the selection instruction.
- the step of obtaining the hidden authority parameter corresponding to the hidden tab page related to the target tab page includes:
- the hidden tab page related to the target tab page is determined, and the hidden authority parameter corresponding to the hidden tab page is read from a preset database.
- the step of determining a hidden tab page related to the target tab page includes:
- the invisible tab page among the other tab pages is determined as the hidden tab page related to the target tab page.
- the step of determining a hidden tab page related to the target tab page includes:
- the hidden tab page whose address contains the address of the main server is determined as the hidden tab page related to the target tab page.
- the method for synchronously updating tab page permissions further includes:
- the hidden authority parameter is adjusted to be consistent with the authority parameter corresponding to the secondary authority setting operation.
- the present application also provides a tab page authority synchronization update device, and the tab page authority synchronization update device includes:
- the obtaining module is used to obtain the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page when the permission setting operation acting on the target tab page is received;
- the comparison module is configured to obtain the hidden authority parameter corresponding to the hidden tab page related to the target tab page, and compare the hidden authority parameter with the target authority parameter;
- the adjustment module is configured to adjust the hidden authority parameter to be consistent with the target authority parameter if the hidden authority parameter is inconsistent with the target authority parameter.
- the present application also provides a tab page permission synchronization update device.
- the tab page permission synchronization update device includes a processor, a memory, and a device stored in the memory and executable by the processor.
- a tab page permission synchronization update program wherein when the tab page permission synchronization update program is executed by the processor, the steps of the above tab page permission synchronization update method are implemented.
- the present application also provides a readable storage medium, the readable storage medium stores a tab page permission synchronization update program, where the tab page permission synchronization update program is executed by the processor. Steps of the method of synchronization update of tab page permissions as described above.
- This application provides a method, device, device, and readable storage medium for synchronizing and updating tab page permissions.
- this application obtains the permission parameters corresponding to the permission setting operation as the target tab page Corresponding target authority parameters; then obtain the hidden authority parameters corresponding to the hidden tab page related to the target tab page, and compare the hidden authority parameters with the target authority parameters of the target tab page; if the hidden authority parameters are inconsistent with the target authority parameters, then Adjust the hidden authority parameter to be consistent with the target authority parameter, and realize the synchronization of the user's newly set authority on the target tab page to the hidden tab page related to the target tab page.
- the hidden tab page can be refreshed based on the latest permissions of the hidden tab page to realize the normal loading of the hidden tab page, avoid error reporting when reloading the hidden tab page due to permission changes, and improve the user experience.
- FIG. 1 is a schematic diagram of the hardware structure of a tab page permission synchronization update device involved in each embodiment of the application;
- FIG. 2 is a schematic flowchart of the first embodiment of the method for synchronously updating the permissions of the tab page of the application
- FIG. 3 is a schematic diagram of the functional modules of the first embodiment of an apparatus for synchronously updating tab page permissions of this application.
- the method for synchronously updating tab page permissions involved in the embodiments of this application is mainly applied to a device for synchronously updating tab page permissions.
- the device for synchronously updating tab page permissions may be a PC (personal computer computer), portable computers and other devices with display and processing functions.
- FIG. 1 is a schematic diagram of the hardware structure of the tab page permission synchronization update device involved in the solution of the embodiment of the application.
- the device for synchronously updating tab page permissions may include a processor 1001 (for example, the central processing unit Central Processing Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005.
- the communication bus 1002 is used to realize the connection and communication between these components;
- the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard);
- the network interface 1004 may optionally include a standard wired interface, a wireless interface (Such as WI-FI interface);
- the memory 1005 can be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory.
- the memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
- the hardware structure shown in FIG. 1 does not constitute a limitation to the present application, and may include more or less components than those shown in the figure, or a combination of certain components, or different component arrangements.
- the memory 1005 as a readable storage medium in FIG. 1 may include an operating system, a network communication module, and a tab page permission synchronization update program.
- the network communication module is mainly used to connect to the server and perform data communication with the server; and the processor 1001 can call the tab page permission synchronization update program stored in the memory 1005, and execute the tab page permission synchronization provided by the embodiment of this application Update method.
- the embodiment of the present application provides a method for synchronously updating tab page permissions.
- FIG. 2 is a schematic flowchart of a first embodiment of a method for synchronously updating tab page permissions of this application.
- the tab page permission synchronization update method is implemented by a tab page permission synchronization update device.
- the tab page permission synchronization update device can be a terminal device such as a PC, a handheld computer, and a tablet computer, and the device shown in Figure 1 can be selected.
- the method of synchronously updating the tab page permissions includes the following steps:
- Step S10 when receiving the permission setting operation acting on the target tab page, obtain the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page;
- step S10 it further includes the step of loading the target tab page. Specifically, before step S10, it includes: loading the target tab page according to the selection instruction when a selection instruction acting on the tab label is received.
- a website homepage or business system will be equipped with multiple tab labels.
- the tab labels are usually circular controls. Users only need to click, hover, and double-click on the tab label options, and the website or business system can load or Jump to the corresponding tab page, you can preset the mapping relationship between each page link and the corresponding tab label (one-to-one), so as to build a link list in advance based on the mapping relationship between each page link and the corresponding tab label. Therefore, when receiving a user's selection instruction acting on the tab label, query the link list, and determine the link corresponding to the tab label corresponding to the selection instruction according to the mapping relationship between the page link and the tab label in the link list, and then load the link The corresponding page (defined as the target tab page).
- the permission setting operations include login, authorization, role selection, etc.
- the authority parameter is related to the authority setting operation.
- the authority parameter includes a user name, a password, a user identity, and the authority corresponding to the user identity.
- the authority parameters are saved in a preset database, which can be a cache, a local disk, or a cloud platform storage space.
- the user gradually opens the tab page through Taobao.com, if he needs to collect or purchase related products, he needs to log in. After logging in, he will change from the tourist identity before logging in to the Taobao user, so the corresponding login permission parameters It also becomes the user's username, the identity (buyer/seller) corresponding to the username, the corresponding level, and can further include the user's location information.
- Step S20 Obtain the hidden authority parameter corresponding to the hidden tab page related to the target tab page, and compare the hidden authority parameter with the target authority parameter;
- the step of obtaining the hidden authority parameter corresponding to the hidden tab page related to the target tab page includes: determining the hidden tab page related to the target tab page, and reading the hidden tab page from a preset database The corresponding hidden permission parameter.
- the previously opened tab pages are all in a hidden state.
- the number of hidden tab pages related to the target tab page can be 0 or more than 1, if the number of related hidden tab pages is not 0, the number of hidden tab pages is read from the preset database
- the permission parameter corresponding to the relevant hidden tab page (defined as the hidden permission parameter), and then the hidden permission parameter corresponding to the relevant hidden tab page is compared with the target permission parameter of the target tab page.
- step S30 if the hidden authority parameter is inconsistent with the target authority parameter, the hidden authority parameter is adjusted to be consistent with the target authority parameter.
- the relevant hidden tab page After comparing the hidden authority parameters corresponding to the relevant hidden tab page with the target authority parameters of the target tab page, if the hidden authority parameter corresponding to the relevant hidden tab page is inconsistent with the target authority parameter of the target tab page, the relevant hidden tab page will be hidden The corresponding hidden authority parameter is adjusted to be consistent with the target authority parameter of the target tab page. As a result, all hidden tab pages related to the target tab page can obtain the latest permissions set by the user.
- the hidden tab page can be refreshed based on the latest permission of the related hidden tab page to realize the normal operation of the related hidden tab page load.
- the method further includes:
- Step S101 when a switch operation instruction acting on a tab label is detected, jump to a new target tab page corresponding to the switch operation instruction, and set the authority parameter of the new target tab page to be the same as the target authority parameter Unanimous.
- the tab page switching instruction to switch from the target tab page to another
- the related tab page is opened (defined as the new target tab page)
- jump to the new target tab page and set the permission parameters of the new target tab page to be consistent with the target permission parameters of the target tab page, making the new target tab page Continue the permissions of the target tab page, so that all subsequent related tab pages opened for the first time are given the user's newly set permissions.
- This embodiment provides a method for synchronously updating tab page permissions.
- the permission parameter corresponding to the permission setting operation is obtained as the target permission parameter corresponding to the target tab page; then the permission parameter corresponding to the target tab page is obtained;
- the hidden permission parameter corresponding to the hidden tab page related to the tab page compare the hidden permission parameter with the target permission parameter of the target tab page; if the hidden permission parameter is inconsistent with the target permission parameter, adjust the hidden permission parameter to the target permission parameter Consistent, the user's newly set permissions on the target tab page are synchronized to the hidden tab page related to the target tab page, then when the user triggers the instruction to open the hidden tab page again, the latest permissions can be based on the hidden tab page Refresh the hidden tab page to realize the normal loading of the hidden tab page, avoid error reporting when reloading the hidden tab page due to permission changes, and improve the user experience.
- a second embodiment of the method for synchronously updating tab page permissions of the present application is proposed.
- the difference from the foregoing embodiment is that the step of determining a hidden tab page includes:
- the invisible tab page among the other tab pages is determined as the hidden tab page related to the target tab page.
- the visibilitychange event is a new API provided by HTML5, whose function is to record the activation status of the current tab page in the browser.
- the tabs are used. When browsing in this way, any given page may be in the background, so it is not visible to the user.
- the page visibility api provides events that developers can observe in order to know when the page is visible or hidden, and to view the current visibility status of the page.
- the visibilitychange event is a web page status viewing event that can be added in the browser. This event is triggered when a certain tab of the browser is switched to the background or switched from the background to the foreground. Now mainstream browsers support visibility Change events, such as Chrome, Firefox, IE10, etc.
- the visibilitychange event can be used to filter out hidden tab pages from multiple tab pages in the business system.
- a third embodiment of the method for synchronously updating tab page permissions of the present application is proposed.
- the difference from the foregoing embodiment is that the step of determining a hidden tab page includes:
- the hidden tab page whose address contains the address of the main server is determined as the hidden tab page related to the target tab page.
- This embodiment is suitable for browsing web pages through a browser. Considering that the user has opened web pages of multiple websites in the browser, some of the opened web pages are not related to the target tab page. Therefore, it is detected that the user is in the target tab page. After the permission setting operation is performed on the page, the main page of the target tab page can be obtained, and according to the relevant information of the main page, such as the main server address, the target tab page can be filtered from the hidden tab page according to the main server address of the target tab page For the related tab page, taking the webpage where the target tab page is Taobao.com as an example, the hidden tab pages including taobao.com in the address bar are filtered as hidden tab pages related to the target tab page.
- a fourth embodiment of the method for synchronously updating tab page permissions of this application is proposed.
- the difference from the foregoing embodiment is that the method further includes:
- the hidden authority parameter is adjusted to be consistent with the authority parameter corresponding to the secondary authority setting operation.
- the hidden tab page related to the target tab page is given the permission corresponding to the secondary permission setting operation, specifically, the permission parameter corresponding to the secondary permission setting operation is obtained , And then compare the hidden authority parameters of the related hidden tab page with the authority parameters corresponding to the secondary authority setting operation. If the hidden authority parameters of the related hidden tab page are inconsistent with the authority parameters corresponding to the secondary authority setting operation, the relevant hidden authority parameters will be hidden.
- the hidden authority parameter of the tab page is adjusted to be consistent with the authority parameter corresponding to the secondary authority setting operation, so that the relevant hidden tab page always obtains the latest authority. Taking the login operation as an example, the user performs the second login operation on the target tab page.
- the first user name that was previously logged in will be automatically logged out in the related hidden tab page, and the The permission parameters of the related hidden tab page are updated to update all the permissions corresponding to the first user name to the permissions corresponding to the second user name.
- the embodiment of the present application also provides an apparatus for synchronously updating tab page permissions.
- FIG. 3 is a schematic diagram of the functional modules of the first embodiment of the apparatus for synchronously updating tab page permissions of this application.
- the device for synchronously updating tab page permissions includes:
- the obtaining module 10 is configured to obtain the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page when the permission setting operation acting on the target tab page is received;
- the comparison module 20 is configured to obtain the hidden authority parameter corresponding to the hidden tab page related to the target tab page, and compare the hidden authority parameter with the target authority parameter;
- the adjustment module 30 is configured to adjust the hidden authority parameter to be consistent with the target authority parameter if the hidden authority parameter is inconsistent with the target authority parameter.
- each virtual function module of the above tab page permission synchronization update device is stored in the memory 1005 of the tab page permission synchronization update device shown in FIG. 1, and is used to implement all the functions of the tab page permission synchronization update program; each module is used by the processor 1001 During execution, the user's newly set permissions on the target tab page are synchronized to the hidden tab page related to the target tab page. Then when the user triggers the instruction to open the hidden tab page again, it can be based on the latest hidden tab page The permission refreshes the hidden tab page to realize the normal loading of the hidden tab page, avoiding error reporting when reloading the hidden tab page due to permission changes, and improving the user experience.
- the device for synchronously updating tab page permissions further includes:
- the loading module loads the target tab page according to the selection instruction when receiving the selection instruction acting on the tab label.
- the first obtaining module 10 includes:
- the reading unit is configured to determine a hidden tab page related to the target tab page, and read the hidden authority parameter corresponding to the hidden tab page from a preset database.
- the reading unit includes:
- the first obtaining subunit is used to view events through the preset visibilitychange page status, and obtain the visibility of other tab pages except the target tab page;
- the first screening subunit is used to determine the invisible tab pages in the other tab pages as hidden tab pages related to the target tab page.
- the reading unit includes:
- the second obtaining subunit is used to obtain the main server address corresponding to the target tab page
- the second screening subunit is used to determine the hidden tab page whose address contains the address of the main server as the hidden tab page related to the target tab page.
- the device for synchronously updating tab page permissions further includes:
- the jump module is used to jump to the new target tab page corresponding to the switch operation instruction when the switch operation instruction acting on the tab label is detected, and adjust the authority parameter of the new target tab page to be the same as the The target permission parameters are the same.
- the acquiring module is further configured to, if a secondary authority setting operation acting on the target tab page is received, acquiring the authority parameter corresponding to the secondary authority setting operation;
- the comparison module is also used to compare the hidden authority parameter with the authority parameter corresponding to the secondary authority setting operation;
- the adjustment module is further configured to adjust the hidden authority parameter to be consistent with the authority parameter corresponding to the secondary authority setting operation if the hidden authority parameter is inconsistent with the authority parameter corresponding to the secondary authority setting operation .
- each module in the above tab page permission synchronization update device corresponds to each step in the above tab page permission synchronization update method embodiment, and its functions and implementation processes will not be repeated here.
- the embodiment of the present application also provides a readable storage medium.
- the computer-readable storage medium may be a non-volatile readable storage medium.
- the readable storage medium of the present application stores a tab page permission synchronization update program, wherein when the tab page permission synchronization update program is executed by a processor, the steps of the above tab page permission synchronization update method are implemented.
- the method implemented when the tab page permission synchronization update program is executed can refer to the various embodiments of the tab page permission synchronization update method of this application, which will not be repeated here.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Data Mining & Analysis (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Provided are a tab page permission synchronous updating method, apparatus and device, and a readable storage medium, belonging to the technical field of function optimization. The method comprises: when a permission setting operation acting on a target tab page is received, acquiring a permission parameter corresponding to the permission setting operation to serve as a target permission parameter corresponding to the target tab page (S10); when a switching operation instruction acting on a tab tag is detected, skipping to a new target tab page corresponding to the switching operation instruction, and adjusting a permission parameter of the new target tab page to be consistent with the target permission parameter (S101); acquiring a hidden permission parameter corresponding to a hidden tab page related to the target tab page, and comparing the hidden permission parameter with the target permission parameter (S20); and if the hidden permission parameter is inconsistent with the target permission parameter, adjusting the hidden permission parameter to be consistent with the target permission parameter (S30). According to the method, the problem of erroneous reporting occurring when a related hidden tab page is reloaded due to a change in permissions can be avoided, thereby improving the user experience.
Description
本申请要求于2019年9月6日提交中国专利局、申请号为201910845693.7、发明名称为“发票开具方法、装置、设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910845693.7, and the invention title is "Invoice Issuing Method, Apparatus, Equipment, and Computer-readable Storage Medium" on September 6, 2019. The entire content of the application is approved The reference is incorporated in the application.
技术领域Technical field
本申请涉及功能优化技术领域,尤其涉及一种tab页权限同步更新方法、装置、设备及可读存储介质。This application relates to the technical field of function optimization, and in particular to a method, device, device, and readable storage medium for synchronously updating tab page permissions.
背景技术Background technique
目前,用户浏览网页或业务系统(比如处理业务的线上系统)时,可以通过该网页或业务系统提供的tab标签依次打开多个tab页,但是若用户在某个tab页进行角色更换等权限更新操作后,那么用户再次打开之前打开过的相关tab页时,由于该相关tab页仍保留原权限允许呈现的内容,与用户重新设置的权限不符,导致该相关tab页被重新加载时出现报错问题,用户体验较差。At present, when a user browses a web page or business system (such as an online system that handles business), he can open multiple tab pages in turn through the tab tab provided by the web page or business system, but if the user has the authority to change roles on a tab page After the update operation, when the user reopens the related tab page that was previously opened, the related tab page still retains the content allowed by the original permissions, which does not match the user's reset permissions, resulting in an error when the related tab page is reloaded The problem is that the user experience is poor.
发明内容Summary of the invention
本申请的主要目的在于提供一种tab页权限同步更新方法、装置、设备及可读存储介质,旨在解决因权限更改,导致重新加载用户之前打开过的相关tab页时出现报错问题,影响用户体验的技术问题。The main purpose of this application is to provide a method, device, device, and readable storage medium for synchronizing and updating tab page permissions, aiming to solve the problem of error reporting when reloading related tab pages that the user has opened before due to permission changes, which affects users Experienced technical issues.
为实现上述目的,本申请提供一种tab页权限同步更新方法,所述方法包括以下步骤:In order to achieve the above-mentioned purpose, this application provides a method for synchronously updating tab page permissions. The method includes the following steps:
在接收到作用于目标tab页的权限设置操作时,获取所述权限设置操作对应的权限参数,作为所述目标tab页对应的目标权限参数;When receiving the permission setting operation that acts on the target tab page, obtain the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page;
在检测到作用于tab标签的切换操作指令时,跳转至所述切换操作指令对应的新目标tab页,并将所述新目标tab页的权限参数调整为与所述目标权限参数一致;When a switch operation instruction acting on a tab label is detected, jump to a new target tab page corresponding to the switch operation instruction, and adjust the authority parameter of the new target tab page to be consistent with the target authority parameter;
获取与所述目标tab页相关的隐藏tab页对应的隐藏权限参数,将所述隐藏权限参数与所述目标权限参数进行比对;Acquiring a hidden authority parameter corresponding to a hidden tab page related to the target tab page, and comparing the hidden authority parameter with the target authority parameter;
若所述隐藏权限参数与所述目标权限参数不一致,则将所述隐藏权限参数调整为与所述目标权限参数一致。If the hidden authority parameter is inconsistent with the target authority parameter, the hidden authority parameter is adjusted to be consistent with the target authority parameter.
可选地,所述在接收到作用于目标tab页的权限设置操作时,获取所述权限设置操作对应的权限参数,作为所述目标tab页对应的目标权限参数的步骤之前,包括:Optionally, before the step of obtaining the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page when the permission setting operation acting on the target tab page is received, the step includes:
在接收到作用于tab标签的选择指令时,根据所述选择指令加载目标tab页。When a selection instruction acting on the tab label is received, the target tab page is loaded according to the selection instruction.
可选地,所述获取与所述目标tab页相关的隐藏tab页对应的隐藏权限参数的步骤包括:Optionally, the step of obtaining the hidden authority parameter corresponding to the hidden tab page related to the target tab page includes:
确定与所述目标tab页相关的隐藏tab页,从预设数据库中读取所述隐藏tab页对应的隐藏权限参数。The hidden tab page related to the target tab page is determined, and the hidden authority parameter corresponding to the hidden tab page is read from a preset database.
可选地,所述确定与所述目标tab页相关的隐藏tab页的步骤包括:Optionally, the step of determining a hidden tab page related to the target tab page includes:
通过预设visibilitychange页面状态查看事件,获取除所述目标tab页之外的其他tab页的可见性;Obtain the visibility of other tab pages other than the target tab page by viewing events in the preset visibilitychange page status;
将所述其他tab页中不可见的tab页确定为与所述目标tab页相关的隐藏tab页。The invisible tab page among the other tab pages is determined as the hidden tab page related to the target tab page.
可选地,所述确定与所述目标tab页相关的隐藏tab页的步骤包括:Optionally, the step of determining a hidden tab page related to the target tab page includes:
获取所述目标tab页对应的主服务器地址;Obtaining the address of the main server corresponding to the target tab page;
将地址中包含所述主服务器地址的隐藏tab页确定为与所述目标tab页相关的隐藏tab页。The hidden tab page whose address contains the address of the main server is determined as the hidden tab page related to the target tab page.
可选地,所述tab页权限同步更新方法还包括:Optionally, the method for synchronously updating tab page permissions further includes:
若接收到作用于所述目标tab页的二次权限设置操作,则获取所述二次权限设置操作对应的权限参数;If a secondary permission setting operation acting on the target tab page is received, the permission parameter corresponding to the secondary permission setting operation is acquired;
将所述隐藏权限参数与所述二次权限设置操作对应的权限参数进行比对;Comparing the hidden authority parameter with the authority parameter corresponding to the secondary authority setting operation;
若所述隐藏权限参数与所述二次权限设置操作对应的权限参数不一致,则将所述隐藏权限参数调整为与所述二次权限设置操作对应的权限参数一致。If the hidden authority parameter is inconsistent with the authority parameter corresponding to the secondary authority setting operation, the hidden authority parameter is adjusted to be consistent with the authority parameter corresponding to the secondary authority setting operation.
此外,为实现上述目的,本申请还提供一种tab页权限同步更新装置,所述tab页权限同步更新装置包括:In addition, in order to achieve the above-mentioned purpose, the present application also provides a tab page authority synchronization update device, and the tab page authority synchronization update device includes:
获取模块,用于在接收到作用于目标tab页的权限设置操作时,获取所述权限设置操作对应的权限参数,作为所述目标tab页对应的目标权限参数;The obtaining module is used to obtain the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page when the permission setting operation acting on the target tab page is received;
比对模块,用于获取与所述目标tab页相关的隐藏tab页对应的隐藏权限参数,将所述隐藏权限参数与所述目标权限参数进行比对;The comparison module is configured to obtain the hidden authority parameter corresponding to the hidden tab page related to the target tab page, and compare the hidden authority parameter with the target authority parameter;
调整模块,用于若所述隐藏权限参数与所述目标权限参数不一致,则将所述隐藏权限参数调整为与所述目标权限参数一致。The adjustment module is configured to adjust the hidden authority parameter to be consistent with the target authority parameter if the hidden authority parameter is inconsistent with the target authority parameter.
此外,为实现上述目的,本申请还提供一种tab页权限同步更新设备,所述tab页权限同步更新设备包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的tab页权限同步更新程序,其中所述tab页权限同步更新程序被所述处理器执行时,实现如上述的tab页权限同步更新方法的步骤。In addition, in order to achieve the above object, the present application also provides a tab page permission synchronization update device. The tab page permission synchronization update device includes a processor, a memory, and a device stored in the memory and executable by the processor. A tab page permission synchronization update program, wherein when the tab page permission synchronization update program is executed by the processor, the steps of the above tab page permission synchronization update method are implemented.
此外,为实现上述目的,本申请还提供一种可读存储介质,所述可读存储介质上存储有tab页权限同步更新程序,其中所述tab页权限同步更新程序被处理器执行时,实现如上述的tab页权限同步更新方法的步骤。In addition, in order to achieve the above-mentioned object, the present application also provides a readable storage medium, the readable storage medium stores a tab page permission synchronization update program, where the tab page permission synchronization update program is executed by the processor. Steps of the method of synchronization update of tab page permissions as described above.
本申请提供一种tab页权限同步更新方法、装置、设备及可读存储介质,本申请在接收到作用于目标tab页的权限设置操作时,获取权限设置操作对应的权限参数,作为目标tab页对应的目标权限参数;然后获取与目标tab页相关的隐藏tab页对应的隐藏权限参数,将隐藏权限参数与目标tab页的目标权限参数进行比对;如果隐藏权限参数与目标权限参数不一致,则将隐藏权限参数调整为与目标权限参数一致,实现了将用户在目标tab页最新设置的权限同步至与目标tab页相关的隐藏tab页,那么当用户再次触发打开该隐藏tab页的指令时,即可基于该隐藏tab页最新的权限对该隐藏tab页进行刷新,实现该隐藏tab页的正常加载,避免因权限更改导致重新加载该隐藏tab页时出现报错问题,提升了用户体验。This application provides a method, device, device, and readable storage medium for synchronizing and updating tab page permissions. When receiving a permission setting operation that acts on a target tab page, this application obtains the permission parameters corresponding to the permission setting operation as the target tab page Corresponding target authority parameters; then obtain the hidden authority parameters corresponding to the hidden tab page related to the target tab page, and compare the hidden authority parameters with the target authority parameters of the target tab page; if the hidden authority parameters are inconsistent with the target authority parameters, then Adjust the hidden authority parameter to be consistent with the target authority parameter, and realize the synchronization of the user's newly set authority on the target tab page to the hidden tab page related to the target tab page. Then when the user triggers the instruction to open the hidden tab page again, The hidden tab page can be refreshed based on the latest permissions of the hidden tab page to realize the normal loading of the hidden tab page, avoid error reporting when reloading the hidden tab page due to permission changes, and improve the user experience.
附图说明Description of the drawings
图1为本申请各实施例涉及的tab页权限同步更新设备的硬件结构示意图;FIG. 1 is a schematic diagram of the hardware structure of a tab page permission synchronization update device involved in each embodiment of the application;
图2为本申请tab页权限同步更新方法第一实施例的流程示意图;FIG. 2 is a schematic flowchart of the first embodiment of the method for synchronously updating the permissions of the tab page of the application; FIG.
图3为本申请tab页权限同步更新装置第一实施例的功能模块示意图。FIG. 3 is a schematic diagram of the functional modules of the first embodiment of an apparatus for synchronously updating tab page permissions of this application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics, and advantages of the purpose of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the application, and not used to limit the application.
本申请实施例涉及的tab页权限同步更新方法主要应用于tab页权限同步更新设备,该tab页权限同步更新设备可以是PC(个人计算机personal
computer)、便携计算机等具有显示和处理功能的设备。The method for synchronously updating tab page permissions involved in the embodiments of this application is mainly applied to a device for synchronously updating tab page permissions. The device for synchronously updating tab page permissions may be a PC (personal computer
computer), portable computers and other devices with display and processing functions.
参照图1,图1为本申请实施例方案中涉及的tab页权限同步更新设备的硬件结构示意图。本申请实施例中,tab页权限同步更新设备可以包括处理器1001(例如中央处理器Central
Processing
Unit、CPU),通信总线1002,用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信;用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard);网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口);存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile
memory),例如磁盘存储器,存储器1005可选的还可以是独立于前述处理器1001的存储装置。本领域技术人员可以理解,图1中示出的硬件结构并不构成对本申请的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Referring to FIG. 1, FIG. 1 is a schematic diagram of the hardware structure of the tab page permission synchronization update device involved in the solution of the embodiment of the application. In the embodiment of the present application, the device for synchronously updating tab page permissions may include a processor 1001 (for example, the central processing unit Central
Processing
Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components; the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (Such as WI-FI interface); the memory 1005 can be a high-speed RAM memory or a stable memory (non-volatile
memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001. Those skilled in the art can understand that the hardware structure shown in FIG. 1 does not constitute a limitation to the present application, and may include more or less components than those shown in the figure, or a combination of certain components, or different component arrangements.
继续参照图1,图1中作为一种可读存储介质的存储器1005可以包括操作系统、网络通信模块以及tab页权限同步更新程序。在图1中,网络通信模块主要用于连接服务器,与服务器进行数据通信;而处理器1001可以调用存储器1005中存储的tab页权限同步更新程序,并执行本申请实施例提供的tab页权限同步更新方法。Continuing to refer to FIG. 1, the memory 1005 as a readable storage medium in FIG. 1 may include an operating system, a network communication module, and a tab page permission synchronization update program. In FIG. 1, the network communication module is mainly used to connect to the server and perform data communication with the server; and the processor 1001 can call the tab page permission synchronization update program stored in the memory 1005, and execute the tab page permission synchronization provided by the embodiment of this application Update method.
本申请实施例提供了一种tab页权限同步更新方法。The embodiment of the present application provides a method for synchronously updating tab page permissions.
参照图2,图2为本申请tab页权限同步更新方法第一实施例的流程示意图。Referring to FIG. 2, FIG. 2 is a schematic flowchart of a first embodiment of a method for synchronously updating tab page permissions of this application.
本实施例中,该tab页权限同步更新方法由tab页权限同步更新设备实现,该tab页权限同步更新设备可以是PC、掌上电脑和平板电脑等终端设备,可选为图1所示的设备,该tab页权限同步更新方法包括以下步骤:In this embodiment, the tab page permission synchronization update method is implemented by a tab page permission synchronization update device. The tab page permission synchronization update device can be a terminal device such as a PC, a handheld computer, and a tablet computer, and the device shown in Figure 1 can be selected. , The method of synchronously updating the tab page permissions includes the following steps:
步骤S10,在接收到作用于目标tab页的权限设置操作时,获取所述权限设置操作对应的权限参数,作为所述目标tab页对应的目标权限参数;Step S10, when receiving the permission setting operation acting on the target tab page, obtain the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page;
在本实施例中,步骤S10之前还包括加载目标tab页的步骤,具体地,步骤S10之前,包括:在接收到作用于tab标签的选择指令时,根据所述选择指令加载目标tab页。In this embodiment, before step S10, it further includes the step of loading the target tab page. Specifically, before step S10, it includes: loading the target tab page according to the selection instruction when a selection instruction acting on the tab label is received.
一般地,网站主页或业务系统会配置多个tab标签,tab标签通常为圆形控件,用户只需要对tab标签选项进行单击、悬停、双击等选中操作,网站或业务系统即可加载或跳转至相应的tab页,可以预先设置各页面链接与相应tab标签的映射关系(一对一),从而基于各页面链接与相应tab标签的映射关系,预先建立链接列表。由此,当接收到用户作用于tab标签的选择指令时,查询链接列表,根据链接列表中页面链接与tab标签的映射关系,确定选择指令对应的tab标签所对应的链接,即可加载该链接对应的页面(定义为目标tab页)。Generally, a website homepage or business system will be equipped with multiple tab labels. The tab labels are usually circular controls. Users only need to click, hover, and double-click on the tab label options, and the website or business system can load or Jump to the corresponding tab page, you can preset the mapping relationship between each page link and the corresponding tab label (one-to-one), so as to build a link list in advance based on the mapping relationship between each page link and the corresponding tab label. Therefore, when receiving a user's selection instruction acting on the tab label, query the link list, and determine the link corresponding to the tab label corresponding to the selection instruction according to the mapping relationship between the page link and the tab label in the link list, and then load the link The corresponding page (defined as the target tab page).
当用户打开目标tab页之后,可以在目标tab页进行权限设置操作,权限设置操作包括登录、授权、角色选择等,例如用户打开目标tab页后,可以在目标tab页提供的登录入口进行登录,登录成功后即可获得与登录身份对应的操作权限。权限参数与权限设置操作相关,例如对于登录操作,则权限参数包括用户名、密码、用户身份以及与该用户身份对应的权限。将权限参数保存至预设数据库中,该预设数据库可以是缓存、本地磁盘、云平台存储空间。例如,若用户通过淘宝网,逐步打开tab页后,若需要收藏、购买相关商品,则需要进行登录操作,在登录后,从登录前的游客身份变成了淘宝用户,因而对应的登录权限参数也变成了用户的用户名,该用户名对应的身份(买家/卖家),对应的等级,还可以进一步包括用户的位置信息。When the user opens the target tab page, he can perform permission setting operations on the target tab page. The permission setting operations include login, authorization, role selection, etc. For example, after the user opens the target tab page, he can log in at the login entry provided by the target tab page. After successful login, you can obtain the operation authority corresponding to the login identity. The authority parameter is related to the authority setting operation. For example, for a login operation, the authority parameter includes a user name, a password, a user identity, and the authority corresponding to the user identity. The authority parameters are saved in a preset database, which can be a cache, a local disk, or a cloud platform storage space. For example, if the user gradually opens the tab page through Taobao.com, if he needs to collect or purchase related products, he needs to log in. After logging in, he will change from the tourist identity before logging in to the Taobao user, so the corresponding login permission parameters It also becomes the user's username, the identity (buyer/seller) corresponding to the username, the corresponding level, and can further include the user's location information.
步骤S20,获取与所述目标tab页相关的隐藏tab页对应的隐藏权限参数,将所述隐藏权限参数与所述目标权限参数进行比对;Step S20: Obtain the hidden authority parameter corresponding to the hidden tab page related to the target tab page, and compare the hidden authority parameter with the target authority parameter;
其中,所述获取与所述目标tab页相关的隐藏tab页对应的隐藏权限参数的步骤包括:确定与所述目标tab页相关的隐藏tab页,从预设数据库中读取所述隐藏tab页对应的隐藏权限参数。Wherein, the step of obtaining the hidden authority parameter corresponding to the hidden tab page related to the target tab page includes: determining the hidden tab page related to the target tab page, and reading the hidden tab page from a preset database The corresponding hidden permission parameter.
可以理解地,由于用户可以先后打开多个tab页,故先前打开的tab页均处于隐藏状态,将先前打开的tab页定义为隐藏tab页,需先确定与目标tab页相关的隐藏tab页(对应同一个主页),可以理解地,与目标tab页相关的隐藏tab页的数量可以是0个或1个以上,如果相关隐藏tab页的数量不是0个,则从预设数据库中读取该相关隐藏tab页对应的权限参数(定义为隐藏权限参数),然后将该相关隐藏tab页对应的隐藏权限参数与目标tab页的目标权限参数进行比对。Understandably, since the user can open multiple tab pages one after another, the previously opened tab pages are all in a hidden state. To define the previously opened tab page as a hidden tab page, you must first determine the hidden tab page related to the target tab page ( Corresponding to the same homepage), understandably, the number of hidden tab pages related to the target tab page can be 0 or more than 1, if the number of related hidden tab pages is not 0, the number of hidden tab pages is read from the preset database The permission parameter corresponding to the relevant hidden tab page (defined as the hidden permission parameter), and then the hidden permission parameter corresponding to the relevant hidden tab page is compared with the target permission parameter of the target tab page.
步骤S30,若所述隐藏权限参数与所述目标权限参数不一致,则将所述隐藏权限参数调整为与所述目标权限参数一致。In step S30, if the hidden authority parameter is inconsistent with the target authority parameter, the hidden authority parameter is adjusted to be consistent with the target authority parameter.
将与相关隐藏tab页对应的隐藏权限参数与目标tab页的目标权限参数进行比对之后,如果相关隐藏tab页对应的隐藏权限参数与目标tab页的目标权限参数不一致,则将相关隐藏tab页对应的隐藏权限参数调整为与目标tab页的目标权限参数一致,由此,所有与目标tab页相关的隐藏tab页均可获得用户最新设置的权限,当用户选中与相关隐藏tab页对应的Tab标签,触发再次打开相关隐藏tab页的指令时,在重新加载该相关隐藏tab页时,即可基于该相关隐藏tab页最新的权限对该隐藏tab页进行刷新,实现该相关隐藏tab页的正常加载。After comparing the hidden authority parameters corresponding to the relevant hidden tab page with the target authority parameters of the target tab page, if the hidden authority parameter corresponding to the relevant hidden tab page is inconsistent with the target authority parameter of the target tab page, the relevant hidden tab page will be hidden The corresponding hidden authority parameter is adjusted to be consistent with the target authority parameter of the target tab page. As a result, all hidden tab pages related to the target tab page can obtain the latest permissions set by the user. When the user selects the tab corresponding to the relevant hidden tab page Tab, when the instruction to open the related hidden tab page is triggered again, when the related hidden tab page is reloaded, the hidden tab page can be refreshed based on the latest permission of the related hidden tab page to realize the normal operation of the related hidden tab page load.
进一步地,所述在接收到作用于目标tab页的权限设置操作时,获取所述权限设置操作对应的权限参数,作为所述目标tab页对应的目标权限参数的步骤之后,还包括:Further, after the step of obtaining the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page when the permission setting operation acting on the target tab page is received, the method further includes:
步骤S101,在检测到作用于tab标签的切换操作指令时,跳转至所述切换操作指令对应的新目标tab页,并将所述新目标tab页的权限参数设置为与所述目标权限参数一致。Step S101, when a switch operation instruction acting on a tab label is detected, jump to a new target tab page corresponding to the switch operation instruction, and set the authority parameter of the new target tab page to be the same as the target authority parameter Unanimous.
即,如果在检测到用户在目标tab页进行了权限设置操作之后,又检测到用户操作未打开过的相关tab页对应的tab标签触发tab页切换指令,以从目标tab页切换至另一未打开过的相关tab页时(定义为新目标tab页),跳转至新目标tab页,同时将新目标tab页的权限参数设置为与目标tab页的目标权限参数一致,使得新目标tab页延续目标tab页的权限,如此,为后续所有第一次打开的相关tab页赋予用户最新设置的权限。That is, if after detecting that the user has performed the permission setting operation on the target tab page, it is detected that the tab label corresponding to the relevant tab page that has not been opened by the user operation triggers the tab page switching instruction to switch from the target tab page to another When the related tab page is opened (defined as the new target tab page), jump to the new target tab page, and set the permission parameters of the new target tab page to be consistent with the target permission parameters of the target tab page, making the new target tab page Continue the permissions of the target tab page, so that all subsequent related tab pages opened for the first time are given the user's newly set permissions.
本实施例提供一种tab页权限同步更新方法,在接收到作用于目标tab页的权限设置操作时,获取权限设置操作对应的权限参数,作为目标tab页对应的目标权限参数;然后获取与目标tab页相关的隐藏tab页对应的隐藏权限参数,将隐藏权限参数与目标tab页的目标权限参数进行比对;如果隐藏权限参数与目标权限参数不一致,则将隐藏权限参数调整为与目标权限参数一致,实现了将用户在目标tab页最新设置的权限同步至与目标tab页相关的隐藏tab页,那么当用户再次触发打开该隐藏tab页的指令时,即可基于该隐藏tab页最新的权限对该隐藏tab页进行刷新,实现该隐藏tab页的正常加载,避免因权限更改导致重新加载该隐藏tab页时出现报错问题,提升了用户体验。This embodiment provides a method for synchronously updating tab page permissions. When a permission setting operation acting on a target tab page is received, the permission parameter corresponding to the permission setting operation is obtained as the target permission parameter corresponding to the target tab page; then the permission parameter corresponding to the target tab page is obtained; The hidden permission parameter corresponding to the hidden tab page related to the tab page, compare the hidden permission parameter with the target permission parameter of the target tab page; if the hidden permission parameter is inconsistent with the target permission parameter, adjust the hidden permission parameter to the target permission parameter Consistent, the user's newly set permissions on the target tab page are synchronized to the hidden tab page related to the target tab page, then when the user triggers the instruction to open the hidden tab page again, the latest permissions can be based on the hidden tab page Refresh the hidden tab page to realize the normal loading of the hidden tab page, avoid error reporting when reloading the hidden tab page due to permission changes, and improve the user experience.
进一步地,基于上述第一实施例,提出了本申请tab页权限同步更新方法的第二实施例,与前述实施例的区别在于,所述确定隐藏tab页的步骤包括:Further, based on the foregoing first embodiment, a second embodiment of the method for synchronously updating tab page permissions of the present application is proposed. The difference from the foregoing embodiment is that the step of determining a hidden tab page includes:
通过预设visibilitychange页面状态查看事件,获取除所述目标tab页之外的其他tab页的可见性;Obtain the visibility of other tab pages other than the target tab page by viewing events in the preset visibilitychange page status;
将所述其他tab页中不可见的tab页确定为与所述目标tab页相关的隐藏tab页。The invisible tab page among the other tab pages is determined as the hidden tab page related to the target tab page.
在本实施例适用于通过浏览器访问业务系统的场景。业务系统的多个tab页只与业务系统相关,那么只需通过visibilitychange(页面状态查看)事件,从业务系统的多个tab页中筛选出隐藏tab页。具体地,visibilitychange事件是HTML5新提供的一个api,作用是记录当前tab页在浏览器中的激活状态。平时在PC端浏览页面的时候,使用的都是选项卡这种方式,使用这种方式浏览,任何给定页面都有可能在后台,因此对用户不可见。页面可见性api提供了开发者可以观察的事件,以便了解页面何时可见或隐藏,以及查看页面当前可见性状态的功能。visibilitychange事件是可在浏览器中添加的一个网页状态查看事件,当浏览器的某个标签页切换到后台,或从后台切换到前台时就会触发该事件,现在主流的浏览器都支持visibility
change事件,例如Chrome, Firefox, IE10等。In this embodiment, it is applicable to a scenario where a business system is accessed through a browser. The multiple tab pages of the business system are only related to the business system, so you only need to use the visibilitychange (page status view) event to filter out the hidden tab pages from the multiple tab pages of the business system. Specifically, the visibilitychange event is a new API provided by HTML5, whose function is to record the activation status of the current tab page in the browser. Usually when browsing pages on the PC side, the tabs are used. When browsing in this way, any given page may be in the background, so it is not visible to the user. The page visibility api provides events that developers can observe in order to know when the page is visible or hidden, and to view the current visibility status of the page. The visibilitychange event is a web page status viewing event that can be added in the browser. This event is triggered when a certain tab of the browser is switched to the background or switched from the background to the foreground. Now mainstream browsers support visibility
Change events, such as Chrome, Firefox, IE10, etc.
一般地,可通过在浏览器中添加监听器,以显示tab页中的状态变化,具体地,通过简单的代码即可添加监听器:Generally, you can add a listener in the browser to display the status changes in the tab page. Specifically, you can add a listener with a simple code:
document. Add Event Listener(visibility Change,
function() {document. Add Event Listener(visibility Change,
function() {
document. title = document[state];document. title = document[state];
一般地,若当前tab页是活动页面,则网页状态是可见visible(表明页面为浏览器当前激活tab,而且窗口不是最小化状态;反之,若当前tab页处于后台运行状态,则网页状态是隐藏hidden
(页面不是当前激活tab页面,或者窗口最小化了)。由此,可以通过visibilitychange事件,从业务系统的多个tab页中筛选出隐藏tab页。Generally, if the current tab page is the active page, the web page status is visible (indicating that the page is the browser currently active tab, and the window is not minimized; on the contrary, if the current tab page is running in the background, the web page status is hidden hidden
(The page is not the currently active tab page, or the window is minimized). As a result, the visibilitychange event can be used to filter out hidden tab pages from multiple tab pages in the business system.
进一步地,基于上述第一实施例,提出了本申请tab页权限同步更新方法的第三实施例,与前述实施例的区别在于,所述确定隐藏tab页的步骤包括:Further, based on the foregoing first embodiment, a third embodiment of the method for synchronously updating tab page permissions of the present application is proposed. The difference from the foregoing embodiment is that the step of determining a hidden tab page includes:
获取所述目标tab页对应的主服务器地址;Obtaining the address of the main server corresponding to the target tab page;
将地址中包含所述主服务器地址的隐藏tab页确定为与所述目标tab页相关的隐藏tab页。The hidden tab page whose address contains the address of the main server is determined as the hidden tab page related to the target tab page.
本实施例适用于通过浏览器浏览网页的场景,考虑到用户曾在浏览器中打开过多个网站的网页,有些打开过的网页与目标tab页并不相关,因此在检测到用户在目标tab页进行了权限设置操作后,可以获取目标tab页的主网页,并根据主网页的相关信息,例如主服务器地址,从而根据目标tab页的主服务器地址,从隐藏tab页中筛选与目标tab页相关的tab页,以目标tab页为淘宝网的网页为例,则将地址栏中包括taobao.com的隐藏tab页筛选为与目标tab页相关的隐藏tab页。This embodiment is suitable for browsing web pages through a browser. Considering that the user has opened web pages of multiple websites in the browser, some of the opened web pages are not related to the target tab page. Therefore, it is detected that the user is in the target tab page. After the permission setting operation is performed on the page, the main page of the target tab page can be obtained, and according to the relevant information of the main page, such as the main server address, the target tab page can be filtered from the hidden tab page according to the main server address of the target tab page For the related tab page, taking the webpage where the target tab page is Taobao.com as an example, the hidden tab pages including taobao.com in the address bar are filtered as hidden tab pages related to the target tab page.
进一步地,基于上述第一实施例,提出了本申请tab页权限同步更新方法的第四实施例,与前述实施例的区别在于,所述方法还包括:Further, based on the foregoing first embodiment, a fourth embodiment of the method for synchronously updating tab page permissions of this application is proposed. The difference from the foregoing embodiment is that the method further includes:
若接收到作用于所述目标tab页的二次权限设置操作,则获取所述二次权限设置操作对应的权限参数;If a secondary permission setting operation acting on the target tab page is received, the permission parameter corresponding to the secondary permission setting operation is acquired;
将所述隐藏权限参数与所述二次权限设置操作对应的权限参数进行比对;Comparing the hidden authority parameter with the authority parameter corresponding to the secondary authority setting operation;
若所述隐藏权限参数与所述二次权限设置操作对应的权限参数不一致,则将所述隐藏权限参数调整为与所述二次权限设置操作对应的权限参数一致。If the hidden authority parameter is inconsistent with the authority parameter corresponding to the secondary authority setting operation, the hidden authority parameter is adjusted to be consistent with the authority parameter corresponding to the secondary authority setting operation.
即,若用户在目标tab页进行了二次权限设置操作,则为与目标tab页相关的隐藏tab页赋予二次权限设置操作对应的权限,具体地,获取二次权限设置操作对应的权限参数,然后将相关隐藏tab页的隐藏权限参数与二次权限设置操作对应的权限参数进行比对,如果相关隐藏tab页的隐藏权限参数与二次权限设置操作对应的权限参数不一致,则将相关隐藏tab页的隐藏权限参数调整为与二次权限设置操作对应的权限参数一致,使得相关隐藏tab页始终获得最新的权限。以登录操作为例,用户在目标tab页进行了第二次登录操作,比如,在目标tab页登陆了第二用户名,则在相关隐藏tab页自动退出先前登录的第一用户名,同时对相关隐藏tab页的权限参数进行更新,以将第一用户名对应的权限全部更新为第二用户名对应的权限。That is, if the user performs a secondary permission setting operation on the target tab page, the hidden tab page related to the target tab page is given the permission corresponding to the secondary permission setting operation, specifically, the permission parameter corresponding to the secondary permission setting operation is obtained , And then compare the hidden authority parameters of the related hidden tab page with the authority parameters corresponding to the secondary authority setting operation. If the hidden authority parameters of the related hidden tab page are inconsistent with the authority parameters corresponding to the secondary authority setting operation, the relevant hidden authority parameters will be hidden. The hidden authority parameter of the tab page is adjusted to be consistent with the authority parameter corresponding to the secondary authority setting operation, so that the relevant hidden tab page always obtains the latest authority. Taking the login operation as an example, the user performs the second login operation on the target tab page. For example, if the second user name is logged in the target tab page, the first user name that was previously logged in will be automatically logged out in the related hidden tab page, and the The permission parameters of the related hidden tab page are updated to update all the permissions corresponding to the first user name to the permissions corresponding to the second user name.
此外,本申请实施例还提供一种tab页权限同步更新装置。In addition, the embodiment of the present application also provides an apparatus for synchronously updating tab page permissions.
参照图3,图3为本申请tab页权限同步更新装置第一实施例的功能模块示意图。Referring to FIG. 3, FIG. 3 is a schematic diagram of the functional modules of the first embodiment of the apparatus for synchronously updating tab page permissions of this application.
本实施例中,所述tab页权限同步更新装置包括: In this embodiment, the device for synchronously updating tab page permissions includes:
获取模块10,用于在接收到作用于目标tab页的权限设置操作时,获取所述权限设置操作对应的权限参数,作为所述目标tab页对应的目标权限参数;The obtaining module 10 is configured to obtain the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page when the permission setting operation acting on the target tab page is received;
比对模块20,用于获取与所述目标tab页相关的隐藏tab页对应的隐藏权限参数,将所述隐藏权限参数与所述目标权限参数进行比对;The comparison module 20 is configured to obtain the hidden authority parameter corresponding to the hidden tab page related to the target tab page, and compare the hidden authority parameter with the target authority parameter;
调整模块30,用于若所述隐藏权限参数与所述目标权限参数不一致,则将所述隐藏权限参数调整为与所述目标权限参数一致。The adjustment module 30 is configured to adjust the hidden authority parameter to be consistent with the target authority parameter if the hidden authority parameter is inconsistent with the target authority parameter.
其中,上述tab页权限同步更新装置的各虚拟功能模块存储于图1所示tab页权限同步更新设备的存储器1005中,用于实现tab页权限同步更新程序的所有功能;各模块被处理器1001执行时,实现了将用户在目标tab页最新设置的权限同步至与目标tab页相关的隐藏tab页,那么当用户再次触发打开该隐藏tab页的指令时,即可基于该隐藏tab页最新的权限对该隐藏tab页进行刷新,实现该隐藏tab页的正常加载,避免因权限更改导致重新加载该隐藏tab页时出现报错问题,提升了用户体验。Among them, each virtual function module of the above tab page permission synchronization update device is stored in the memory 1005 of the tab page permission synchronization update device shown in FIG. 1, and is used to implement all the functions of the tab page permission synchronization update program; each module is used by the processor 1001 During execution, the user's newly set permissions on the target tab page are synchronized to the hidden tab page related to the target tab page. Then when the user triggers the instruction to open the hidden tab page again, it can be based on the latest hidden tab page The permission refreshes the hidden tab page to realize the normal loading of the hidden tab page, avoiding error reporting when reloading the hidden tab page due to permission changes, and improving the user experience.
进一步的,所述tab页权限同步更新装置还包括: Further, the device for synchronously updating tab page permissions further includes:
加载模块,在接收到作用于tab标签的选择指令时,根据所述选择指令加载目标tab页。The loading module loads the target tab page according to the selection instruction when receiving the selection instruction acting on the tab label.
进一步的,所述第一获取模块10包括: Further, the first obtaining module 10 includes:
读取单元,用于确定与所述目标tab页相关的隐藏tab页,从预设数据库中读取所述隐藏tab页对应的隐藏权限参数。The reading unit is configured to determine a hidden tab page related to the target tab page, and read the hidden authority parameter corresponding to the hidden tab page from a preset database.
进一步的,所述读取单元包括:Further, the reading unit includes:
第一获取子单元,用于通过预设visibilitychange页面状态查看事件,获取除所述目标tab页之外的其他tab页的可见性;The first obtaining subunit is used to view events through the preset visibilitychange page status, and obtain the visibility of other tab pages except the target tab page;
第一筛选子单元,用于将所述其他tab页中不可见的tab页确定为与所述目标tab页相关的隐藏tab页。The first screening subunit is used to determine the invisible tab pages in the other tab pages as hidden tab pages related to the target tab page.
进一步的,所述读取单元包括:Further, the reading unit includes:
第二获取子单元,用于获取所述目标tab页对应的主服务器地址;The second obtaining subunit is used to obtain the main server address corresponding to the target tab page;
第二筛选子单元,用于将地址中包含所述主服务器地址的隐藏tab页确定为与所述目标tab页相关的隐藏tab页。The second screening subunit is used to determine the hidden tab page whose address contains the address of the main server as the hidden tab page related to the target tab page.
进一步的,所述tab页权限同步更新装置还包括: Further, the device for synchronously updating tab page permissions further includes:
跳转模块,用于在检测到作用于tab标签的切换操作指令时,跳转至所述切换操作指令对应的新目标tab页,并将所述新目标tab页的权限参数调整为与所述目标权限参数一致。The jump module is used to jump to the new target tab page corresponding to the switch operation instruction when the switch operation instruction acting on the tab label is detected, and adjust the authority parameter of the new target tab page to be the same as the The target permission parameters are the same.
进一步的,所述获取模块,还用于若接收到作用于所述目标tab页的二次权限设置操作,则获取所述二次权限设置操作对应的权限参数;Further, the acquiring module is further configured to, if a secondary authority setting operation acting on the target tab page is received, acquiring the authority parameter corresponding to the secondary authority setting operation;
所述比对模块,还用于将所述隐藏权限参数与所述二次权限设置操作对应的权限参数进行比对;The comparison module is also used to compare the hidden authority parameter with the authority parameter corresponding to the secondary authority setting operation;
所述调整模块,还用于若所述隐藏权限参数与所述二次权限设置操作对应的权限参数不一致,则将所述隐藏权限参数调整为与所述二次权限设置操作对应的权限参数一致。The adjustment module is further configured to adjust the hidden authority parameter to be consistent with the authority parameter corresponding to the secondary authority setting operation if the hidden authority parameter is inconsistent with the authority parameter corresponding to the secondary authority setting operation .
其中,上述tab页权限同步更新装置中各个模块的功能实现与上述tab页权限同步更新方法实施例中各步骤相对应,其功能和实现过程在此处不再一一赘述。Among them, the function realization of each module in the above tab page permission synchronization update device corresponds to each step in the above tab page permission synchronization update method embodiment, and its functions and implementation processes will not be repeated here.
此外,本申请实施例还提供一种可读存储介质。所述计算机可读存储介质可以为非易失性可读存储介质。In addition, the embodiment of the present application also provides a readable storage medium. The computer-readable storage medium may be a non-volatile readable storage medium.
本申请可读存储介质上存储有tab页权限同步更新程序,其中所述tab页权限同步更新程序被处理器执行时,实现如上述的tab页权限同步更新方法的步骤。The readable storage medium of the present application stores a tab page permission synchronization update program, wherein when the tab page permission synchronization update program is executed by a processor, the steps of the above tab page permission synchronization update method are implemented.
其中,tab页权限同步更新程序被执行时所实现的方法可参照本申请tab页权限同步更新方法的各个实施例,此处不再赘述。Among them, the method implemented when the tab page permission synchronization update program is executed can refer to the various embodiments of the tab page permission synchronization update method of this application, which will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or system. Without more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or system that includes the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the foregoing embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM) as described above. , Magnetic disk, optical disk), including several instructions to make a terminal device (can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the application, and do not limit the scope of the patent for this application. Any equivalent structure or equivalent process transformation made using the content of the description and drawings of the application, or directly or indirectly applied to other related technical fields , The same reason is included in the scope of patent protection of this application.
Claims (20)
- 一种tab页权限同步更新方法,其中,所述方法包括以下步骤: A method for synchronously updating tab page permissions, wherein the method includes the following steps:在接收到作用于目标tab页的权限设置操作时,获取所述权限设置操作对应的权限参数,作为所述目标tab页对应的目标权限参数;When receiving the permission setting operation that acts on the target tab page, obtain the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page;在检测到作用于tab标签的切换操作指令时,跳转至所述切换操作指令对应的新目标tab页,并将所述新目标tab页的权限参数调整为与所述目标权限参数一致;When a switch operation instruction acting on a tab label is detected, jump to a new target tab page corresponding to the switch operation instruction, and adjust the authority parameter of the new target tab page to be consistent with the target authority parameter;获取与所述目标tab页相关的隐藏tab页对应的隐藏权限参数,将所述隐藏权限参数与所述目标权限参数进行比对;Acquiring a hidden authority parameter corresponding to a hidden tab page related to the target tab page, and comparing the hidden authority parameter with the target authority parameter;若所述隐藏权限参数与所述目标权限参数不一致,则将所述隐藏权限参数调整为与所述目标权限参数一致。If the hidden authority parameter is inconsistent with the target authority parameter, the hidden authority parameter is adjusted to be consistent with the target authority parameter.
- 如权利要求1所述的tab页权限同步更新方法,其中,所述在接收到作用于目标tab页的权限设置操作时,获取所述权限设置操作对应的权限参数,作为所述目标tab页对应的目标权限参数的步骤之前,包括:The method for synchronously updating tab page permissions according to claim 1, wherein when the permission setting operation acting on the target tab page is received, the permission parameter corresponding to the permission setting operation is obtained, as the target tab page corresponding Before the steps of the target permission parameters, include:在接收到作用于tab标签的选择指令时,根据所述选择指令加载目标tab页。When a selection instruction acting on the tab label is received, the target tab page is loaded according to the selection instruction.
- 如权利要求1所述的tab页权限同步更新方法,其中,所述获取与所述目标tab页相关的隐藏tab页对应的隐藏权限参数的步骤包括:The method for synchronously updating tab page permissions according to claim 1, wherein the step of obtaining the hidden permission parameters corresponding to the hidden tab page related to the target tab page comprises:确定与所述目标tab页相关的隐藏tab页,从预设数据库中读取所述隐藏tab页对应的隐藏权限参数。The hidden tab page related to the target tab page is determined, and the hidden authority parameter corresponding to the hidden tab page is read from a preset database.
- 如权利要求3所述的tab页权限同步更新方法,其中,所述确定与所述目标tab页相关的隐藏tab页的步骤包括:The method for synchronously updating tab page permissions according to claim 3, wherein the step of determining the hidden tab page related to the target tab page comprises:通过预设visibilitychange页面状态查看事件,获取除所述目标tab页之外的其他tab页的可见性;Obtain the visibility of other tab pages other than the target tab page by viewing events in the preset visibilitychange page status;将所述其他tab页中不可见的tab页确定为与所述目标tab页相关的隐藏tab页。The invisible tab page among the other tab pages is determined as the hidden tab page related to the target tab page.
- 如权利要求3所述的tab页权限同步更新方法,其中,所述确定与所述目标tab页相关的隐藏tab页的步骤包括:The method for synchronously updating tab page permissions according to claim 3, wherein the step of determining the hidden tab page related to the target tab page comprises:获取所述目标tab页对应的主服务器地址;Obtaining the address of the main server corresponding to the target tab page;将地址中包含所述主服务器地址的隐藏tab页确定为与所述目标tab页相关的隐藏tab页。The hidden tab page whose address contains the address of the main server is determined as the hidden tab page related to the target tab page.
- 如权利要求1所述的tab页权限同步更新方法,其中,所述tab页权限同步更新方法还包括:The method for synchronously updating tab page permissions according to claim 1, wherein the method for synchronously updating tab page permissions further comprises:若接收到作用于所述目标tab页的二次权限设置操作,则获取所述二次权限设置操作对应的权限参数;If a secondary permission setting operation acting on the target tab page is received, the permission parameter corresponding to the secondary permission setting operation is acquired;将所述隐藏权限参数与所述二次权限设置操作对应的权限参数进行比对;Comparing the hidden authority parameter with the authority parameter corresponding to the secondary authority setting operation;若所述隐藏权限参数与所述二次权限设置操作对应的权限参数不一致,则将所述隐藏权限参数调整为与所述二次权限设置操作对应的权限参数一致。If the hidden authority parameter is inconsistent with the authority parameter corresponding to the secondary authority setting operation, the hidden authority parameter is adjusted to be consistent with the authority parameter corresponding to the secondary authority setting operation.
- 一种tab页权限同步更新装置,其中,所述tab页权限同步更新装置包括:A device for synchronously updating tab page permissions, wherein the device for synchronously updating tab page permissions includes:获取模块,用于在接收到作用于目标tab页的权限设置操作时,获取所述权限设置操作对应的权限参数,作为所述目标tab页对应的目标权限参数;The obtaining module is used to obtain the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page when the permission setting operation acting on the target tab page is received;跳转模块,在检测到作用于tab标签的切换操作指令时,跳转至所述切换操作指令对应的新目标tab页,并将所述新目标tab页的权限参数调整为与所述目标权限参数一致;The jump module, when detecting the switching operation instruction acting on the tab label, jumps to the new target tab page corresponding to the switching operation instruction, and adjusts the authority parameter of the new target tab page to match the target authority The parameters are consistent;比对模块,用于获取与所述目标tab页相关的隐藏tab页对应的隐藏权限参数,将所述隐藏权限参数与所述目标权限参数进行比对;The comparison module is configured to obtain the hidden authority parameter corresponding to the hidden tab page related to the target tab page, and compare the hidden authority parameter with the target authority parameter;调整模块,用于若所述隐藏权限参数与所述目标权限参数不一致,则将所述隐藏权限参数调整为与所述目标权限参数一致。The adjustment module is configured to adjust the hidden authority parameter to be consistent with the target authority parameter if the hidden authority parameter is inconsistent with the target authority parameter.
- 如权利要求7所述的tab页权限同步更新装置,其中,所述tab页权限同步更新装置还包括:7. The apparatus for synchronously updating tab page permissions according to claim 7, wherein the apparatus for synchronously updating tab page permissions further comprises:加载模块,在接收到作用于tab标签的选择指令时,根据所述选择指令加载目标tab页The loading module loads the target tab page according to the selection instruction when receiving the selection instruction acting on the tab label
- 如权利要求7所述的tab页权限同步更新装置,其中,所述比对模块包括: 8. The apparatus for synchronously updating tab page permissions according to claim 7, wherein the comparison module comprises:读取单元,用于确定与所述目标tab页相关的隐藏tab页,从预设数据库中读取所述隐藏tab页对应的隐藏权限参数。The reading unit is configured to determine a hidden tab page related to the target tab page, and read the hidden authority parameter corresponding to the hidden tab page from a preset database.
- 如权利要求9所述的tab页权限同步更新装置,其中,所述读取单元包括:The apparatus for synchronously updating tab page permissions according to claim 9, wherein the reading unit comprises:第一获取子单元,用于通过预设visibilitychange页面状态查看事件,获取除所述目标tab页之外的其他tab页的可见性;The first obtaining subunit is used to view events through the preset visibilitychange page status, and obtain the visibility of other tab pages except the target tab page;第一筛选子单元,用于将所述其他tab页中不可见的tab页确定为与所述目标tab页相关的隐藏tab页。The first screening subunit is used to determine the invisible tab pages in the other tab pages as hidden tab pages related to the target tab page.
- 如权利要求9所述的tab页权限同步更新装置,其中,所述读取单元包括:The apparatus for synchronously updating tab page permissions according to claim 9, wherein the reading unit comprises:第二获取子单元,用于获取所述目标tab页对应的主服务器地址;The second obtaining subunit is used to obtain the main server address corresponding to the target tab page;第二筛选子单元,用于将地址中包含所述主服务器地址的隐藏tab页确定为与所述目标tab页相关的隐藏tab页。The second screening subunit is used to determine the hidden tab page whose address contains the address of the main server as the hidden tab page related to the target tab page.
- 一种tab页权限同步更新设备,其中,所述tab页权限同步更新设备包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的tab页权限同步更新程序,其中所述tab页权限同步更新程序被所述处理器执行时,实现下步骤:A tab page permission synchronization update device, wherein the tab page permission synchronization update device includes a processor, a memory, and a tab page permission synchronization update program that is stored on the memory and can be executed by the processor. When the tab page permission synchronization update program is executed by the processor, the following steps are implemented:在接收到作用于目标tab页的权限设置操作时,获取所述权限设置操作对应的权限参数,作为所述目标tab页对应的目标权限参数;When receiving the permission setting operation that acts on the target tab page, obtain the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page;在检测到作用于tab标签的切换操作指令时,跳转至所述切换操作指令对应的新目标tab页,并将所述新目标tab页的权限参数调整为与所述目标权限参数一致;When a switch operation instruction acting on a tab label is detected, jump to a new target tab page corresponding to the switch operation instruction, and adjust the authority parameter of the new target tab page to be consistent with the target authority parameter;获取与所述目标tab页相关的隐藏tab页对应的隐藏权限参数,将所述隐藏权限参数与所述目标权限参数进行比对;Acquiring a hidden authority parameter corresponding to a hidden tab page related to the target tab page, and comparing the hidden authority parameter with the target authority parameter;若所述隐藏权限参数与所述目标权限参数不一致,则将所述隐藏权限参数调整为与所述目标权限参数一致。If the hidden authority parameter is inconsistent with the target authority parameter, the hidden authority parameter is adjusted to be consistent with the target authority parameter.
- 如权利要求12所述的tab页权限同步更新设备,其中,所述获取与所述目标tab页相关的隐藏tab页对应的隐藏权限参数的步骤包括:12. The tab page permission synchronization updating device according to claim 12, wherein the step of obtaining the hidden permission parameter corresponding to the hidden tab page related to the target tab page comprises:确定与所述目标tab页相关的隐藏tab页,从预设数据库中读取所述隐藏tab页对应的隐藏权限参数。The hidden tab page related to the target tab page is determined, and the hidden authority parameter corresponding to the hidden tab page is read from a preset database.
- 如权利要求13所述的tab页权限同步更新设备,其中,所述确定与所述目标tab页相关的隐藏tab页的步骤包括:The device for synchronizing and updating tab page permissions according to claim 13, wherein the step of determining the hidden tab page related to the target tab page comprises:通过预设visibilitychange页面状态查看事件,获取除所述目标tab页之外的其他tab页的可见性;Obtain the visibility of other tab pages other than the target tab page by viewing events in the preset visibilitychange page status;将所述其他tab页中不可见的tab页确定为与所述目标tab页相关的隐藏tab页。The invisible tab page among the other tab pages is determined as the hidden tab page related to the target tab page.
- 如权利要求13所述的tab页权限同步更新设备,其中,所述确定与所述目标tab页相关的隐藏tab页的步骤包括:The device for synchronizing and updating tab page permissions according to claim 13, wherein the step of determining the hidden tab page related to the target tab page comprises:获取所述目标tab页对应的主服务器地址;Obtaining the address of the main server corresponding to the target tab page;将地址中包含所述主服务器地址的隐藏tab页确定为与所述目标tab页相关的隐藏tab页。The hidden tab page whose address contains the address of the main server is determined as the hidden tab page related to the target tab page.
- 如权利要求12所述的tab页权限同步更新设备,其中,所述tab页权限同步更新方法还包括:The device for synchronizing and updating tab page permissions according to claim 12, wherein the method for synchronizing and updating tab page permissions further comprises:若接收到作用于所述目标tab页的二次权限设置操作,则获取所述二次权限设置操作对应的权限参数;If a secondary permission setting operation acting on the target tab page is received, the permission parameter corresponding to the secondary permission setting operation is acquired;将所述隐藏权限参数与所述二次权限设置操作对应的权限参数进行比对;Comparing the hidden authority parameter with the authority parameter corresponding to the secondary authority setting operation;若所述隐藏权限参数与所述二次权限设置操作对应的权限参数不一致,则将所述隐藏权限参数调整为与所述二次权限设置操作对应的权限参数一致。If the hidden authority parameter is inconsistent with the authority parameter corresponding to the secondary authority setting operation, the hidden authority parameter is adjusted to be consistent with the authority parameter corresponding to the secondary authority setting operation.
- 一种可读存储介质,其中,所述可读存储介质上存储有tab页权限同步更新程序,其中所述tab页权限同步更新程序被处理器执行时,实现如下步骤:A readable storage medium, wherein a tab page permission synchronization update program is stored on the readable storage medium, and when the tab page permission synchronization update program is executed by a processor, the following steps are implemented:在接收到作用于目标tab页的权限设置操作时,获取所述权限设置操作对应的权限参数,作为所述目标tab页对应的目标权限参数;When receiving the permission setting operation that acts on the target tab page, obtain the permission parameter corresponding to the permission setting operation as the target permission parameter corresponding to the target tab page;在检测到作用于tab标签的切换操作指令时,跳转至所述切换操作指令对应的新目标tab页,并将所述新目标tab页的权限参数调整为与所述目标权限参数一致;When a switch operation instruction acting on a tab label is detected, jump to a new target tab page corresponding to the switch operation instruction, and adjust the authority parameter of the new target tab page to be consistent with the target authority parameter;获取与所述目标tab页相关的隐藏tab页对应的隐藏权限参数,将所述隐藏权限参数与所述目标权限参数进行比对;Acquiring a hidden authority parameter corresponding to a hidden tab page related to the target tab page, and comparing the hidden authority parameter with the target authority parameter;若所述隐藏权限参数与所述目标权限参数不一致,则将所述隐藏权限参数调整为与所述目标权限参数一致。If the hidden authority parameter is inconsistent with the target authority parameter, the hidden authority parameter is adjusted to be consistent with the target authority parameter.
- 如权利要求17所述的可读存储介质,其中,所述获取与所述目标tab页相关的隐藏tab页对应的隐藏权限参数的步骤包括:17. The readable storage medium according to claim 17, wherein the step of obtaining the hidden permission parameter corresponding to the hidden tab page related to the target tab page comprises:确定与所述目标tab页相关的隐藏tab页,从预设数据库中读取所述隐藏tab页对应的隐藏权限参数。The hidden tab page related to the target tab page is determined, and the hidden authority parameter corresponding to the hidden tab page is read from a preset database.
- 如权利要求18所述的可读存储介质,其中,所述确定与所述目标tab页相关的隐藏tab页的步骤包括:18. The readable storage medium of claim 18, wherein the step of determining a hidden tab page related to the target tab page comprises:通过预设visibilitychange页面状态查看事件,获取除所述目标tab页之外的其他tab页的可见性;Obtain the visibility of other tab pages other than the target tab page by viewing events in the preset visibilitychange page status;将所述其他tab页中不可见的tab页确定为与所述目标tab页相关的隐藏tab页。The invisible tab page among the other tab pages is determined as the hidden tab page related to the target tab page.
- 如权利要求18所述的可读存储介质,其中,所述确定与所述目标tab页相关的隐藏tab页的步骤包括:18. The readable storage medium of claim 18, wherein the step of determining a hidden tab page related to the target tab page comprises:获取所述目标tab页对应的主服务器地址;Obtaining the address of the main server corresponding to the target tab page;将地址中包含所述主服务器地址的隐藏tab页确定为与所述目标tab页相关的隐藏tab页。 The hidden tab page whose address contains the address of the main server is determined as the hidden tab page related to the target tab page.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910845693.7 | 2019-09-06 | ||
CN201910845693.7A CN110717117A (en) | 2019-09-06 | 2019-09-06 | Method, device and equipment for synchronously updating permission of tab page and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021042525A1 true WO2021042525A1 (en) | 2021-03-11 |
Family
ID=69209718
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/117207 WO2021042525A1 (en) | 2019-09-06 | 2019-12-02 | Tab page permission synchronous updating method, apparatus and device, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110717117A (en) |
WO (1) | WO2021042525A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110099277A1 (en) * | 2009-10-28 | 2011-04-28 | Verizon Patent And Licensing, Inc. | Network architecture for resource requests |
CN106817355A (en) * | 2015-12-01 | 2017-06-09 | 北京国双科技有限公司 | The control method and device of webpage authority |
CN106886570A (en) * | 2017-01-16 | 2017-06-23 | 网宿科技股份有限公司 | page processing method and device |
CN107862204A (en) * | 2017-07-26 | 2018-03-30 | 平安普惠企业管理有限公司 | Method for page jump, mobile terminal and readable storage medium storing program for executing |
CN110069730A (en) * | 2019-03-15 | 2019-07-30 | 平安城市建设科技(深圳)有限公司 | Front end page display control method, device, equipment and readable storage medium storing program for executing |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106485388A (en) * | 2015-09-01 | 2017-03-08 | 北京奇虎科技有限公司 | The right management method of business approval system and device |
CN107566356B (en) * | 2017-08-24 | 2020-04-03 | 郑州云海信息技术有限公司 | Method for filtering URL (Uniform resource locator) permission of cloud platform browser |
CN109657427A (en) * | 2017-10-12 | 2019-04-19 | 北京国双科技有限公司 | The method and device of permission control |
-
2019
- 2019-09-06 CN CN201910845693.7A patent/CN110717117A/en active Pending
- 2019-12-02 WO PCT/CN2019/117207 patent/WO2021042525A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110099277A1 (en) * | 2009-10-28 | 2011-04-28 | Verizon Patent And Licensing, Inc. | Network architecture for resource requests |
CN106817355A (en) * | 2015-12-01 | 2017-06-09 | 北京国双科技有限公司 | The control method and device of webpage authority |
CN106886570A (en) * | 2017-01-16 | 2017-06-23 | 网宿科技股份有限公司 | page processing method and device |
CN107862204A (en) * | 2017-07-26 | 2018-03-30 | 平安普惠企业管理有限公司 | Method for page jump, mobile terminal and readable storage medium storing program for executing |
CN110069730A (en) * | 2019-03-15 | 2019-07-30 | 平安城市建设科技(深圳)有限公司 | Front end page display control method, device, equipment and readable storage medium storing program for executing |
Also Published As
Publication number | Publication date |
---|---|
CN110717117A (en) | 2020-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016133326A1 (en) | Method and apparatus for managing module use of multi-user based device | |
WO2016013811A1 (en) | Subscriber identification module management method and electronic device supporting the same | |
WO2020233056A1 (en) | H5 page-based animation display method, apparatus and device, and storage medium | |
WO2014071755A1 (en) | Method for realizing downloading of mobile terminal application program and mobile terminal | |
WO2011099808A2 (en) | Method and apparatus for providing a user interface | |
WO2017111312A1 (en) | Electronic device and method of managing application programs thereof | |
WO2020077832A1 (en) | Cloud desktop access method, apparatus and device, and storage medium | |
WO2020087981A1 (en) | Method and apparatus for generating risk control audit model, device and readable storage medium | |
WO2020000632A1 (en) | Invoice issuing method, apparatus and device, and computer-readable storage medium | |
WO2020062644A1 (en) | Json hijack bug detection method, apparatus and device, and storage medium | |
WO2016101441A1 (en) | File synchronization method and system | |
WO2020119062A1 (en) | Pre-installed application management method, device and storage medium | |
WO2021003956A1 (en) | Product information management method, apparatus and device, and storage medium | |
WO2019024485A1 (en) | Data sharing method and device and computer readable storage medium | |
WO2020253120A1 (en) | Webpage registration method, system and device, and computer storage medium | |
WO2015111926A1 (en) | Electronic device and user interface display method for the same | |
WO2020062640A1 (en) | Method, server and storage medium for switching dynamic copywriting language of terminal application | |
WO2018201774A1 (en) | Data approval method, apparatus, device, and computer readable storage medium | |
WO2020233060A1 (en) | Event notification method and apparatus, event notification server, and storage medium | |
WO2016090775A1 (en) | Synchronous operation method and system for short message data | |
WO2020233078A1 (en) | User information form construction method, apparatus and device, and storage medium | |
WO2020258672A1 (en) | Network access anomaly detection method and device | |
WO2020199599A1 (en) | Information presentation method and apparatus for work queue, and computer device and storage medium | |
WO2024144297A1 (en) | Service provision method and server which use digital-based agent source code insertion, and agent server | |
WO2021042525A1 (en) | Tab page permission synchronous updating method, apparatus and device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19944430 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.07.2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19944430 Country of ref document: EP Kind code of ref document: A1 |