Content display method and device, electronic equipment and storage medium
By dynamically adjusting the display mode and content of some areas in the table, the problem of static table display mode in the prior art is solved, and more flexible data display and better user experience are achieved.
Patent Information
- Application Number
- CN202411279824.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-20
AI Technical Summary
In the prior art, tables adopt a static fixed display mode when displaying data content, which is difficult to meet users' increasingly diverse table viewing and operational needs.
By switching the display mode to the target display mode switching condition in response to partial areas in the table satisfying the set display mode switching conditions, the display mode is switched to the target display mode, and the display content is determined according to the target display mode, so as to dynamically adjust the display mode and content of some areas in the table.
The data content display effect of the table is optimized to meet the needs of changeable scenarios and improve user experience.
Smart Images

Figure CN119167900A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a content display method, device, electronic device, and storage medium. Background Art
[0002] With the rapid development of information technology, spreadsheets have become an indispensable tool in all walks of life. They are not only used to store and organize data, but also play an important role in data analysis, report generation and decision support.
[0003] However, in the prior art, tables use a fixed and unique display mode when displaying data content, that is, displaying the original table content according to a preset format and layout. This static and fixed display mode is difficult to meet the increasingly diverse table viewing and operation needs of users. Summary of the Invention
[0004] The present application provides a content display method, device, electronic device and storage medium to solve the technical problem in the prior art that a table using a static fixed display mode when displaying data content is difficult to meet the increasingly diverse table viewing and operation needs of users.
[0005] In a first aspect, the present application provides a content display method, the method comprising:
[0006] In response to a partial area in the table meeting a set display mode switching condition, switching the display mode of the partial area to a target display mode corresponding to the display mode switching condition;
[0007] The display content of the partial area is determined according to the target display mode, and the display content is displayed in the partial area.
[0008] In a possible implementation, in response to a partial area in the table satisfying a set display mode switching condition, switching the display mode of the partial area to a target display mode corresponding to the display mode switching condition includes:
[0009] In response to the partial area satisfying a set second display mode switching condition, determining the second display mode corresponding to the second display mode switching condition as a target display mode, and switching the display mode of the partial area to the target display mode;
[0010] The second display mode is used to indicate the display of processed content corresponding to the original content.
[0011] In a possible implementation, in response to a partial area in the table satisfying a set display mode switching condition, switching the display mode of the partial area to a target display mode corresponding to the display mode switching condition includes:
[0012] In response to the partial area satisfying a set first display mode switching condition, determining a first display mode corresponding to the first display mode switching condition as a target display mode, and switching the display mode of the partial area to the target display mode;
[0013] The first display mode is used to indicate the display of original content.
[0014] In a possible implementation, the responding to the partial area satisfying a set second display mode switching condition includes:
[0015] In response to a second mode setting operation on the partial area, it is determined that the partial area meets a set second display mode switching condition.
[0016] In a possible implementation, the responding to the partial area satisfying a set second display mode switching condition includes:
[0017] In response to the display area of the table being reduced and the reduced size being smaller than a set size threshold, determining that the partial area meets a set second display mode switching condition;
[0018] Alternatively, in response to a partial area in the table not being completely displayed in the display area of the table, it is determined that the partial area meets a set second display mode switching condition.
[0019] In a possible implementation, the responding to the partial area satisfying a set second display mode switching condition includes:
[0020] Identify the identity information of the current logged-in user of the table, and determine the authority of the current logged-in user to each area in the table based on the identity information;
[0021] A partial area for which the currently logged-in user does not have original content viewing authority is determined from the table, and it is determined that the partial area meets a set second display mode switching condition.
[0022] In a possible implementation, the responding to the partial area satisfying a set first display mode switching condition includes:
[0023] In response to a first mode setting operation on the partial area, it is determined that the partial area meets a set first display mode switching condition.
[0024] In a possible implementation, in response to the first mode setting operation on the partial area, determining that the partial area meets the set first display mode switching condition includes:
[0025] In response to the first mode setting operation on the partial area, when it is determined that the currently logged-in user of the table has the authority to view the original content of the partial area, it is determined that the partial area meets the set first display mode switching condition.
[0026] In a possible implementation, the responding to the partial area satisfying a set first display mode switching condition includes:
[0027] In response to the display area of the table being enlarged and the enlarged size being not less than a set size threshold, determining that the partial area meets the set first display mode switching condition;
[0028] Alternatively, in response to a partial area in the table being completely displayed in the display area of the table, it is determined that the partial area meets the set first display mode switching condition.
[0029] In a possible implementation, the responding to the partial area satisfying a set first display mode switching condition includes:
[0030] In response to a change in the permissions of the currently logged-in user of the table to the partial area, and when it is determined that the changed permissions of the currently logged-in user to the partial area indicate that the currently logged-in user has permission to view the original content of the partial area, it is determined that the partial area meets the set first display mode switching condition.
[0031] In a possible implementation, determining the display content of the partial area according to the target display mode includes:
[0032] When the target display mode is the second display mode, the original content in the partial area is processed, and the processed content is determined as the display content of the partial area.
[0033] In a possible implementation, the processing the original content in the partial area includes:
[0034] Performing summary generation processing on the original content in the partial area, and using the generated content summary as processed content;
[0035] Alternatively, the original content in the partial area is abbreviated, and the abbreviated content is used as the processed content.
[0036] In a possible implementation, the processing the original content in the partial area includes:
[0037] Identify the identity information of the currently logged-in user of the form;
[0038] Determining the authority of the currently logged-in user to the partial area according to the identity information;
[0039] The original content in the partial area is processed according to the permission.
[0040] In a possible implementation, displaying the display content in the partial area includes:
[0041] The display content is displayed in the partial area in a target format, where the target format is the display format indicated by the target display mode.
[0042] In a possible implementation, displaying the display content in the partial area includes:
[0043] Rendering a table view of the table;
[0044] In the table view, the display content is displayed in the partial area.
[0045] In a second aspect, the present application provides a content display device, the device comprising:
[0046] a mode switching module, configured to, in response to a partial area in the table satisfying a set display mode switching condition, switch the display mode of the partial area to a target display mode corresponding to the display mode switching condition;
[0047] The content display module is configured to determine the display content of the partial area according to the target display mode, and display the display content in the partial area.
[0048] In a possible implementation, the mode switching module includes:
[0049] a second mode switching unit, configured to, in response to the partial area satisfying a set second display mode switching condition, determine the second display mode corresponding to the second display mode switching condition as a target display mode, and switch the display mode of the partial area to the target display mode;
[0050] The second display mode is used to indicate the display of processed content corresponding to the original content.
[0051] In a possible implementation, the mode switching module includes:
[0052] a first mode switching unit, configured to, in response to the partial area satisfying a set first display mode switching condition, determine a first display mode corresponding to the first display mode switching condition as a target display mode, and switch the display mode of the partial area to the target display mode;
[0053] The first display mode is used to indicate the display of original content.
[0054] In a possible implementation manner, the second mode switching unit is specifically configured to:
[0055] In response to a second mode setting operation on the partial area, it is determined that the partial area meets a set second display mode switching condition.
[0056] In a possible implementation manner, the second mode switching unit is specifically configured to:
[0057] In response to the display area of the table being reduced and the reduced size being smaller than a set size threshold, determining that the partial area meets a set second display mode switching condition;
[0058] Alternatively, in response to a partial area in the table not being completely displayed in the display area of the table, it is determined that the partial area meets a set second display mode switching condition.
[0059] In a possible implementation manner, the second mode switching unit is specifically configured to:
[0060] Identify the identity information of the current logged-in user of the table, and determine the authority of the current logged-in user to each area in the table based on the identity information;
[0061] A partial area for which the currently logged-in user does not have original content viewing authority is determined from the table, and it is determined that the partial area meets a set second display mode switching condition.
[0062] In a possible implementation manner, the first mode switching unit is specifically configured to:
[0063] In response to a first mode setting operation on the partial area, it is determined that the partial area meets a set first display mode switching condition.
[0064] In a possible implementation manner, the first mode switching unit is specifically configured to:
[0065] In response to the first mode setting operation on the partial area, when it is determined that the currently logged-in user of the table has the authority to view the original content of the partial area, it is determined that the partial area meets the set first display mode switching condition.
[0066] In a possible implementation manner, the first mode switching unit is specifically configured to:
[0067] In response to the display area of the table being enlarged and the enlarged size being not less than a set size threshold, determining that the partial area meets the set first display mode switching condition;
[0068] Alternatively, in response to a partial area in the table being completely displayed in the display area of the table, it is determined that the partial area meets the set first display mode switching condition.
[0069] In a possible implementation manner, the first mode switching unit is specifically configured to:
[0070] In response to a change in the permissions of the currently logged-in user of the table to the partial area, and when it is determined that the changed permissions of the currently logged-in user to the partial area indicate that the currently logged-in user has permission to view the original content of the partial area, it is determined that the partial area meets the set first display mode switching condition.
[0071] In a possible implementation, the content display module is specifically configured to:
[0072] When the target display mode is the second display mode, the original content in the partial area is processed, and the processed content is determined as the display content of the partial area.
[0073] In a possible implementation, the content display module is specifically configured to:
[0074] Performing summary generation processing on the original content in the partial area, and using the generated content summary as processed content;
[0075] Alternatively, the original content in the partial area is abbreviated, and the abbreviated content is used as the processed content.
[0076] In a possible implementation, the content display module is specifically configured to:
[0077] Identify the identity information of the currently logged-in user of the form;
[0078] Determining the authority of the currently logged-in user to the partial area according to the identity information;
[0079] The original content in the partial area is processed according to the permission.
[0080] In a possible implementation, the content display module is specifically configured to:
[0081] The display content is displayed in the partial area in a target format, where the target format is the display format indicated by the target display mode.
[0082] In a possible implementation, the content display module is specifically configured to:
[0083] Rendering a table view of the table;
[0084] In the table view, the display content is displayed in the partial area.
[0085] In a third aspect, the present application provides an electronic device, comprising: a processor and a memory, wherein the processor is configured to execute a table processing program stored in the memory to implement the content display method described in any one of the first aspects.
[0086] In a fourth aspect, the present application provides a storage medium storing one or more programs, which can be executed by one or more processors to implement the content display method described in any one of the first aspects.
[0087] The above-mentioned technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application, in response to a part of the area in the table meeting the set display mode switching condition, switches the display mode of the part of the area to the target display mode corresponding to the display mode switching condition, determines the display content of the part of the area according to the target display mode, and displays the display content in the part of the area. It can realize dynamic adjustment of the display mode of the part of the area in the table through the conditional trigger mechanism, and then can realize dynamic change of the display content of the part of the area in the table through the conditional trigger mechanism, which can optimize the data content display effect of the table, meet the needs of changing scenarios, and improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0088] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0089] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0090] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0091] Figure 1 A flowchart of an embodiment of a content display method provided in an embodiment of the present application;
[0092] Figure 2 A schematic diagram of a display effect in which a summary of the original content of a portion of a table is used as the display content of the portion;
[0093] Figure 3 A schematic diagram of an application scenario involved in an embodiment of the present application;
[0094] Figure 4 This is an example of an incomplete display effect of a preset area in a table on the screen display interface;
[0095] Figure 5 For Figure 4 The table shown is a schematic diagram of a display effect of applying the method provided in the embodiment of the present application;
[0096] Figure 6 For Figure 4 The table shown is a schematic diagram of another display effect of applying the method provided in the embodiment of the present application;
[0097] Figure 7 This is an example of an incomplete display effect of a merged cell in a table on the screen display interface;
[0098] Figure 8 For Figure 7 The table shown is a schematic diagram of a display effect of applying the method provided in the embodiment of the present application;
[0099] Figure 9 A block diagram of an embodiment of a content display device provided in an embodiment of the present application;
[0100] Figure 10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0101] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0102] The disclosure below provides many different embodiments or examples for implementing different structures of the present application. In order to simplify the disclosure of the present application, the components and settings of specific examples are described below. Of course, these are merely examples and are not intended to limit the present application. In addition, the present application may repeat reference numbers and / or letters in different examples. Such repetition is for the purpose of simplicity and clarity and does not in itself indicate the relationship between the various embodiments and / or settings discussed.
[0103] In order to solve the technical problem in the prior art that tables use a static and fixed display mode when displaying data content, which is difficult to meet the users' increasingly diverse table viewing and operation needs, the present application provides a content display method, device, electronic device and storage medium, which can dynamically adjust the display mode of some areas in the table through a conditional trigger mechanism, and then dynamically change the display content of some areas in the table through a conditional trigger mechanism. This can optimize the data content display effect of the table, meet the needs of changing scenarios, and enhance the user experience.
[0104] Figure 1 This is a flow chart of an embodiment of a content display method provided in an embodiment of the present application.
[0105] like Figure 1 As shown, the process includes the following steps:
[0106] Step 101 : In response to a portion of the area in the table meeting a set display mode switching condition, the display mode of the portion of the area is switched to a target display mode corresponding to the display mode switching condition.
[0107] The above-mentioned form can be any form, which can be a traditional format form, such as a form in .xls, .xlsx, etc., or a new generation of smart form, online form. The embodiment of this application does not limit this.
[0108] From the perspective of access method, the above-mentioned table can be a collaborative document, which allows multiple users to collaboratively edit it online, or allows multiple users to spread it to each other through mobile storage media (such as USB flash drives) to collaboratively edit it. Taking online collaborative editing as an example, there are currently two different ways of document collaboration, namely online collaborative documents and collaborative documents within a local area network. Among them, online collaborative documents are a way of sharing and editing documents through the Internet, storing documents on a cloud server, allowing multiple users to access, edit and comment on documents at the same time, and providing real-time collaboration and communication functions. Collaborative documents within a local area network refer to a way in which multiple users can edit and modify the same document within a local area network through shared folders or using professional collaborative editing software. The table in the embodiment of the present application can be any of the above-mentioned collaborative documents, and the embodiment of the present application does not limit this.
[0109] From the perspective of spatial dimension, the partial area in the table mentioned in the above steps can be a cell in the table, or an area composed of multiple adjacent cells. Among them, in the case where the partial area is a cell in the table, the cell can be an independent cell or a merged cell, and the embodiment of the present application does not limit this. Furthermore, the number of the above-mentioned partial areas can be one or more, that is, multiple areas in the table can switch display modes at the same time, and the embodiment of the present application does not limit this.
[0110] From a logical perspective, the partial area of the table mentioned in the above steps can be a preset area in the table, that is, a fixed area pre-designated in the table, or it can be any area in the table. The position and size of this area are not fixed. Instead, the partial area in the table that meets the set display mode switching conditions can be dynamically determined based on the table display or user operations on the table. This flexibility enables the user interface to more intelligently adapt to different usage scenarios and user needs.
[0111] As for how to dynamically determine the partial area that meets the set display mode switching conditions in the table, it will be explained exemplarily through different embodiments below and will not be described in detail here.
[0112] In the technical solution of the embodiments of the present application, some display modes are predefined. These display modes refer to the form in which the original content in the table is presented to the user. It is understandable that different display modes indicate different content presentation forms, which can meet the table viewing and operation requirements in different scenarios in actual applications.
[0113] Here, the differences between different content presentation forms can be reflected in one or more of the following dimensions: content display format (such as font color, background color), content display volume (such as displaying all content, displaying abbreviated content, displaying summary content), content compactness (such as displaying according to standard character spacing, displaying according to smaller character spacing), different views of displaying content, etc.
[0114] Furthermore, some display mode switching conditions are predefined, and the display mode switching conditions are used to clarify under what circumstances the display mode should be switched and which display mode should be switched to. It is understandable that different display mode switching conditions correspond to different circumstances in which the display mode should be switched and the display mode to be switched.
[0115] For example, a first display mode switching condition and a second display mode switching condition are predefined. Among them, the first display mode switching condition corresponds to the first display mode, and clarifies that when a part of the area in the table meets the situation defined by the condition, the display mode of the part of the area is switched to the first display mode. The second display mode switching condition corresponds to the second display mode, and clarifies that when a part of the area in the table meets the situation defined by the condition, the display mode of the part of the area is switched to the second display mode. As for the specific contents of the first display mode switching condition, the second display mode switching condition, the first display mode and the second display mode, an exemplary explanation is made through embodiments below and will not be described in detail here.
[0116] Of course, the above-mentioned first display mode and second display mode are only used for examples. In this embodiment, the present invention is not limited to the case where there are two display modes. The display mode can be adjusted to multiple modes according to actual conditions.
[0117] Based on the above description, in step 101, a certain area or areas in a table are monitored. When a portion of the area in the table is found to meet a set display mode switching condition, a display mode switch is triggered. Specifically, the display mode of the portion of the area is switched to the display mode corresponding to the display mode switching condition (for convenience of description, referred to as the target display mode).
[0118] For example, in response to a partial area in the table meeting a set second display mode switching condition, the second display mode corresponding to the second display mode switching condition is determined as the target display mode, and the display mode of the partial area is switched to the second display mode. Alternatively, in response to a partial area in the table meeting a set first display mode switching condition, the first display mode corresponding to the first display mode switching condition is determined as the target display mode, and the display mode of the partial area is switched to the first display mode.
[0119] Step 102: Determine the display content of the partial area according to the target display mode, and display the display content in the partial area.
[0120] From the description of step 101, it can be seen that different display modes indicate different content presentation forms. Therefore, after the display mode of a part of the area in the table is switched to the target display mode, the display content of the part of the area will be determined according to the target display mode, so that the content displayed in the part of the area matches the target display mode.
[0121] As for how to determine the display content of a partial area in the table according to the target display mode and display the display content in the partial area, an exemplary explanation is given below through embodiments and will not be described in detail here.
[0122] The technical solution provided in the embodiment of the present application, in response to a partial area in a table meeting a set display mode switching condition, switches the display mode of the partial area to a target display mode corresponding to the display mode switching condition, determines the display content of the partial area according to the target display mode, and displays the display content in the partial area. It can realize dynamic adjustment of the display mode of the partial area in the table through a conditional trigger mechanism, and then realize dynamic change of the display content of the partial area in the table through a conditional trigger mechanism. This can optimize the data content display effect of the table, meet the needs of changing scenarios, and improve the user experience.
[0123] In one embodiment, a first display mode switching condition and a second display mode switching condition are predefined. The first display mode switching condition corresponds to the first display mode, and the first display mode is used to indicate the display of the original content. It can also be said that the first display mode is a standard mode, that is, the original table content is displayed in the default content display format, and the table content is not processed. The second display mode switching condition corresponds to the second display mode, and the second display mode is used to indicate the display of the processed content corresponding to the original content. It can be seen that when the display mode of a part of the area in the table is switched to the second display mode, the original content in the part of the area needs to be processed.
[0124] Further optionally, the second display mode can be differentiated according to different processing methods. For example, the second display mode includes thumbnail mode, summary mode, permission management mode, folded mode, highlight mode, chart mode, etc., or a combination of two or more of the above modes (such as a combination of summary mode and highlight mode, a combination of thumbnail mode and highlight mode, a combination of summary mode and permission management mode, etc.).
[0125] The abbreviated mode extracts or deletes parts of the data from the complete data to display abbreviated content. This mode can simplify the data content and, in some scenarios, hide parts of the data, such as private, sensitive, or important content.
[0126] Summary mode refers to extracting and displaying the key points of data content (i.e. content summary). On the one hand, this mode can help users quickly understand the core information of the data content, and on the other hand, it can simplify the data content so that in some cases, such as when the content in the cell is large or complex, the data content can be presented in a shorter and clearer form.
[0127] As can be seen from the above description, both thumbnail mode and summary mode can prevent the original content from being fully displayed. Therefore, both modes can protect the original content to a certain extent, and can be regarded as different content protection modes. In data access control scenarios, content protection mode has certain application significance. For example, through content protection mode, private, sensitive, or highly important information in the original content can be protected to prevent this information from being leaked to users who do not have access rights.
[0128] Permission management refers to different content processing methods based on user permissions. This model can display different content based on different user permissions. On the one hand, it can limit user access and operation permissions to data content, prevent data leakage to unauthorized users, and ensure the privacy and security of data content. On the other hand, because administrators can flexibly configure user permissions based on actual needs, it has high flexibility and scalability, which can adapt to different scenarios and changing business needs.
[0129] Collapse mode refers to collapsing cells in a portion of a table into a row or column. This process can reduce the display area of the table itself to present more table content on a limited screen display interface. Optionally, in collapse mode, the remaining row or column in the above-mentioned portion of the area can display the original content of the first row or column in the portion of the area, and support scrolling in the remaining row or column to view the original content of the collapsed (or hidden) row / column in the portion of the area.
[0130] As an optional implementation, some rows / columns in a portion of the table area are hidden to collapse the portion into a row or column. This method achieves the hidden display effect by adjusting the layout of the underlying data of the table.
[0131] As another optional implementation method, part of the area in the table is folded into a row or a column through a view. Here, the view method means: when displaying, the processing results of the table are displayed in a view manner, while the underlying data remains in its original state, that is, each cell still has its own independent original cell content and maintains its original position and layout. This approach can maintain accurate and efficient operation of the underlying data while providing a friendly view display. Based on this, in folding mode, a table view of the table is rendered, and in the table view, part of the table is folded into a row or a column.
[0132] Rendering a table view typically involves calculating the start and end positions of the table area and merging the areas at different positions into a visually complete table during rendering. When the table area changes, the view is re-rendered. This creates a collapsed effect on some areas of the table.
[0133] Highlight mode makes data content more visually prominent by changing background color, font color, etc. Icon mode displays data content in the form of icons, making the data content more vivid and prominent visually.
[0134] The combination of summary mode and highlight mode refers to extracting the key points of the data content and making the extracted key points more prominent visually by changing the background color, font color, etc.
[0135] The combination of summary mode and permission management mode refers to different summary extraction methods based on different user permissions. Among them, the difference between different summary extraction methods can be reflected in different prompt words. Here, prompt words refer to the key to guiding the summary extraction model to output the expected content, usually consisting of instructions and input data. The instructions clarify the task, and the input data is the content to be summarized, at least including the original content in the partial area of the table that is set to summary mode, and in addition, it can also include the context content of the original content. Furthermore, the difference between different prompt words can be reflected in different instructions and / or different input data. Setting different prompt words for different roles / user groups can achieve different extraction of content summaries with different breadth / depth according to different user permissions.
[0136] As for the specific contents of other modes or mode combinations, they are not shown here one by one.
[0137] It should be noted that the above display modes are merely exemplary. In actual applications, other display modes can be defined for other scenarios or other user needs, and the embodiments of the present application do not limit this.
[0138] In this embodiment, when the current display mode of a partial area in the table is the first display mode, that is, when the partial area in the table normally displays the original content, in response to the partial area meeting the second display mode switching condition, the second display mode is determined as the target display mode, and the display mode of the partial area is switched to the second display mode. At this time, the original content in the partial area is processed, and the processed original content, that is, the processed content, is displayed in the partial area.
[0139] Based on the above description, as an optional implementation, processing the original content in a portion of the table includes: generating a summary of the original content in the portion and using the generated summary as the processed content. This corresponds to the summary mode described above.
[0140] Optionally, the original content in the region is input into a trained summary extraction model to obtain the output content of the summary extraction model, which is the content summary. Figure 2 , which is a schematic diagram of the display effect of using the content summary of the original content of a part of the area in the table as the display content of the part of the area. Figure 2 In the figure, the area surrounded by a bold border is the above-mentioned partial area.
[0141] pass Figure 2 It can be seen that when the partial area includes multiple cells, the display effect of merging the cells in the partial area to obtain merged cells and displaying the content summary in the merged cells will be presented. In this regard, in one embodiment, when the display mode of a partial area in the table is the second display mode, the specific implementation of displaying the display content in the partial area of the table includes: rendering a table view of the table, and displaying the display content in the partial area in the table view. That is to say, in the technical solution provided in the embodiment of the present application, the view display and the underlying data operation can be separated for the table. The separation here means: when displaying, the processing result of the table is displayed in a view manner, while the underlying data remains in its original state, that is, each cell still maintains its own independent original cell content and original layout. The layout operation of the table, such as the operation of merging the cells in a partial area, is only presented by the view rendering method to present the corresponding display effect, and does not change the underlying data of the table. This approach can provide a friendly view display while maintaining accurate and efficient operation of the underlying data.
[0142] As another optional implementation, the specific implementation of processing the original content in a portion of the area in the table includes: abbreviating the original content in the portion of the area and using the abbreviated content as the processed content, which corresponds to the abbreviated mode described above.
[0143] In thumbnail mode, you can also use view rendering to present the corresponding display effect without changing the underlying data of the table.
[0144] Furthermore, from the above description, it can be known that when a part of the area in the table is displayed in summary mode or thumbnail mode, the display content of the part of the area will be made shorter. In some cases, the table view of the part of the area can also be reduced. This processing can make the final table display effect more coordinated on the one hand, and on the other hand, it can present more table content on the limited screen display interface. For ease of understanding, the following application scenarios are shown:
[0145] See also Figure 3 As can be seen from the table shown, the header area in the table is relatively large, and once the header area is set to a frozen state, since the header area cannot be moved in the frozen state, the screen display interface can only display the header area fixedly with a larger display ratio. This results in a relatively small area of table data items that can be displayed in the limited screen display interface, thus affecting user reading. It is even possible that only the frozen header area is displayed, and the table data item area cannot be displayed. Moreover, since the header area is frozen, the header area cannot be moved. Since the table data item area cannot be displayed, it cannot receive move operations acting on the table data item area. In other words, the table data item area cannot be viewed by moving the table.
[0146] To this end, we can follow the above description Figure 3 The display mode of the header area is set to summary mode or thumbnail mode, and the table view of the header area is adaptively reduced according to the final display content. As the corresponding view of the header area is reduced, the display ratio of the header area in the screen display interface can be reduced, thereby increasing the display ratio of the table data item area in the screen display interface, allowing users to better read and operate the table.
[0147] As another optional implementation, processing the original content in some areas includes identifying the identity information of the currently logged-in user in the table, determining the currently logged-in user's permissions for the areas based on the identity information, and processing the original content in some areas based on the permissions. This corresponds to the permission-based management mode described above.
[0148] The above-mentioned identity information is, for example, a user ID.
[0149] Optionally, pre-define the areas that different roles or user groups can view or operate in a table, and then assign corresponding permissions based on the user's role or attributes. Permissions can include the ability to view original content, only view summary content, only view thumbnail content, etc.
[0150] Thus, when a user views the content of a portion of a table, the user's identity information is identified, and then the user's permissions for that portion of the table are determined based on the user's identity information. This permission can then be used to determine how the original content in that portion of the table should be processed. For example, if the user's permissions for that portion of the table are limited to viewing only a summary of the content, the original content in that portion of the table will be extracted to obtain a summary of the original content, which will then be displayed in that portion of the table.
[0151] When the current display mode of a partial area in the table is the second display mode, that is, when the partial area in the table displays the processed original content, in response to the partial area satisfying the first display mode switching condition, the first display mode is determined as the target display mode, and the display mode of the partial area is switched to the first display mode. At this time, the original content will be displayed in the partial area.
[0152] It can be seen from the above description that the technical solution of the embodiment of the present application supports switching the display mode of a part of the area in the table between the first display mode and the second display mode, thereby realizing the switching of the display content of a part of the area in the table between its corresponding original content and processed content, so that the user can flexibly view the original content or processed content in the table according to needs or the actual status of the table, meet user needs, and improve user experience.
[0153] Furthermore, the technical solution of the embodiments of the present application also supports switching the display mode of a portion of a table between different second display modes, such as switching between a highlight mode and a summary mode. This enables flexible processing of the original content of a portion of a table in different ways, thereby meeting the increasingly diverse table viewing and operation needs of users.
[0154] In this embodiment, the specific implementation of displaying the display content in the partial area includes: displaying the display content in the partial area of the table in a target format, where the target format is the display format indicated by the target display mode.
[0155] Specifically, when the display mode of a portion of the area in the table is switched from the first display mode to the second display mode, the processed content corresponding to the original content is displayed in the portion in the display format indicated by the second display mode. For example, if the second display mode is a highlight mode, and the display format indicated by the highlight mode is: the font is black and the background color is bright yellow, then the processed content corresponding to the original content is displayed in the portion in the format of black font and bright yellow background color. For another example, if the second display mode is a summary mode, then the content summary corresponding to the original content is displayed in the portion in a preset summary format (such as bold font).
[0156] When the display mode of a part of the area in the table is switched from the second display mode to the first display mode, the original content is displayed in the part of the area in the display format indicated by the first display mode. Normally, the display format indicated by the first display mode is the original display format of the original content. That is to say, when the display content of a part of the area in the table is restored from the processed content to the original content, the original display format of the original content is restored synchronously, which can ensure that during the display mode restoration process, not only the accuracy of the content is maintained, but also the presentation method (i.e., format) of the data also complies with the original design or requirements, thereby avoiding errors such as content confusion and misunderstanding caused by inconsistencies.
[0157] The above takes the display mode including the first display mode and the second display mode as an example to explain the process of switching the display mode of part of the area in the table between different display modes as a whole. The following describes the specific implementation of switching the display mode of part of the area in the table from the first display mode to the second display mode, and the specific implementation of switching from the second display mode to the first display mode through different embodiments.
[0158] First, the specific implementation of switching the display mode of a portion of the table from the first display mode to the second display mode is described:
[0159] In one embodiment, in response to a partial area in a table satisfying a set second display mode switching condition, a specific implementation includes: in response to a second mode setting operation on the partial area in the table, determining that the partial area satisfies the set second display mode switching condition. The second mode setting operation is used to indicate that the display mode of the partial area in the table is set to the second display mode. In other words, in response to the second mode setting operation on the partial area in the table, the display mode of the partial area is switched to the second display mode.
[0160] Thus, it can be seen that the technical solution provided in the embodiment of the present application allows users to flexibly switch the display mode of part of the area in the table according to actual needs. In this case, the part of the area in the table can be a preset area or an area selected by the user according to actual needs. For example, the user selects an area in the table according to actual needs, and then triggers the corresponding icon, such as the icon corresponding to the second display mode, to trigger the second mode setting operation for the selected area.
[0161] By allowing users to flexibly switch the display mode of some areas in the table according to actual needs, user needs can be met and the user experience can be improved.
[0162] In another embodiment, the specific implementation of responding to a partial area in the table satisfying the set second display mode switching condition includes: responding to a partial area in the table not being fully displayed in the display area of the table, determining that the partial area satisfies the set second display mode switching condition.
[0163] Here, one scenario is that the aforementioned partial area is a preset area in a table, and the aforementioned display area of the table refers to the screen display interface, i.e., the display window of the table. In this case, the display of the preset area in the table on the screen display interface is monitored, and when it is detected that the preset area is not fully displayed on the screen display interface, it is determined that the area meets the set second display mode switching condition.
[0164] Factors that cause the preset area in the table to not be fully displayed on the screen display interface include but are not limited to: the table scrolls up and down or left and right on the screen display interface, causing the preset area in the table to be partially moved outside the screen display interface; the screen display interface is reduced while the table remains the same size, causing the preset area in the table to be partially invisible; the table shrinks as the screen display interface shrinks, but the reduction ratio is not enough to make the table fully displayed on the screen display interface, etc. Figure 4 , which is an example of the incomplete display effect of the preset area in the table on the screen display interface. Figure 4 In the figure, the area surrounded by a bold border is the preset area mentioned above.
[0165] exist Figure 4In the application scenario illustrated, as an optional implementation method, the display mode of the preset area (i.e., the area surrounded by a bold border) can be switched from the first display mode to the summary mode or thumbnail mode. In the summary mode or thumbnail mode, the final display content of the preset area is changed compared to the original content and becomes shorter. At the same time, the preset area can be reduced as the content becomes shorter. Since the final display content of the preset area is relatively short, even if the preset area becomes partially invisible on the screen display interface, arranging these contents in the visible part of the preset area in a reasonable manner can enable these contents to be displayed normally. For example, see Figure 5 Schematic diagram of the display effect.
[0166] As another optional implementation, the display mode of the preset area can be switched from the first display mode to the folding mode. In the folding mode, Figure 4 The preset area in is collapsed into a cell area with two rows and one column, that is, Figure 4 Only two rows and one column of the preset area are retained, and the retained cell area is located in the visible part of the preset area. For example, see Figure 6 Schematic diagram of the display effect.
[0167] exist Figure 6 In the example, the user is also allowed to scroll in the retained cell area to view the original content in the cell area where the preset area is collapsed (or hidden). In this way, even when part of the preset area becomes invisible, the content in the preset area can still be displayed normally.
[0168] It should be noted that when it is detected that the area preset in the table is not fully displayed in the screen display interface, that is, when it is partially displayed, it is determined that the area meets the set second display mode switching condition. When it is detected that the area preset in the table is not displayed at all in the screen display interface, since the area is not displayed at all, it is completely invisible to the user and it does not matter which display mode is used. Therefore, the display mode of the area does not need to be switched.
[0169] Another situation is: the aforementioned partial area is any area in a table, and the aforementioned display area of the table refers to the display interface of the screen. In this case, the display of the area in the table on the screen display interface is monitored, and when it is detected that any area is not fully displayed in the screen display interface, the area is determined as a partial area that meets the set second display mode switching condition. Among them, the area in the table mentioned above can be a cell in the table, including independent cells and merged cells, or it can be an area composed of multiple adjacent cells in the table (this is a preset area).
[0170] Similar to the above situation, factors that cause the area in the table to be incompletely displayed on the screen display interface include but are not limited to: the screen display interface is scrolled up and down or left and right, causing the area in the table to be partially moved outside the screen display interface, the screen display interface is reduced while the table remains at its original size, causing the area in the table to be partially invisible, the table is reduced as the screen display interface is reduced, but the reduction ratio is not enough to make the table completely displayed on the screen display interface, etc. Figure 7 , which is an example of an incomplete display effect of a merged cell in a table on the screen display interface. Figure 7 In the example, the merged cell is determined as a partial area that meets the set second display mode switching condition, and the display mode of the merged cell is subsequently switched to the second display mode.
[0171] exist Figure 7 In the application scenario illustrated, as an optional implementation, the display mode of the partially displayed merged cell can be switched from the first display mode to the collapsed mode. In the collapsed mode, Figure 7 The merged cells in the are collapsed into a cell range of one row and one column, that is, Figure 7 The merged cells in the show only one row and one column, and the retained cell area is located in the visible part of the merged cells. For example, see Figure 8 Schematic diagram of the display effect. Figure 8 In the example, the original content in the merged cell, or the summary content of the original content, etc. is displayed in the retained cell area, and the embodiment of the present application does not limit this.
[0172] From the above description, it can be seen that by applying the technical solution provided in the embodiments of the present application, it is possible to flexibly adjust the display mode of the area in the table according to the actual display situation of the table. This flexibility enables the user interface to adapt to different usage scenarios and user needs more intelligently.
[0173] In addition, the display area of the table mentioned above may also refer to the table itself. When the table itself is reduced, it may also cause areas in the table to be invisible or incompletely displayed. If one or more areas in the table are not fully displayed due to the reduction of the table itself, these areas can be determined as partial areas that meet the set second display mode switching conditions, and the display mode of these partial areas can be switched to the second display mode.
[0174] In addition, there is a situation where the table itself is reduced, and the reduction to a certain extent causes the content in one or some areas of the table to be unclear. In this case, these areas can also be determined as partial areas that meet the set second display mode switching conditions, and then the display mode of the partial area is switched to the second display mode. Optionally, the display mode of the partial area can be switched to thumbnail mode or summary mode. Both modes can simplify the original content in the partial area, that is, reduce the volume of the content. It can be understood that in a limited display space, the less content is displayed, the easier it is to make some settings that are conducive to clear display (such as increasing the font size) for the displayed content, thereby making the overall display effect of the table clearer.
[0175] As can be seen from this. In response to the display area of the table being reduced, and the reduced size being smaller than the set size threshold, it is determined that a partial area in the table meets the set second display mode switching condition. Here, the partial area in the table can be a preset area, or it can be an area where the content in the table is not clearly displayed. For example, the clarity of the content in the table can be detected by an additional text clarity detection tool. The above-mentioned set size threshold can be set manually based on experience, or it can be set by multiplying the original size of the table by a preset ratio value (less than 1). The embodiment of the present application does not limit this.
[0176] In another embodiment, the specific implementation of responding to the partial areas in the table satisfying the set second display mode switching conditions includes: identifying the identity information of the currently logged-in user of the table, and determining the authority of the currently logged-in user to each area in the table based on the identity information, determining from the table the partial areas for which the currently logged-in user does not have the authority to view the original content, and determining that the partial areas satisfy the set second display mode switching conditions.
[0177] This embodiment usually occurs in a scenario where a user newly opens a form. In this scenario, the various areas in the form are originally set to the first display mode. When the user opens the form, the user's identity information will be identified, and the permissions of the currently logged-in user to the various areas in the form will be determined based on the identity information. Some areas in the form for which the currently logged-in user does not have permission to view the original content will be determined, and it will be determined that some areas meet the set second display mode switching conditions.
[0178] Through this embodiment, when a user does not have the permission to view certain original contents in a table, it is possible to protect the original contents by switching the display mode, such as displaying only the content summary or displaying the abbreviated content, thereby avoiding the leakage of private information, sensitive information or highly important information in the original content to users who do not have access rights.
[0179] It should be noted that the above embodiments are parallel technical solutions. These embodiments can be applied in different scenarios to solve different user needs. Therefore, the technical solutions of the embodiments of this application can meet the needs of changing scenarios and improve user experience. Of course, it is not ruled out that the technical solutions provided by two or more different embodiments can be combined in some scenarios, and the embodiments of this application do not limit this.
[0180] Next, the specific implementation of switching from the second display mode to the first display mode is described:
[0181] In one embodiment, in response to a partial area in a table satisfying a set first display mode switching condition, a specific implementation includes: in response to a first mode setting operation on the partial area in the table, determining that the partial area satisfies the set first display mode switching condition. The first mode setting operation is used to indicate that the display mode of the partial area in the table is set to the first display mode. In other words, in response to the first mode setting operation on the partial area in the table, the display mode of the partial area is switched to the first display mode.
[0182] Thus, it can be seen that the technical solution provided in the embodiment of the present application allows users to flexibly switch the display mode of part of the area in the table according to actual needs. In this case, the part of the area in the table can be a preset area or an area selected by the user according to actual needs. For example, the user selects an area in the table according to actual needs, and then triggers the corresponding icon, such as the icon corresponding to the first display mode, to trigger the first mode setting operation for the selected area.
[0183] By allowing users to flexibly switch the display mode of some areas in the table according to actual needs, user needs can be met and the user experience can be improved.
[0184] In another embodiment, the specific implementation of responding to a partial area in a table satisfying the set first display mode switching condition includes: in response to the first mode setting operation on the partial area, determining that the partial area satisfies the set first display mode switching condition when it is determined that the currently logged-in user of the table has the permission to view the original content of the partial area.
[0185] This embodiment, based on the previous embodiment, adds a permission check for the currently logged-in user of the table. Only when it is determined that the currently logged-in user has permission to view the original content of a portion of the table area will the display mode of that portion of the table area be switched to the first display mode. This process can prevent private, sensitive, or highly important information in the original content from being leaked to users who do not have permission to do so.
[0186] In another embodiment, the specific implementation of responding to a partial area in a table satisfying the set first display mode switching condition includes: responding to a change in the permissions of the current logged-in user of the table to the partial area, and determining that the partial area satisfies the set first display mode switching condition when it is determined that the changed permissions of the current logged-in user to the partial area indicate that the current logged-in user has permission to view the original content of the partial area.
[0187] The scenario in this embodiment is usually as follows: the user originally does not have the permission to view the original content of a part of the table, resulting in the display mode of the part being switched to the second display mode when the user opens the table. Later, while the user is viewing the table, the user's permission to the part is changed again, and as a result of the change, the user has the permission to view the original content of the part. At this time, it can be determined that the part meets the set first display mode switching condition, and then the display mode of the part is switched from the second display mode to the first display mode, so that the displayed content in the part is restored to the original content.
[0188] The aforementioned changes to user permissions for certain areas of a table can occur in two situations. One situation is that while the user is viewing the table, the table administrator proactively grants the user permission to view the original contents of certain areas. The other situation is that while the user is viewing the table, the user needs to view the original contents of certain areas and proactively requests permission from the table administrator. The table administrator, upon request, grants the user permission to view the original contents of certain areas.
[0189] In actual applications, no matter which of the above situations occurs, the technical solutions provided by the above embodiments can realize the adaptive adjustment of the display mode of some areas in the table according to the changes in user permissions. This adaptive adjustment enhances the manageability of the table and can improve the user experience.
[0190] In yet another embodiment, in response to a partial area in the table being completely displayed in the display area of the table, it is determined that the partial area meets the set first display mode switching condition.
[0191] The scenario in this embodiment typically occurs when a portion of the table cannot be fully displayed in the display area due to factors such as the reduction of the table display area or scrolling of the table, and the display mode is switched to the second display mode. Subsequently, as the table display area is further enlarged or the table is scrolled, the previously incompletely displayed portion is fully displayed in the display area. At this point, the display mode determines that the portion meets the set conditions for switching to the first display mode, and the display mode of the portion is switched back to the first display mode, so that the portion displays its original content again.
[0192] In another embodiment, the specific implementation of the response to a partial area in the table satisfying the set first display mode switching condition includes: in response to the display area of the table being enlarged and the enlarged size being not less than the set size threshold, determining that the partial area satisfies the set first display mode switching condition.
[0193] This embodiment may involve a scenario where the display area of a table is reduced, such as when the table itself is reduced to a certain extent, resulting in unclear display of the content in one or some areas of the table, and thus switching the display mode of these areas to the second display mode. Subsequently, as the table display area is enlarged again, and the enlarged size is no less than a set size threshold, since the original content of the aforementioned areas can be clearly displayed in the table, these areas can be determined to meet the set conditions for switching to the first display mode, and the display mode of these areas is then switched back to the first display mode, so that these areas again display their original content.
[0194] From the above description, it can be seen that by applying the technical solution provided in the embodiments of the present application, it is possible to flexibly adjust the display mode of the area in the table according to the actual display situation of the table. This flexibility enables the user interface to adapt to different usage scenarios and user needs more intelligently.
[0195] It should be noted that the above embodiments are parallel technical solutions. These embodiments can be applied in different scenarios to solve different user needs. Therefore, the technical solutions of the embodiments of this application can meet the needs of changing scenarios and improve user experience. Of course, it is not ruled out that the technical solutions provided by two or more different embodiments can be combined in some scenarios, and the embodiments of this application do not limit this.
[0196] Figure 9 This is a block diagram of an embodiment of a content display device provided in an embodiment of the present application. Figure 9 As shown, the device includes:
[0197] A mode switching module 91 is configured to, in response to a partial area in the table satisfying a set display mode switching condition, switch the display mode of the partial area to a target display mode corresponding to the display mode switching condition;
[0198] The content display module 92 is configured to determine the display content of the partial area according to the target display mode, and display the display content in the partial area.
[0199] In a possible implementation, the mode switching module 91 includes:
[0200] a second mode switching unit, configured to, in response to the partial area satisfying a set second display mode switching condition, determine the second display mode corresponding to the second display mode switching condition as a target display mode, and switch the display mode of the partial area to the target display mode;
[0201] The second display mode is used to indicate the display of processed content corresponding to the original content.
[0202] In a possible implementation, the mode switching module 91 includes:
[0203] a first mode switching unit, configured to, in response to the partial area satisfying a set first display mode switching condition, determine a first display mode corresponding to the first display mode switching condition as a target display mode, and switch the display mode of the partial area to the target display mode;
[0204] The first display mode is used to indicate the display of original content.
[0205] In a possible implementation manner, the second mode switching unit is specifically configured to:
[0206] In response to a second mode setting operation on the partial area, it is determined that the partial area meets a set second display mode switching condition.
[0207] In a possible implementation manner, the second mode switching unit is specifically configured to:
[0208] In response to the display area of the table being reduced and the reduced size being smaller than a set size threshold, determining that the partial area meets a set second display mode switching condition;
[0209] Alternatively, in response to a partial area in the table not being completely displayed in the display area of the table, it is determined that the partial area meets a set second display mode switching condition.
[0210] In a possible implementation manner, the second mode switching unit is specifically configured to:
[0211] Identify the identity information of the current logged-in user of the table, and determine the authority of the current logged-in user to each area in the table based on the identity information;
[0212] A partial area for which the currently logged-in user does not have original content viewing authority is determined from the table, and it is determined that the partial area meets a set second display mode switching condition.
[0213] In a possible implementation manner, the first mode switching unit is specifically configured to:
[0214] In response to a first mode setting operation on the partial area, it is determined that the partial area meets a set first display mode switching condition.
[0215] In a possible implementation manner, the first mode switching unit is specifically configured to:
[0216] In response to the first mode setting operation on the partial area, when it is determined that the currently logged-in user of the table has the authority to view the original content of the partial area, it is determined that the partial area meets the set first display mode switching condition.
[0217] In a possible implementation manner, the first mode switching unit is specifically configured to:
[0218] In response to the display area of the table being enlarged and the enlarged size being not less than a set size threshold, determining that the partial area meets the set first display mode switching condition;
[0219] Alternatively, in response to a partial area in the table being completely displayed in the display area of the table, it is determined that the partial area meets the set first display mode switching condition.
[0220] In a possible implementation manner, the first mode switching unit is specifically configured to:
[0221] In response to a change in the permissions of the currently logged-in user of the table to the partial area, and when it is determined that the changed permissions of the currently logged-in user to the partial area indicate that the currently logged-in user has permission to view the original content of the partial area, it is determined that the partial area meets the set first display mode switching condition.
[0222] In a possible implementation, the content display module 92 is specifically configured to:
[0223] When the target display mode is the second display mode, the original content in the partial area is processed, and the processed content is determined as the display content of the partial area.
[0224] In a possible implementation, the content display module 92 is specifically configured to:
[0225] Performing summary generation processing on the original content in the partial area, and using the generated content summary as processed content;
[0226] Alternatively, the original content in the partial area is abbreviated, and the abbreviated content is used as the processed content.
[0227] In a possible implementation, the content display module 92 is specifically configured to:
[0228] Identify the identity information of the currently logged-in user of the form;
[0229] Determining the authority of the currently logged-in user to the partial area according to the identity information;
[0230] The original content in the partial area is processed according to the permission.
[0231] In a possible implementation, the content display module 92 is specifically configured to:
[0232] The display content is displayed in the partial area in a target format, where the target format is the display format indicated by the target display mode.
[0233] In a possible implementation, the content display module 92 is specifically configured to:
[0234] Rendering a table view of the table;
[0235] In the table view, the display content is displayed in the partial area.
[0236] like Figure 10 As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0237] Memory 113, for storing computer programs;
[0238] In one embodiment of the present application, the processor 111 is configured to execute a program stored in the memory 113 to implement the content display method provided by any of the aforementioned method embodiments, including:
[0239] In response to a partial area in the table meeting a set display mode switching condition, switching the display mode of the partial area to a target display mode corresponding to the display mode switching condition;
[0240] The display content of the partial area is determined according to the target display mode, and the display content is displayed in the partial area.
[0241] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the content display method provided in any of the aforementioned method embodiments are implemented.
[0242] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of this embodiment.
[0243] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, or of course, by hardware. Based on this understanding, the above technical solution, in essence, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiment.
[0244] It should be understood that the terms used herein are for the purpose of describing specific example embodiments only and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "comprise", "include", "contain" and "have" are inclusive and therefore specify the presence of stated features, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring them to be performed in the specific order described or illustrated, unless the order of execution is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0245] The foregoing is merely a list of specific embodiments of the present application, intended to enable those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the broadest scope consistent with the principles and novel features of the present application.
Claims
1. A content display method, characterized in that: The method comprises: In response to a partial area in the table satisfying a set display mode switching condition, switching the display mode of the partial area to a target display mode corresponding to the display mode switching condition; The display content of the partial area is determined according to the target display mode, and the display content is displayed in the partial area.
2. The method according to claim 1, characterized in that In response to a partial area in the table satisfying a set display mode switching condition, switching the display mode of the partial area to a target display mode corresponding to the display mode switching condition includes: In response to the partial area satisfying a set second display mode switching condition, determining the second display mode corresponding to the second display mode switching condition as a target display mode, and switching the display mode of the partial area to the target display mode; The second display mode is used to indicate the display of processed content corresponding to the original content.
3. The method according to claim 1, characterized in that In response to a partial area in the table satisfying a set display mode switching condition, switching the display mode of the partial area to a target display mode corresponding to the display mode switching condition includes: In response to the partial area satisfying a set first display mode switching condition, determining a first display mode corresponding to the first display mode switching condition as a target display mode, and switching the display mode of the partial area to the target display mode; The first display mode is used to indicate displaying original content.
4. The method according to claim 2, characterized in that: The step of responding to the partial area satisfying a set second display mode switching condition includes: In response to the second mode setting operation on the partial area, it is determined that the partial area meets the set second display mode switching condition.
5. The method according to claim 2, characterized in that: The step of responding to the partial area satisfying a set second display mode switching condition includes: In response to the display area of the table being reduced and the reduced size being smaller than a set size threshold, determining that the partial area meets a set second display mode switching condition; Alternatively, in response to a partial area in the table being incompletely displayed in the display area of the table, it is determined that the partial area meets a set second display mode switching condition.
6. The method according to claim 1, characterized in that The step of responding to the partial area satisfying a set second display mode switching condition includes: Identify the identity information of the current logged-in user of the table, and determine the authority of the current logged-in user to each area in the table according to the identity information; A partial area for which the currently logged-in user does not have original content viewing authority is determined from the table, and the partial area is determined to meet a set second display mode switching condition.
7. The method according to claim 3, characterized in that The step of responding to the partial area satisfying a set first display mode switching condition includes: In response to a first mode setting operation on the partial area, it is determined that the partial area meets a set first display mode switching condition.
8. The method according to claim 7, characterized in that In response to the first mode setting operation on the partial area, determining that the partial area meets the set first display mode switching condition includes: In response to the first mode setting operation on the partial area, when it is determined that the currently logged-in user of the table has the authority to view the original content of the partial area, it is determined that the partial area meets the set first display mode switching condition.
9. The method according to claim 3, characterized in that: The step of responding to the partial area satisfying a set first display mode switching condition includes: In response to the display area of the table being enlarged and the enlarged size being not less than a set size threshold, determining that the partial area meets a set first display mode switching condition; Alternatively, in response to a partial area in the table being completely displayed in the display area of the table, it is determined that the partial area meets the set first display mode switching condition.
10. The method according to claim 3, characterized in that: The step of responding to the partial area satisfying a set first display mode switching condition includes: In response to a change in the permissions of the currently logged-in user of the table for the partial area, and when it is determined that the changed permissions of the currently logged-in user for the partial area indicate that the currently logged-in user has permission to view the original content of the partial area, it is determined that the partial area satisfies the set first display mode switching condition.
11. The method according to claim 1, characterized in that: The determining the display content of the partial area according to the target display mode includes: When the target display mode is the second display mode, the original content in the partial area is processed, and the processed content is determined as the display content of the partial area.
12. The method according to claim 11, characterized in that The processing of the original content in the partial area includes: Performing summary generation processing on the original content in the partial area, and using the generated content summary as processed content; Alternatively, the original content in the partial area is subjected to content abbreviated processing, and the abbreviated content is used as the processed content.
13. The method according to claim 11, characterized in that The processing of the original content in the partial area includes: Identify the identity information of the currently logged-in user of the form; Determining the authority of the currently logged-in user to the partial area according to the identity information; The original content in the partial area is processed according to the authority.
14. The method according to claim 1, characterized in that The displaying the display content in the partial area includes: The display content is displayed in the partial area in a target format, where the target format is a display format indicated by the target display mode.
15. The method according to claim 1, characterized in that The displaying the display content in the partial area includes: Rendering a table view of the table; In the table view, the display content is displayed in the partial area.
16. A content display device, characterized in that: The device comprises: A mode switching module, configured to switch the display mode of a partial area in the table to a target display mode corresponding to the display mode switching condition in response to the partial area in the table satisfying the set display mode switching condition; The content display module is used to determine the display content of the partial area according to the target display mode, and display the display content in the partial area.
17. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a table processing program stored in the memory to implement the content display method according to any one of claims 1 to 15.
