An online document content block synchronization method, device, equipment and medium

CN122549375APending Publication Date: 2026-08-11SHENZHEN ZHIHEXING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-30
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0005]本申请实施例提供了一种在线文档内容块同步方法、装置、设备及介质,旨在解决现有技术中关联内容块变更联动机制的鲁棒性较低的技术问题

Benefits of technology

[0015] This application provides an online document content block synchronization method, apparatus, device, and medium. The method includes: in response to detecting a click operation on a target control within a target document, acquiring the attributes of the target control; determining the type of a target content block based on the attributes, wherein the target control is used to control the display state of the target content block; determining the position of the target content block based on the type; and performing a show/hide operation on the target content block based on its position. Therefore, in this application's technical solution, first, in response to detecting a click operation on a target control within a target document, the attributes of the target control are acquired; then, the type of the target content block is determined based on the attributes. The target control is used to control the display state of the target content block; next, the position of the target content block is determined based on its type; finally, a show/hide operation is performed on the target content block based on its position. Thus, this application's technical solution pre-configures content blocks to be displayed or hidden for the target control and achieves association and binding between them through the attributes of the target control. When a click operation on the target control is detected, the attributes of the target control are acquired. Then, the type of the associated target content block is determined based on the attributes of the target control. Furthermore, the location of the target content block is determined based on its type. Finally, the target content block is shown or hidden based on its location, thus achieving stable linkage between the target control and the target content block. Under this mechanism, even if the DOM nodes corresponding to the document structure change, it will not affect the properties of the target control or the binding relationship between the target control and the target content block, effectively improving the robustness of the linkage mechanism for changes in associated content blocks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122549375A_ABST
    Figure CN122549375A_ABST
Patent Text Reader

Abstract

This application relates to an online document content block synchronization method, apparatus, device, and medium, comprising: in response to detecting a click operation on a target control within a target document, acquiring the attributes of the target control; determining the type of the target content block based on the attributes, wherein the target control is used to control the display state of the target content block; determining the position of the target content block based on the type; and performing a show / hide operation on the target content block based on its position. It is understood that the technical solution of this application pre-configures content blocks to be shown or hidden for the target control, and achieves the association and binding between the two through the attributes of the target control. Under this mechanism, even if the DOM nodes corresponding to the document structure change, it will not affect the attributes of the target control or the binding relationship between the target control and the target content block, effectively improving the robustness of the linkage mechanism for changes in associated content blocks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of digital processing, and in particular to a method, apparatus, device, and medium for synchronizing online document content blocks. Background Technology

[0002] With the rapid development of collaborative office technologies, online documents have become a core tool for enterprises and individuals to conduct information editing, resource sharing, and collaborative work. They support the editing and management of various content blocks, providing users with an efficient and convenient document processing experience. In practical applications, content blocks in different locations within online documents are usually related; when the content of a certain content block changes, its associated content blocks need to be updated accordingly.

[0003] Currently, existing technologies for linking changes to related content blocks primarily employ a DOM path-based approach. Specifically, a binding relationship is established between UI controls and specified DOM nodes; when the content of a UI control changes, the content of the DOM node it is bound to is updated synchronously.

[0004] However, this existing technical solution has obvious technical flaws in practical applications, making it difficult to meet the needs of collaborative editing and flexible management of complex online documents. For example, when the document structure is adjusted or changed, the binding relationship between UI controls and corresponding DOM nodes will be broken, ultimately causing the content linkage mechanism between UI controls and DOM nodes to fail. Summary of the Invention

[0005] This application provides an online document content block synchronization method, apparatus, device, and medium, aiming to solve the technical problem of low robustness of the linkage mechanism for changes in associated content blocks in the prior art.

[0006] In a first aspect, embodiments of this application provide an online document content block synchronization method, which includes: In response to detecting a click operation on a target control within the target document, the properties of the target control are obtained; The type of the target content block is determined based on the attribute, and the target control is used to control the display state of the target content block; The location of the target content block is determined based on the type; The target content block is shown or hidden based on its position.

[0007] Optionally, determining the location of the target content block based on the type includes: Determine whether the type is a first preset type; If the type is the first preset type, the title of the target content block is obtained from the attribute, and the title of the target content block is the position of the target content block.

[0008] Optionally, obtaining the title of the target content block from the attribute includes: Obtain the target table file, which is used to define the display content of the target document; Locate the target cell in the target table file, the target cell being associated with the target control; Extract the attributes of the target cell, and associate the attributes of the target cell with the attributes of the target control; Obtain the title of the target content block from the attributes of the target cell.

[0009] Optionally, the attributes of the target cell include comments, and obtaining the title of the target content block from the attributes of the target cell includes: Obtain the title of the target content block from the annotation.

[0010] Optionally, if the target control is a horizontal radio button group, determining the position of the target content block according to the type includes: Determine whether the type is a second preset type; If the type is the second preset type, then the position of the row block from the next row of the horizontal radio button group to the end of the content block is selected as the position of the target content block.

[0011] Optionally, if the target control is a vertical radio button group, the vertical radio button group includes a first radio button and a second radio button, the first radio button and the second radio button are adjacent to each other, and determining the position of the target content block according to the type includes: Determine whether the type is a third preset type; If the type is the third preset type and the first radio button is selected, then the location of the associated row block between the first radio button and the second radio button is selected as the location of the target content block.

[0012] Secondly, embodiments of this application also provide an online document content block synchronization device, which includes a unit for performing the above-described method.

[0013] Thirdly, embodiments of this application also provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.

[0014] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the above-described method.

[0015] This application provides an online document content block synchronization method, apparatus, device, and medium. The method includes: in response to detecting a click operation on a target control within a target document, acquiring the attributes of the target control; determining the type of a target content block based on the attributes, wherein the target control is used to control the display state of the target content block; determining the position of the target content block based on the type; and performing a show / hide operation on the target content block based on its position. Therefore, in this application's technical solution, first, in response to detecting a click operation on a target control within a target document, the attributes of the target control are acquired; then, the type of the target content block is determined based on the attributes. The target control is used to control the display state of the target content block; next, the position of the target content block is determined based on its type; finally, a show / hide operation is performed on the target content block based on its position. Thus, this application's technical solution pre-configures content blocks to be displayed or hidden for the target control and achieves association and binding between them through the attributes of the target control. When a click operation on the target control is detected, the attributes of the target control are acquired. Then, the type of the associated target content block is determined based on the attributes of the target control. Furthermore, the location of the target content block is determined based on its type. Finally, the target content block is shown or hidden based on its location, thus achieving stable linkage between the target control and the target content block. Under this mechanism, even if the DOM nodes corresponding to the document structure change, it will not affect the properties of the target control or the binding relationship between the target control and the target content block, effectively improving the robustness of the linkage mechanism for changes in associated content blocks. Attached Figure Description

[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0019] Figure 1a A flowchart illustrating an online document content block synchronization method provided in an embodiment of this application; Figure 1b A schematic diagram of a horizontal radio button group provided in an embodiment of this application; Figure 1c A schematic diagram of a vertical radio button group provided in an embodiment of this application; Figure 2 A schematic block diagram of an online document content block synchronization device provided in an embodiment of this application; Figure 3 A computer device provided in an embodiment of this application. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0021] The following disclosure provides numerous different embodiments or examples for implementing various structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.

[0022] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0023] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0024] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0025] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."

[0026] To address the technical problem of low robustness in existing mechanisms for linking changes to related content blocks, this application provides an online document content block synchronization device that can improve the robustness of such mechanisms.

[0027] Figure 1a This is a flowchart illustrating an online document content block synchronization method provided in an embodiment of this application. In one embodiment, the method includes: S101-S104.

[0028] S101. In response to detecting a click operation on a target control within the target document, obtain the properties of the target control.

[0029] The target document is an online document. Preferably, the target document is in Word format.

[0030] S102. Determine the type of the target content block based on the attributes.

[0031] The target control is used to control the display state of the target content block.

[0032] It should be noted that when a user clicks the target control, they can control whether the target content block is shown or hidden.

[0033] S103. Determine the location of the target content block based on its type.

[0034] It should be noted that in order to control the display or hiding of the target content block, it is necessary to locate the target content block. In this embodiment, the location of the target content block is located based on its type. There are three types of target content blocks: a first preset type, a second preset type, and a third preset type. It should be noted that the first preset type, the second preset type, and the third preset type will be described in detail in later embodiments. They will not be repeated here.

[0035] S104. Perform a show / hide operation on the target content block based on its position.

[0036] In this embodiment of the application, after locating the target content block, the target content block can be shown or hidden based on its location. The show / hide operation includes both show and hide operations.

[0037] This application provides an online document content block synchronization method. The method includes: in response to detecting a click operation on a target control within a target document, acquiring the attributes of the target control; determining the type of a target content block based on the attributes, wherein the target control is used to control the display state of the target content block; determining the position of the target content block based on the type; and performing a show / hide operation on the target content block based on its position. Therefore, in this application's technical solution, first, in response to detecting a click operation on a target control within a target document, the attributes of the target control are acquired; then, the type of the target content block is determined based on the attributes. The target control is used to control the display state of the target content block; next, the position of the target content block is determined based on its type; finally, a show / hide operation is performed on the target content block based on its position. Thus, this application's technical solution pre-configures content blocks to be displayed or hidden for the target control and achieves association and binding between them through the attributes of the target control. When a click operation on the target control is detected, the attributes of the target control are acquired. Then, the type of the associated target content block is determined based on the attributes of the target control. Furthermore, the position of the target content block is further determined based on its type. Finally, the target content block is shown or hidden based on its position, thus achieving stable linkage between the target control and the target content block. Under this mechanism, even if the DOM nodes corresponding to the document structure change, it will not affect the properties of the target control or the binding relationship between the target control and the target content block, effectively improving the robustness of the linkage mechanism for changes in associated content blocks.

[0038] In one embodiment, S103 specifically includes the following steps: S1031-S1033.

[0039] S1031. Determine whether the type is the first preset type.

[0040] Among them, the first preset type is the associated content block type, which represents the position of the target content block as the title of the target content block.

[0041] S1032. If the type is the first preset type, obtain the title of the target content block from the attributes.

[0042] In one embodiment, S1032 specifically includes the following steps: S10321-S10324.

[0043] S10321. Obtain the target table file.

[0044] The target table file is used to define the content to be displayed in the target document.

[0045] In this embodiment, the content displayed within the target document is defined using a target table file. Specifically, the target table file contains multiple cells, each used to define the properties of controls in the target document. In other words, each cell in the target table file corresponds one-to-one with a control in the target document. When a user needs to modify control properties, delete controls, or add controls to the target document, they only need to modify the properties of the corresponding cells in the target table file, delete the cells, or add new cells.

[0046] S10322. Locate the target cell from the target table file.

[0047] The target cell is associated with the target control.

[0048] S10323, Extract the attributes of the target cell.

[0049] The properties of the target cell are associated with the properties of the target control. In other words, in this embodiment, the properties of the target control are indirectly defined by defining the properties of the target cell. For example, the property information of the target control can be defined in the comments of the cell.

[0050] S10324. Obtain the title of the target content block from the attributes of the target cell.

[0051] In one embodiment, the attributes of the target cell include comments, and S10324 specifically includes the following steps: S103241.

[0052] S103241. Obtain the title of the target content block from the comments.

[0053] For example, the comment in the target cell defines that the target content block comes from a specific title in a document. When the user clicks the target control, the system will look up the name and title of the document containing the target content block based on the comment in the target cell, and then locate the position of the target content block based on the document name and title. The target content block is the content block under the given title.

[0054] S1033. Determine the position of the target content block based on its title.

[0055] Please see Figure 1b , Figure 1b This is a schematic diagram of a horizontal radio button group provided in an embodiment of this application. In another embodiment, if the target control is a horizontal radio button group, the above-mentioned S103 specifically includes the following steps: S1034-S1035.

[0056] S1034. Determine whether the type is the second preset type.

[0057] The second preset type is the associated row type.

[0058] S1035. If the type is the second preset type, then the position of the line block from the next line of the horizontal radio button group to the end line of the content block is selected as the position of the target content block.

[0059] Specifically, if the next row of the horizontal button group is not empty and the next row of the horizontal button group is not a radio button, then the row block from the next row of the horizontal button group to the last row of the content block is selected as the target content block, and its position is the position of the target content block.

[0060] like Figure 1b As shown, the document contains multiple interactive radio button controls. These radio button controls include horizontal and vertical groups. These controls are associated with corresponding content blocks, helping users quickly and conveniently define requirements and edit documents. For example, when a user clicks on "Mechanical Design (including optical, pneumatic, and hydraulic circuit design)" in the horizontal radio button group, the target content block is "Software tools used for 3D design...software tools used for 2D part design." The user no longer needs to manually edit the content of the target content block; they can control its display or hiding by selecting "Yes" or "No," thus enabling rapid document editing.

[0061] Additionally, for horizontal radio button groups, locate the numbering control of the content block containing the group. If the cell corresponding to this numbering control is a numbered cell and its content type is numeric, obtain the first value of its current numbering level. Then, starting from this content block, search downwards, checking if the content blocks below are children, until a numeric number level equal to the current numbering level, an alphabetical number, or the end of the document is found, at which point the search ends. Traverse the content blocks below, obtaining their numbered cells and checking if the numbering level is less than the first value. If so, this content block is a child, and its block marker is added to both the list of radio button associated block markers and the list of radio button associated children for subsequent operations.

[0062] If the cell corresponding to the numbered control is a numbered cell and its content type is letters, start searching downwards from its own content block, checking if the content blocks below it are children, until another lettered number is found or the document ends, then the search ends. Traverse the content blocks below, retrieve the numbered cells of those content blocks, and check if the content type of those cells is numbers. If so, that content block is a child, and add its block tag to both the list of radio button associated block tags and the list of radio button associated children for subsequent operations.

[0063] If the cell corresponding to the numbered control is not a numbered cell, then it is determined whether the content block containing the radio button is the first content block in the document. If so, then all content blocks below it are children, and the block tags of the child content blocks are added to the list of radio button associated block tags and the list of radio button associated children for subsequent operations.

[0064] Furthermore, radio button groups can have parent-child relationships. When radio button group A contains radio button group B within its associated block, radio button group A is the parent of radio button group B. A radio button group may have multiple parents, and a radio button group may also have multiple children. Determining the visibility of children depends on the visibility of their parent. If the parent is visible, the child elements are hidden based on their own visibility settings; if any parent is hidden, then all its child elements are hidden.

[0065] In another embodiment, if the target control is a vertical radio button group, the vertical radio button group includes a first radio button and a second radio button, the first radio button and the second radio button are adjacent to each other, and the above S103 specifically includes the following steps: S1036-S1037.

[0066] S1036. Determine whether the type is the third preset type.

[0067] The third preset type is the type of row that associates two radio buttons.

[0068] S1037. If the type is the third preset type and the first radio button is selected, then the position of the associated row block between the first radio button and the second radio button is selected as the position of the target content block.

[0069] It should be noted that S1036-S1037 will be explained in detail below.

[0070] When there is an associated row block between two radio buttons in a vertical radio button group, the associated row block between the two radio buttons is the target content block. This target content block is the target content block associated with the topmost radio button when it is selected.

[0071] For example, please see Figure 1c , Figure 1c This is a schematic diagram of a vertical radio button group provided in an embodiment of this application. The group consists of "Delivery of goods face-to-face between Party A and Party B" and "Shipping of goods using a third-party logistics company." When the user selects the "Delivery of goods face-to-face between Party A and Party B" radio button, the content block between "Delivery of goods face-to-face between Party A and Party B" and "Shipping of goods using a third-party logistics company" will be displayed in the target document. Because... Figure 1c This is a table file used to define the document. Therefore, even when the "Delivery of goods face-to-face between Party A and Party B" radio button is not selected, the content block between "Delivery of goods face-to-face between Party A and Party B" and "Send goods via a third-party logistics company" can still be displayed. However, in the actual document, the content block between "Delivery of goods face-to-face between Party A and Party B" and "Send goods via a third-party logistics company" will only be displayed when the "Delivery of goods face-to-face between Party A and Party B" radio button is selected.

[0072] It should be noted that the following will use an online project document as an example to explain in detail the method of synchronizing online document content blocks.

[0073] The project's online documentation includes a requirements document and a work plan document. The requirements document and work plan document are linked. Specifically, the requirements document is for filling out and modifying requirements, and it contains radio buttons for job positions related to the project (e.g., a "Circuit Board Design Included / Not Included" radio button corresponds to whether there is a circuit design position in the project). When filling out the requirements document, users can add or remove positions by selecting the presence or absence of these radio buttons. If a position exists in the requirements document, the work plan document will contain the associated tasks, project team members, and relevant data information for that position. Furthermore, a single position can have multiple tasks. A project team member can also hold multiple different positions. If two or more project team members hold the same position, tasks can be handed over between them.

[0074] A work plan document is a document that outlines the work schedule based on requirements. The synchronized content blocks for job selection buttons within the work plan document have two important parts: the project's document list and the overall work schedule. The project's document list covers all documents that need to be prepared and delivered throughout the project's entire process. For example, a packaging design project would include packaging design specifications, sample testing reports, and so on. Therefore, adding or deleting job positions will cause the project's document list to expand or hide accordingly. The overall work schedule displays information such as the documents to be delivered and accepted at each work stage, the personnel involved, and the start and end dates. Therefore, it also needs to expand or hide its content blocks accordingly.

[0075] In summary, newly added or deleted job positions need to be synchronized with the relevant content blocks in the requirements document and work plan document.

[0076] Regarding personnel in a position, if a position exists initially and has project team members or is currently being invited, and the user wants to delete the position by selecting "None" using the position radio button, the personnel data, sorting, and tasks must be cleared first before deleting the position row. In the "Position, Personnel, and Task Overview" of the work plan document, if there are currently invited personnel, the user needs to cancel the invitations. If there are project team members, the user needs to remove them from the position; the removed team member's record will be stored in the change column below, and the task status in the change column will be changed to "Delete Task." Then, verify if the position's tasks are empty. If not empty, the task must be deleted first, and finally, the position radio button in the requirements document can be changed to "None" to delete the position. If the user wants to select "Yes" using the position radio button, and needs to restore the previously deleted position, the task status in the change column should be changed to "Handover Task," the current stage budget in the project cost table change column should be set to 0, and the task budget should be set to the value before the change. Then, determine if the vendor's documents still meet the submission conditions, and finally modify the vendor's conclusion.

[0077] Regarding job roles, users can add or remove roles within a reasonable scope by controlling the job radio button group. For example, in a smart hardware project, users cannot delete all related technical fields (circuit, mechanical, software) roles; otherwise, there would be no roles left in the project. Furthermore, projects are divided into phases based on the combination of roles; the more phases, the longer the overall project flow. For example, smart hardware projects might have five phases (design + interface + circuit / mechanical / software) or three phases (circuit / mechanical / software), etc. Therefore, if job roles are changed midway through a project, it's necessary to limit the number of project phases that cannot be altered to prevent excessive changes in project requirements before and after the change.

[0078] When a user selects a job posting as an option, the associated function blocks in the requirements document and the work plan document must be displayed synchronously. Related table rows must be initialized. For example, the workdays overview table must be initialized. In addition, all data associated with the job posting must also be initialized.

[0079] When a user selects "None" for a job posting, the associated function blocks in the requirements document and the work plan document must be hidden simultaneously. Related table rows should be deleted or cleared. For example, the workdays list table should be deleted or cleared. In addition, data associated with the job posting must be modified or reset.

[0080] When adding or deleting job positions using the radio button selection function, nested radio button groups within some related function blocks can affect the normal display and hiding of function blocks below. Therefore, after each job addition or deletion, it's necessary to trigger the display and hiding of radio buttons in the potentially problematic function blocks. For example, the Mechanical Engineering job has a Product Appearance Layout function block (because Mechanical Engineering has mockups, it needs to display a radio button group indicating whether a user has a product appearance layout requirement). This function block contains radio button groups that are related to other function blocks within the document, and these function blocks in turn contain nested horizontal radio button groups. Therefore, when a Mechanical Engineering job is added from scratch, the display and hiding of this radio button group needs to be activated so that the related function blocks can be displayed and hidden normally. When a Mechanical Engineering job is removed from the document, all radio button groups and related blocks below the Product Appearance Layout function block can be hidden directly.

[0081] It's important to note that the radio buttons for different job roles (Circuit, Mechanical, Software) control more than just these three roles; one radio button may control multiple roles. As mentioned above, the Mechanical role has a Product Appearance Layout function block, which contains a group of radio buttons for "Does Product Appearance Layout Required?". Through this group of radio buttons, the user can decide whether or not a styling role is required. Therefore, if the user selects "No Mechanical Role," the Product Appearance Layout function block will be hidden, and naturally, no styling role will be available.

[0082] Some positions require the delivery of items or prototypes. For example, circuit design positions require the delivery of circuit board prototypes, and mechanical design positions require the delivery of module prototypes. In the work plan document, the default number (minimum) of prototypes required for these positions is 1, indicating that prototypes are mandatory. Therefore, the project document will provide a corresponding folder (containing delivery documents such as prototype inspection reports and schedules).

[0083] Therefore, when a position requiring prototype delivery is deleted, the record for the prototype quantity is moved to the Changes column, and the corresponding folder is hidden. When a position requiring prototype delivery is reinstated, the prototype quantity uses the quantity recorded in the Changes column, the record in the Changes column is deleted, and the corresponding folder is displayed.

[0084] If the user modifies project requirements using the radio button during a project change phase—for example, changing a software + mechanical project (with a prototype) to a pure software project (without a prototype)—then the corresponding prototype and task budget tables will be set to 0 and made uneditable. If a prototype was delivered in a previous completed project phase, the pure software project will also display the prototype table and procurement / processing budget table. If no prototype was delivered, the prototype table and procurement / processing budget table will be hidden. Then, the rows for procurement, processing, logistics, and calculated days will be made uneditable (these rows are all related to delivered items or prototypes).

[0085] Regarding the patent sharing list, this list comprises the utility model and invention patents authorized by Party B for the project. It is used to calculate patent sharing royalties and is included in the project's total cost summary. The patent sharing list includes the corresponding position, personnel, whether the position has a radio button group for patent sharing, and an overview of the intellectual property sharing list. The presence of the radio button group for patent sharing is linked to the overview of the intellectual property sharing list below. Therefore, when adding or deleting positions, the patent sharing list will be displayed or hidden accordingly. When hidden, the radio button group should be set to "None," and the overview of the intellectual property sharing list below should be deleted.

[0086] When using the radio button to show / hide content blocks associated with a job position, if it involves showing / hide delivered items or prototypes, it's also necessary to determine whether to show / hide the "Logistics Days" column (used to fill in the logistics days required for deliverables) in the work plan document's work days overview table. If the contractor (Party B) doesn't have any deliverables, but the client (Party A) has provided items, or if deliverables have already been delivered in a completed project phase, then the "Logistics Days" column will not be hidden. Notably, the "Logistics Days" column will always be displayed for graduation project projects.

[0087] Budgeting is a crucial part of the project process and is closely related to requirements. Budgets are divided into outsourcing budgets and travel expense budgets. Outsourcing budgets refer to the budgeted costs for external cooperation (outsourcing) such as personnel procurement, processing, and specific item testing, and are included in the costs of project phases with deliverables. Travel expenses refer to the budgeted costs of transportation and accommodation for the contractor's personnel traveling to the client's location.

[0088] For some creative projects and projects with packaging positions, there is a budget for travel expenses. For projects that require the delivery of prototypes, there is an outsourcing budget. When there are changes in the deliverables due to the addition or deletion of positions, or when there are personnel changes, the budget content needs to be included in the budget.

[0089] If adding or deleting job positions modifies the required prototypes, the table rows associated with the prototypes need to be expanded or cleared and deleted accordingly. If a job position is removed from the table, the deleted job row should be moved to the Changes column below and saved as a record. If a job position is added from the table, the table rows should be expanded accordingly, the prototype quantity initialized based on default values, and the outsourcing budget cost in the row set to 0.

[0090] If the change involves travel expenses for a project in its first phase, and the corresponding position is being removed from the project, the travel expense budget for the personnel leaving that position in the current phase needs to be moved to the Project Expense Table Change column below and saved as a record. If the corresponding position is being added from scratch, then according to the rows in the Expansion Expense Budget Overview table for the expanded position, set the current phase's budget to 0 in the Project Expense Table Change column, and set the travel expense to the budget before the change (if there are saved records).

[0091] See Figure 2 , Figure 2 This is a schematic block diagram of an online document content block synchronization device provided in an embodiment of this application. Corresponding to the above-described online document content block synchronization method, this application also provides an online document content block synchronization device. This online document content block synchronization device includes a unit for executing the above-described online document content block synchronization method, and can be configured in terminals such as desktop computers, tablet computers, and laptops. Specifically, the online document content block synchronization device includes: The acquisition unit 201 is used to acquire the attributes of the target control in response to detecting a click operation on the target control within the target document; The first determining unit 202 is used to determine the type of the target content block according to the attribute, and the target control is used to control the display state of the target content block; The second determining unit 203 is used to determine the position of the target content block according to the type; The execution unit 204 is used to perform a show / hide operation on the target content block according to the position of the target content block.

[0092] In one embodiment, the second determining unit 203 is specifically used for: Determine whether the type is a first preset type; If the type is the first preset type, the title of the target content block is obtained from the attribute, and the title of the target content block is the position of the target content block.

[0093] In one embodiment, the second determining unit 203 is further specifically used for: Obtain the target table file, which is used to define the display content of the target document; Locate the target cell in the target table file, the target cell being associated with the target control; Extract the attributes of the target cell, and associate the attributes of the target cell with the attributes of the target control; Obtain the title of the target content block from the attributes of the target cell.

[0094] In one embodiment, the attributes of the target cell include annotations, and the second determining unit 203 is further specifically used for: Obtain the title of the target content block from the annotation.

[0095] In one embodiment, if the target control is a horizontal radio button group, the second determining unit 203 is further specifically used for: Determine whether the type is a second preset type; If the type is the second preset type, then the position of the row block from the next row of the horizontal radio button group to the end of the content block is selected as the position of the target content block.

[0096] In one embodiment, if the target control is a vertical radio button group, the vertical radio button group includes a first radio button and a second radio button, the first radio button and the second radio button are adjacent to each other, and the second determining unit 203 is further specifically used for: Determine whether the type is a third preset type; If the type is the third preset type and the first radio button is selected, then the location of the associated row block between the first radio button and the second radio button is selected as the location of the target content block.

[0097] like Figure 3 As shown, this application provides a computer device including a processor 31, a communication interface 32, a memory 33, and a communication bus 34. The processor 31, the communication interface 32, and the memory 33 communicate with each other through the communication bus 34. The memory 33 is used to store computer programs. In one embodiment of this application, when the processor 31 executes the program stored in the memory 33, it implements the control method for synchronizing online document content blocks provided in any of the foregoing method embodiments.

[0098] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program may be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0099] Therefore, embodiments of this application also provide a computer-readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the steps of the online document content block synchronization method provided in any of the foregoing method embodiments.

[0100] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), magnetic disk, or optical disk, or any other physical storage medium capable of storing program code. The computer-readable storage medium can be non-volatile or volatile.

[0101] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0102] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0103] The steps in the methods of this application embodiment can be adjusted, merged, or deleted according to actual needs. The units in the apparatus of this application embodiment can be merged, divided, or deleted according to actual needs. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0104] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0105] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0106] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Since these modifications and variations fall within the scope of the claims and their equivalents, this application also intends to include these modifications and variations.

[0107] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for synchronizing online document content blocks, characterized in that, include: In response to detecting a click operation on a target control within the target document, the properties of the target control are obtained; The type of the target content block is determined based on the attribute, and the target control is used to control the display state of the target content block; The location of the target content block is determined based on the type; The target content block is shown or hidden based on its position.

2. The method according to claim 1, characterized in that, Determining the location of the target content block based on the type includes: Determine whether the type is a first preset type; If the type is the first preset type, the title of the target content block is obtained from the attribute, and the title of the target content block is the position of the target content block.

3. The method according to claim 2, characterized in that, The step of obtaining the title of the target content block from the attribute includes: Obtain the target table file, which is used to define the display content of the target document; Locate the target cell in the target table file, the target cell being associated with the target control; Extract the attributes of the target cell, and associate the attributes of the target cell with the attributes of the target control; Obtain the title of the target content block from the attributes of the target cell.

4. The method according to claim 3, characterized in that, The target cell's attributes include annotations, and retrieving the title of the target content block from the target cell's attributes includes: Obtain the title of the target content block from the annotation.

5. The method according to claim 2, characterized in that, If the target control is a horizontal radio button group, determining the position of the target content block according to the type includes: Determine whether the type is a second preset type; If the type is the second preset type, then the position of the row block from the next row of the horizontal radio button group to the end of the content block is selected as the position of the target content block.

6. The method according to claim 2, characterized in that, If the target control is a vertical radio button group, the vertical radio button group includes a first radio button and a second radio button, the first radio button and the second radio button are adjacent to each other, and determining the position of the target content block according to the type includes: Determine whether the type is a third preset type; If the type is the third preset type and the first radio button is selected, then the location of the associated row block between the first radio button and the second radio button is selected as the location of the target content block.

7. An online document content block synchronization device, characterized in that, include: The acquisition unit is used to acquire the attributes of the target control in response to detecting a click operation on the target control within the target document; The first determining unit is used to determine the type of the target content block according to the attribute, and the target control is used to control the display state of the target content block; The second determining unit is used to determine the location of the target content block according to the type; An execution unit is used to perform a show / hide operation on the target content block according to the position of the target content block.

8. The apparatus according to claim 7, characterized in that, The first determining unit is specifically used for: Determine whether the type is a first preset type; If the type is the first preset type, obtain the title of the target content block from the attribute.

9. A computer device, characterized in that, The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, can implement the method as described in any one of claims 1 to 6.