A content display method, related equipment, storage medium and product
By receiving the position number adjustment operation in the editing interface and displaying resource content from the target position, the display error problem caused by adjusting permissions before loading resource content in the prior art is solved, and the efficiency of editing while loading and accurate display of resource content is achieved.
Patent Information
- Application Number
- CN202111251231.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2041-10-26
AI Technical Summary
When the existing editing interface opens adjustment permissions before the resource content is loaded, it may cause errors in the resource content display.
Ensure the correct display of resource content in the interface by receiving the position number adjustment operation in the content editing interface and displaying resource content from the target position according to the adjustment operation.
It realizes editing processing in the editing interface without waiting for all resource content to be fully loaded, which improves editing efficiency and ensures accurate display of resource content.
Smart Images

Figure CN113971250B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a content display method, related equipment, storage medium and product. Background Art
[0002] With the continuous development of computer networks, various Internet-based editing interfaces have emerged. Most of the current editing interfaces require that the existing resource content in the interface be loaded before the adjustment permissions for editing users are opened. If the adjustment permissions are opened to editing users before the existing resource content in the editing interface is loaded, the displayed resource content may be wrong in the editing interface. Therefore, how to correctly and effectively load and display the resource content in the editing interface has become a current research hotspot. Summary of the invention
[0003] The embodiments of the present invention provide a content display method, related equipment, storage medium and product, which can improve the accuracy of displaying resource content in a content editing interface.
[0004] In one aspect, an embodiment of the present invention provides a content display method, comprising:
[0005] Displaying a content editing interface, wherein the content editing interface includes N first resource contents to be displayed, and the starting display position of the first resource contents is configured as the first position of the content editing interface, one resource content corresponds to one position, and N is a positive integer;
[0006] Receiving an adjustment operation on the number of positions for displaying resource content in the content editing interface;
[0007] According to the adjustment operation, the first resource content is displayed in the content editing interface starting from the target position.
[0008] In another aspect, an embodiment of the present invention provides a content display device, including:
[0009] A display unit, used to display a content editing interface, wherein the content editing interface includes N first resource contents to be displayed, and the starting display position of the first resource contents is configured as the first position of the content editing interface, one resource content corresponds to one position, and N is a positive integer;
[0010] A receiving unit, configured to receive an adjustment operation on the number of positions for displaying resource content in the content editing interface;
[0011] The display unit is further configured to display the first resource content starting from a target position in the content editing interface according to the adjustment operation.
[0012] In another aspect, an embodiment of the present invention provides a computer device, including a processor, an input device, an output device, and a memory, wherein the processor, the input device, the output device, and the memory are interconnected, wherein the memory is used to store a computer program that supports the computer device to execute the above method, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the following steps:
[0013] Displaying a content editing interface, wherein the content editing interface includes N first resource contents to be displayed, wherein the initial display position of the first resource contents is configured as the first position of the content editing interface, one resource content corresponds to one position, and N is a positive integer;
[0014] Receiving an adjustment operation on the number of positions for displaying resource content in the content editing interface;
[0015] According to the adjustment operation, the first resource content is displayed in the content editing interface starting from the target position.
[0016] On the other hand, an embodiment of the present invention provides a computer-readable storage medium, in which program instructions are stored. When the program instructions are executed by a processor, the program instructions are used to execute the content display method described in the first aspect.
[0017] In an embodiment of the present application, a computer device may receive an adjustment operation for the number of positions for displaying resource content in a content editing interface where there is first resource content to be displayed, and may adjust the first resource content to a target position in the content editing interface for display based on the adjustment operation, so that the operation object for the content editing interface does not need to wait for all the resource content to be displayed in the content editing interface to be fully displayed before editing the content editing interface, which means that the computer device can load and edit the content editing interface at the same time, thereby improving the editing efficiency of the content editing interface. In addition, the computer device determines the display position of the first resource content to be displayed based on the adjustment operation for the number of display positions obtained from the content editing interface, which can ensure the accuracy of the resource content displayed in the content editing interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0019] Figure 1a is a schematic diagram of a content display system provided by an embodiment of the present invention;
[0020] Figure 1b It is a schematic diagram of displaying resource content in a content editing interface provided by an embodiment of the present invention;
[0021] Figure 2 is a schematic flow chart of a content display method provided by an embodiment of the present invention;
[0022] Figure 3a is another schematic diagram of displaying resource content in a content editing interface provided by an embodiment of the present invention;
[0023] Figure 3b It is a schematic diagram of displaying resource content on a content editing interface after performing a content adjustment operation provided by an embodiment of the present invention;
[0024] Figure 3c It is a schematic diagram of displaying resource content on a content editing interface after a content deletion operation is performed, provided by an embodiment of the present invention;
[0025] Figure 3d It is a schematic diagram of displaying first resource content after adding resource content to a content editing interface, provided by an embodiment of the present invention;
[0026] Figure 3e It is a schematic diagram of submitting offline resource content after being online provided by an embodiment of the present invention;
[0027] Figure 3f It is a schematic diagram of submitting offline resource content after another online state provided by an embodiment of the present invention;
[0028] Figure 4 is a schematic flow chart of another content display method provided by an embodiment of the present invention;
[0029] Figure 5a is a schematic flow chart of another content display method provided by an embodiment of the present invention;
[0030] Figure 5b is a schematic diagram of conflict handling provided by an embodiment of the present invention;
[0031] Figure 5c It is a schematic diagram of yet another display of resource content in a content editing interface provided by an embodiment of the present invention;
[0032] Figure 6 is a schematic block diagram of a content display device provided by an embodiment of the present invention;
[0033] Figure 7 It is a schematic block diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The embodiment of the present application proposes a content display method, which enables a computer device to receive an adjustment operation after displaying a content editing interface, and adjust the number of positions for displaying resource content displayed in the content editing interface based on the received adjustment operation. In addition, when the computer device displays the resource content to be displayed (such as the first resource content) on the content editing interface, if it is determined that the number of positions for displaying the resource content in the content editing interface has changed, the computer device can adjust the first resource content from the configured first position to the target position for display, so that the computer device can respond to the operation of adjusting the number of display positions of the content editing interface obtained from the content editing interface during the process of displaying the resource content to be displayed on the content editing interface, so that the computer device can respond to the adjustment operation obtained from the content editing interface when all the resource content is not loaded and displayed, which means that the computer device can support editing and adjusting the content editing interface when the content to be displayed is not completely loaded, thereby improving the processing efficiency of the content editing interface. In one embodiment, the content editing interface refers to an interface for receiving adjustment operations of an editing object and displaying resource content corresponding to the adjustment operation, wherein the resource content may be any multimedia resource, such as text, pictures, audio and video, etc. The adjustment operation refers to the user operation performed by the editing object in the content editing interface. The editing object may perform the corresponding user operation by controlling a cursor displayed in the content editing interface, or may directly perform the corresponding user operation on the content editing interface by touch. Based on the adjustment operation performed by the editing object in the content editing interface, the computer device may display the resource content indicated by the adjustment operation at the operation position corresponding to the adjustment operation in the content editing interface.
[0035] In one embodiment, the resource content to be displayed on the content editing interface, such as the first resource content mentioned above, is the historical resource content in the content editing interface, wherein the content editing interface is an interface supporting collaborative editing, collaborative editing refers to the editing behavior of different editing objects editing the same interface through corresponding devices (or terminals) and submitting data, then the historical resource content refers to the resource content submitted and displayed on the content editing interface at any time before the current moment, it can be understood that the data submitted to the content editing interface by different editing objects at any time before the current moment is the historical resource content, and the historical resource content submitted by different editing objects will be submitted to the content editing interface, and the submitted resource content will be centrally processed by the background server (such as the above-mentioned computer device) and then displayed in pieces to the terminal devices corresponding to each editing object. The processing of the submitted resource content by the computer device includes sorting and piece processing, and when the computer device processes the submitted resource content, it will also configure a corresponding display position for each resource content, so that the corresponding resource content is displayed based on the configured display position when it is displayed in the terminal device, so as to ensure that each resource content is reasonably distributed and displayed in the content editing interface. Among them, the computer device mentioned in the embodiment of the present application can be a terminal device or a server, and the server can be an independent server or a server cluster composed of multiple servers. The terminal device can be a computer, a mobile terminal, a vehicle-mounted device, or a wearable device, etc.
[0036] In one embodiment, the process of collaboratively editing the content editing interface can be as follows: Figure 1a As shown, each editing object can submit the resource content generated based on the editing of the operation object to the background server through the corresponding device. The background server can integrate the resource content submitted by each editing object, slice the integrated resource content, and then send the sliced resource content to each terminal device for display, thereby realizing the effect of editing the content editing interface while displaying other resource content to be displayed on the editing object side. Among them, the background server for receiving the resource content submitted by each editing object can be the background server of the client corresponding to the content editing interface. Similarly, the background server can be the computer device mentioned in the embodiment of the present application, or it can communicate and interact with the computer device mentioned in the embodiment of the present application.
[0037] Since in the process of displaying the resource content to be displayed on the content editing interface, the adjustment operation for the display position performed on the content editing interface may cause content display conflicts. If the resource content to be displayed is still directly displayed in the content editing interface after the resource content to be displayed is displayed on the content editing interface, the resource content already displayed in the content editing interface may be blocked, thereby causing display errors. In order to avoid the generation of conflicts, the computer device may adjust the position (or area) of the resource content to be displayed that was originally set. Figure 1b As shown, if the number of first resource contents to be displayed is N (N is a positive integer), the position where the display starts is pre-configured in the content editing interface as follows: Figure 1b The display position marked by 10 in the content editing interface is set, and the content editing interface adjusts the displayed second resource content to the starting position 10 where the first resource content starts to be displayed based on the adjustment operation of the display position of the content editing interface. If the first resource content is directly displayed in the display position marked by 10 in the content editing interface, the first resource content will cover the displayed second resource content after being displayed. Then, the computer device needs to adjust the first resource content to the target position for display, so as not to cover the resource content displayed in the content editing interface after the first resource content is displayed. The content editing interface after the first resource content is adjusted to the target position for display can be as shown in FIG. Figure 1b The interface marked with 110 is shown in the figure. Figure 1b The dotted box displayed in is only used to indicate the display position of the corresponding resource content in the content editing interface. When the resource content is actually displayed, the dotted box will not be displayed. It can be understood that based on the adjustment of the corresponding display position when the computer device displays the first resource content to be displayed on the content editing interface, the correct display of the resource content in the content editing interface can be guaranteed, and because the content editing interface can simultaneously receive the adjustment operation for the content editing interface during the process of loading and displaying the resource content to be displayed, the editing efficiency for the content editing interface can be improved.
[0038] See also Figure 2 , is a schematic flow chart of a content display method proposed in an embodiment of the present application, such as Figure 2 As shown, the method may include:
[0039] S201, displaying a content editing interface, wherein the content editing interface includes N first resource contents to be displayed, and the starting display position of the first resource contents is configured as the first position of the content editing interface, one resource content corresponds to one position, and N is a positive integer.
[0040] S202: Receive an adjustment operation on the number of positions for displaying resource content in a content editing interface.
[0041] In step S201 and step S202, since the content editing interface is an interface that supports collaborative editing, the resource content that needs to be displayed in the content editing interface may be obtained from the same or different terminal devices. For the resource content obtained from each terminal device, the computer device can integrate the obtained resource content based on the generation time of each resource content obtained and the corresponding position that needs to be displayed in the content editing interface, and further fragment it, and then send the corresponding resource content to each editing object side for display through the fragment data. Among them, the resource content included in a fragment data can be one or more, and the number of resource contents to be displayed obtained by the computer device integration is 100. Then, the computer device can use every 10 resource contents (or every 20 resource contents) as a fragment data, wherein the number of resource contents included in a fragment is the value of N. Further, the computer device can display the resource content included in the corresponding fragment data in the content editing interface by sending the fragment data. Among them, when the computer device divides the slices, it can be divided according to the display position of each resource content in the content editing interface from front to back. Then it can be understood that after the slices are divided, and based on the fact that the display position of each resource content in the content editing interface has not been adjusted, the computer device will display the resource content in each slice in the content editing interface. There will be no content overlap and the like. If the resource content in a slice is adjusted to other display positions for display, then the display positions of other resource content to be displayed may be occupied, thereby causing other resource content to be displayed incorrectly, or causing errors in the resource content displayed in the content editing interface.
[0042] In one embodiment, after displaying the content editing interface to the editing object, the computer device may obtain an adjustment operation for the number of display positions of the resource content from the content editing interface, wherein the content editing interface displayed to the editing object may be an editing interface that has displayed part of the resource content to be displayed, or may be a blank interface (i.e., an interface without any resource content). Based on the adjustment operation obtained from the content editing interface, the content editing interface may be updated and displayed accordingly, such as the adjustment operation may be performed on the content editing interface to adjust the number of display positions, and / or the display position corresponding to the resource content originally displayed in the content editing interface may be adjusted. It can be understood that based on the adjustment operation on the number of display positions performed in the content editing interface, the first position set for the first resource content to be displayed may be occupied, thereby causing an error in displaying the resource content in the content editing interface. The computer device may obtain the adjustment operation, and when the adjustment operation occupies the first position set for the first resource content, the computer device may adjust the first resource content to another position for display, and then execute step S203.
[0043] In one embodiment, the content editing interface may be a form interface or other interface for dividing the position of the display area, etc. In the embodiment of the present application, the content editing interface is mainly described in detail by taking the form interface as an example. When the content editing interface is other interfaces, please refer to the embodiment of the present application. In one embodiment, if the second resource content is already displayed in the content editing interface, then the computer device may determine whether the second resource content displayed in the content editing interface affects the number of positions for displaying resource content in the content editing interface after the position adjustment operation. If it does, the computer device may adjust the display position of the first resource content in the content editing interface based on the adjustment operation, and determine whether the first position for displaying the first resource content is occupied by the resource content displayed in the first position, wherein if the second resource content is displayed in the second position of the content editing interface after the adjustment operation is performed, the computer device may determine whether the first position is occupied by comparing whether the second position and the first position overlap. In one embodiment, if the content editing interface displaying the second resource content is as shown in FIG. Figure 3a As shown in the interface marked by 30, the second resource content displayed in the content editing interface is the text framed by a dotted line, wherein the second resource content displayed in the content editing interface may be the resource content included in a certain segment, or may be the resource content input by the editing object. In the embodiment of the present application, there is no limitation on the source of the second resource content displayed in the content editing interface.
[0044] Based on Figure 3aIn the content editing interface shown, if the adjustment operation acquired by the computer device is for the second resource content (such as Figure 3a If the position adjustment operation of the text content cell 10) displayed in the content editing interface is performed, the computer device will adjust the display position of the text content displayed in the content editing interface, wherein the content editing interface after adjusting the display position of the corresponding text content can be as shown in FIG. Figure 3a As shown in the interface marked by 31 in FIG. 1 . In one embodiment, the operation object can move the position of the text content by inserting an operation on the position of the text content. That is, after receiving the position adjustment operation from the content editing interface, the computer device will update and display the second resource content displayed in the content editing interface based on the position adjustment operation, that is, adjust the display position of the second resource content displayed in the content editing interface based on the position adjustment operation, and display the second resource content after the corresponding display position is adjusted in the content editing interface.
[0045] In one embodiment, when the content editing interface has displayed the second resource content, the adjustment operation received by the computer device from the content editing interface may also be a content deletion operation for the second resource content, or may also refer to a replacement operation for the second resource content itself, such as a content change for the second resource content itself. After obtaining the content adjustment operation, the computer device will adjust the second resource content based on the content adjustment operation and display the adjusted new second resource content in the second position where the second resource content is displayed. In one embodiment, the adjustment of the resource content itself may be as follows: Figure 3b As shown, the text content cell 10 is adjusted to the text content 123. In this case, the adjustment of the resource content itself does not affect the change in the number of positions for displaying the resource content in the content editing interface. Therefore, the computer device can directly display the first resource content to be displayed according to the set first position after adjusting the second resource content displayed in the content editing interface and displaying the new second resource content. The content editing interface after displaying the second resource content to the first position can be as follows: Figure 3b As shown in the interface marked by 32.
[0046] In one embodiment, based on the content deletion operation, the display position of the corresponding resource content will be deleted, thereby affecting the number of positions for displaying the resource content. Figure 3cAs shown, if the content adjustment operation is used to delete the cell row where the text content cell 10 in the second resource content is located, then, in addition to displaying the content editing interface after the text content cell 10 is deleted in the content editing interface, based on the deletion of the cell row in the second resource content, the computer device can also adjust the first resource content from the first position to after the end display position of the displayed second resource content in the content editing interface. In this display mode, the content editing interface after displaying the first resource content can be as follows: Figure 3c As shown in the interface marked by 33.
[0047] In one embodiment, the adjustment operation may also be a content adding operation. After the computer device obtains the content adding operation, it may determine whether the first position set for displaying the first resource content is occupied based on the reference position displayed in the content editing interface of the newly added resource content displayed by the content adding operation. If the reference position and the first position overlap, it may be considered that the first position is occupied due to the adjustment operation, and if the reference position and the first position do not overlap, it may be considered that the first position is not occupied. In summary of the above adjustment operations, the computer device will occupy the first position set for the first resource content to be displayed only when the adjustment operation is a position adjustment operation for the second resource displayed in the content editing interface, or when a content adding operation is performed in the content editing interface. The computer device may then adjust the first resource content to the target position in the content editing interface for display.
[0048] S203: Display the first resource content starting from a target position in the content editing interface according to the adjustment operation.
[0049] Based on the adjustment operation, if the number of positions for displaying resource content in the content editing interface changes, then the computer device can display the first resource content from the target position in the content editing interface according to the editing operation. In one embodiment, if the adjustment operation is a position adjustment operation, or one or more of a content deletion operation, then when the computer device displays the first resource content from the target position in the content editing interface according to the adjustment operation, it can obtain the end display position corresponding to the second resource content after the adjustment operation is performed, and then can display the first resource content from the position after the end display position in the content editing interface, wherein the position after the end display position and the start of the first resource display is the target position. Among them, in order to ensure the rationality of the resource content when being displayed in the content editing interface, and the smoothness of the display of the resource content in the content editing interface, the computer device can display the first resource content from a position after the second position.
[0050] In one embodiment, since the first resource content and the second resource content are both part or all of the resource content included in a certain fragment data obtained after the computer device fragments the historical resource content to be displayed on the content editing interface, then, based on the fragmentation processing of the historical resource data by the computer device, each fragment data has a corresponding display order, and after displaying each fragment data on the content editing interface according to the display order, the display order of each resource content in the content editing interface will remain unchanged in the order before being fragmented. Since each fragment is loaded in sequence, in the embodiment of the present application, the fragment data corresponding to the first resource content is loaded and displayed after the fragment data corresponding to the second resource content. Then, when the computer device starts to display the first resource content from the position after the end display position in the content editing interface, the position after the end display position can be used as the target position in the content editing interface, and the first resource content can be displayed from the target position. In one embodiment, the content editing interface includes a form interface, the number of second resources is M, and the M second resource contents are displayed in sequence from front to back in the corresponding table rows of the form interface. One table row is used to display one second resource content and corresponds to a display number, M is a positive integer; the end display position is the table row that displays the second resource content and corresponds to the maximum display number; the position after the end display position is the table row corresponding to the number obtained by adding one to the maximum display number.
[0051] In one embodiment, the operation performed by the operation object in the content editing interface may also be other adjustment operations in addition to adjusting the display of the resource content in the content editing interface. When the computer device obtains the other adjustment operation, since the other adjustment operation will not adjust the number of positions for displaying resource content in the content editing interface, the computer device will start displaying the first resource content according to the first position originally configured for the first resource content to be displayed. Among them, the other adjustment operation includes a content addition operation. If the newly added resource content corresponding to the content addition operation is in the display area that displays the first resource content starting from the first position, the newly added resource content is used to cover the display of the first resource content. Specifically, it can be as follows: Figure 3d shown.
[0052] In one embodiment, the content editing interface includes an offline state and an online state. When the content editing interface is in an offline state, the offline adjustment operations performed by the operating user in the content editing interface will be first stored locally, and after the content editing interface is subsequently in an online state, the resource content displayed in the content editing interface will be updated based on the offline adjustment operations. In other words, after the content editing interface is in an online state, the computer device can obtain the offline adjustment operations performed in the content editing interface when the content editing interface is in an offline state, and further update and display the displayed resource content in the content editing interface based on the offline adjustment operations. When the computer device updates and displays the displayed resource content based on the offline adjustment operations, if the computer device does not obtain the online adjustment operations from the content editing interface after the content editing interface is in an online state, the displayed resource content in the content editing interface will be updated based on the offline adjustment operations, such as Figure 3e As shown; if the computer device is in an online state in the content editing interface, and obtains an online adjustment operation from the content editing interface, then the displayed resource content is updated and displayed according to the selected adjustment operation with the latest corresponding operation time based on the operation time of the online adjustment operation and the offline adjustment operation in the content editing interface, as shown Figure 3f It should be noted that when the content editing interface is in an offline state, only the resource content in the content editing interface currently performing the offline adjustment operation is adjusted based on the offline adjustment operation. After the content editing interface is online, the content editing interface displayed on the other operation object side can be synchronously updated and adjusted.
[0053] In an embodiment of the present application, a computer device may receive an adjustment operation for the number of positions for displaying resource content in a content editing interface where there is first resource content to be displayed, and may adjust the first resource content to a target position in the content editing interface for display based on the adjustment operation, so that the operation object for the content editing interface does not need to wait for all the resource content to be displayed in the content editing interface to be fully displayed before editing the content editing interface, which means that the computer device can load and edit the content editing interface at the same time, thereby improving the editing efficiency of the content editing interface. In addition, the computer device determines the display position of the first resource content to be displayed based on the adjustment operation for the number of display positions obtained from the content editing interface, which can ensure the accuracy of the resource content displayed in the content editing interface.
[0054] See also Figure 4 , is a schematic flow chart of a content display method provided in an embodiment of the present application, such as Figure 4 As shown, the method may include:
[0055] S401, displaying a content editing interface, wherein the content editing interface includes N first resource contents to be displayed, and the starting display position of the first resource contents is configured as the first position of the content editing interface, one resource content corresponds to one position, and N is a positive integer.
[0056] S402: Receive an adjustment operation on the number of positions for displaying resource content in the content editing interface.
[0057] In one embodiment, the specific implementation of step S401 and step S402 can refer to the specific implementation of step S201 and step S202 in the above embodiment, which will not be repeated here.
[0058] S403: Submit the adjustment operation to a network queue, and perform conflict resolution with the first resource content.
[0059] S404: According to the conflict handling result, the first position where the first resource starts to be displayed is adjusted to a target position, and the first resource content is displayed starting from the target position.
[0060] In step S403 and step S404, the Figure 5a The process of displaying resource content on a content editing interface by a computer device is described, wherein, after displaying the first content editing interface, the computer device can obtain the first fragment data (i.e., the first fragment data), and display the resource content included in the first fragment data as the second resource content in the content editing interface. In one embodiment, the computer device can send a display request for each resource content included in the first fragment data to a data server, and obtain change information (changeset) from the data server, wherein the change information includes each resource content included in the first fragment data, and the display position of each resource content in the content editing interface. Further, the computer device displays any resource content in the content editing interface according to the corresponding display position of any resource content in the content editing interface recorded in the change information. In a specific implementation, the computer device can initiate a request to the data server through ajax (a data request method) to pull the first fragment data displayed in the content editing interface, wherein the data fed back by the data server after responding to the computer device is a piece of change information, and then the computer device (or the network (web) end) can parse and render the first fragment data based on the change information.
[0061] After the computer device renders and displays the first fragment data in the content editing interface, it can further obtain the offline resource content for the content editing interface, and open the adjustment permission for the content editing interface according to the acquisition result of the offline resource content, wherein the adjustment permission is opened, the editing object can perform the adjustment operation in the content editing interface to edit in the content editing interface, that is to say, the computer device can obtain the adjustment operation from the content editing interface after the adjustment permission is opened, otherwise, the editing object cannot perform the adjustment operation in the content editing interface, and the computer device cannot obtain the adjustment operation from the content editing interface. Wherein, based on the acquisition of the offline resource content, the computer device can determine whether there is unsubmitted offline resource content locally. In one embodiment, if the acquisition result of the offline resource content indicates that the offline resource content is successfully acquired, the offline resource content is submitted to the network queue, and the adjustment permission for the content editing interface is opened, wherein the adjustment permission of the content editing interface allows the adjustment operation to be performed on the content editing interface after being opened; if the acquisition result of the offline resource content indicates that there is no offline resource content, the adjustment permission for the content editing interface is opened. That is to say, after the computer device displays the resource content in the first shard data, if there is no offline resource, it will directly open the adjustment permission in the content editing interface. After opening the adjustment permission, the resource content generated based on the adjustment operation in the content editing interface will be submitted to the queue of the network layer; if there is offline resource data, the computer device will submit the offline resource data to the network layer queue, and then open the adjustment permission for the content editing interface.
[0062] After rendering the first shard data and loading the offline resource data into the network layer queue, the computer device can pull the resource content included in the remaining shard data from the data server for display. Since the computer device opens the adjustment permission for the content editing interface, if the pulled back resource content is directly displayed, it may overwrite the resource content displayed in the content editing interface. Therefore, the computer device can first handle the conflict between the adjustment operation performed by the operation object in the content editing interface and the data in the network layer queue (including the second resource content already in the content editing interface and the submitted offline resource content), so that the shard data after the conflict is handled can be rendered and applied. In one embodiment, the conflict handling performed by the computer device can be that if the offline resource content is the newly added resource content on the basis of the resource content included in the shard data of the network queue, the resource content included in the network queue is re-sharded based on the offline resource content to obtain new shard data, and the new shard data includes the first resource content; if the offline resource content is obtained after adjusting the specific resource content included in the shard data of the network queue, the offline resource content is used to replace the specific resource content to update the shard data where the specific resource content is located.
[0063] Next, combine Figure 5b The process of displaying the first resource content to be displayed on the content editing interface when the second resource content has been displayed on the content editing interface is described. Figure 5b As shown in the figure, the number in the circle represents the version number corresponding to the content editing interface, such as Figure 5b The number 8 shown in the figure indicates the 8th version of the content editing interface. The collaborative conflict of the content editing interface is a conflict that occurs when multiple editing objects submit edits based on the same version of data during the collaborative editing process. Therefore, it can be resolved by submitting to the network queue for conflict handling. The conflict handling can be an OT algorithm to ensure the consistency of the resource content finally displayed in the content editing interface after the adjustment operation is performed on multiple editing objects. In addition, Figure 5bThe edges between the circles shown represent the adjustment operations performed, such as A represents the change information of the shard data, such as setting the second resource content to the cell data of rows 11 to 20, B represents the offline resource content that has not been submitted locally, such as inserting a row above row 10, and C represents the adjustment operation performed by the editing object, such as inserting a row above row 1, so the original data of row 10 of the first slice becomes row 12. At this time, the computer device cannot directly apply the operation of setting the cell data of rows 11 to 20 of the shard data, which will cause the data of row 12 of the first slice to be overwritten, and conflict processing is required. After conflict processing, the shard data will be converted into data setting rows 13 to 22, so that the first slice data will not be overwritten. The details can be as follows Figure 5c shown.
[0064] In an embodiment of the present application, a computer device can obtain an adjustment operation from a content editing interface, so that when the adjustment operation changes the number of locations where resource content is displayed in the content editing interface, the executed adjustment operation can be submitted to a network queue, and after subsequently obtaining the first resource content, the first resource content and the adjustment operation can be conflict-processed, so that based on the result of the conflict processing, the first resource content can be adjusted to a target location in the content editing interface for display, thereby ensuring the accuracy of the computer device when displaying resource content in the content editing interface.
[0065] Based on the description of the above content display method embodiment, the present invention also provides a content display device, which may be a computer program (including program code) running in the above computer device. The content display device may be used to perform the following steps: Figure 2 and Figure 4 For the content display method, see Figure 6 , the content display device includes: a display unit 601 and a receiving unit 602.
[0066] A display unit 601 is used to display a content editing interface, wherein the content editing interface includes N first resource contents to be displayed, and the starting display position of the first resource contents is configured as the first position of the content editing interface, one resource content corresponds to one position, and N is a positive integer;
[0067] A receiving unit 602 is used to receive an adjustment operation on the number of positions for displaying resource content in the content editing interface;
[0068] The display unit 601 is further configured to display the first resource content starting from a target position in the content editing interface according to the adjustment operation.
[0069] In one embodiment, if the content editing interface includes the displayed second resource content; the display unit 601 is specifically used to:
[0070] Obtaining an end display position corresponding to the second resource content after performing the adjustment operation;
[0071] In the content editing interface, the first resource content is displayed starting from a position after the end display position, and the position after the end display position and starting to display the first resource is the target position.
[0072] In one embodiment, the display unit 601 is specifically used for:
[0073] In the content editing interface, a position after the end display position is used as a target position, and the first resource content is displayed starting from the target position.
[0074] In one embodiment, the content editing interface includes a form interface, the number of the second resources is M, the M second resource contents are displayed in rows from front to back in corresponding table rows of the form interface, one table row is used to display one second resource content and corresponds to one display number, and M is a positive integer;
[0075] The end display position is the table row that displays the second resource content and corresponds to the largest display number;
[0076] The position after the end display position is the table row corresponding to the number obtained by adding one to the maximum display number.
[0077] In one embodiment, the adjustment operation includes: any one or both of: a position adjustment operation for the displayed second resource content, or a content deletion operation for the second resource content;
[0078] The position adjustment operation includes a position insertion operation performed at a position where the second resource content is displayed, and the content deletion operation refers to deleting a display position where the second resource content is located.
[0079] In one embodiment, the receiving unit 602 is further configured to obtain, from the content editing interface, other adjustment operations other than adjusting the number of positions for displaying the resource content, and then display the first resource content starting from the first position in the editing interface; the other adjustment operations include a content adding operation;
[0080] If the newly added resource content corresponding to the content adding operation is in the display area that displays the first resource content starting from the first position, the newly added resource content is used to cover the displayed first resource.
[0081] In one embodiment, the receiving unit 602 is further configured to obtain, after the content editing interface is in an online state, an offline adjustment operation performed in the content editing interface when the content editing interface is in an offline state;
[0082] The display unit 601 is further configured to update and display the resource content displayed on the content editing interface based on the offline adjustment operation.
[0083] In one embodiment, the display unit 601 is specifically used for:
[0084] If no online adjustment operation is obtained from the content editing interface after the content editing interface is in an online state, triggering the step of updating and displaying the resource content displayed on the content editing interface based on the offline adjustment operation;
[0085] If an online adjustment operation is obtained from the content editing interface after the content editing interface is online, the displayed resource content is updated and displayed according to the adjustment operation with the most recent corresponding operation time selected based on the operation time of the online adjustment operation and the offline adjustment operation.
[0086] In one embodiment, the device further includes: a processing unit 603 .
[0087] The receiving unit 602 is further configured to obtain the first fragment data, and display the resource content included in the first fragment data as the second resource content in the content editing interface;
[0088] The processing unit 603 is used to obtain offline resource content for the content editing interface, and open the adjustment permission for the content editing interface according to the acquisition result of the offline resource content.
[0089] In one embodiment, the offline resource content is obtained when the content editing interface is in an online state; the processing unit 603 is specifically configured to:
[0090] If the acquisition result for the offline resource content indicates that the offline resource content is successfully acquired, submitting the offline resource content to the network queue;
[0091] Opening the adjustment permission for the content editing interface, wherein after the adjustment permission for the content editing interface is opened, the adjustment operation is allowed to be performed on the content editing interface;
[0092] In one embodiment, the offline resource content is obtained when the content editing interface is in an online state; the processing unit 603 is specifically configured to:
[0093] If the acquisition result for the offline resource content indicates that the offline resource content does not exist, the adjustment permission for the content editing interface is opened.
[0094] In one embodiment, the processing unit 603 is specifically configured to:
[0095] Sending a display request for each resource content included in the first fragment data to a data server, and obtaining change information from the data server, the change information including each resource content included in the first fragment data and a display position of each resource content in the content editing interface;
[0096] According to the display position of any resource content recorded in the change information on the content editing interface, the any resource content is displayed in the content editing interface at the corresponding display position.
[0097] In one embodiment, the network queue includes one or more slice data to be displayed on the content editing interface;
[0098] The processing unit 603 is further configured to, if the offline resource content is newly added based on the resource content included in the fragmented data of the network queue, re-fragment the resource content included in the network queue based on the offline resource content to obtain new fragmented data, wherein the new fragmented data includes the first resource content;
[0099] The processing unit 603 is further configured to, if the offline resource content is obtained by adjusting the specific resource content included in the fragment data of the network queue, replace the specific resource content with the offline resource content to update the fragment data where the specific resource content is located.
[0100] In one embodiment, the display unit 601 is specifically used for:
[0101] Submitting the adjustment operation to a network queue and performing conflict handling with the first resource content;
[0102] According to the conflict handling result, the first position where the first resource starts to be displayed is adjusted to the target position, and the first resource content is displayed starting from the target position.
[0103] In an embodiment of the present application, the receiving unit 602 can receive an adjustment operation for the number of positions for displaying resource content in a content editing interface where the first resource content to be displayed exists, and then the display unit 601 can adjust the first resource content to the target position of the content editing interface for display based on the adjustment operation, so that the operation object of the content editing interface does not need to wait for all the resource content to be displayed in the content editing interface to be fully displayed before editing the content editing interface, and thus can realize loading and editing of the content editing interface, thereby improving the editing efficiency of the content editing interface. In addition, the method of determining the display position of the first resource content to be displayed based on the adjustment operation for the number of display positions obtained from the content editing interface can ensure the accuracy of the resource content displayed in the content editing interface.
[0104] See also Figure 7 , is a schematic block diagram of the structure of a computer device provided by an embodiment of the present invention. Figure 7 The computer device in the embodiment shown may include: one or more processors 701; one or more input devices 702, one or more output devices 703 and a memory 704. The processor 701, the input device 702, the output device 703 and the memory 704 are connected via a bus 705. The memory 704 is used to store a computer program, the computer program includes program instructions, and the processor 701 is used to execute the program instructions stored in the memory 704.
[0105] The memory 704 may include a volatile memory, such as a random-access memory (RAM); the memory 704 may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the memory 704 may also include a combination of the above types of memory.
[0106] The processor 701 may be a central processing unit (CPU). The processor 701 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), etc. The PLD may be a field-programmable gate array (FPGA), a generic array logic (GAL), etc. The processor 701 may also be a combination of the above structures.
[0107] In the embodiment of the present invention, the memory 704 is used to store a computer program, the computer program includes program instructions, and the processor 701 is used to execute the program instructions stored in the memory 704 to implement the above-mentioned Figure 2 and Figure 4 The steps of the corresponding method in .
[0108] In one embodiment, the processor 701 is configured to call the program instructions to execute:
[0109] Displaying a content editing interface, wherein the content editing interface includes N first resource contents to be displayed, and the starting display position of the first resource contents is configured as the first position of the content editing interface, one resource content corresponds to one position, and N is a positive integer;
[0110] Receiving an adjustment operation on the number of positions for displaying resource content in the content editing interface;
[0111] According to the adjustment operation, the first resource content is displayed in the content editing interface starting from the target position.
[0112] In one embodiment, if the content editing interface includes the displayed second resource content, the processor 701 is configured to call the program instruction to execute:
[0113] Obtaining an end display position corresponding to the second resource content after performing the adjustment operation;
[0114] In the content editing interface, the first resource content is displayed starting from a position after the end display position, and the position after the end display position and starting to display the first resource is the target position.
[0115] In one embodiment, the processor 701 is configured to call the program instructions to execute:
[0116] In the content editing interface, a position after the end display position is used as a target position, and the first resource content is displayed starting from the target position.
[0117] In one embodiment, the content editing interface includes a form interface, the number of the second resources is M, the M second resource contents are displayed in rows from front to back in corresponding table rows of the form interface, one table row is used to display one second resource content and corresponds to one display number, and M is a positive integer;
[0118] The end display position is the table row that displays the second resource content and corresponds to the largest display number;
[0119] The position after the end display position is the table row corresponding to the number obtained by adding one to the maximum display number.
[0120] In one embodiment, the adjustment operation includes: any one or both of: a position adjustment operation for the displayed second resource content, or a content deletion operation for the second resource content;
[0121] The position adjustment operation includes a position insertion operation performed at a position where the second resource content is displayed, and the content deletion operation refers to deleting a display position where the second resource content is located.
[0122] In one embodiment, the processor 701 is configured to call the program instructions to execute:
[0123] Acquire other adjustment operations other than adjusting the number of positions for displaying the resource content from the content editing interface, and then display the first resource content from the first position in the editing interface; the other adjustment operations include a content adding operation;
[0124] If the newly added resource content corresponding to the content adding operation is in the display area that displays the first resource content starting from the first position, the newly added resource content is used to cover the displayed first resource.
[0125] In one embodiment, the processor 701 is configured to call the program instructions to execute:
[0126] After the content editing interface is in an online state, acquiring an offline adjustment operation performed in the content editing interface when the content editing interface is in an offline state;
[0127] The resource content displayed is updated and displayed on the content editing interface based on the offline adjustment operation.
[0128] In one embodiment, the processor 701 is configured to call the program instructions to execute:
[0129] If no online adjustment operation is obtained from the content editing interface after the content editing interface is in an online state, triggering the step of updating and displaying the resource content displayed on the content editing interface based on the offline adjustment operation;
[0130] If an online adjustment operation is obtained from the content editing interface after the content editing interface is online, the displayed resource content is updated and displayed according to the adjustment operation with the most recent corresponding operation time selected based on the operation time of the online adjustment operation and the offline adjustment operation.
[0131] In one embodiment, the processor 701 is configured to call the program instructions to execute:
[0132] Acquire the first fragment data, and display the resource content included in the first fragment data as the second resource content in the content editing interface;
[0133] Offline resource content for the content editing interface is obtained, and adjustment authority for the content editing interface is opened according to the acquisition result of the offline resource content.
[0134] In one embodiment, the offline resource content is obtained when the content editing interface is in an online state; the processor 701 is configured to call the program instruction to execute:
[0135] If the acquisition result for the offline resource content indicates that the offline resource content is successfully acquired, submitting the offline resource content to the network queue;
[0136] Opening the adjustment permission for the content editing interface, wherein after the adjustment permission for the content editing interface is opened, the adjustment operation is allowed to be performed on the content editing interface;
[0137] In one embodiment, the offline resource content is obtained when the content editing interface is in an online state; the processor 701 is configured to call the program instruction to execute:
[0138] If the acquisition result for the offline resource content indicates that the offline resource content does not exist, the adjustment permission for the content editing interface is opened.
[0139] In one embodiment, the processor 701 is configured to call the program instructions to execute:
[0140] Sending a display request for each resource content included in the first fragment data to a data server, and obtaining change information from the data server, the change information including each resource content included in the first fragment data and a display position of each resource content in the content editing interface;
[0141] According to the display position of any resource content recorded in the change information on the content editing interface, the any resource content is displayed in the content editing interface at the corresponding display position.
[0142] In one embodiment, the network queue includes one or more fragment data to be displayed on the content editing interface; the processor 701 is configured to call the program instruction to execute:
[0143] If the offline resource content is newly added based on the resource content included in the fragmented data of the network queue, re-fragment the resource content included in the network queue based on the offline resource content to obtain new fragmented data, where the new fragmented data includes the first resource content;
[0144] If the offline resource content is obtained by adjusting the specific resource content included in the slice data of the network queue, the offline resource content is used to replace the specific resource content to update the slice data where the specific resource content is located.
[0145] In one embodiment, the processor 701 is configured to call the program instructions to execute:
[0146] Submitting the adjustment operation to a network queue and performing conflict handling with the first resource content;
[0147] According to the conflict handling result, the first position where the first resource starts to be displayed is adjusted to the target position, and the first resource content is displayed starting from the target position.
[0148] The embodiment of the present invention provides a computer program product or a computer program, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned Figure 2 or Figure 4 The method embodiment shown in the figure. Wherein, the computer-readable storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0149] What is disclosed above is only a partial embodiment of the present invention, which certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and making equivalent changes according to the claims of the present invention still fall within the scope of the invention.
Claims
1. A content display method, characterized in that: include: Displaying a content editing interface supporting collaborative editing, wherein the content editing interface includes N first resource contents to be displayed, the initial display position of the first resource contents is configured as the first position of the content editing interface, one resource content corresponds to one position, and N is a positive integer; the first resource content is obtained from other terminal devices, and the collaborative editing refers to: different editing objects perform editing on the content editing interface through different object devices; the content editing interface is used to receive collaborative editing of the content editing interface by different editing objects, and simultaneously display the resource contents to be displayed in real time; Receiving an adjustment operation on the number of positions for displaying resource content in the content editing interface; When the adjustment operation occupies the first position, the first resource content is displayed in the content editing interface from the first position adjusted to a target position according to the adjustment operation.
2. The method according to claim 1, characterized in that If the content editing interface includes the displayed second resource content; displaying the first resource content from the target position in the content editing interface according to the adjustment operation includes: Obtaining an end display position corresponding to the second resource content after performing the adjustment operation; In the content editing interface, the first resource content is displayed starting from a position after the end display position, and the position after the end display position and starting to display the first resource is the target position.
3. The method according to claim 2, characterized in that The displaying the first resource content from a position after the end display position in the content editing interface includes: In the content editing interface, a position after the end display position is used as a target position, and the first resource content is displayed starting from the target position.
4. The method according to claim 3, characterized in that The content editing interface includes a form interface, the number of the second resources is M, the M second resource contents are sequentially displayed in rows from front to back in corresponding table rows of the form interface, one table row is used to display one second resource content and corresponds to one display number, and M is a positive integer; The end display position is the table row that displays the second resource content and corresponds to the largest display number; The position after the end display position is the table row corresponding to the number obtained by adding one to the maximum display number.
5. The method according to claim 2, characterized in that The adjustment operation includes: any one or both of: a position adjustment operation for the displayed second resource content, or a content deletion operation for the second resource content; The position adjustment operation includes a position insertion operation performed at a position where the second resource content is displayed, and the content deletion operation refers to deleting a display position where the second resource content is located.
6. The method according to claim 1, characterized in that The method further comprises: Acquire other adjustment operations other than adjusting the number of positions for displaying the resource content from the content editing interface, and then display the first resource content from the first position in the editing interface; the other adjustment operations include a content adding operation; If the newly added resource content corresponding to the content adding operation is in the display area that displays the first resource content starting from the first position, the newly added resource content is used to cover the displayed first resource content.
7. The method according to claim 1, characterized in that The method further comprises: After the content editing interface is in an online state, acquiring an offline adjustment operation performed in the content editing interface when the content editing interface is in an offline state; The resource content displayed is updated and displayed on the content editing interface based on the offline adjustment operation.
8. The method according to claim 7, characterized in that The step of displaying the first resource content from a target position in the content editing interface according to the adjustment operation includes: If no online adjustment operation is obtained from the content editing interface after the content editing interface is in an online state, triggering the step of updating and displaying the resource content displayed on the content editing interface based on the offline adjustment operation; If an online adjustment operation is obtained from the content editing interface after the content editing interface is online, the displayed resource content is updated and displayed according to the adjustment operation with the most recent corresponding operation time selected based on the operation time of the online adjustment operation and the offline adjustment operation.
9. The method according to claim 1, characterized in that The method further comprises: Acquire the first fragment data, and display the resource content included in the first fragment data as the second resource content in the content editing interface; Offline resource content for the content editing interface is obtained, and adjustment authority for the content editing interface is opened according to the acquisition result of the offline resource content.
10. The method according to claim 9, characterized in that The offline resource content is obtained when the content editing interface is in an online state; and the opening of adjustment permissions for the content editing interface according to the acquisition result of the offline resource content includes: If the acquisition result for the offline resource content indicates that the offline resource content is successfully acquired, submitting the offline resource content to the network queue; The adjustment permission for the content editing interface is opened, wherein after the adjustment permission for the content editing interface is opened, the adjustment operation is allowed to be performed on the content editing interface.
11. The method according to claim 9, characterized in that The offline resource content is obtained when the content editing interface is in an online state; and the opening of adjustment permissions for the content editing interface according to the acquisition result of the offline resource content includes: If the acquisition result for the offline resource content indicates that the offline resource content does not exist, the adjustment permission for the content editing interface is opened.
12. The method according to claim 9, characterized in that The obtaining of the first fragment data and displaying the resource content included in the first fragment data as the second resource content in the content editing interface includes: Sending a display request for each resource content included in the first fragment data to a data server, and obtaining change information from the data server, the change information including each resource content included in the first fragment data and a display position of each resource content in the content editing interface; According to the display position of any resource content recorded in the change information on the content editing interface, the any resource content is displayed in the content editing interface at the corresponding display position.
13. The method according to claim 10, characterized in that The network queue includes one or more fragment data to be displayed on the content editing interface; after submitting the offline resource content to the network queue, the method further includes: If the offline resource content is newly added based on the resource content included in the fragmented data of the network queue, re-fragment the resource content included in the network queue based on the offline resource content to obtain new fragmented data, where the new fragmented data includes the first resource content; If the offline resource content is obtained by adjusting the specific resource content included in the slice data of the network queue, the offline resource content is used to replace the specific resource content to update the slice data where the specific resource content is located.
14. The method according to claim 1, wherein: The step of displaying the first resource content from a target position in the content editing interface according to the adjustment operation includes: Submitting the adjustment operation to a network queue and performing conflict handling with the first resource content; According to the conflict handling result, the first position where the first resource starts to be displayed is adjusted to the target position, and the first resource content is displayed starting from the target position.
15. A content display device, characterized in that: include: A display unit is used to display a content editing interface supporting collaborative editing, wherein the content editing interface includes N first resource contents to be displayed, and the starting display position of the first resource contents is configured as the first position of the content editing interface, one resource content corresponds to one position, and N is a positive integer; the first resource content is obtained from other terminal devices, and the collaborative editing refers to: different editing objects perform editing on the content editing interface through different object devices; the content editing interface is used to receive collaborative editing of the content editing interface by different editing objects, and simultaneously display the resource contents to be displayed in real time; A receiving unit, configured to receive an adjustment operation on the number of positions for displaying resource content in the content editing interface; The display unit is further configured to, when the adjustment operation occupies the first position, adjust the first position to a target position in the content editing interface to start displaying the first resource content according to the adjustment operation.
16. A computer device, characterized in that: The method comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 14.
18. A computer program product, characterized in that The computer product comprises a computer program or a computer instruction, and the computer program or the computer instruction is used to implement the method according to any one of claims 1 to 14 when executed by a processor.
Citation Information
Patent Citations
Parameter adjustment method and device, client and storage medium
CN112035110A