CN117725571A - Data viewing method, device, medium and equipment - Google Patents

Data viewing method, device, medium and equipment Download PDF

Info

Publication number
CN117725571A
CN117725571A CN202310323888.1A CN202310323888A CN117725571A CN 117725571 A CN117725571 A CN 117725571A CN 202310323888 A CN202310323888 A CN 202310323888A CN 117725571 A CN117725571 A CN 117725571A
Authority
CN
China
Prior art keywords
data
user
target
viewing
users
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310323888.1A
Other languages
Chinese (zh)
Inventor
王洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaohongshu Technology Co ltd
Original Assignee
Xiaohongshu 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 Xiaohongshu Technology Co ltd filed Critical Xiaohongshu Technology Co ltd
Priority to CN202310323888.1A priority Critical patent/CN117725571A/en
Publication of CN117725571A publication Critical patent/CN117725571A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Storage Device Security (AREA)

Abstract

The embodiment of the application provides a data viewing method, a device, a medium and equipment, wherein the method comprises the following steps: receiving a data viewing request initiated by a target user aiming at a data management platform; identifying a user identification of the target user according to the data viewing request; searching a permission association table corresponding to the target user and a preset data viewing rule according to the user identification, wherein the permission association table is used for indicating the associated users covered under the current permission of the target user and the data operation types aiming at each associated user; acquiring target data which is associated with the associated user and visible to the target user based on a preset data viewing rule corresponding to the target user; and displaying the target data in the data management platform. By distributing the corresponding permission association table and the data viewing rules for the users with different identities, the users with different identities can directly perform operation management on the data in the permission range of the users without receiving unfriendly prompts that the request is refused due to lack of operation permission.

Description

Data viewing method, device, medium and equipment
Technical Field
The present disclosure relates to the field of electronic communications technologies, and in particular, to a data viewing method, apparatus, medium, and device.
Background
In order to facilitate personnel management in the data management platform, corresponding data operation rights, such as operation rights of data viewing, data modification and the like, are generally allocated to users with different identities. However, the method is limited to the authority setting on the operation level, and when a user without data operation authority wants to operate on specified data, the user can obtain a message prompt requesting refused, and the user can feel the prompt, so that the experience is not good for the user.
Disclosure of Invention
By using the data viewing method provided by the embodiment of the application, the corresponding permission association table and the data viewing rule are allocated to the users with different identities, so that the users with different identities can directly perform operation management on the data in the permission range of the users without receiving unfriendly prompts that the request is refused due to lack of operation permission.
An aspect of an embodiment of the present application provides a data viewing method, where the data viewing method includes:
receiving a data viewing request initiated by a target user aiming at a data management platform;
identifying a user identification of the target user according to the data viewing request;
Searching a permission association table corresponding to the target user and a preset data viewing rule according to the user identification, wherein the permission association table is used for indicating the associated users covered under the current permission of the target user and the data operation types of the associated users;
acquiring target data which is associated with the associated user and visible to the target user based on a preset data viewing rule corresponding to the target user;
and displaying the target data in the data management platform.
In the data viewing method of the embodiment of the present application, after searching the permission association table and the preset data viewing rule corresponding to the target user according to the user identifier, the method further includes:
and if the permission association table corresponding to the target user does not exist, sending prompt information of the unauthorized viewing data, and rejecting the data viewing request.
In the data viewing method described in the embodiment of the present application, the data viewing rule includes a line data viewing rule, and the target data includes target line data;
the line data look-up rule includes:
acquiring associated user identifiers corresponding to each associated user in the authority associated table;
And acquiring the row data matched with the associated user identification from a first storage area for storing the row data as target row data to be displayed.
In the data viewing method described in the embodiment of the present application, the data viewing rule includes a column data viewing rule, and the target data includes target column data;
the line data look-up rule includes:
acquiring associated user identifiers corresponding to each associated user in the authority associated table;
acquiring display state information carried by the associated user identifier, wherein the display state information comprises a display state and/or a hidden state;
searching column data corresponding to the associated user identifier from a second storage area for storing the column data, and endowing each column data with corresponding display state information;
and taking the column data endowed with the display state information as target column data to be displayed.
In the data viewing method described in the embodiment of the present application, the data viewing rule includes a column data viewing rule, and the target data includes target column data;
the line data look-up rule includes:
acquiring associated user identifiers corresponding to each associated user in the authority associated table;
Acquiring display state information carried by the associated user identifier and used for indicating correspondence of each piece of sub data associated with the associated user identifier, wherein the display state information comprises a display state and/or a hidden state;
searching sub-data corresponding to the associated user identifier from a second storage area for storing column data, and endowing each sub-data with corresponding display state information;
and taking the sub-data endowed with the display state information as target column data to be displayed.
In the data viewing method described in the embodiments of the present application, the data operation type includes one or more of viewing, modifying, and copying.
In the data viewing method described in the embodiment of the present application, the user identifier includes a first-level user, a second-level user, a third-level user, and a fourth-level user;
wherein the associated users in the authority associated table corresponding to the primary user are none;
the associated users in the authority associated table corresponding to the secondary users comprise primary users, and the data operation types corresponding to the primary users comprise one or more of viewing, modifying and copying;
the associated users in the authority associated table corresponding to the third-level user comprise a first-level user and a second-level user, and the data operation types corresponding to the first-level user and the second-level user comprise views;
The associated users in the authority associated table corresponding to the four-level user comprise a first-level user, a second-level user and a third-level user, and the data operation types corresponding to the first-level user, the second-level user and the third-level user comprise one or more of viewing, modifying and copying.
Correspondingly, another aspect of the embodiments of the present application further provides a data viewing device, where the data viewing device includes:
the receiving module is used for receiving a data viewing request initiated by a target user aiming at the data management platform;
the identification module is used for identifying the user identification of the target user according to the data viewing request;
the searching module is used for searching a permission association table corresponding to the target user and a preset data viewing rule according to the user identification, wherein the permission association table is used for indicating the associated users covered under the current permission of the target user and the data operation types of the associated users;
the acquisition module is used for acquiring target data which is associated with the associated user and is visible to the target user based on a preset data viewing rule corresponding to the target user;
and the display module is used for displaying the target data in the data management platform.
Accordingly, another aspect of the embodiments of the present application further provides a storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the data viewing method as described above.
Accordingly, another aspect of the embodiments of the present application further provides a terminal device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to perform the data viewing method as described above.
The embodiment of the application provides a data viewing method, a device, a medium and equipment, wherein the method is used for receiving a data viewing request initiated by a target user aiming at a data management platform; identifying a user identification of the target user according to the data viewing request; searching a permission association table corresponding to the target user and a preset data viewing rule according to the user identification, wherein the permission association table is used for indicating the associated users covered under the current permission of the target user and the data operation types of the associated users; acquiring target data which is associated with the associated user and visible to the target user based on a preset data viewing rule corresponding to the target user; and displaying the target data in the data management platform. By using the data viewing method provided by the embodiment of the application, the users with different identities can directly perform operation management on the data with the authority range of the users without receiving unfriendly prompts of refused requests due to lack of operation authorities by distributing the corresponding authority association tables and the data viewing rules for the users with different identities.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are required to be used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a data viewing method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a data viewing device according to an embodiment of the present application.
Fig. 3 is another schematic structural diagram of a data viewing device according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by a person skilled in the art without any inventive effort, are intended to be within the scope of the present application based on the embodiments herein.
It should be noted that the following is a simple description of the background of the present solution:
the scheme mainly aims at solving the technical problem that how to enable users with different identities to directly operate and manage the data with the authority range of the users, and the problem that the users lack an unfriendly prompt that the users receive a request to be refused is solved. It can be appreciated that, in order to facilitate personnel management in the data management platform, corresponding data operation rights, such as operation rights of data viewing, data modification, etc., are generally allocated to users with different identities. However, the method is limited to the authority setting on the operation level, and when a user without data operation authority wants to operate on specified data, the user can obtain a message prompt requesting refused, and the user can feel the prompt, so that the experience is not good for the user.
In order to solve the technical problems, an embodiment of the present application provides a data viewing method. By using the data viewing method provided by the embodiment of the application, the users with different identities can directly perform operation management on the data with the authority range of the users without receiving unfriendly prompts of refused requests due to lack of operation authorities by distributing the corresponding authority association tables and the data viewing rules for the users with different identities.
Referring to fig. 1, fig. 1 is a flow chart of a data viewing method according to an embodiment of the present application. The data viewing method is applied to the terminal equipment. Optionally, the terminal device is a terminal or a server. Optionally, the server is an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), basic cloud computing services such as big data and artificial intelligence platforms, and the like. Optionally, the terminal is a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, and the like, but is not limited thereto.
In an embodiment, the method may comprise the steps of:
step 101, receiving a data viewing request initiated by a target user aiming at a data management platform.
In this embodiment, a user who intends to view data is referred to as a target user, and the target user may send a data viewing request for viewing specified service data to the data management platform by logging in the data management platform, so as to obtain data that the user wants to view and perform a corresponding operation according to the data operation authority owned by the user.
Step 102, identifying the user identification of the target user according to the data viewing request.
In this embodiment, the target user logs in to the data management platform and provides the user identifier of the target user to the data management platform, and after identifying the user identifier of the target user, the executor terminal device as the scheme can primarily determine whether the user has the authority to view the data, and execute the subsequent steps on the premise that the user has the authority to view the data.
Step 103, searching a permission association table corresponding to the target user and a preset data viewing rule according to the user identification, wherein the permission association table is used for indicating the associated users covered under the current permission of the target user and the data operation types of the associated users.
In this embodiment, a dedicated authority association table is pre-established for each user with data management authority, and the associated user covered under the current authority of the target user and the data operation type for each associated user can be recorded through the authority association table, so that the data of other users associated with the target user can be pushed to the target user in a targeted manner, the target user can directly acquire the data of the authority range of the target user and display the data on an operation interface, other data of the target user lacking management authority cannot appear on an operation page, and an unfriendly prompt that a request is refused is avoided when the target user operates other data without management authority.
In this embodiment, the user identities may be divided into a primary user, a secondary user, a tertiary user, and a quaternary user;
wherein the associated users in the authority associated table corresponding to the first-level user are none;
the associated users in the authority associated table corresponding to the secondary users comprise primary users, and the data operation types corresponding to the primary users comprise one or more of viewing, modifying and copying;
the associated users in the authority associated table corresponding to the third-level user comprise a first-level user and a second-level user, and the data operation types corresponding to the first-level user and the second-level user comprise views;
the associated users in the authority associated table corresponding to the four-level user comprise a first-level user, a second-level user and a third-level user, and the data operation types corresponding to the first-level user, the second-level user and the third-level user comprise one or more of viewing, modifying and copying.
Illustratively, a first-level user refers to a common first-line staff, and the user identifier user_code of the user is 53f4c37d11, and since the user is not directly subordinate, and cannot overstep to manage own upper-level data, no associated user corresponding to the user exists. The target user in this case can manage only his own data, but not the other users. It should be noted that, because the focus of the present solution is how to enable the user to enhance experience when managing the data of other users having an association relationship with the user, and meanwhile, the target user can freely manage the data of the user belongs to common knowledge, the description of the user management of the data of the user is omitted in this solution.
The second-level user refers to a department responsible person, and the department responsible person can not only see the data maintained by himself, but also see the data maintained by the personnel in the department. For example, a brand customer business segment responsible person has authority to see various data of all its sub-segment employees. The associated user to which the secondary user corresponds therefore includes the primary user under his jurisdiction. The data operation types corresponding to the data operation types comprise one or more of viewing, modifying and copying.
Tertiary users refer to observers, typically team management or business analysts, who may hang under any department. It is authorized to view the data of all people under a certain department. Such as sales manager of a commercial team, does not belong to department responsible person per se, but has authority to see data of different departments. The data operation type corresponding thereto includes a view.
The fourth-level user refers to a company high-level manager, has authority to see the data of all people, comprises a first-level user, a second-level user and a third-level user, and the data operation types corresponding to the fourth-level user comprise one or more of viewing, modifying and copying.
In this embodiment, a dedicated data viewing rule is also pre-established for each user having data management authority, and different display states can be adopted for displaying when different types of data are called through the data viewing rule. The data management authority of the user can be further refined, so that the visible content displayed by the target user without user identification when viewing the data of the same service is different.
In some embodiments, the different types of data described above refer to row data and column data presented at the operation interface. Therefore, the data viewing rules comprise a data viewing rule and a column data viewing rule, and the target data comprises target row data and target column data;
specifically, in order to enable the target users corresponding to different user identifications to see the data with different display degrees on the same operation interface and automatically correlate and adjust the display effect of the chart data under the condition of the chart data, the data viewing rule comprises: acquiring associated user identifiers corresponding to each associated user in the authority associated table; and acquiring the row data matched with the associated user identification from a first storage area for storing the row data as target row data to be displayed.
For primary users: because the primary user has no associated user, only the corresponding user_code such as 53f4c37d11 is obtained, and based on the user_code authority column filtering, the filtering mode is that the window find_in_set ('53 f4c37d11', user_codes) >0, which means that if the visible personnel of the row of resource data contains the user_code of the accessing personnel, the visible personnel of the row of resource data has the data access authority.
For the secondary user, if the role corresponding to the current visitor is a department leader and the filtering mode is where find_in_set ('daac 7ca2211', definition_codes) >0, the meaning is that the visible department of the row of resources contains the user identification definition_code of the department where the current visitor is located, and the visible department has the authority to access the data.
For three levels of users: if the role corresponding to the current visitor is the observer, the filtering mode is that the line resource contains the data range that the observer can see all rights according to the user identification of the observer-associated user, such as [ daac7ca2211, 3490995 bc6e,2bae ca9a5], and the filtering mode is that the line resource (find_in_set ('daac 7ca2211', permission_codes) >0or find_in_set ('346095 bc6e', permission_codes) >0or find_in_set ('2 bae6ca9a5', permission_codes) > 0).
For the four-level user, the user can see all data as a company high-level pipe, and authority filtering is not performed.
It should be explained that, the description_codes refer to a department and a parent department corresponding to all personnel bound by a service, for example, the advertiser account B binds two sales of Zhang three and Liu four, and the value corresponding to the description_codes is a summary of the department and the parent department where Zhang three and Liu four personnel are located. The transmission_codes refer to user_codes and part_codes that are summarized together.
Since the hiding of the column data does not affect the display of the row data under normal conditions, hiding the row data may cause all column data to be hidden, such as a histogram, when hiding the row data, all column data may be hidden. Thus, the line data look-up rule includes: acquiring associated user identifiers corresponding to each associated user in the authority associated table; acquiring display state information carried by the associated user identifier, wherein the display state information comprises a display state and/or a hidden state; searching column data corresponding to the associated user identifier from a second storage area for storing the column data, and endowing each column data with corresponding display state information; and taking the column data endowed with the display state information as target column data to be displayed. And the column data display states corresponding to different associated users under the same target user are different.
In other embodiments, the line data look-up rule comprises: acquiring associated user identifiers corresponding to each associated user in the authority associated table; acquiring display state information carried by the associated user identifier and used for indicating correspondence of each piece of sub data associated with the associated user identifier, wherein the display state information comprises a display state and/or a hidden state; searching sub-data corresponding to the associated user identifier from a second storage area for storing column data, and endowing each sub-data with corresponding display state information; and taking the sub-data endowed with the display state information as target column data to be displayed. And the column data display states corresponding to different sub-data of the same associated user are different.
It should be noted that if a certain target user is set with both the personal visible column and the department visible column, both are combined.
And 104, acquiring target data which is associated with the associated user and is visible to the target user based on a preset data viewing rule corresponding to the target user.
And 105, displaying the target data in the data management platform.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail.
In particular, the present application is not limited by the order of execution of the steps described, and certain steps may be performed in other orders or concurrently without conflict.
As can be seen from the above, the data viewing method provided by the embodiment of the present application receives a data viewing request initiated by a target user for a data management platform; identifying a user identification of the target user according to the data viewing request; searching a permission association table corresponding to the target user and a preset data viewing rule according to the user identification, wherein the permission association table is used for indicating the associated users covered under the current permission of the target user and the data operation types of the associated users; acquiring target data which is associated with the associated user and visible to the target user based on a preset data viewing rule corresponding to the target user; and displaying the target data in the data management platform. By using the data viewing method provided by the embodiment of the application, the users with different identities can directly perform operation management on the data with the authority range of the users without receiving unfriendly prompts of refused requests due to lack of operation authorities by distributing the corresponding authority association tables and the data viewing rules for the users with different identities.
The embodiment of the application also provides a data viewing device which can be integrated in the terminal equipment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a data viewing device according to an embodiment of the present application. The data viewing device 30 may include:
a receiving module 31, configured to receive a data viewing request initiated by a target user for the data management platform;
an identification module 32, configured to identify a user identifier of the target user according to the data viewing request;
the searching module 33 is configured to search, according to the user identifier, a permission association table and a preset data viewing rule corresponding to the target user, where the permission association table is used to indicate an associated user covered under the current permission of the target user, and a data operation type for each associated user;
an obtaining module 34, configured to obtain target data associated with the associated user and visible to the target user based on a preset data viewing rule corresponding to the target user;
and the display module 35 is used for displaying the target data in the data management platform.
In some embodiments, the device further includes a prompt module, configured to send prompt information of unauthorized viewing data if there is no permission association table corresponding to the target user, and reject the data viewing request.
In some embodiments, the data viewing rules comprise data viewing rules, the target data comprising target row data; the line data look-up rule includes: acquiring associated user identifiers corresponding to each associated user in the authority associated table; and acquiring the row data matched with the associated user identification from a first storage area for storing the row data as target row data to be displayed.
In some embodiments, the data viewing rules comprise column data viewing rules, the target data comprising target column data; the line data look-up rule includes: acquiring associated user identifiers corresponding to each associated user in the authority associated table; acquiring display state information carried by the associated user identifier, wherein the display state information comprises a display state and/or a hidden state; searching column data corresponding to the associated user identifier from a second storage area for storing the column data, and endowing each column data with corresponding display state information; and taking the column data endowed with the display state information as target column data to be displayed.
In some embodiments, the data operation types include one or more of view, modification, copy.
In some embodiments, the user identification includes a primary user, a secondary user, a tertiary user, and a quaternary user; wherein the associated users in the authority associated table corresponding to the primary user are none; the associated users in the authority associated table corresponding to the secondary users comprise primary users, and the data operation types corresponding to the primary users comprise one or more of viewing, modifying and copying; the associated users in the authority associated table corresponding to the third-level user comprise a first-level user and a second-level user, and the data operation types corresponding to the first-level user and the second-level user comprise views; the associated users in the authority associated table corresponding to the four-level user comprise a first-level user, a second-level user and a third-level user, and the data operation types corresponding to the first-level user, the second-level user and the third-level user comprise one or more of viewing, modifying and copying.
In specific implementation, each module may be implemented as a separate entity, or may be combined arbitrarily and implemented as the same entity or several entities.
As can be seen from the above, the data viewing device 30 provided in the embodiments of the present application, where the receiving module 31 is configured to receive a data viewing request initiated by a target user for a data management platform; the identifying module 32 is configured to identify a user identifier of the target user according to the data viewing request; the searching module 33 is configured to search, according to the user identifier, a permission association table and a preset data viewing rule corresponding to the target user, where the permission association table is used to indicate an associated user covered under the current permission of the target user, and a data operation type for each associated user; the obtaining module 34 is configured to obtain, based on a preset data viewing rule corresponding to the target user, target data associated with the associated user and visible to the target user; the display module 35 is configured to display the target data in the data management platform.
In specific implementation, each module may be implemented as a separate entity, or may be combined arbitrarily and implemented as the same entity or several entities.
Referring to fig. 3, fig. 3 is another schematic diagram of a data viewing device according to an embodiment of the present application, where the data viewing device 30 includes a memory 120, one or more processors 180, and one or more application programs, and the one or more application programs are stored in the memory 120 and configured to be executed by the processors 180; the processor 180 may include a receiving module 31, an identifying module 32, a searching module 33, an obtaining module 34, and a presentation module 35. For example, the structures and connection relationships of the above respective components may be as follows:
memory 120 may be used to store applications and data. The memory 120 stores application programs including executable code. Applications may constitute various functional modules. The processor 180 executes various functional applications and data processing by running application programs stored in the memory 120. In addition, memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 120 may also include a memory controller to provide access to the memory 120 by the processor 180.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the device and processes data by running or executing application programs stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the device. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor primarily processes an operating system, user interfaces, application programs, and the like.
In particular, in this embodiment, the processor 180 loads executable codes corresponding to the processes of one or more application programs into the memory 120 according to the following instructions, and the processor 180 executes the application programs stored in the memory 120, so as to implement various functions:
the receiving instruction is used for receiving a data viewing request initiated by a target user aiming at the data management platform;
the identification instruction is used for identifying the user identification of the target user according to the data viewing request;
the searching instruction is used for searching a permission association table corresponding to the target user and a preset data viewing rule according to the user identification, wherein the permission association table is used for indicating the associated users covered under the current permission of the target user and the data operation types of the associated users;
The acquisition instruction is used for acquiring target data which is associated with the associated user and is visible to the target user based on a preset data viewing rule corresponding to the target user;
and the display module instruction is used for displaying the target data in the data management platform.
In some embodiments, the program further includes a prompt instruction, configured to issue prompt information for unauthorized viewing of data and reject the data viewing request if there is no permission association table corresponding to the target user.
In some embodiments, the data viewing rules comprise data viewing rules, the target data comprising target row data; the line data look-up rule includes: acquiring associated user identifiers corresponding to each associated user in the authority associated table; and acquiring the row data matched with the associated user identification from a first storage area for storing the row data as target row data to be displayed.
In some embodiments, the data viewing rules comprise column data viewing rules, the target data comprising target column data; the line data look-up rule includes: acquiring associated user identifiers corresponding to each associated user in the authority associated table; acquiring display state information carried by the associated user identifier, wherein the display state information comprises a display state and/or a hidden state; searching column data corresponding to the associated user identifier from a second storage area for storing the column data, and endowing each column data with corresponding display state information; and taking the column data endowed with the display state information as target column data to be displayed.
In some embodiments, the data operation types include one or more of view, modification, copy.
In some embodiments, the user identification includes a primary user, a secondary user, a tertiary user, and a quaternary user; wherein the associated users in the authority associated table corresponding to the primary user are none; the associated users in the authority associated table corresponding to the secondary users comprise primary users, and the data operation types corresponding to the primary users comprise one or more of viewing, modifying and copying; the associated users in the authority associated table corresponding to the third-level user comprise a first-level user and a second-level user, and the data operation types corresponding to the first-level user and the second-level user comprise views; the associated users in the authority associated table corresponding to the four-level user comprise a first-level user, a second-level user and a third-level user, and the data operation types corresponding to the first-level user, the second-level user and the third-level user comprise one or more of viewing, modifying and copying.
The embodiment of the application also provides terminal equipment. The terminal equipment can be a server, a smart phone, a computer, a tablet personal computer and the like.
Referring to fig. 4, fig. 4 shows a schematic structural diagram of a terminal device provided in an embodiment of the present application, where the terminal device may be used to implement the data viewing method provided in the foregoing embodiment. The terminal device 1200 may be a television or a smart phone or a tablet computer.
As shown in fig. 4, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer readable storage mediums, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. It will be appreciated by those skilled in the art that the configuration of the terminal device 1200 shown in fig. 4 does not constitute a limitation of the terminal device 1200, and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components. Wherein:
the RF circuit 110 is configured to receive and transmit electromagnetic waves, and to perform mutual conversion between the electromagnetic waves and the electrical signals, so as to communicate with a communication network or other devices. RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and the like. The RF circuitry 110 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the data viewing method in the above embodiment, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, so that the data viewing can be automatically selected according to the current scene where the terminal device is located, thereby not only ensuring that the scenes such as a conference are not disturbed, but also ensuring that the user can perceive an incoming call, and improving the intelligence of the terminal device. Memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory remotely located relative to processor 180, which may be connected to terminal device 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may comprise a touch sensitive surface 131 and other input devices 132. The touch sensitive surface 131, also referred to as a touch display screen or touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch sensitive surface 131 or thereabout by any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a pre-set program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection device and a touch controller. The touch control detection device detects the touch control direction of a user, detects signals brought by touch control operation and transmits the signals to the touch control controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch coordinates, sends the touch coordinates to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 may be implemented in various types of resistive, capacitive, infrared, surface acoustic wave, and the like. In addition to the touch-sensitive surface 131, the input unit 130 may also comprise other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 140 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal device 1200, which may be composed of graphics, fields, icons, videos, and any combination thereof. The display unit 140 may include a display panel 141, and alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display ), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and after the touch-sensitive surface 131 detects a touch operation thereon or thereabout, the touch-sensitive surface is transferred to the processor 180 to determine a type of touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of touch event. Although in fig. 4 the touch-sensitive surface 131 and the display panel 141 are implemented as two separate components for input and output functions, in some embodiments the touch-sensitive surface 131 may be integrated with the display panel 141 to implement the input and output functions.
The terminal device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal device 1200 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the terminal device 1200 are not described in detail herein.
Audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between a user and terminal device 1200. The audio circuit 160 may transmit the received electrical signal converted from audio data to the speaker 161, and the electrical signal is converted into a sound signal by the speaker 161 to be output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, receives the electrical signal from the audio circuit 160, converts the electrical signal into audio data, outputs the audio data to the processor 180 for processing, transmits the audio data to, for example, another terminal via the RF circuit 110, or outputs the audio data to the memory 120 for further processing. Audio circuitry 160 may also include an ear bud jack to provide communication of the peripheral headphones with terminal device 1200.
Terminal device 1200 may facilitate user email, web browsing, streaming media access, etc. via a transmission module 170 (e.g., wi-Fi module) that provides wireless broadband internet access to the user. Although fig. 4 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal device 1200, and may be omitted entirely as needed within the scope of not changing the essence of the invention.
The processor 180 is a control center of the terminal device 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 1200 and processes data by running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal device 1200 also includes a power supply 190 that provides power to the various components, and in some embodiments, may be logically coupled to the processor 180 via a power management system to perform functions such as managing discharge, and managing power consumption via the power management system. The power supply 190 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 1200 may further include a camera (such as a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. In particular, in the present embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, the terminal device 1200 further includes a memory 120, and one or more programs, wherein the one or more programs are stored in the memory 120 and configured to be executed by the one or more processors 180, the one or more programs include instructions for:
the receiving instruction is used for receiving a data viewing request initiated by a target user aiming at the data management platform;
the identification instruction is used for identifying the user identification of the target user according to the data viewing request;
The searching instruction is used for searching a permission association table corresponding to the target user and a preset data viewing rule according to the user identification, wherein the permission association table is used for indicating the associated users covered under the current permission of the target user and the data operation types of the associated users;
the acquisition instruction is used for acquiring target data which is associated with the associated user and is visible to the target user based on a preset data viewing rule corresponding to the target user;
and the display module instruction is used for displaying the target data in the data management platform.
In some embodiments, the program further includes a prompt instruction, configured to issue prompt information for unauthorized viewing of data and reject the data viewing request if there is no permission association table corresponding to the target user.
In some embodiments, the data viewing rules comprise data viewing rules, the target data comprising target row data; the line data look-up rule includes: acquiring associated user identifiers corresponding to each associated user in the authority associated table; and acquiring the row data matched with the associated user identification from a first storage area for storing the row data as target row data to be displayed.
In some embodiments, the data viewing rules comprise column data viewing rules, the target data comprising target column data; the line data look-up rule includes: acquiring associated user identifiers corresponding to each associated user in the authority associated table; acquiring display state information carried by the associated user identifier, wherein the display state information comprises a display state and/or a hidden state; searching column data corresponding to the associated user identifier from a second storage area for storing the column data, and endowing each column data with corresponding display state information; and taking the column data endowed with the display state information as target column data to be displayed.
In some embodiments, the data operation types include one or more of view, modification, copy.
In some embodiments, the user identification includes a primary user, a secondary user, a tertiary user, and a quaternary user; wherein the associated users in the authority associated table corresponding to the primary user are none; the associated users in the authority associated table corresponding to the secondary users comprise primary users, and the data operation types corresponding to the primary users comprise one or more of viewing, modifying and copying; the associated users in the authority associated table corresponding to the third-level user comprise a first-level user and a second-level user, and the data operation types corresponding to the first-level user and the second-level user comprise views; the associated users in the authority associated table corresponding to the four-level user comprise a first-level user, a second-level user and a third-level user, and the data operation types corresponding to the first-level user, the second-level user and the third-level user comprise one or more of viewing, modifying and copying.
The embodiment of the application also provides terminal equipment. The terminal equipment can be a smart phone, a computer and other equipment.
As can be seen from the above, the embodiments of the present application provide a terminal device 1200, where the terminal device 1200 performs the following steps:
receiving a data viewing request initiated by a target user aiming at a data management platform;
identifying a user identification of the target user according to the data viewing request;
searching a permission association table corresponding to the target user and a preset data viewing rule according to the user identification, wherein the permission association table is used for indicating the associated users covered under the current permission of the target user and the data operation types of the associated users;
acquiring target data which is associated with the associated user and visible to the target user based on a preset data viewing rule corresponding to the target user;
and displaying the target data in the data management platform.
The embodiment of the application also provides a storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer executes the data viewing method according to any one of the embodiments.
It should be noted that, for the data viewing method described in the present application, it will be understood by those skilled in the art that all or part of the flow of implementing the data viewing method described in the embodiments of the present application may be implemented by controlling related hardware by using a computer program, where the computer program may be stored in a computer readable storage medium, for example, stored in a memory of a terminal device, and executed by at least one processor in the terminal device, and the execution may include the flow of the embodiment of the data viewing method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a random access Memory (RAM, random Access Memory), or the like.
For the data viewing device in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist separately and physically, or two or more modules may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as read-only memory, magnetic or optical disk, etc.
The data viewing method, device, medium and equipment provided by the embodiment of the application are described in detail above. The principles and embodiments of the present application are described herein with specific examples, the above examples being provided only to assist in understanding the methods of the present application and their core ideas; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method of viewing data, comprising:
receiving a data viewing request initiated by a target user aiming at a data management platform;
identifying a user identification of the target user according to the data viewing request;
searching a permission association table corresponding to the target user and a preset data viewing rule according to the user identification, wherein the permission association table is used for indicating the associated users covered under the current permission of the target user and the data operation types of the associated users;
acquiring target data which is associated with the associated user and visible to the target user based on a preset data viewing rule corresponding to the target user;
And displaying the target data in the data management platform.
2. The method for viewing data according to claim 1, wherein after searching the permission association table and the preset data viewing rule corresponding to the target user according to the user identifier, the method further comprises:
and if the permission association table corresponding to the target user does not exist, sending prompt information of the unauthorized viewing data, and rejecting the data viewing request.
3. The data viewing method of claim 1, wherein the data viewing rules comprise line data viewing rules and the target data comprises target line data;
the line data look-up rule includes:
acquiring associated user identifiers corresponding to each associated user in the authority associated table;
and acquiring the row data matched with the associated user identification from a first storage area for storing the row data as target row data to be displayed.
4. The data viewing method of claim 1, wherein the data viewing rules comprise column data viewing rules and the target data comprises target column data;
the line data look-up rule includes:
Acquiring associated user identifiers corresponding to each associated user in the authority associated table;
acquiring display state information carried by the associated user identifier, wherein the display state information comprises a display state and/or a hidden state;
searching column data corresponding to the associated user identifier from a second storage area for storing the column data, and endowing each column data with corresponding display state information;
and taking the column data endowed with the display state information as target column data to be displayed.
5. The data viewing method of claim 1, wherein the data viewing rules comprise column data viewing rules and the target data comprises target column data;
the line data look-up rule includes:
acquiring associated user identifiers corresponding to each associated user in the authority associated table;
acquiring display state information carried by the associated user identifier and used for indicating correspondence of each piece of sub data associated with the associated user identifier, wherein the display state information comprises a display state and/or a hidden state;
searching sub-data corresponding to the associated user identifier from a second storage area for storing column data, and endowing each sub-data with corresponding display state information;
And taking the sub-data endowed with the display state information as target column data to be displayed.
6. The data viewing method of claim 1, wherein the data operation types include one or more of viewing, modifying, copying.
7. The data viewing method of claim 6, wherein the user identification comprises a primary user, a secondary user, a tertiary user, and a quaternary user;
wherein the associated users in the authority associated table corresponding to the primary user are none;
the associated users in the authority associated table corresponding to the secondary users comprise primary users, and the data operation types corresponding to the primary users comprise one or more of viewing, modifying and copying;
the associated users in the authority associated table corresponding to the third-level user comprise a first-level user and a second-level user, and the data operation types corresponding to the first-level user and the second-level user comprise views;
the associated users in the authority associated table corresponding to the four-level user comprise a first-level user, a second-level user and a third-level user, and the data operation types corresponding to the first-level user, the second-level user and the third-level user comprise one or more of viewing, modifying and copying.
8. A data viewing device, comprising:
the receiving module is used for receiving a data viewing request initiated by a target user aiming at the data management platform;
The identification module is used for identifying the user identification of the target user according to the data viewing request;
the searching module is used for searching a permission association table corresponding to the target user and a preset data viewing rule according to the user identification, wherein the permission association table is used for indicating the associated users covered under the current permission of the target user and the data operation types of the associated users;
the acquisition module is used for acquiring target data which is associated with the associated user and is visible to the target user based on a preset data viewing rule corresponding to the target user;
and the display module is used for displaying the target data in the data management platform.
9. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the data viewing method of any of claims 1-7.
10. A terminal device comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the data viewing method of any of claims 1-7.
CN202310323888.1A 2023-03-29 2023-03-29 Data viewing method, device, medium and equipment Pending CN117725571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310323888.1A CN117725571A (en) 2023-03-29 2023-03-29 Data viewing method, device, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310323888.1A CN117725571A (en) 2023-03-29 2023-03-29 Data viewing method, device, medium and equipment

Publications (1)

Publication Number Publication Date
CN117725571A true CN117725571A (en) 2024-03-19

Family

ID=90200298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310323888.1A Pending CN117725571A (en) 2023-03-29 2023-03-29 Data viewing method, device, medium and equipment

Country Status (1)

Country Link
CN (1) CN117725571A (en)

Similar Documents

Publication Publication Date Title
US9712562B2 (en) Method, device and system for detecting potential phishing websites
US11711670B2 (en) Method for activating service based on user scenario perception, terminal device, and system
KR20130116107A (en) Apparatus and method for remote controlling terminal
CN109857494B (en) Message prompting method and terminal equipment
CN110427165B (en) Icon display method and mobile terminal
CN111953811A (en) Site access method, site registration method, device, equipment and storage medium
CN111142724A (en) Display control method and electronic equipment
CN108809805B (en) Information interaction method and system and public account client
CN106055598B (en) Information display method and device
CN111694892B (en) Resource transfer method, device, terminal, server and storage medium
CN113190302A (en) Information display method and device, electronic equipment and storage medium
CN112130949A (en) Prompt resource display method and device and computer readable storage medium
CN111723163A (en) Information processing method, device and system
CN115984643A (en) Model training method, related device and storage medium
CN116307394A (en) Product user experience scoring method, device, medium and equipment
CN117725571A (en) Data viewing method, device, medium and equipment
CN110045898A (en) A kind of display methods and terminal device
CN115801717A (en) Welcome language selection method, device, medium and equipment for chat tool
CN110798444B (en) Data synchronization method and device based on Internet of things
CN110290528A (en) Communication traffic hold-up interception method and mobile terminal
CN116582585B (en) Message pushing method, device, medium and equipment
CN116302267A (en) Information display method, device, medium and equipment
CN114786025B (en) Live broadcast data processing method, device, computer equipment and medium
CN110909377B (en) Information display method, electronic equipment and server
CN117440376A (en) Data transmission method, device, medium and 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