CN112580095A - Data display method and device, computer equipment and storage medium - Google Patents

Data display method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112580095A
CN112580095A CN202011469128.4A CN202011469128A CN112580095A CN 112580095 A CN112580095 A CN 112580095A CN 202011469128 A CN202011469128 A CN 202011469128A CN 112580095 A CN112580095 A CN 112580095A
Authority
CN
China
Prior art keywords
data
target
displayed
authority range
range
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.)
Granted
Application number
CN202011469128.4A
Other languages
Chinese (zh)
Other versions
CN112580095B (en
Inventor
宋桂芳
郭强
姚志会
赵友明
魏珍
李坡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wensihai Huizhike Technology Co ltd
Original Assignee
Wensihai Huizhike Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wensihai Huizhike Technology Co ltd filed Critical Wensihai Huizhike Technology Co ltd
Priority to CN202011469128.4A priority Critical patent/CN112580095B/en
Publication of CN112580095A publication Critical patent/CN112580095A/en
Application granted granted Critical
Publication of CN112580095B publication Critical patent/CN112580095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Storage Device Security (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a data display method, a data display device, computer equipment and a storage medium. The method comprises the following steps: responding to an access request aiming at a target page, acquiring target user information matched with the access request, and determining at least one piece of data to be displayed for displaying on the target page; acquiring a to-be-displayed authority range corresponding to each to-be-displayed data in at least one to-be-displayed data, and determining at least one target authority range corresponding to target user information from the at least one to-be-displayed authority range; for each target authority range in at least one target authority range, determining target data matched with the target authority range from at least one to-be-displayed data; and displaying the determined at least one target data on a target page. The data display method provided by the application can prohibit the user without the authority from acquiring the target data, and can further improve the security of the data.

Description

Data display method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of terminal display technologies, and in particular, to a data display method and apparatus, a computer device, and a storage medium.
Background
With the development of terminal display technology, in order to facilitate a user to conveniently read various data or perform different operations on the data, various types of data are generally displayed on a display interface, so that the data operation performed on the interface by the user has a more intuitive feeling.
At present, in order to avoid malicious modification of some important data, different permissions are usually set for different data through a background, however, this permission setting mode can only ensure that a user without permission cannot edit the data, but cannot prohibit the user from acquiring the data, and the security of the data is low.
Disclosure of Invention
In view of the above, it is necessary to provide a data display method, apparatus, computer device and storage medium for solving the above technical problems.
A method of data display, the method comprising:
responding to an access request aiming at a target page, acquiring target user information matched with the access request, and determining at least one piece of data to be displayed for displaying on the target page;
acquiring a to-be-displayed authority range corresponding to each to-be-displayed data in the at least one to-be-displayed data, and determining at least one target authority range corresponding to the target user information from the at least one to-be-displayed authority range;
for each target authority range in the at least one target authority range, determining target data matched with the target authority range from the at least one data to be displayed;
and displaying the determined at least one target data on the target page.
In one embodiment, a target data identifier is stored in the target authority range, and the target data identifier is uniquely corresponding to target data; for each target authority range in the at least one target authority range, determining target data matched with the target authority range from the at least one data to be displayed, including: acquiring data identifications to be displayed corresponding to the at least one data to be displayed respectively; and aiming at each data identifier to be displayed in at least one data identifier to be displayed, when a target data identifier consistent with the data to be displayed exists, using the data to be displayed corresponding to the data identifier to be displayed as target data to obtain the at least one target data.
In one embodiment, the determining, according to the target authority range, at least one target data matching the target authority range from the data to be displayed includes: and if the data identifier to be displayed is a number arranged according to a preset sequence, confirming that the data identifier to be displayed is the target data identifier, and taking the data to be displayed corresponding to the data identifier to be displayed as the target data.
In one embodiment, the determining, according to the target authority range, at least one target data matching the target authority range from the data to be displayed includes: and if the data identifier to be displayed comprises letters arranged according to a preset sequence, or the data identifier to be displayed carries a preset letter header identifier, confirming that the data identifier to be displayed is located in the target authority range, and taking the data to be displayed corresponding to the data identifier to be displayed as the target data.
In one embodiment, the determining at least one target permission range corresponding to the target user information from the at least one permission range to be displayed includes: acquiring a target user role corresponding to the target user information based on a first corresponding relation between preset user information and the user role; and determining at least one permission range to be displayed corresponding to the target user role from the at least one permission range to be displayed as the at least one target permission range based on a second corresponding relation between the preset user role and the permission range to be displayed.
In one embodiment, before the obtaining of the target user role matched with the target user information, the method further includes: in response to the configuration request for the first corresponding relationship, determining a first to-be-configured user role matching the configuration request for the first corresponding relationship; acquiring user information of at least one user triggering a page access request; and establishing the first corresponding relation between the first user role to be configured and the user information.
In one embodiment, before determining at least one to-be-displayed permission range corresponding to the target user role from the at least one to-be-displayed permission range, the method further includes: responding to the configuration request aiming at the second corresponding relation, and determining a second user role to be configured which is matched with the configuration request aiming at the second corresponding relation; acquiring at least one data identifier of data for displaying on a page, and establishing a corresponding authority range as an authority range to be configured according to the data identifier; and establishing the second corresponding relation between the second user role to be configured and the authority range to be configured.
In one embodiment, before determining at least one data to be displayed for displaying on the target page, the method further includes: responding to a data configuration request to be displayed aiming at the target page, acquiring at least one data set to be configured for displaying in the page, and displaying the data set to be configured on a current interface; responding to the selection operation aiming at the data set to be configured, and acquiring the selected data set to be configured; and setting the data in the selected data set to be configured as the data to be displayed.
In one embodiment, the method further comprises: and if the pre-configured permission range to be displayed aiming at the data to be displayed does not exist, displaying the data to be displayed.
A data display apparatus, the apparatus comprising:
the display data acquisition module is used for responding to an access request aiming at a target page, acquiring target user information matched with the access request and determining at least one piece of data to be displayed for displaying on the target page;
the authority range acquisition module is used for acquiring a to-be-displayed authority range corresponding to each to-be-displayed data in the at least one to-be-displayed data, and determining at least one target authority range corresponding to the target user information from the at least one to-be-displayed authority range;
the target data determining module is used for determining target data matched with the target authority range from the at least one to-be-displayed data aiming at each target authority range in the at least one target authority range;
and the target data display module is used for displaying the determined at least one target data on the target page.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the above method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
The data display method, the data display device, the computer equipment and the storage medium respond to the access request aiming at the target page, acquire the target user information matched with the access request, and determine at least one piece of data to be displayed for displaying on the target page; acquiring a to-be-displayed authority range corresponding to each to-be-displayed data in at least one to-be-displayed data, and determining at least one target authority range corresponding to target user information from the at least one to-be-displayed authority range; for each target authority range in at least one target authority range, determining target data matched with the target authority range from at least one to-be-displayed data; and displaying the determined at least one target data on a target page. According to the data display method, when the user accesses the page, different target data can be displayed according to different authorities of different users, only the user with the authority can display the target data, the user without the authority can be prohibited from acquiring the target data, and the safety of the data can be further improved.
Drawings
FIG. 1 is a flow chart illustrating a data display method according to an embodiment;
FIG. 2 is a flowchart illustrating an embodiment of obtaining a target privilege range;
FIG. 3 is a schematic flow chart illustrating establishment of a first mapping relationship according to an embodiment;
FIG. 4 is a flow diagram illustrating the setting of data to be displayed according to one embodiment;
FIG. 5 is a flow chart illustrating a data display method according to another embodiment;
FIG. 6 is a schematic diagram of an interface for application data configuration in one embodiment;
FIG. 7 is a schematic diagram of an interface for application data configuration in another embodiment;
FIG. 8 is a diagram illustrating an interface for configuring data rights for roles in an embodiment;
FIG. 9 is a diagram illustrating an interface for configuring data rights for roles in accordance with another embodiment;
FIG. 10 is a diagram illustrating an interface for a user to configure roles in one embodiment;
FIG. 11 is a schematic diagram of an interface for a user to configure roles in another embodiment;
FIG. 12 is a schematic diagram of an interface for data display according to one embodiment;
FIG. 13 is a schematic interface diagram of data display in another embodiment;
FIG. 14 is a block diagram showing the structure of a data display device according to an embodiment;
FIG. 15 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, a data display method is provided, and this embodiment is exemplified by applying the method to a terminal, which may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. In this embodiment, the method includes the steps of:
step S101, the terminal responds to an access request aiming at a target page, acquires target user information matched with the access request, and determines at least one piece of data to be displayed for displaying on the target page.
The target user information refers to user information of a user needing to access a page through a terminal, and can be login account information used when the user accesses a certain page through a login mode, the target page refers to a page to be accessed by the user, and the data to be displayed refers to data which can be displayed in the page to be accessed by the user. For example, the database may be pre-stored with data including table a and table B, and the access request triggered by the user through the terminal is to display the data of table a on the target page, so that the data of table a may be used as the data to be displayed.
Specifically, when a user uses a terminal to access a page, an access request for a target page to be accessed can be triggered through the terminal, and after receiving the access request, the terminal can determine the target page corresponding to the access request, determine at least one piece of data to be displayed which can be displayed on the target page, and obtain user information of the user as the target user information.
Step S102, the terminal obtains a to-be-displayed authority range corresponding to each to-be-displayed data in at least one to-be-displayed data, and at least one target authority range corresponding to target user information is determined from the at least one to-be-displayed authority range.
The target authority range refers to an authority range which is matched with the target user information and aims at the data to be displayed, namely the authority range to be displayed. For example, the table a may include 20 pieces of data, where the first 10 pieces of data correspond to the authority range a to be displayed, 5-15 pieces of data correspond to the authority range B to be displayed, 15-20 pieces of data correspond to the authority range C to be displayed, and so on. The different users with different permission ranges to be displayed can be respectively suitable for different permission ranges to be displayed, and can also be suitable for the same permission range to be displayed, and the corresponding relation between the user and the permission range to be displayed can be configured in advance, for example, the user A corresponds to the permission range A to be displayed, the user B corresponds to the permission range B to be displayed, the user C corresponds to the permission range C to be displayed, the user D corresponds to the permission range A to be displayed, and the like.
Specifically, the terminal may first obtain data to be displayed for displaying on the target page according to step S101, obtain at least one permission range to be displayed, which is configured in advance and is matched with the data to be displayed, and find a permission range to be displayed corresponding to the target user information from the permission range to be displayed as the target permission range, that is, if the user is user a, then permission range a to be displayed may be used as the target permission range.
Step S103, the terminal determines target data matched with the target authority range from at least one to-be-displayed data aiming at each target authority range in at least one target authority range;
and step S104, the terminal displays the determined at least one target data on a target page.
The target data refers to the data to be displayed finally displayed on the target page and corresponds to the target authority range. Finally, the terminal can find at least one target data matched with the target authority range from the data to be displayed based on each obtained target authority range, and display the target data on the target page.
In the data display method, a terminal responds to an access request aiming at a target page, acquires target user information matched with the access request, and determines at least one piece of data to be displayed for displaying on the target page; acquiring a to-be-displayed authority range corresponding to each to-be-displayed data in at least one to-be-displayed data, and determining at least one target authority range corresponding to target user information from the at least one to-be-displayed authority range; for each target authority range in at least one target authority range, determining target data matched with the target authority range from at least one to-be-displayed data; and displaying the determined at least one target data on a target page. According to the data display method, when the user accesses the page, different target data can be displayed according to different authorities of different users, only the user with the authority can display the target data, the user without the authority can be prohibited from acquiring the target data, and the safety of the data can be further improved.
In one embodiment, a target data identifier is stored in the target authority range, and the target data identifier is uniquely corresponding to the target data; step S103, may further include: the terminal acquires at least one to-be-displayed data identifier corresponding to the to-be-displayed data respectively; and aiming at each data identifier to be displayed in at least one data identifier to be displayed, when a target data identifier consistent with the data to be displayed exists, using the data to be displayed corresponding to the data identifier to be displayed as target data to obtain at least one piece of target data.
The data identifier to be displayed is used for identifying different data to be displayed, the data identifier to be displayed is uniquely corresponding to the data to be displayed, the identifier can be represented by numbers, letters or a combination of numbers and letters, the target data identifier is the data identifier to be displayed corresponding to the target data, and at least one target data identifier can be stored in the target authority range. Specifically, after the terminal obtains the target authority range, the terminal may use the data identifier included in the target authority range as the target data identifier, and meanwhile, the terminal may also determine the to-be-displayed data identifier of the to-be-displayed data that may be displayed on the target page, and if the to-be-displayed data identifier of the to-be-displayed data is consistent with the target data identifier, the to-be-displayed data corresponding to the to-be-displayed data identifier may be displayed as the target data.
For example: the target data identifier in the target permission range may include a data identifier a and a data identifier B, and the data to be displayed on the target page may include a data to be displayed a, a data to be displayed B, and a data to be displayed C, where the data identifiers to be displayed corresponding to the data identifier a, the data identifier B, and the data identifier C, respectively, and since the data identifier a and the data identifier B are consistent with the target data identifier, the data to be displayed a and the data to be displayed B corresponding to the data identifier a and the data identifier B may be used as the target data.
Further, step S103 may further include: and if the data identifier to be displayed is a number arranged according to a preset sequence, the terminal confirms that the data identifier to be displayed is a target data identifier, and takes the data to be displayed corresponding to the data identifier to be displayed as target data.
The data identifier to be displayed may be composed of numbers, the preset sequentially arranged numbers may be numbers arranged in a number size sequence and located in a certain data interval, the data interval may be composed of a number a and a number B as interval endpoints, where the number a is smaller than the number B, that is, the number a is used as a low value interval endpoint of the data interval, and the number B is used as a high value interval endpoint of the data interval, for example, the number a may be preset to 10, and the number B may be preset to 15, then 10 and 15 may be used to form a data interval of 10-15 as a target authority range, and the target authority range may include any number of data identifiers in 10-15, for example, 11 and 12, and the like, which may be used as target data identifiers.
Specifically, if the to-be-displayed data identifier of the to-be-displayed data obtained by the terminal is within the range of the data interval, for example, 13, which belongs to the data interval of 10 to 15, the to-be-displayed data corresponding to the data identifier 13 may be displayed as the target data.
In addition, step S103 may further include: and if the data identifier to be displayed comprises letters arranged according to a preset sequence or the data identifier to be displayed carries a preset letter header identifier, the terminal confirms that the data identifier to be displayed is positioned in the target authority range and takes the data to be displayed corresponding to the data identifier to be displayed as target data.
In this case, the letters arranged in the preset order may be the letters arranged in the alphabetical order, and the letter located in a certain data interval, for example, aa is located before ab letter order, the data interval is formed by using the letter a and the letter B as interval endpoints, where the letter order of the letter a is located before the letter B, for example, the letter a is aa, and the letter B is ac, then the data interval may be established by using aa and ac, and may include a plurality of data identifiers arranged in the alphabetical order, for example, a plurality of data identifiers such as aa, aab, abcd, abd, and ac.
In addition, the set letter a or letter B may further include a flag extension part for extending the range of the data section. For example: the tag extension portion may be denoted by "+", and in the above example, the data interval may be created by using aa, ac, and then the created data interval may carry all data tags with the letter head tag ac, such as acd, and acda, in addition to all data tags between aa and ac.
Specifically, if the to-be-displayed data identifier of the to-be-displayed data obtained by the terminal is within the range of the data interval, or the to-be-displayed data identifier is consistent with the preset header identifier, the terminal may use the to-be-displayed data corresponding to the to-be-displayed data identifier as the target data.
In the above embodiment, by setting the arrangement order, a plurality of data identifiers can be set simultaneously in the process of setting the authority range, and each data identifier does not need to be set, so that the efficiency of setting the authority range can be improved.
In one embodiment, as shown in fig. 2, step S102 may further include:
step S201, the terminal obtains a target user role corresponding to the target user information based on a first corresponding relationship between the preset user information and the user role.
The target user role refers to a user role corresponding to a user triggering an access request of a target page, different users may correspond to different user roles, and may also correspond to the same role, for example, user a may correspond to role a, user B corresponds to role B, user C corresponds to role B, and the like, and the first correspondence is used to represent a correspondence between user information of different users and the user role. After the terminal obtains the target user information, the user role corresponding to the target user information can be found based on the first corresponding relationship and is used as the target user role.
Step S202, the terminal determines at least one permission range to be displayed corresponding to the target user role from at least one permission range to be displayed as at least one target permission range based on a second corresponding relation between the preset user role and the permission range to be displayed.
The second corresponding relationship is used for representing the corresponding relationship between different user roles and the permission range to be displayed, different user roles may correspond to different permission ranges, and may also correspond to the same permission range, for example, the role a may correspond to the permission range a, the role B corresponds to the permission range B, the user C corresponds to the permission range a, and the like, after the terminal obtains the target user role corresponding to the target user information, at least one permission range corresponding to the target user role may be found from the permission range to be displayed as the target permission range based on the obtained target user role.
Further, before step S201, as shown in fig. 3, the method may further include:
in step S301, the terminal determines, in response to the configuration request for the first corresponding relationship, a first to-be-configured user role matching the configuration request for the first corresponding relationship.
The first to-be-configured role refers to a user role needing to be configured with a first corresponding relationship, the first corresponding relationship is used for representing the corresponding relationship between user information and the user role, and when the first corresponding relationship needs to be configured, the terminal first needs to determine the first to-be-configured user role. Specifically, when the user needs to configure the first corresponding relationship, the terminal may initiate a configuration request for the first corresponding relationship of a certain user role, for example, the configuration request for the first corresponding relationship may be triggered by selecting a certain user role to be configured, and the terminal may respond to the request to determine the first user role to be configured, which is matched with the configuration request, and may be the user role selected by the user.
For example: after the terminal obtains the configuration request of the first corresponding relationship, the terminal can respond to the configuration request, and simultaneously display a user role list containing a plurality of user roles to be configured on the current display interface, and a user can select one or more user roles to be configured on the list as the first user roles to be configured by clicking the user role list.
Step S302, the terminal acquires user information of at least one user triggering a page access request;
step S303, the terminal establishes a first corresponding relationship between the first to-be-configured user role and the user information.
After the terminal determines the first to-be-configured user role in step S301, a corresponding relationship between the first to-be-configured user role and the user information may be established as a first corresponding relationship. Specifically, the terminal may determine at least one user information for establishing the first correspondence from the user information of the user that may trigger the page access request, and establish the first correspondence using the first to-be-configured user role of the user information.
In this embodiment, the terminal may establish a correspondence between the first to-be-configured user role and the user information as the first correspondence, and may implement binding between the user role and the user.
Before step S202, the method may further include: the terminal responds to the configuration request aiming at the second corresponding relation, and determines a second user role to be configured which is matched with the configuration request of the second corresponding relation; acquiring at least one data identifier of data for displaying on a page, and establishing a corresponding authority range as an authority range to be configured according to the data identifier; and establishing a second corresponding relation between the role of the second user to be configured and the authority range to be configured.
In addition, the user may also perform corresponding configuration on the second corresponding relationship between the authority range and the user role through the terminal, specifically, the user may perform configuration on the second corresponding relationship by triggering a configuration request for the second corresponding relationship to the terminal, and the terminal may respond to the configuration request and determine the user role to be configured, which is matched with the configuration request, as the second user role to be configured. For example: the terminal can select the corresponding user role from the user role list as a second user role to be configured by the user through displaying the role list of the user roles to be configured on the interface.
Then, the terminal may set a corresponding authority range for the second user role to be configured, for example, a corresponding relationship between the second user role to be configured and the authority range to be configured may be established as a second corresponding relationship by setting a corresponding relationship for the second user role to be configured and the data identifier corresponding to the data.
In this embodiment, the terminal may establish a correspondence between the second to-be-configured user role and the authority range, as the second correspondence, and may implement binding between the user role and the user authority.
In one embodiment, as shown in fig. 4, before step S101, the method may further include:
step S401, the terminal responds to a data configuration request to be displayed aiming at a target page, at least one data set to be configured for displaying in the page is obtained, and the data set to be configured is displayed on a current interface.
The data configuration request to be displayed is a request triggered by a user configuring data that can be displayed on a target page, and may be data in a table that is used for displaying on a specific page, when the user needs to configure the data to be displayed that can be displayed on a certain page, the data configuration request to be displayed may be triggered by a terminal, the terminal may respond to the request after receiving the request, and obtain at least one data set to be configured that can be used for displaying in a certain page, where the set may include one or more data to be displayed, for example, a certain piece of data in a certain data table, or data in the whole data table, to form a set as a data set to be configured, and display the data set in a current interface.
Specifically, after a user triggers a data configuration request to be displayed through a terminal, the terminal can read a plurality of preset data sets of data to be displayed, which can be displayed on a page, and display the data sets in a currently displayed interface.
Step S402, the terminal responds to the selection operation aiming at the data set to be configured, and obtains the selected data set to be configured.
The selected data set to be configured refers to the data set to be configured selected when a selection operation is performed in a list of the data set to be configured displayed on a current interface by a user, for example, after receiving a data configuration request to be displayed, the terminal may display a plurality of data sets to be configured, which are configured in advance, on the current interface of the terminal in a data set list form, the user may select the data set to be configured, which needs to be displayed on a target page, in a manner of clicking the data set to be configured displayed in the list to trigger the selection operation, and the terminal may perform a corresponding response according to the selection operation to obtain the selected data set to be configured.
In step S403, the terminal sets the data in the selected data set to be configured as the data to be displayed.
And finally, the terminal can extract the data contained in the set from the selected data set to be configured, and the data is used as the data to be displayed, so that the corresponding relation between the data to be displayed and the target page is established, and the data to be displayed can be displayed on the target page.
In this embodiment, the user can configure the data displayed on the page in an interface display manner, which can simplify the configuration process of the display data and improve the efficiency of the configuration of the display data.
In addition, in an embodiment, the data display method may further include: and if the pre-configured permission range to be displayed aiming at the data to be displayed does not exist, displaying the data to be displayed.
If the permission range to be displayed is not configured in advance for the data to be displayed, for example, for a certain data table D, the permission range to be displayed of the data table D is not set, that is, the data table is visible to all users, then when a certain user needs to display the data of the data table D on the page, the terminal does not filter the data of the data table D, but directly displays the data in all the data tables D, that is, the data to be displayed.
In this embodiment, if the data to be displayed does not have the preset permission range to be displayed, all the data to be displayed can be displayed, and the data without special permission can be visible to all users.
In an embodiment, a data display method is further provided, which is exemplified by applying the method to a terminal, as shown in fig. 5, the method may include the following steps:
step S501, a terminal responds to an access request aiming at a target page, acquires target user information matched with the access request, and determines at least one piece of data to be displayed for displaying on the target page;
step S502, the terminal responds to a data configuration request to be displayed aiming at a target page, at least one data set to be configured for displaying in the page is obtained, and the data set to be configured is displayed on a current interface;
step S503, the terminal responds to the selection operation aiming at the data set to be configured, and obtains the selected data set to be configured; setting data in the selected data set to be configured as data to be displayed;
step S504, the terminal responds to the configuration request aiming at the first corresponding relation, and determines a first user role to be configured which is matched with the configuration request aiming at the first corresponding relation;
step S505, the terminal acquires user information of at least one user triggering a page access request; establishing a first corresponding relation between a first user role to be configured and user information;
step S506, the terminal responds to the configuration request aiming at the second corresponding relation, and determines a second user role to be configured which is matched with the configuration request of the second corresponding relation;
step S507, the terminal obtains at least one data identifier of data used for displaying on the page, and establishes a corresponding authority range according to the data identifier to be used as an authority range to be configured; establishing a second corresponding relation between a second user role to be configured and the authority range to be configured;
step S508, the terminal responds to the access request aiming at the target page, obtains the target user information matched with the access request, and determines at least one piece of data to be displayed for displaying on the target page;
step S509, the terminal acquires a target user role corresponding to the target user information based on the first corresponding relation; determining at least one permission range to be displayed corresponding to the target user role from the at least one permission range to be displayed as at least one target permission range based on the second corresponding relation;
step S510, the terminal determines target data matched with the target authority range from at least one to-be-displayed data aiming at each target authority range in at least one target authority range; and displaying the determined at least one target data on a target page.
In the above embodiment, when the user accesses the page, different target data may be displayed according to different permissions possessed by different users, and only the user possessing the permission may display the target data, which may further improve the security of the displayed data. And the data displayed on the page can be configured in a mode of setting the first corresponding relation and the second corresponding relation and in a mode of interface display by a user, so that the configuration process of the displayed data can be simplified, and the efficiency of the configuration of the displayed data is further improved.
In an application example, a method for configuring user data permission is further provided, and the method may specifically include the following steps:
step 1: receiving a data permission configuration instruction for a target role, and displaying a data permission configuration list, wherein the data permission configuration list is used for entering a permission range configuration interface of each configurable data, as shown in fig. 6 and 7;
step 2: determining the authority range of each configurable data according to the authority range setting instruction of the authority range configuration interface, and binding the authority range with the target role, as shown in fig. 8 and 9;
and step 3: binding the target role with the target user, as shown in fig. 10 and fig. 11;
and 4, step 4: if the target user logs in the system, displaying each item of data information according to the authority range of each item of configurable data bound to the target role, as shown in fig. 12 and 13.
In the application example, data of different dimensions can be displayed for different users on the same page in an interface configuration mode.
It should be understood that although the various steps in the flow charts of fig. 1-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 14, there is provided a data display device including: a display data acquisition module 1401, a right range acquisition module 1402, a target data determination module 1403, and a target data display module 1404, wherein:
a display data obtaining module 1401, configured to, in response to an access request for a target page, obtain target user information matched with the access request, and determine at least one to-be-displayed data for displaying on the target page;
the authority range acquiring module 1402 is configured to acquire a to-be-displayed authority range corresponding to each to-be-displayed data in at least one to-be-displayed data, and determine at least one target authority range corresponding to target user information from the at least one to-be-displayed authority range;
a target data determining module 1403, configured to determine, for each target permission range in the at least one target permission range, target data matching the target permission range from at least one to-be-displayed data;
and a target data display module 1404, configured to display the determined at least one target data on a target page.
In one embodiment, a target data identifier is stored in the target authority range, and the target data identifier is uniquely corresponding to the target data; the target data determining module 1403 is further configured to obtain to-be-displayed data identifiers corresponding to at least one to-be-displayed data respectively; and aiming at each data identifier to be displayed in at least one data identifier to be displayed, when a target data identifier consistent with the data to be displayed exists, using the data to be displayed corresponding to the data identifier to be displayed as target data to obtain at least one piece of target data.
In an embodiment, the target data determining module 1403 is further configured to determine that the data identifier to be displayed is the target data identifier if the data identifier to be displayed is the numbers arranged according to the preset sequence, and use the data to be displayed corresponding to the data identifier to be displayed as the target data.
In an embodiment, the target data determining module 1403 is further configured to determine that the to-be-displayed data identifier is located within the target permission range and use the to-be-displayed data corresponding to the to-be-displayed data identifier as the target data if the to-be-displayed data identifier includes letters arranged according to a preset sequence or the to-be-displayed data identifier carries a preset header identifier.
In an embodiment, the authority range obtaining module 1402 is further configured to obtain a target user role corresponding to the target user information based on a first corresponding relationship between preset user information and the user role; and determining at least one permission range to be displayed corresponding to the target user role from at least one permission range to be displayed as at least one target permission range based on a second corresponding relation between the preset user role and the permission range to be displayed.
In one embodiment, the data display apparatus further comprises: the first corresponding configuration module is used for responding to the configuration request aiming at the first corresponding relation, and determining a first to-be-configured user role matched with the configuration request aiming at the first corresponding relation; acquiring user information of at least one user triggering a page access request; and establishing a first corresponding relation between the first user role to be configured and the user information.
In one embodiment, the data display apparatus further comprises: the second corresponding configuration module is used for responding to the configuration request aiming at the second corresponding relation and determining a second user role to be configured which is matched with the configuration request of the second corresponding relation; acquiring at least one data identifier of data for displaying on a page, and establishing a corresponding authority range as an authority range to be configured according to the data identifier; and establishing a second corresponding relation between the role of the second user to be configured and the authority range to be configured.
In one embodiment, the data display apparatus further comprises: the data configuration module to be displayed is used for responding to a data configuration request to be displayed aiming at a target page, acquiring at least one data set to be configured for displaying in the page, and displaying the data set to be configured on a current interface; responding to the selection operation aiming at the data set to be configured, and acquiring the selected data set to be configured; and setting the data in the selected data set to be configured as the data to be displayed.
In one embodiment, the data display apparatus further comprises: and the to-be-configured data display module is used for displaying the to-be-displayed data if the pre-configured to-be-displayed permission range aiming at the to-be-displayed data does not exist.
For specific limitations of the data display device, reference may be made to the above limitations of the data display method, which are not described herein again. The respective modules in the data display apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 15. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a data display method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 15 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A method of displaying data, the method comprising:
responding to an access request aiming at a target page, acquiring target user information matched with the access request, and determining at least one piece of data to be displayed for displaying on the target page;
acquiring a to-be-displayed authority range corresponding to each to-be-displayed data in the at least one to-be-displayed data, and determining at least one target authority range corresponding to the target user information from the at least one to-be-displayed authority range;
for each target authority range in the at least one target authority range, determining target data matched with the target authority range from the at least one data to be displayed;
and displaying the determined at least one target data on the target page.
2. The method according to claim 1, wherein the target authority range stores target data identification, and the target data identification is uniquely corresponding to target data; for each target authority range in the at least one target authority range, determining target data matched with the target authority range from the at least one data to be displayed, including:
acquiring data identifications to be displayed corresponding to the at least one data to be displayed respectively;
and aiming at each data identifier to be displayed in at least one data identifier to be displayed, when a target data identifier consistent with the data to be displayed exists, using the data to be displayed corresponding to the data identifier to be displayed as target data to obtain the at least one target data.
3. The method according to claim 2, wherein the determining at least one target data matching the target authority range from the data to be displayed according to the target authority range comprises:
and if the data identifier to be displayed is a number arranged according to a preset sequence, confirming that the data identifier to be displayed is the target data identifier, and taking the data to be displayed corresponding to the data identifier to be displayed as the target data.
4. The method according to claim 2, wherein the determining at least one target data matching the target authority range from the data to be displayed according to the target authority range comprises:
and if the data identifier to be displayed comprises letters arranged according to a preset sequence, or the data identifier to be displayed carries a preset letter header identifier, confirming that the data identifier to be displayed is located in the target authority range, and taking the data to be displayed corresponding to the data identifier to be displayed as the target data.
5. The method according to claim 2, wherein the determining at least one target permission range corresponding to the target user information from the at least one permission range to be displayed comprises:
acquiring a target user role corresponding to the target user information based on a first corresponding relation between preset user information and the user role;
and determining at least one permission range to be displayed corresponding to the target user role from the at least one permission range to be displayed as the at least one target permission range based on a second corresponding relation between the preset user role and the permission range to be displayed.
6. The method of claim 5, wherein before the obtaining the target user role matching the target user information, the method further comprises:
in response to the configuration request for the first corresponding relationship, determining a first to-be-configured user role matching the configuration request for the first corresponding relationship;
acquiring user information of at least one user triggering a page access request;
and establishing the first corresponding relation between the first user role to be configured and the user information.
7. The method of claim 5, wherein before determining at least one permission range to be displayed corresponding to the target user role from the at least one permission range to be displayed, the method further comprises:
responding to the configuration request aiming at the second corresponding relation, and determining a second user role to be configured which is matched with the configuration request aiming at the second corresponding relation;
acquiring at least one data identifier of data for displaying on a page, and establishing a corresponding authority range as an authority range to be configured according to the data identifier;
and establishing the second corresponding relation between the second user role to be configured and the authority range to be configured.
8. The method of claim 1, wherein prior to determining at least one data to be displayed for display on the target page, further comprising:
responding to a data configuration request to be displayed aiming at the target page, acquiring at least one data set to be configured for displaying in the page, and displaying the data set to be configured on a current interface;
responding to the selection operation aiming at the data set to be configured, and acquiring the selected data set to be configured;
and setting the data in the selected data set to be configured as the data to be displayed.
9. The method according to any one of claims 1 to 8, further comprising:
and if the pre-configured permission range to be displayed aiming at the data to be displayed does not exist, displaying the data to be displayed.
10. A data display device, the device comprising:
the display data acquisition module is used for responding to an access request aiming at a target page, acquiring target user information matched with the access request and determining at least one piece of data to be displayed for displaying on the target page;
the authority range acquisition module is used for acquiring a to-be-displayed authority range corresponding to each to-be-displayed data in the at least one to-be-displayed data, and determining at least one target authority range corresponding to the target user information from the at least one to-be-displayed authority range;
the target data determining module is used for determining target data matched with the target authority range from the at least one to-be-displayed data aiming at each target authority range in the at least one target authority range;
and the target data display module is used for displaying the determined at least one target data on the target page.
11. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 9 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 9.
CN202011469128.4A 2020-12-15 2020-12-15 Data display method, device, computer equipment and storage medium Active CN112580095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011469128.4A CN112580095B (en) 2020-12-15 2020-12-15 Data display method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011469128.4A CN112580095B (en) 2020-12-15 2020-12-15 Data display method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112580095A true CN112580095A (en) 2021-03-30
CN112580095B CN112580095B (en) 2024-07-05

Family

ID=75134985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011469128.4A Active CN112580095B (en) 2020-12-15 2020-12-15 Data display method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112580095B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237466A (en) * 2021-12-15 2022-03-25 文思海辉智科科技有限公司 Routing inspection point configuration method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100031366A1 (en) * 2006-05-05 2010-02-04 Omnifone Limited Method of Providing Digital Rights Management for Music Content by Means of a Flat-Rate Subscription
CN106227785A (en) * 2016-07-15 2016-12-14 杭州数梦工场科技有限公司 The display packing of a kind of page object and device
CN106874342A (en) * 2016-12-23 2017-06-20 新华三技术有限公司 A kind of page display method and device
CN107977371A (en) * 2016-10-21 2018-05-01 阿里巴巴集团控股有限公司 Requesting method, display methods and the client of page elements
CN108415638A (en) * 2018-02-01 2018-08-17 优酷网络技术(北京)有限公司 A kind of methods of exhibiting, computer storage media and the terminal device of the answer page
CN109889424A (en) * 2017-12-06 2019-06-14 腾讯科技(深圳)有限公司 Information processing method, device and storage medium
CN110297672A (en) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 Page dynamic creation method, device, computer equipment and storage medium
CN111291408A (en) * 2020-01-21 2020-06-16 文思海辉智科科技有限公司 Data management method and device and electronic equipment
CN112016122A (en) * 2020-09-03 2020-12-01 中国平安财产保险股份有限公司 Webpage data processing method and device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100031366A1 (en) * 2006-05-05 2010-02-04 Omnifone Limited Method of Providing Digital Rights Management for Music Content by Means of a Flat-Rate Subscription
CN106227785A (en) * 2016-07-15 2016-12-14 杭州数梦工场科技有限公司 The display packing of a kind of page object and device
CN107977371A (en) * 2016-10-21 2018-05-01 阿里巴巴集团控股有限公司 Requesting method, display methods and the client of page elements
CN106874342A (en) * 2016-12-23 2017-06-20 新华三技术有限公司 A kind of page display method and device
CN109889424A (en) * 2017-12-06 2019-06-14 腾讯科技(深圳)有限公司 Information processing method, device and storage medium
CN108415638A (en) * 2018-02-01 2018-08-17 优酷网络技术(北京)有限公司 A kind of methods of exhibiting, computer storage media and the terminal device of the answer page
CN110297672A (en) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 Page dynamic creation method, device, computer equipment and storage medium
CN111291408A (en) * 2020-01-21 2020-06-16 文思海辉智科科技有限公司 Data management method and device and electronic equipment
CN112016122A (en) * 2020-09-03 2020-12-01 中国平安财产保险股份有限公司 Webpage data processing method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237466A (en) * 2021-12-15 2022-03-25 文思海辉智科科技有限公司 Routing inspection point configuration method and device
CN114237466B (en) * 2021-12-15 2023-06-30 文思海辉智科科技有限公司 Inspection point configuration method and device

Also Published As

Publication number Publication date
CN112580095B (en) 2024-07-05

Similar Documents

Publication Publication Date Title
CN106062763B (en) Method and device for displaying application and picture and electronic equipment
US11513753B2 (en) Data processing method and electronic terminal
EP3335411B1 (en) Electronic device and method of managing application programs thereof
US10149161B2 (en) Electronic device for authenticating based on biometric data and operating method thereof
EP2854013A1 (en) Method for displaying in electronic device and electronic device thereof
CN112130729B (en) Page processing method and device, computer equipment and storage medium
US20150347377A1 (en) Method for processing contents and electronic device thereof
CN106815518B (en) Application installation method and electronic equipment
JP2018511840A (en) Password generation method and device
KR20150073354A (en) method and apparatus processing an object provided via a display
US11720246B2 (en) Information processing method, system, and storage medium for presenting a user login interface
CN105809000A (en) Information processing method and electronic device
KR20150087085A (en) Electronic device controlling external device using dial and method thereof
CN111596911A (en) Method and device for generating control, computer equipment and storage medium
JP2019522277A (en) Terminal device password unlocking method, apparatus, and terminal device
CN113411203B (en) Terminal configuration method and device, computer equipment and storage medium
CN112580095B (en) Data display method, device, computer equipment and storage medium
CN114265653A (en) Interface display method, device, equipment, storage medium and program product
CN106534482B (en) Method and device for managing application programs of mobile terminal
CN112579236A (en) Function button display method and device, computer equipment and storage medium
KR20150116236A (en) Method for controlling a unlock and an electronic device
JP5910654B2 (en) Information processing apparatus, information processing apparatus control method, and program
US8955061B2 (en) Information processing apparatus, authentication system, authentication method, and program
CN114157753A (en) Message sharing method and device and electronic equipment
CN106293379A (en) A kind of information processing method and electronic equipment

Legal Events

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