Data processing method, system and related apparatus

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

Patent Information

Application Number
CN202610673688.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-15
Publication Date
2026-08-18

AI Technical Summary

Technical Problem

[0004]本申请实施例提供了一种数据处理方法、系统及相关装置,构建内容块级别的智能引用与同步机制,有效解决了文档间数据不一致问题,有利于提升编辑文档工作效率

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122594291A_ABST
    Figure CN122594291A_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a data processing method, system and related device, and the system comprises a content block management module, an authority control module, a reference relationship management module and a data updating module. According to the system, an intelligent reference and synchronization mechanism at the content block level can be constructed. Through performing a first change operation and / or a second change operation on a target document, the user can realize the synchronous reference and / or the extended reference of the content block in the document, and the reference content in the document can be automatically synchronized and updated, thereby solving the problem of inconsistent data between documents and improving the editing efficiency of the document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, specifically to a data processing method, system, and related apparatus. Background Technology

[0002] Currently, common tools for digitizing text and tables include office software such as WORD (word processing) and EXCEL (spreadsheet processing), as well as text boxes and rich text editors widely used in digital information management systems.

[0003] While existing general office software and text editors in digital systems offer powerful editing functions and high flexibility, when processing structured documents, if a numbered paragraph, table, or control is modified or expanded, all references to that content block cannot be automatically updated. References within and across documents cannot be automatically synchronized, leading to data inconsistencies between multiple documents, high manual maintenance costs, and a high risk of omissions and errors. Summary of the Invention

[0004] This application provides a data processing method, system, and related apparatus that constructs an intelligent referencing and synchronization mechanism at the content block level, effectively solving the problem of data inconsistency between documents and improving the efficiency of document editing.

[0005] In a first aspect, embodiments of this application provide a data processing method, including: A click operation on a content block in a document is detected, and the reference information of the content block is determined; Based on the reference information, determine the source-follower mapping relationship between the subordinate content block that references the content block and the content block; Based on the click operation and the source-subordinate mapping relationship, a first change operation is performed in the target document corresponding to the content block. The first change operation includes at least one of an add operation, a delete operation, and a modify operation. The add operation is used to add specified content in the subordinate content block to the subordinate content block. The modify operation is used to synchronously modify the specified content in the subordinate content block. The delete operation is used to delete the specified content in the content block and / or the subordinate content block. The target document includes at least one of the following: the document and an external document associated with the document.

[0006] Secondly, embodiments of this application provide a data processing method, including: A click operation on a content block in a document is detected. The block information and cell information of the content block are traversed to obtain target information. The target information includes at least: the block tag corresponding to the content block, the position index of the content block in the document, and the number control of the content block. The number control is used to determine the number of content blocks that need to be added and the corresponding number level of the content block. Based on the target information, an operation block list corresponding to the content block is established, and the operation block list includes the content block that needs to be copied; Based on the target information and the list of operation blocks, a second change operation is performed in the target document, wherein the second change operation includes an add operation, a modify operation, and a delete operation; wherein the add operation is used to copy the content block to generate one or more copy content blocks, insert the one or more copy content blocks into the document, and add reference information and calculation formulas corresponding to the one or more copy content blocks; the modify operation is used to modify the reference information and calculation formulas of the one or more copy content blocks; the delete operation is used to delete the content block and / or one or more associated copy content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copy content blocks. Update the numbering order of the one or more copied content blocks in the target document that are affected by the click operation.

[0007] Thirdly, embodiments of this application provide a data processing system, including: The content block management module is used to divide the content in a document into multiple content blocks with unique block identifiers according to the numbering, and to establish a document tag between each content block and the associated document; The access control module is used to verify the editing permissions of click operations on the content block; The reference relationship management module is used to manage the synchronous references and / or expanded references of content blocks in the document after the editing permission verification is passed; The synchronized reference is used to determine the reference information of the content block; based on the reference information, a source-dependent mapping relationship is determined between the subordinate content block referencing the content block and the content block; based on the click operation and the source-dependent mapping relationship, a first change operation is performed in the target document corresponding to the content block, the first change operation including at least one of an add operation, a delete operation, and a modify operation, wherein the add operation is used to add specified content in the content block to the subordinate content block, the modify operation is used to synchronously modify the specified content in the content block in the subordinate content block, and the delete operation is used to delete the content block and / or the specified content in the subordinate content block; The expanded reference is used to traverse the block information and cell information of the content block to obtain target information. The target information includes at least: the block tag corresponding to the content block, the position index of the content block in the document, and the number control of the content block. The number control is used to determine the number of content blocks to be added and the corresponding number level of the content block. Based on the target information, an operation block list corresponding to the content block is established. The operation block list includes the content blocks to be copied. Based on the target information and the operation block list, a second change operation is performed in the target document, and the numbering order of all content blocks affected by the click operation in the target document is updated. The second change operation includes an add operation, a modify operation, and a delete operation. The add operation is used to copy the content block to generate one or more copy content blocks, insert the one or more copy content blocks into the document, and add reference information and calculation formulas corresponding to the one or more copy content blocks. The modify operation is used to modify the reference information and calculation formulas of the one or more copy content blocks. The delete operation is used to delete the content block and / or one or more associated copy content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copy content blocks. The data update module is used to update the numbering order of all content blocks in the target document affected by the click operation, wherein all content blocks affected by the click operation include one or more copied content blocks.

[0008] Fourthly, this application provides a data processing apparatus, the apparatus comprising: The first detection unit is used to detect click operations on content blocks in the document and determine the reference information of the content blocks; The determining unit is configured to determine, based on the reference information, the source-dependent mapping relationship between the dependent content block referencing the content block and the content block; The first modification unit is configured to perform a first modification operation in the target document corresponding to the content block according to the click operation and the source-subordinate mapping relationship. The first modification operation includes at least one of an add operation, a delete operation, and a modify operation. The add operation is used to add specified content in the content block to the subordinate content block. The modify operation is used to synchronously modify the specified content in the content block in the subordinate content block. The delete operation is used to delete the specified content in the content block and / or the subordinate content block. The target document includes at least one of the following: the document and an external document associated with the document.

[0009] Fifthly, this application provides a data processing apparatus, the apparatus comprising: The second detection unit is used to detect click operations on content blocks in the document, traverse the block information and cell information of the content blocks to obtain target information. The target information includes at least: the block marker corresponding to the content block, the position index of the content block in the document, and the number control of the content block. The number control is used to determine the number of content blocks that need to be added and the corresponding number level of the content blocks. The establishment unit is used to establish an operation block list corresponding to the content block based on the target information, wherein the operation block list includes the content block that needs to be copied; The second modification unit is configured to perform a second modification operation in the target document based on the target information and the operation block list. The second modification operation includes an add operation, a modify operation, and a delete operation. Specifically, the add operation is used to copy the content block to generate one or more copied content blocks, insert the one or more copied content blocks into the document, and add reference information and calculation formulas corresponding to the one or more copied content blocks. The modify operation is used to modify the reference information and calculation formulas of the one or more copied content blocks. The delete operation is used to delete the content block and / or one or more associated copied content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copied content blocks. An update unit is used to update the numbering order of the one or more copied content blocks in the target document that are affected by the click operation.

[0010] In a sixth aspect, embodiments of this application provide an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing some or all of the steps described in the first and / or second aspects of embodiments of this application.

[0011] In a seventh aspect, embodiments of this application provide a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer program causes a computer to perform some or all of the steps described in the first aspect of embodiments of this application.

[0012] Eighthly, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the first and / or second aspects of embodiments of this application. The computer program product may be a software installation package. Implementing the embodiments of this application has the following beneficial effects: As can be seen, the data processing system described in this application embodiment can construct an intelligent referencing and synchronization mechanism at the content block level through the content block management module, permission control module, reference relationship management module, and data update module in this system. By performing a first change operation and / or a second change operation on the target document, it can enable users to synchronously refer to and / or expand the references of content blocks in the document, ensuring that the referenced content within the document or across documents can be automatically synchronized and updated, thereby solving the problem of data inconsistency between documents and improving the efficiency of document editing. Attached Figure Description

[0013] 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, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0014] Figure 1A This is a schematic diagram of the structure of a data processing system provided in an embodiment of this application; Figure 1B This is a schematic diagram of another data processing system provided in an embodiment of this application; Figure 1C This is a schematic diagram of a data processing scenario provided in an embodiment of this application; Figure 2A This is a flowchart illustrating a data processing method provided in an embodiment of this application; Figure 2B This is a schematic diagram of another data processing scenario provided in an embodiment of this application; Figure 3A This is a flowchart illustrating another data processing method provided in an embodiment of this application; Figure 3B This is a schematic diagram of another data processing scenario provided in the embodiments of this application; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application; Figure 5 This is a functional unit block diagram of a data processing device provided in an embodiment of this application; Figure 6 This is a block diagram of the functional units of another data processing device provided in the embodiments of this application. Detailed Implementation

[0015] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0016] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0017] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0018] Please see Figure 1A , Figure 1A This is a schematic diagram of the structure of the data processing system provided in an embodiment of this application. For example... Figure 1A As shown, the system architecture may include server 200a and multiple electronic devices (electronic device 100a, electronic device 100b, and electronic device 100c), wherein: Servers can include, but are not limited to, backend servers, component servers, customer service push system servers, or customer service push software servers. Servers can communicate with multiple electronic devices via the internet. The server sends data processing results to the user's corresponding electronic device, and communication connections between users can be established through the server.

[0019] The electronic devices (electronic device 100a, electronic device 100b, or electronic device 100c) involved in the embodiments of this application may include various handheld devices (mobile phones, tablets, etc.) with wireless communication functions, desktop computers, in-vehicle devices, wearable devices (smartwatches, smart bracelets, wireless headphones, augmented reality / virtual reality devices, smart glasses), computing devices or other processing devices connected to a wireless modem, as well as various forms of user equipment (UE), mobile station (MS), terminal device, etc. For ease of description, the devices mentioned above are collectively referred to as electronic devices.

[0020] For example, such as Figure 1A As shown, server 200a can establish communication connections with multiple electronic devices (electronic device 100a, electronic device 100b, and electronic device 100c); wherein the multiple electronic devices (100a, 100b, and 100c) can correspond to multiple users, and each electronic device (electronic device 100a, electronic device 100b, or electronic device 100c) can correspond to one user.

[0021] In this embodiment, the server (200a) can obtain click operations of any one of multiple users (corresponding to multiple electronic devices (electronic device 100a, electronic device 100b, and electronic device 100c)) on a content block in the same document, wherein each user corresponds to one click operation, and each click operation corresponds to one content block; the server performs an editing permission check on any user, wherein the editing permission check is used to ensure that only one user has document editing permission in the same document at that time; after the editing permission check on the user passes, if the user's corresponding number operation request indicates that synchronous reference management is performed on the content block, a first change operation is performed in the target document corresponding to the corresponding content block, the first change operation includes at least one of an add operation, a delete operation, and a modify operation; if the user's corresponding number operation request indicates that extended reference management is performed on the content block, a second change operation is performed in the target document corresponding to the corresponding content block, the second change operation includes an add operation and a delete operation, and the target document may refer to the document currently being operated on, or an external document corresponding to the document currently being operated on. Thus, this system can build an intelligent referencing and synchronization mechanism at the content block level, ensuring that multiple users can edit the same document at different times. This facilitates flexible document editing and usage for users. By performing the first change operation and / or the second change operation on the target document, it can achieve synchronous referencing or expanded referencing of content blocks in the document, ensuring that the referenced content within the document or across documents can be automatically updated synchronously. This solves the problem of data inconsistency between documents and helps improve the efficiency of document editing.

[0022] For example, please refer to Figure 1B , Figure 1B This is a schematic diagram of another data processing system 100 provided in an embodiment of this application. It can be applied to... Figure 1A Electronic devices (electronic device 100a, electronic device 100b, or electronic device 100c), such as Figure 1B As shown, the system architecture may include a content block management module, an access control module, a reference relationship management module, and a data update module.

[0023] The content block management module is used to divide the content in the document into multiple content blocks with unique block identifiers according to the number, and to establish a document tag between each content block and the associated document. The access control module is used to verify the editing permissions of click operations on the content block; The reference relationship management module is used to manage the synchronous references and / or expanded references of content blocks in the document after the editing permission verification is passed; The synchronized reference is used to determine the reference information of the content block; based on the reference information, a source-dependent mapping relationship is determined between the subordinate content block referencing the content block and the content block; based on the click operation and the source-dependent mapping relationship, a first change operation is performed in the target document corresponding to the content block, the first change operation including at least one of an add operation, a delete operation, and a modify operation, wherein the add operation is used to add specified content in the content block to the subordinate content block, the modify operation is used to synchronously modify the specified content in the content block in the subordinate content block, and the delete operation is used to delete the content block and / or the specified content in the subordinate content block; The expanded reference is used to traverse the block information and cell information of the content block to obtain target information. The target information includes at least: the block tag corresponding to the content block, the position index of the content block in the document, and the number control of the content block. The number control is used to determine the number of content blocks to be added and the corresponding number level of the content block. Based on the target information, an operation block list corresponding to the content block is established. The operation block list includes the content blocks to be copied. Based on the target information and the operation block list, a second change operation is performed in the target document, and the numbering order of all content blocks affected by the click operation in the target document is updated. The second change operation includes an add operation, a modify operation, and a delete operation. The add operation is used to copy the content block to generate one or more copy content blocks, insert the one or more copy content blocks into the document, and add reference information and calculation formulas corresponding to the one or more copy content blocks. The modify operation is used to modify the reference information and calculation formulas of the one or more copy content blocks. The delete operation is used to delete the content block and / or one or more associated copy content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copy content blocks. The data update module is used to update the numbering order of all content blocks in the target document affected by the click operation, wherein all content blocks affected by the click operation include one or more copied content blocks.

[0024] In this application, a content block may refer to content within a predefined range of elements in a document, divided by numbering, including at least one of text, images, calculation formulas, numbers and titles, table rows, and controls.

[0025] These controls can inherit cell properties and possess specific functions. For example, they may include at least one of the following: file upload control, image upload control, image paste control, radio button group control, checkbox group control, dropdown list control, material entry control, document entry control, etc.

[0026] The electronic device can detect a user's click operation on a specific control in a content block, and then obtain relevant information about the clicked content block. For example, the relevant information may include reference information, parameters of the clicked content block, target information, etc., as described in the embodiments of this application, and is not limited here. The content block that is clicked may also be called an operation block or a click block.

[0027] The content block mentioned above can be composed of multiple row blocks. For example, a table row block, a document list row block for a project, a row block associated with a radio button, a regular row block, etc., where a row block consists of multiple lines.

[0028] For example, the table row block mentioned above can refer to the content within the table borders. This type stores attributes such as table data, name, table identifier, and whether it is displayed. The document list row block mentioned above, for example, can refer to the document list of projects in a "Work Plan" document. This type is used to store the document list collection data. The row block associated with radio buttons can refer to the row below a horizontal group of radio buttons up to the end of the content block, or the row between two vertical groups of radio buttons, or the row from the bottom radio button to the end of the content block in a vertical group of radio buttons; this type stores attributes such as the row block identifier associated with the radio button and whether it is displayed.

[0029] In this application, each content block can correspond to a unique block marker, which can be obtained by numbering and encoding, and the specific encoding method is not limited.

[0030] In this application, synchronous reference may refer to the content referenced in one of the cells of the content block, which will be updated in real time as the source data content is operated, deleted or modified.

[0031] In the specific implementation, synchronous referencing is used by the electronic device to determine the reference information of the content block; based on the reference information, the source-slave mapping relationship between the subordinate content block and the content block is determined; based on the click operation and the source-slave mapping relationship, a first change operation is performed in the target document corresponding to the content block. The first change operation includes at least one of the following: add operation, delete operation, and modify operation. The add operation is used to add specified content in the subordinate content block; the modify operation is used to synchronously modify the specified content in the subordinate content block; and the delete operation is used to delete the specified content in the content block and / or the subordinate content block.

[0032] In this application, an extended reference refers to a content block that includes a content block from the data cell and a content block semantically related to the source data, and that the content block is updated in real time as the source data content is operated on, deleted, or modified.

[0033] In the specific implementation, the reference is expanded to allow the electronic device to traverse the block information and cell information of the content blocks to obtain the target information. The target information includes at least: the block tag corresponding to the content block, the position index of the content block in the document, and the number control of the content block. The number control is used to determine the number of content blocks to be added and the corresponding number level of the content blocks. Based on the target information, an operation block list corresponding to the content blocks is established. The operation block list includes the content blocks to be copied. Based on the target information and the operation block list, a second change operation is performed in the target document, and the numbering order of all content blocks affected by the click operation in the target document is updated. The second change operation includes an add operation, a modify operation, and a delete operation. The add operation is used to copy the content block to generate one or more copy content blocks, insert one or more copy content blocks into the document, and add reference information and calculation formulas corresponding to one or more copy content blocks. The modify operation is used to modify the reference information and calculation formulas of one or more copy content blocks. The delete operation is used to delete the content block and / or one or more associated copy content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copy content blocks.

[0034] It should be noted that when a user initiates a click operation on a content block, they can also simultaneously initiate synchronous references and extended references to that content block or operation block; the two can be implemented in parallel.

[0035] In one possible example, the aforementioned reference relationship management module is used to manage the synchronous references and / or extended references of content blocks in the document after the editing permission verification is passed. Specifically, it can be used as follows: the electronic device can detect a click operation on a content block; after the editing permission verification corresponding to the click operation is passed, the relevant information of the content block is determined, including target information and reference information; based on the reference information, the subordinate content blocks referencing the content block and the source-subordinate mapping relationship between the content blocks are determined; based on the target information, an operation block list corresponding to the content block is established, the operation block list including the content blocks to be copied; based on the target information and the operation block list, a second change operation is performed in the target document; and based on the click operation and the source-subordinate mapping relationship, a first change operation is performed in the target document corresponding to the content block. In this way, the addition, deletion, or modification of specified content in other subordinate content blocks that reference specified content in the same content block can be implemented step by step simultaneously. At the same time, the insertion of copied content blocks or the deletion of specified content blocks can be implemented for the same content block. Simultaneously, the addition, deletion, or modification of related content and other structural content blocks of the same content block can be implemented. Thus, when a numbered paragraph, table, or control is modified or expanded, the content blocks (including subordinate content blocks and copied content blocks) in all documents (including internal documents or external documents) affected by its corresponding content block can be updated, added, deleted, or modified synchronously, thereby maintaining the consistency of data between documents and improving the efficiency of content block management.

[0036] In this application, a dependent content block refers to the content block that references the source content block in a pair of reference relationships, and the source content block refers to the content block that is referenced in a pair of reference relationships.

[0037] In this application, an operation block can refer to a content block in a document that is being operated on (e.g., click operation, selection operation, etc.). When an operation block is clicked, it can also be called a clicked block.

[0038] In this application, "copy content block" refers to the content block in the copied document that corresponds to the content that needs to be expanded.

[0039] It should be noted that, in this application, when the electronic device is expanding the referenced copy content block, the copy content block can be regarded as an "operation block".

[0040] In this application, the target document may refer to an internal document or an external document associated with the document.

[0041] The first change operation and / or the second change operation may include at least one of the following: add operation, modify operation, and delete operation, etc., without limitation. The first change operation is used to implement synchronous referencing of the content block, and the second change operation is used to implement expanded referencing of the content block.

[0042] For example, in this application, such as Figure 1C The image shown is a schematic diagram of a data processing scenario. Figure 1C As shown, a user can select a content block on the electronic device's display screen, such as the content block containing the "Invoice Display Table," and click on the content block to initiate a click operation. This click operation is used to expand the reference to that content block, so as to perform a second change operation in the document, to add two copied content blocks, such as copied content block A and copied content block B. Both copied content block A and copied content block B contain the "Invoice Display Table," and the numbering order of the two added copied content blocks is adjusted. For example, the numbering order of copied content block A is increased by 1 at the content block numbering level to obtain a numbering level of 2, and the numbering order of copied content block A is increased by 1 at the numbering level of copied content block B to obtain a numbering level of 3.

[0043] In practice, the content block management module in the electronic device can detect click operations initiated on the content block, and the permission control module can perform editing permission verification on the click operation. This editing permission verification is used to ensure that only one user has editing permission for the document within the same time period and the same project (document). After the user's editing permission verification is passed, the reference relationship management module in the electronic device can expand the reference for the content block selected by the user to add two copy content blocks, and update the numbering order of these two copy content blocks through the data update module.

[0044] As can be seen, the data processing system described in this application embodiment can construct an intelligent referencing and synchronization mechanism at the content block level through the content block management module, permission control module, reference relationship management module, and data update module in this system. By performing a first change operation and / or a second change operation on the target document, it can enable users to synchronously refer to and / or expand the references of content blocks in the document, ensuring that the referenced content within the document or across documents can be automatically synchronized and updated, thereby solving the problem of data inconsistency between documents and improving the efficiency of document editing.

[0045] In one possible example, the content block management module is further configured to: detect a click operation on a content block in a document, display the properties of the control corresponding to the content block, the properties including color, shape, and size, the properties being used to instruct the user to perform an add operation, delete operation, or modify operation on the content block in the corresponding target document; the reference relationship management module is further configured to, in response to the attribute selected by the user, perform the first change operation or the second change operation in the target document corresponding to the content block.

[0046] When a user is editing a document, the document page contains controls that can be used to add, modify, and / or delete numbers. If a table row contains this type of numbering control, the numbering control will naturally be invoked when the business logic triggers it.

[0047] For example, when the content block management module detects that the user's mouse has moved over a control, the background color of the control will change from gray to yellow to prompt the user to perform an operation.

[0048] For another example, a green underline will appear at the bottom of the control. The content block management module will recognize when the user clicks on the green underline to add a number; a short horizontal line will appear on the left side of the control. The content block management module will recognize when the user clicks on the short horizontal line to delete a number.

[0049] For another example, when the content block management module detects that the user clicks the control to add the number of the memory block, that is, it detects a click operation on the content block in the document. The number level of the content block can be saved. The front end will return the number of the document currently being edited by the user, the block marker of the clicked content block, and the user ID (Identity) of the current user, etc., to instruct the reference relationship management module to process or manage the extended reference and / or synchronous reference of the content block, that is, to perform the first change operation or the second change operation in the target document.

[0050] As can be seen in this example, the electronic device can provide users with controls of different colors, shapes, or sizes (styles) to instruct them to add, modify, or delete content blocks, thereby enabling expanded or synchronous references of content blocks in the target document, which helps improve the user experience.

[0051] In one possible example, the data update module is also used for: After performing the first change operation or the second change operation in the target document corresponding to the content block, if the content block, the subordinate content block, or the copied content block contains a drop-down control, the data source of the drop-down control is updated synchronously.

[0052] In one possible example, the data update module is also used for: When the target document contains statistical items related to acceptance or inspection, the pass rate or acceptance statistics are automatically calculated and updated in response to the selection operation of the drop-down control.

[0053] Different types of documents, such as inspection reports, will have different functional items. A dropdown control style can be used to display the pass rate or statistical items of the acceptance results in the inspection report.

[0054] The drop-down control can correspond to cells used to calculate the pass rate or acceptance statistics. After the first or second change operation on the content block is performed, the pass rate or statistics can be calculated synchronously and automatically updated.

[0055] It should be noted that, in addition to the document types described in this embodiment, if the document also includes a checkbox control, the checkbox control is used to instruct the user to select the row block to be copied, shown, or hidden. In this application, as long as the processing or management of row blocks is involved, it includes the processing of cells. The processing of cells requires calling the first change operation or the second change operation in the above-mentioned reference relationship management module to realize the synchronous reference and modification of reference information (including internal reference information and / or external reference information) and calculation formulas.

[0056] As can be seen in this example, the above control can also provide unique functions for different types of documents, so as to synchronously modify the corresponding functional data (such as pass rate or statistical items) to adapt to different document functions, which is beneficial to improving the user experience.

[0057] In one possible example, regarding the permission verification for clicking on content blocks, the aforementioned permission control module is specifically used to: determine the project ID corresponding to the document, the user ID of the user editing the document, and the document ID (which may be the document's number); generate a user editing document record, which (a unique identifier for the cached file) is generated or composed of a configured generic constant string and the project ID. This user editing document record is used to retrieve cached data from the corresponding cache of the electronic device, and the cached data includes at least: the user currently editing and the document data being edited.

[0058] Furthermore, if the retrieved cached data is empty, it indicates that the user is accessing the site for the first time or the cache has expired. In this case, a new user edit record is directly written, which includes the user ID, the edited document record, and the document ID.

[0059] If the retrieved cached data is not empty, compare the user ID and document ID stored in the document data being edited in the cached data with the user ID and document ID corresponding to the user who initiated the edit permission verification.

[0060] If the stored user ID matches the current user ID, it means the current user is editing. Next, check if the document IDs stored in the currently edited document data contain all document IDs for that user. If not, add the missing document IDs to the stored document IDs and add all data for the document IDs edited by the user. If the document IDs match, it means a record of the user editing the document already exists, and no further processing is done to avoid duplicate recording.

[0061] If the stored user ID and the user ID do not match, it means that another user is editing. Then check if the document ID stored in the document data being edited contains any document ID of that user. If it does, it means that there is a conflict of different users editing the same document, and an error should be returned.

[0062] As can be seen in this example, the permission control module can verify the editing permission of the user who initiates the click operation by using the user ID and document ID. This verifies whether the corresponding user has editing permission, ensuring that only one user has editing permission for the same project and the same document at the same time. This prevents editing conflicts and helps ensure the accuracy of document editing. It also provides multi-user document collaboration functionality, allowing users to edit the same document at different times, which helps users edit and use documents more flexibly.

[0063] It should be noted that in this application, "multiple" can refer to two or more, which will not be elaborated further.

[0064] Please see Figure 2A , Figure 2A This is a flowchart illustrating a data processing method provided in an embodiment of this application. As shown in the figure, it is applied to, for example... Figure 1A The electronic devices shown or Figure 1B The data processing system shown includes the following data processing method: S201. A click operation on a content block in the document is detected, and the reference information of the content block is determined.

[0065] The aforementioned citation information includes at least one of internal document citations and external citations. Internal citations indicate which content blocks or locations within the document reference the content block whose click action was performed; external citations indicate which other documents or locations reference related content within that content block.

[0066] Once the user's editing permissions for clicking on the content block are verified, the content block can be saved as a block marker corresponding to the source content block, and the document number can be saved as a document ID to determine the reference information of the content block.

[0067] S202. Based on the reference information, determine the source-daughter mapping relationship between the dependent content block that references the content block and the content block.

[0068] The source-dependent mapping relationship is used to indicate which content blocks in different locations of an internal or external document reference which content in that content block. In this case, the content block corresponding to the click operation is taken as the source content block, and the content blocks that reference the source content block are called dependent content blocks.

[0069] It should be noted that the embodiments of this application are not only applicable to synchronous references, but also to the embodiments related to the determination of reference information and / or source-from mapping relationships, which will not be elaborated further in subsequent extended reference embodiments.

[0070] S203. Based on the click operation and the source-subordinate mapping relationship, a first change operation is performed in the target document corresponding to the content block. The first change operation includes at least one of an add operation, a delete operation, and a modify operation. The add operation is used to add specified content in the content block to the subordinate content block. The modify operation is used to synchronously modify the specified content in the content block in the subordinate content block. The delete operation is used to delete the specified content in the content block and / or the subordinate content block. The target document includes at least one of the following: the document and an external document associated with the document.

[0071] The aforementioned source-from mapping relationship can be used to indicate the target document for which the first change operation needs to be performed. The target document can be the current document being edited, or it can be an external document associated with the current document (affected by the click operation).

[0072] The specified content mentioned above can be selected by the user in the document or be the system default, and is not limited here. The above content can refer to the specific content stored in the cell or row block of the content block. For example, it can include the pass rate, invoice name, image, etc., which are applied to different document types, and is not limited here.

[0073] It should be noted that the above deletion operation, in addition to deleting specified content in a content block or a subordinate content block, may also involve deleting: internal references of the block, external references (or source-follower mapping relationships), calculation formulas, block tags, etc., which are not limited here.

[0074] like Figure 2B The diagram illustrates another data processing scenario. A content block comprises two subordinate content blocks, namely subordinate content block A and subordinate content block B. When the user clicks an action indicating that they need to delete specific content within a content block (such as the fee type option), the relevant content (such as the fee type option) in the corresponding subordinate content blocks A and B of the target document can be identified, and the relevant content in subordinate content blocks A and B, i.e., the fee type option, is deleted simultaneously.

[0075] As can be seen, the data processing method described in this application embodiment detects a click operation on a content block in a document and determines the reference information of the content block; based on the reference information, it determines the source-slave mapping relationship between the subordinate content block referencing the content block and the content block; based on the click operation and the source-slave mapping relationship, it performs a first change operation in the target document corresponding to the content block. The first change operation includes at least one of an add operation, a delete operation, and a modify operation. The add operation is used to add specified content from the content block to the subordinate content block; the modify operation is used to synchronously modify specified content from the content block in the subordinate content block; and the delete operation is used to delete the content block and / or the specified content from the subordinate content block. The target document includes at least one of the following: the document itself, or an external document associated with the document. Thus, a content block-level intelligent synchronous reference mechanism is constructed, which provides users with the ability to add, delete, or modify specified content in synchronously referenced content blocks when editing documents. This ensures that referenced content within or across documents can be automatically and synchronously updated, thereby solving the problem of data inconsistency between documents and improving the efficiency of document editing.

[0076] In one possible example, when the reference information includes external reference information, determining the reference information of the content block includes: determining the parameters of the content block and the corresponding document number; generating a block tag that uses the content block as a source content block based on the parameters; generating a document tag that uses the document corresponding to the content block as a source document based on the document number; querying the external reference database of document blocks based on the block tag and the document tag to obtain a candidate list corresponding to the content block; traversing the candidate list and storing the target parameters obtained from the traversal in a newly created object corresponding to the click operation to obtain the external reference information of the content block, wherein the target parameters include at least one of the following: the document tag of the subordinate document when the document corresponding to the content block is used as the source document, and the tag of the subordinate content block.

[0077] The parameters of the content block mentioned above can refer to block information, including the range of the content block, i.e., the corresponding cell, cell coordinates, etc., which are not limited here.

[0078] The aforementioned content blocks serve as source content blocks. The aforementioned document tags may include document IDs.

[0079] The aforementioned external reference database is used to store the mapping relationship between different documents and their corresponding associated documents.

[0080] When iterating through the candidate list, if the candidate list is empty, it means that the content block does not correspond to any external reference information.

[0081] As can be seen in this example, when a content block corresponds to external reference information, the electronic device can identify the external reference information corresponding to the click operation based on the block tag and document ID. This allows for the automatic updating of the specified content in the external reference information when the first change operation is subsequently performed, thereby enabling cross-document data updates and improving user editing efficiency and document editing flexibility.

[0082] It should be noted that in the embodiments of this application, when the reference relationship includes internal reference information, the specific determination method is similar to that of external reference information. The difference is that what needs to be determined is not the document number, but the relevant content block or the number level of the content block in the document, or the position of the corresponding specific cell, etc. The electronic device can further determine the internal reference information based on the above information. The specific implementation will not be described in detail here.

[0083] In one possible example, the source-dwell mapping relationship includes at least one of the following: a mapping between referenced cells and cell addresses when the document corresponding to the content block is used as the source document; a mapping between the cell address corresponding to the content block and the cell address corresponding to the subordinate content block; a mapping between the content block and each of the subordinate content blocks; a mapping between the coordinates of referenced cells in the subordinate document and the cell addresses referenced in the subordinate content block; and a subordinate content block marker in the subordinate document.

[0084] The aforementioned source-slave mapping relationship can be created when the electronic device recognizes each click on a content block by the user, or it can be created after the initial editing. Subsequent clicks on the content block with the edit number will automatically update the relationship. The specific timing of the update or creation is not limited here.

[0085] As can be seen in this example, when the electronic device detects a click operation on a content block in the document, it can further determine, modify, or update the source-follower mapping relationship between the subordinate content block associated with the content block and the content block's internal or external references, based on the content block's reference relationship. This facilitates the location of the specific subordinate content block and its relevant position, enabling the modification, addition, or deletion of specified content within the subordinate content block.

[0086] It should be noted that the above source-dependent mapping relationship is also applicable in subsequent extended references in this application. The source-dependent mapping relationship is used to determine the reference information of content blocks when extending the reference. For example, the source-dependent mapping relationship may include at least one of the following: when the document corresponding to the content block is used as the source document, the mapping between the referenced cell and the cell address when performing the second change operation (which requires adding, deleting, or modifying the document); the mapping relationship between the cell address corresponding to the content block and the cell address corresponding to each copied content block; the mapping relationship between the content block and each copied content block; the mapping relationship between the referenced cell coordinates in the dependent document and the referenced cell address in the copied content block; and the marker corresponding to the copied content block in the dependent document that requires the second change operation.

[0087] In one possible example, after performing the first change operation in the target document corresponding to the content block, the method further includes the following steps: determining the calculation formula mappings corresponding to the internal reference information and / or the external reference information in the reference information corresponding to the content block; and updating the calculation formulas corresponding to the internal reference information and / or the external reference information respectively according to the calculation formula mappings corresponding to the internal reference information and / or the external reference information.

[0088] When the first change operation includes an add, modify, or delete operation, the electronic device can update the calculation formulas corresponding to the internal or external reference information after executing the first change operation. For example, the corresponding calculation formulas can be added, modified, or deleted accordingly.

[0089] In practice, for calculation formulas corresponding to internal references, the internal reference label table document can be queried to store the calculation formulas and their corresponding cell positions or cells, as well as the cell mapping relationships in the corresponding content blocks (including subordinate content blocks), to add, delete, or modify internal references. For calculation formulas corresponding to external references, the external reference database can be queried to store the calculation formulas and their corresponding cell positions or cells to determine whether it is necessary to modify, delete, or add reference relationships in subordinate content blocks. If so, the modifications are made; otherwise, they are left unchanged.

[0090] It should be noted that the methods for updating or determining the calculation formulas corresponding to internal or external references mentioned above also apply to extended reference applications. The updating or determination of the calculation formulas for cells within a copied content block will not be elaborated upon further.

[0091] As can be seen in this example, when a user edits a document, and the electronic device recognizes the click operation initiated by clicking the numbered control corresponding to the content block, it also needs to synchronously update the deletion, modification, or addition of the corresponding calculation formula of the content block and / or the subordinate content block while performing the first change operation on the subordinate content block. This is to realize the processing of the corresponding calculation formula of the subordinate content block, so as to complete the update of the calculation formula of the subordinate content block referenced internally or externally.

[0092] In one possible example, the method may further include the following steps: obtaining a set of cell address coordinates corresponding to the content block; filtering the set of cell address coordinates to obtain source cell address coordinates and referenced cell address coordinates according to the source-source mapping relationship; parsing the document to obtain the calculation formula corresponding to the internal reference information; using regular expressions to obtain cell address coordinates containing the calculation formula in the document, and establishing a mapping relationship between the calculation formula and the cell address coordinates; filtering the target source cell address containing the calculation formula and the target referenced cell address containing the calculation formula according to the source cell address coordinates and the referenced cell address coordinates, and the mapping relationship between the calculation formula and the cell address coordinates, to obtain the calculation formula mapping, wherein the calculation formula mapping is used to express the mapping relationship between the target source cell address and the target referenced cell address, and the corresponding calculation formulas.

[0093] In this embodiment of the application, the calculation formula for processing internal reference information is different from the calculation formula for external reference information. This example is adapted to determine the calculation formula for internal reference information.

[0094] The aforementioned formula mapping represents the correspondence between the cell coordinates containing the formula and the formula expression. More specifically, the formula mapping expresses the mapping relationship between the target source cell address, the target reference cell address, and their respective corresponding formulas.

[0095] The cells corresponding to the target source cell address and / or the target reference cell address contain the calculation formulas.

[0096] As can be seen in this example, when the reference information includes internal reference information, the electronic device can gradually filter to obtain the target source cell address containing the calculation formula and the target reference cell address containing the calculation formula based on the source-reference mapping relationship, thereby obtaining the calculation formula mapping, which prepares for the subsequent update of the calculation formula of the subordinate content block of the internal reference.

[0097] In one possible example, the method may further include the following steps: obtaining a set of cell address coordinates corresponding to the content block; querying an external reference database of document blocks based on the document identifier of the document and the set of cell address coordinates to obtain external reference data; obtaining the source address corresponding to the content block; traversing the external reference data based on the source address; if no preset mapping relationship associated with the source address is found, then the calculation formula corresponding to the external reference information is not updated, and / or the external reference source address of the subordinate content block is not updated; if a preset mapping relationship associated with the source address is found, then the calculation formula corresponding to the external reference information is updated, and / or the external reference source address corresponding to the subordinate content block is updated to the subordinate address of the content block within the source document.

[0098] The aforementioned preset mapping relationship associated with the source address can be set by the user or by the system default, and is not limited here. This preset mapping relationship refers to the mapping relationship between the source content block and the source cell in the source document's insertion block, insertion line, or operation area as the source cell.

[0099] As can be seen in this example, when the reference information includes external reference information, the electronic device can traverse the preset mapping relationship based on the external reference database and source address to update the calculation formula mapping corresponding to the external reference information.

[0100] With the above Figure 2A The illustrated embodiments are consistent with those shown in the example. Please refer to [link / reference]. Figure 3A , Figure 3A This is a flowchart illustrating another data processing method provided in an embodiment of this application, applicable to, for example... Figure 1A The electronic devices shown or Figure 1B The data processing system shown includes the following data processing method: S301. A click operation on a content block in a document is detected. The block information and cell information of the content block are traversed to obtain target information. The target information includes at least: the block marker corresponding to the content block, the position index of the content block in the document, and the number control of the content block. The number control is used to determine the number of content blocks to be added and the corresponding number level of the content block.

[0101] In this embodiment, the click operation can be used to add, delete, or modify content blocks. For example, when a user wants to enter new content in a document, the electronic device can detect a click operation on a content block in the document and, in response to the click operation, insert the user-specified number of content blocks into the document or delete the user-specified content block.

[0102] For example, when a user wants to modify the content in a certain content block in a document, the electronic device can also detect the click operation and respond to the click operation by modifying the specified content in the specified content block, including reference information and / or calculation formulas, etc.

[0103] It should be noted that when you click the operation instruction to modify the specified content in the content block, the structure of the content block is not actually affected, and there is no need to update the numbering order of other content blocks.

[0104] The aforementioned block information includes the scope of the content block, i.e., the corresponding cell, cell coordinates, etc., which are not limited here.

[0105] Among them, the content blocks that need to be added include copy content blocks, and the number of multiple content blocks to be added can be determined according to the number control of the operation block.

[0106] Each content block has a corresponding number level. The number level in the document can be a tree-like numbering system, such as 1, 1.1, 1.1.1, etc. This number level is used to directly represent the hierarchical relationship.

[0107] The position index of the content block in the document can refer to the position coordinates of the cell corresponding to the content block.

[0108] S302. Based on the target information, establish an operation block list corresponding to the content block, wherein the operation block list includes the content block that needs to be copied.

[0109] The list of operation blocks includes the operation blocks (including content blocks) that need to be copied, as well as the cells and / or cell coordinates corresponding to the content blocks to be copied.

[0110] S303. Based on the target information and the operation block list, a second change operation is performed in the target document, wherein the second change operation includes an add operation, a modify operation, and a delete operation; wherein the add operation is used to copy the content block to generate one or more copy content blocks, insert the one or more copy content blocks into the document, and add reference information and calculation formulas corresponding to the one or more copy content blocks; the modify operation is used to modify the reference information and calculation formulas of the one or more copy content blocks; the delete operation is used to delete the content block and / or one or more associated copy content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copy content blocks.

[0111] The target document mentioned above may refer to the document containing the content block, or other documents associated with the click operation, without limitation.

[0112] The second change operation is used to expand the reference, and is used to add, modify or delete content blocks or the corresponding copy content blocks.

[0113] It should be noted that, consistent with the above embodiments, when the second change operation is used to add, modify, or delete a copied content block, if the content block includes reference relationships and / or calculation formulas, then reference relationships and / or calculation formulas will also be added, modified, or deleted synchronously in one or more corresponding copied content blocks.

[0114] S304. Update the numbering order of the one or more copied content blocks in the target document that are affected by the click operation.

[0115] The content block affected by the click operation can be one or more copied blocks, or it can be other content blocks that are affected by one or more copied blocks after one or more copied blocks are added.

[0116] For example, each content block (including copied content blocks) in a document has a corresponding number. When a number needs to be added, modified, or deleted in the target document, and the content block corresponding to that number has associated copied content blocks, then when the electronic device detects a click operation on that content block, after performing the second change operation in the target document—that is, adding one or more copied blocks or deleting a specified content block—it will also synchronously update the numbering order of all other content blocks in the target document affected by the click operation, for example, the numbering order of one or more copied content blocks. Of course, it may also update the numbering order of the copied content block itself.

[0117] For example, when a user wants to enter new content in a document, the electronic device can detect a click on a content block in the document and, in response to the click, insert or delete a specified number of content blocks in the document, while simultaneously adjusting the numbering order of the content blocks affected by the inserted or deleted content blocks.

[0118] As can be seen, the data processing method described in this application embodiment detects a click operation on a content block in a document, traverses the block information and cell information of the content block to obtain target information. The target information includes at least: the block marker corresponding to the content block, the position index of the content block in the document, and a number control for the content block. The number control is used to determine the number of content blocks to be added and the corresponding number level of the content block. Based on the target information, an operation block list corresponding to the content block is established, and the operation block list includes the content blocks to be copied. Based on the target information and the operation block list, a second change operation is performed in the target document. The second change operation includes an add operation, a modify operation, and a delete operation. The add operation is used to copy the content block to generate one or more copy content blocks, insert one or more copy content blocks into the document, and add reference information and calculation formulas corresponding to one or more copy content blocks. The modify operation is used to modify the reference information and calculation formulas of one or more copy content blocks. The delete operation is used to delete the content block and / or one or more associated copy content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copy content blocks. The numbering order of one or more copy content blocks affected by the click operation in the target document is updated. In this way, an intelligent expansion and citation mechanism at the content block level is constructed, which can provide users with the function of adding, deleting or modifying specified content in the expanded and citation content block when editing documents. This ensures that the referenced content within the document or across documents can be automatically synchronized and updated, thereby solving the problem of data inconsistency between documents and improving the efficiency of document editing.

[0119] In one possible example, when the second change operation is an addition operation, the method of performing the second change operation in the target document based on the target information, the operation block list, and the copy content block list may include the following steps: if the number control indicates that the number of content blocks to be added is multiple, then multiple copy content blocks are generated based on the multiple content blocks to be copied included in the operation block list; the copy content block position coordinates of each copy content block are determined based on the content block position coordinates corresponding to the block marker of the content block; the address information and cross-document address information corresponding to each copy content block are cleared; the insertion position of each copy content block in the document is determined based on the copy content block position coordinates of each copy content block and the number control; a unique block marker is generated for each copy content block, and the display / hide attributes of the content block and the corresponding copy content block are synchronized to ensure that the copy content block is not hidden; the copy content block is inserted into the insertion position in the document.

[0120] When the second change operation is an add operation, one or more copy content blocks can be inserted into the target document according to the insertion position.

[0121] In this application, the copy content block has a show / hide attribute, which can be shown or hidden in the document. Generally, when initializing the copy content block (for example, when adding a copy content block for the first time), it is necessary to ensure that the copy content block is not hidden so as to inform the user that a new content block has been added to the document.

[0122] In this application, cleaning up the address information of copied content blocks and cross-document address information is to prevent this address from being generated when referenced by subordinate content blocks or other cells, or when referenced across documents or other cells.

[0123] For example, such as Figure 3B The diagram illustrates another data processing scenario. If a content block corresponds to two copied content blocks within a document, namely copied content block A and copied content block B, then the position coordinates of each copied content block can be determined, and the copied content block can be inserted into the corresponding line block in the document.

[0124] As can be seen in this example, one or more copy content blocks can be added in the expanded reference. At this time, the document structure changes, and it is necessary to further determine the insertion position of each copy content block in order to add the copy content block.

[0125] In one possible example, the method for determining the insertion position of each copied content block in the document based on its position coordinates and the numbering control may include the following steps: determining the next content block and its corresponding numbering level based on the block marker's position coordinates; comparing the numbering level of the copied content block to be inserted with the numbering level of the next content block; if the numbering level of the next content block is less than or equal to the numbering level of the copied content block to be inserted, then the first line of the next content block is taken as the insertion position; if no insertion position is found, then starting from the position coordinates of the next content block, searching for letter cells or chapter cells; if a letter cell or chapter cell is found, then the first line of the block containing the found letter cell or chapter cell is taken as the insertion position; if no insertion position is found, then the end of the document is taken as the insertion position.

[0126] Specifically, when determining the next content block based on the content block position coordinates corresponding to the block marker of the content block, the content block can be used as an insertion block.

[0127] It should be noted that, apart from the methods mentioned above that determine the insertion position based on the number level, or based on the letter cell or chapter cell, other methods for determining the insertion position are not limited here.

[0128] For example, if multiple content blocks need to be added, the number of content blocks to be added needs to be obtained from the number control of the currently operated content block (i.e., the operation block). The operation block and the corresponding content block coordinate position are incremented by 1 until all the content blocks to be added are added to the copy content block list, and the position variable of the first copy content block to be inserted is defined as -1.

[0129] Furthermore, the list of copied content blocks is traversed, and the operation blocks in the list of copied operation blocks are the copied content blocks. The address information and cross-document address information corresponding to each copied content block are cleared. Then, based on the block marker and number control of the operation block corresponding to the copied content block, the position to be inserted into the target document for that copied content block is found (i.e., the position of the inserted block, which can be determined according to the position coordinates of the content block corresponding to the block marker). The position of the next content block to be inserted is determined, and the search for the position to be inserted for the copied content block starts from the position of the next block to be inserted.

[0130] Furthermore, starting from the position of the next block after the inserted block, the search for the insertion position of the copy content block can include the following method: if the number level of the next block is less than or equal to the number level of the copy content block to be inserted, then the first line of the next block is the insertion position; if the insertion position of the copy content block is not found, then the search continues backward from the position coordinates of the next block to see if there is a letter cell or chapter cell; if the letter cell or chapter cell is found, then the first line of the block containing the found letter cell or chapter cell is taken as the insertion position of the copy content block; if the insertion position of the copy content block is still not found, then the end of the document is taken as the insertion position.

[0131] It should be noted that during the insertion process of the copied content block, as long as the insertion position of the copied content block (the first line of the next block) is not -1, the insertion position will be used as the next value, that is, the comparison value when the insertion position of the next copied content block is determined, and used for subsequent insertion of copied content blocks.

[0132] As can be seen in this example, the electronic device can determine the insertion position of each copied content block in the document or target document based on the position coordinates of the copied content block, the corresponding number control, and the position coordinates of the content block when it is inserted as an insertion block, thereby realizing the second change operation in the target document, namely, the expanded reference of the content block in the document.

[0133] Optionally, if adding a content block, store the operation block and the content block to be copied in a block list, define the insertion position of the first content block as -1, then traverse the block list, copy the inserted block, and clean up the block address and cross-document association address. Starting from the position of the next block after the inserted block, search for the position where the content block should be inserted. If the number level of the content block is less than or equal to the number level of the position to be inserted, then the first line of the next block is the insertion position. The subsequent method is the same as the operation method when there are multiple content blocks, and will not be repeated here.

[0134] In one possible example, the above method may further include the following steps: after generating one or more copied content blocks by copying the content blocks and inserting the one or more copied content blocks into the document, traversing each copied content block, configuring the cell address and the mapping relationship between cells for each copied content block, and configuring the reference information and calculation formula corresponding to each copied content block.

[0135] The aforementioned copied content block may include multiple cells, each cell may correspond to a cell address, and each copied content block may correspond to reference information and calculation formula. The reference information and calculation formula may be determined according to the source-slave mapping relationship described in the previous embodiment.

[0136] In one possible example, if the copied content block includes multiple blocks, the method for updating the numbering order of the one or more copied content blocks affected by the click operation in the target document includes the following steps: selecting a target cell corresponding to a target copied content block from the multiple copied content blocks according to a preset rule, assigning the numbering level corresponding to the target cell to the numeric numbering control corresponding to the target copied content block, and updating the numbering order of the target copied content block; starting from the target copied content block, updating the numbering order of other copied content blocks after the insertion position of the target copied content block.

[0137] The preset rules can be user-defined or system defaults, and are not limited here. One preset rule is to select the first cell from left to right and top to bottom within the first copied content block as the target cell.

[0138] Optionally, the method for updating the numbering order of the target copy content block may include the following steps: obtaining the number identifier of the target copy content block; if the number identifier of the target copy content block indicates an extended numbering level, then extending the numbering level of the target copy content block down by one level; if the number identifier of the target copy content block does not indicate an extended numbering level, then increasing the numbering level of the target copy content block by 1.

[0139] Furthermore, the numbering order of other copied content blocks can be obtained based on the numbering level of the target copied content block. Specifically, taking the numbering level of the target copied content block as the starting numbering level, for any other copied content block, the number identifier of that copied content block can be obtained; if the number identifier indicates an extended numbering level, then it is extended one level down based on the previous numbering level; if the number identifier does not indicate an extended numbering level, that is, it is not an extended numbering level, then the numbering level is increased by 1 based on the previous numbering level to obtain the numbering level of that other copied content block, and so on, to obtain the numbering levels of all copied content blocks.

[0140] As can be seen in this example, the number level of each copyable content block that needs to be copied can be updated cyclically according to the target copyable content block, thereby gradually obtaining the number level of each copyable content block that needs to be copied, and realizing the automatic updating of the number level.

[0141] Consistent with the above embodiments, please refer to Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 4 As shown, the system includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor.

[0142] Optionally, in embodiments of this application, the above procedure includes instructions for performing the following steps: A click operation on a content block in a document is detected, and the reference information of the content block is determined; Based on the reference information, determine the source-follower mapping relationship between the subordinate content block that references the content block and the content block; Based on the click operation and the source-subordinate mapping relationship, a first change operation is performed in the target document corresponding to the content block. The first change operation includes at least one of an add operation, a delete operation, and a modify operation. The add operation is used to add specified content in the subordinate content block to the subordinate content block. The modify operation is used to synchronously modify the specified content in the subordinate content block. The delete operation is used to delete the specified content in the content block and / or the subordinate content block. The target document includes at least one of the following: the document and an external document associated with the document.

[0143] As can be seen, the electronic device described in this application embodiment detects a click operation on a content block in a document and determines the reference information of the content block; based on the reference information, it determines the source-slave mapping relationship between the subordinate content block referencing the content block and the content block; based on the click operation and the source-slave mapping relationship, it performs a first change operation in the target document corresponding to the content block. The first change operation includes at least one of an add operation, a delete operation, and a modify operation. The add operation is used to add specified content from the content block to the subordinate content block; the modify operation is used to synchronously modify specified content from the content block in the subordinate content block; and the delete operation is used to delete the content block and / or the specified content from the subordinate content block. The target document includes at least one of the following: the document itself, or an external document associated with the document. Thus, a content block-level intelligent synchronous reference mechanism is constructed, which provides users with the ability to add, delete, or modify specified content in synchronously referenced content blocks when editing documents. This ensures that referenced content within or across documents can be automatically and synchronously updated, thereby solving the problem of data inconsistency between documents and improving the efficiency of document editing.

[0144] In one possible example, the reference information includes internal reference information and external reference information.

[0145] In one possible example, when the reference information includes external reference information, the procedure for determining the reference information of the content block includes instructions for performing the following steps: Determine the parameters of the content block and the corresponding document number; Based on the parameters, generate a block tag that uses the content block as the source content block; Based on the document number, generate a document tag that uses the document corresponding to the content block as the source document; Based on the block tag and the document tag, query the external reference database of the document block to obtain the candidate list corresponding to the content block; Traverse the candidate list and store the target parameters obtained from the traversal in the newly created object corresponding to the click operation to obtain the external reference information of the content block. The target parameters include at least one of the following: the document tag of the corresponding subordinate document when the document corresponding to the content block is used as the source document, and the tag of the subordinate content block.

[0146] In one possible example, the source-from mapping relationship includes at least one of the following: The mapping between referenced cells and cell addresses when the document corresponding to the content block is used as the source document; the mapping relationship between the cell address corresponding to the content block and the cell address corresponding to the subordinate content block; the mapping relationship between the content block and each subordinate content block; the mapping relationship between the coordinates of the referenced cell in the subordinate document and the cell address referenced in the subordinate content block; and the subordinate content block marker in the subordinate document.

[0147] In one possible example, after performing the first change operation in the target document corresponding to the content block, the above procedure includes instructions for performing the following steps: Determine the mapping of calculation formulas corresponding to the internal reference information and / or external reference information in the reference information corresponding to the content block; Based on the calculation formula mapping corresponding to the internal reference information and / or the external reference information respectively, update the calculation formula corresponding to the internal reference information and / or the external reference information respectively.

[0148] In one possible example, the above program also includes instructions for performing the following steps: Obtain the set of cell address coordinates corresponding to the content block; Based on the source-origin mapping relationship, the source cell address coordinates and the referenced cell address coordinates are obtained by filtering from the set of cell address coordinates. Parse the document to obtain the calculation formulas corresponding to the internal reference information; In the document, regular expression matching is used to obtain the cell address coordinates containing the calculation formula, and a mapping relationship between the calculation formula and the cell address coordinates is established; Based on the source cell address coordinates and reference cell address coordinates, as well as the mapping relationship between the calculation formula and cell address coordinates, target source cell addresses containing calculation formulas and target reference cell addresses containing calculation formulas are filtered out to obtain the calculation formula mapping. The calculation formula mapping is used to express the mapping relationship between the target source cell address and the target reference cell address, and their respective corresponding calculation formulas.

[0149] In one possible example, the above program also includes instructions for performing the following steps: Obtain the set of cell address coordinates corresponding to the content block; Based on the document identifier of the document and the set of cell address coordinates, query the external reference database of the document block to obtain the external reference data; Obtain the source address corresponding to the content block; If the external reference data is traversed according to the source address, and if no preset mapping relationship associated with the source address is found, the calculation formula corresponding to the external reference information is not updated, and / or the external reference source address of the subordinate content block is not updated. If a preset mapping relationship associated with the source address is obtained through traversal, the calculation formula corresponding to the external reference information is updated, and / or the external reference source address corresponding to the subordinate content block is updated to the subordinate address of the content block within the source document.

[0150] In one possible example, the content block is a preset range of content in the document divided by number, including at least one of text, images, calculation formulas, titles, table rows, and controls.

[0151] Optionally, in embodiments of this application, the above procedure includes instructions for performing the following steps: A click operation on a content block in a document is detected. The block information and cell information of the content block are traversed to obtain target information. The target information includes at least: the block tag corresponding to the content block, the position index of the content block in the document, and the number control of the content block. The number control is used to determine the number of content blocks that need to be added and the corresponding number level of the content block. Based on the target information, an operation block list corresponding to the content block is established, and the operation block list includes the content block that needs to be copied; Based on the target information and the list of operation blocks, a second change operation is performed in the target document, wherein the second change operation includes an add operation, a modify operation, and a delete operation; wherein the add operation is used to copy the content block to generate one or more copy content blocks, insert the one or more copy content blocks into the document, and add reference information and calculation formulas corresponding to the one or more copy content blocks; the modify operation is used to modify the reference information and calculation formulas of the one or more copy content blocks; the delete operation is used to delete the content block and / or one or more associated copy content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copy content blocks. Update the numbering order of the one or more copied content blocks in the target document that are affected by the click operation.

[0152] As can be seen, the electronic device described in this application embodiment detects a click operation on a content block in a document, traverses the block information and cell information of the content block to obtain target information. The target information includes at least: the block marker corresponding to the content block, the position index of the content block in the document, and a number control for the content block. The number control is used to determine the number of content blocks to be added and the corresponding number level of the content block. Based on the target information, an operation block list corresponding to the content block is established. The operation block list includes the content blocks to be copied. Based on the target information and the operation block list, a second change operation is performed in the target document. The second change operation includes an add operation, a modify operation, and a delete operation. The add operation is used to copy the content block to generate one or more copy content blocks, insert one or more copy content blocks into the document, and add reference information and calculation formulas corresponding to one or more copy content blocks. The modify operation is used to modify the reference information and calculation formulas of one or more copy content blocks. The delete operation is used to delete the content block and / or one or more associated copy content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copy content blocks. The numbering order of one or more copy content blocks affected by the click operation in the target document is updated. In this way, an intelligent expansion and citation mechanism at the content block level is constructed, which can provide users with the function of adding, deleting or modifying specified content in the expanded and citation content block when editing documents. This ensures that the referenced content within the document or across documents can be automatically synchronized and updated, thereby solving the problem of data inconsistency between documents and improving the efficiency of document editing.

[0153] In one possible example, when the second change operation is an add operation, the procedure for performing the second change operation in the target document based on the target information, the operation block list, and the copy content block list includes instructions for performing the following steps: If the number control indicates that the number of content blocks to be added is multiple, then multiple copy content blocks are generated according to the multiple content blocks to be copied included in the operation block list; Based on the content block position coordinates corresponding to the block marker of the content block, determine the copy content block position coordinates of each of the plurality of copy content blocks; Clean up the address information and cross-document address information corresponding to each of the copied content blocks; The insertion position of each copy content block in the document is determined based on the copy content block position coordinates and the numbering control. A unique block marker is generated for each of the copied content blocks, and the display / hide attributes of the content block and the corresponding copied content block are synchronized to ensure that the copied content block is not hidden; Insert the copied content block into the document at the insertion position.

[0154] In one possible example, in determining the insertion position of each copy content block in the document based on the copy content block position coordinates and the numbering control, the above procedure includes instructions for performing the following steps: Based on the block marker of the content block and the corresponding content block position coordinates, determine the next content block and the number level of the number control corresponding to the next content block; Compare the number level of the number control corresponding to the copy content block to be inserted with the number level of the number control corresponding to the next content block; If the number level of the number control corresponding to the next content block is less than or equal to the number level of the number control corresponding to the copy content block to be inserted, then the first row of the next content block is taken as the insertion position of the copy content block. If the insertion position of the copied content block is not found, the position coordinates of the next content block are used as the starting point to search for letter cells or chapter cells. If the letter cell or chapter cell is found, the first line of the block containing the found letter cell or chapter cell is used as the insertion position of the copied content block. If the insertion position of the copied content block is still not found, the end of the document will be used as the insertion position.

[0155] In one possible example, the above program also includes instructions for performing the following steps: After generating one or more copy content blocks by copying the content block and inserting the one or more copy content blocks into the document, each copy content block is traversed, and the cell address and mapping relationship between cells of each copy content block are configured, as well as the reference information and calculation formula corresponding to each copy content block are configured.

[0156] In one possible example, if the copied content block comprises multiple blocks, the procedure includes instructions for performing the following steps regarding updating the numbering order of the one or more copied content blocks affected by the click operation in the target document: According to preset rules, select a target cell corresponding to a target copy content block from the plurality of copy content blocks, assign the number level corresponding to the target cell to the number control corresponding to the target copy content block, and update the number order of the target copy content blocks; Starting with the target copied content block, update the numbering order of other copied content blocks after the insertion position of the target copied content block.

[0157] In one possible example, regarding updating the numbering order of the target copy content blocks, the above procedure includes instructions for performing the following steps: Obtain the identifier number of the target copied content block; If the numbering identifier of the target copied content block indicates an extended numbering level, then the numbering level of the target copied content block is extended down one level; If the numbering identifier of the target copy content block does not indicate an extended numbering level, then the numbering level of the target copy content block is increased by 1.

[0158] The above mainly describes the solutions of the embodiments of this application from the perspective of the method execution process. It is understood that, in order to achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments provided herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware 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 implementation should not be considered beyond the scope of this application.

[0159] This application embodiment can divide functional units according to the above method example. For example, each function can be divided into separate functional units, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0160] Figure 5 This is a functional unit block diagram of a data processing device 500 involved in the embodiments of this application. The device 500 is applied to an electronic device and includes: a first detection unit 501, a determination unit 502, and a first modification unit 503. The first detection unit 501 is used to detect click operations on content blocks in a document and determine the reference information of the content blocks; The determining unit 502 is configured to determine, based on the reference information, the source-follower mapping relationship between the subordinate content block that references the content block and the content block; The first modification unit 503 is configured to perform a first modification operation in the target document corresponding to the content block according to the click operation and the source-subordinate mapping relationship. The first modification operation includes at least one of an add operation, a delete operation, and a modify operation. The add operation is used to add specified content in the content block to the subordinate content block. The modify operation is used to synchronously modify the specified content in the content block in the subordinate content block. The delete operation is used to delete the specified content in the content block and / or the subordinate content block. The target document includes at least one of the following: the document and an external document associated with the document.

[0161] As can be seen, the data processing device described in this application embodiment detects a click operation on a content block in a document and determines the reference information of the content block; based on the reference information, it determines the source-slave mapping relationship between the subordinate content block referencing the content block and the content block; based on the click operation and the source-slave mapping relationship, it performs a first change operation in the target document corresponding to the content block. The first change operation includes at least one of an add operation, a delete operation, and a modify operation, wherein the add operation is used to add specified content in the subordinate content block to the subordinate content block, the modify operation is used to synchronously modify the specified content in the subordinate content block, and the delete operation is used to delete the specified content in the content block and / or the subordinate content block. The target document includes at least one of the following: the document itself, and an external document associated with the document. Thus, a content block-level intelligent synchronous reference mechanism is constructed, which can provide users with the function of adding, deleting, or modifying specified content in synchronously referenced content blocks when editing documents, ensuring that referenced content within or across documents can be automatically and synchronously updated, thereby solving the problem of data inconsistency between documents and improving the efficiency of document editing.

[0162] It should be noted that, Figure 5 The specific implementation details of each operation in the implementation method can be found in the above-described examples. Figure 2A The descriptions of the methods and implementations shown are not repeated here.

[0163] Figure 6 This is a functional unit block diagram of another data processing device 600 involved in the embodiments of this application. The device 600 is applied to an electronic device and includes: a second detection unit 601, a creation unit 602, a second modification unit 603, and an update unit 604. The second detection unit 601 is used to detect click operations on content blocks in the document, traverse the block information and cell information of the content blocks to obtain target information, the target information including at least: the block mark corresponding to the content block, the position index of the content block in the document, and the number control of the content block, the number control being used to determine the number of content blocks to be added and the corresponding number level of the content blocks; Establishment unit 602 is used to establish an operation block list corresponding to the content block according to the target information, wherein the operation block list includes the content block that needs to be copied; The second modification unit 603 is configured to perform a second modification operation in the target document based on the target information and the operation block list. The second modification operation includes an add operation, a modify operation, and a delete operation. Specifically, the add operation is used to copy the content block to generate one or more copied content blocks, insert the one or more copied content blocks into the document, and add reference information and calculation formulas corresponding to the one or more copied content blocks. The modify operation is used to modify the reference information and calculation formulas of the one or more copied content blocks. The delete operation is used to delete the content block and / or one or more associated copied content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copied content blocks. The update unit 604 is used to update the numbering order of the one or more copied content blocks in the target document that are affected by the click operation.

[0164] As can be seen, the data processing device described in this application embodiment detects a click operation on a content block in a document, traverses the block information and cell information of the content block to obtain target information. The target information includes at least: the block marker corresponding to the content block, the position index of the content block in the document, and a number control for the content block. The number control is used to determine the number of content blocks to be added and the corresponding number level of the content block. Based on the target information, an operation block list corresponding to the content block is established. The operation block list includes the content blocks to be copied. Based on the target information and the operation block list, a second change operation is performed in the target document. The second change operation includes an add operation, a modify operation, and a delete operation. The add operation is used to copy the content block to generate one or more copy content blocks, insert one or more copy content blocks into the document, and add reference information and calculation formulas corresponding to one or more copy content blocks. The modify operation is used to modify the reference information and calculation formulas of one or more copy content blocks. The delete operation is used to delete the content block and / or one or more associated copy content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copy content blocks. The numbering order of one or more copy content blocks affected by the click operation in the target document is updated. In this way, an intelligent expansion and citation mechanism at the content block level is constructed, which can provide users with the function of adding, deleting or modifying specified content in the expanded and citation content block when editing documents. This ensures that the referenced content within the document or across documents can be automatically synchronized and updated, thereby solving the problem of data inconsistency between documents and improving the efficiency of document editing.

[0165] It should be noted that, Figure 6 The specific implementation details of each operation in the implementation method can be found in the above-described examples. Figure 3A The descriptions of the methods and implementations shown are not repeated here.

[0166] This application also provides a computer storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments, wherein the computer includes a data processing system.

[0167] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may include a data processing system.

[0168] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

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

[0170] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0171] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0172] 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. The integrated unit can be implemented in hardware or as a software functional unit.

[0173] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage device (CMD). 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 memory and includes several instructions to cause a computer device (which may be a personal computer, electronic device, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0174] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage device, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0175] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A data processing method, characterized in that, include: A click operation on a content block in a document is detected, and the reference information of the content block is determined; Based on the reference information, determine the source-follower mapping relationship between the subordinate content block that references the content block and the content block; Based on the click operation and the source-subordinate mapping relationship, a first change operation is performed in the target document corresponding to the content block. The first change operation includes at least one of an add operation, a delete operation, and a modify operation. The add operation is used to add specified content in the subordinate content block to the subordinate content block. The modify operation is used to synchronously modify the specified content in the subordinate content block. The delete operation is used to delete the specified content in the content block and / or the subordinate content block. The target document includes at least one of the following: the document and an external document associated with the document.

2. The method according to claim 1, characterized in that, The reference information includes internal reference information and external reference information.

3. The method according to claim 1 or 2, characterized in that, When the reference information includes external reference information, determining the reference information of the content block includes: Determine the parameters of the content block and the corresponding document number; Based on the parameters, generate a block tag that uses the content block as the source content block; Based on the document number, generate a document tag that uses the document corresponding to the content block as the source document; Based on the block tag and the document tag, query the external reference database of the document block to obtain the candidate list corresponding to the content block; Traverse the candidate list and store the target parameters obtained from the traversal in the newly created object corresponding to the click operation to obtain the external reference information of the content block. The target parameters include at least one of the following: the document tag of the corresponding subordinate document when the document corresponding to the content block is used as the source document, and the tag of the subordinate content block.

4. The method according to claim 1 or 3, characterized in that, The source-slave mapping relationship includes at least one of the following: The mapping between referenced cells and cell addresses when the document corresponding to the content block is used as the source document; the mapping relationship between the cell address corresponding to the content block and the cell address corresponding to the subordinate content block; the mapping relationship between the content block and each subordinate content block; the mapping relationship between the coordinates of the referenced cell in the subordinate document and the cell address referenced in the subordinate content block; and the subordinate content block marker in the subordinate document.

5. The method according to claim 1 or 2, characterized in that, After performing the first change operation in the target document corresponding to the content block, the method further includes: Determine the mapping of calculation formulas corresponding to the internal reference information and / or external reference information in the reference information corresponding to the content block; Based on the calculation formula mapping corresponding to the internal reference information and / or the external reference information respectively, update the calculation formula corresponding to the internal reference information and / or the external reference information respectively.

6. The method according to claim 5, characterized in that, The method further includes: Obtain the set of cell address coordinates corresponding to the content block; Based on the source-origin mapping relationship, the source cell address coordinates and the referenced cell address coordinates are obtained by filtering from the set of cell address coordinates. Parse the document to obtain the calculation formulas corresponding to the internal reference information; In the document, regular expression matching is used to obtain the cell address coordinates containing the calculation formula, and a mapping relationship between the calculation formula and the cell address coordinates is established; Based on the source cell address coordinates and reference cell address coordinates, as well as the mapping relationship between the calculation formula and cell address coordinates, target source cell addresses containing calculation formulas and target reference cell addresses containing calculation formulas are filtered out to obtain the calculation formula mapping. The calculation formula mapping is used to express the mapping relationship between the target source cell address and the target reference cell address, and their respective corresponding calculation formulas.

7. The method according to claim 1 or 5, characterized in that, The method further includes: Obtain the set of cell address coordinates corresponding to the content block; Based on the document identifier of the document and the set of cell address coordinates, query the external reference database of the document block to obtain the external reference data; Obtain the source address corresponding to the content block; If the external reference data is traversed according to the source address, and if no preset mapping relationship associated with the source address is found, the calculation formula corresponding to the external reference information is not updated, and / or the external reference source address of the subordinate content block is not updated. If a preset mapping relationship associated with the source address is obtained through traversal, the calculation formula corresponding to the external reference information is updated, and / or the external reference source address corresponding to the subordinate content block is updated to the subordinate address of the content block within the source document.

8. The method according to any one of claims 1-7, characterized in that, The content block refers to the content within a preset range of the document divided by number, including at least one of text, images, calculation formulas, titles, table rows, and controls.

9. A data processing method, characterized in that, include: A click operation on a content block in a document is detected. The block information and cell information of the content block are traversed to obtain target information. The target information includes at least: the block tag corresponding to the content block, the position index of the content block in the document, and the number control of the content block. The number control is used to determine the number of content blocks that need to be added and the corresponding number level of the content block. Based on the target information, an operation block list corresponding to the content block is established, and the operation block list includes the content block that needs to be copied; Based on the target information and the list of operation blocks, a second change operation is performed in the target document, wherein the second change operation includes an add operation, a modify operation, and a delete operation; wherein the add operation is used to copy the content block to generate one or more copy content blocks, insert the one or more copy content blocks into the document, and add reference information and calculation formulas corresponding to the one or more copy content blocks; the modify operation is used to modify the reference information and calculation formulas of the one or more copy content blocks; the delete operation is used to delete the content block and / or one or more associated copy content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copy content blocks. Update the numbering order of the one or more copied content blocks in the target document that are affected by the click operation.

10. The method according to claim 9, characterized in that, When the second change operation is an add operation, the step of performing the second change operation in the target document according to the target information, the operation block list, and the copy content block list includes: If the number control indicates that the number of content blocks to be added is multiple, then multiple copy content blocks are generated according to the multiple content blocks to be copied included in the operation block list; Based on the content block position coordinates corresponding to the block marker of the content block, determine the copy content block position coordinates of each of the plurality of copy content blocks; Clean up the address information and cross-document address information corresponding to each of the copied content blocks; The insertion position of each copy content block in the document is determined based on the copy content block position coordinates and the numbering control. A unique block marker is generated for each of the copied content blocks, and the display / hide attributes of the content block and the corresponding copied content block are synchronized to ensure that the copied content block is not hidden; Insert the copied content block into the document at the insertion position.

11. The method according to claim 9 or 10, characterized in that, The step of determining the insertion position of each copied content block in the document based on the copy content block position coordinates and the numbering control includes: Based on the block marker of the content block and the corresponding content block position coordinates, determine the next content block and the number level of the number control corresponding to the next content block; Compare the number level of the number control corresponding to the copy content block to be inserted with the number level of the number control corresponding to the next content block; If the number level of the number control corresponding to the next content block is less than or equal to the number level of the number control corresponding to the copy content block to be inserted, then the first row of the next content block is taken as the insertion position of the copy content block. If the insertion position of the copied content block is not found, the position coordinates of the next content block are used as the starting point to search for letter cells or chapter cells. If the letter cell or chapter cell is found, the first line of the block containing the found letter cell or chapter cell is used as the insertion position of the copied content block. If the insertion position of the copied content block is still not found, the end of the document will be used as the insertion position.

12. The method according to any one of claims 9-11, characterized in that, The method further includes: After generating one or more copy content blocks by copying the content block and inserting the one or more copy content blocks into the document, each copy content block is traversed, and the cell address and mapping relationship between cells of each copy content block are configured, as well as the reference information and calculation formula corresponding to each copy content block are configured.

13. The method according to any one of claims 9-11, characterized in that, If the copied content block includes multiple blocks, updating the numbering order of the one or more copied content blocks in the target document affected by the click operation includes: According to preset rules, select a target cell corresponding to a target copy content block from the plurality of copy content blocks, assign the number level corresponding to the target cell to the number control corresponding to the target copy content block, and update the number order of the target copy content blocks; Starting with the target copied content block, update the numbering order of other copied content blocks after the insertion position of the target copied content block.

14. The method according to claim 13, characterized in that, Updating the numbering order of the target copied content blocks includes: Obtain the identifier number of the target copied content block; If the numbering identifier of the target copied content block indicates an extended numbering level, then the numbering level of the target copied content block is extended down one level; If the numbering identifier of the target copy content block does not indicate an extended numbering level, then the numbering level of the target copy content block is increased by 1.

15. A data processing system, characterized in that, include: The content block management module is used to divide the content in a document into multiple content blocks with unique block identifiers according to the numbering, and to establish a document tag between each content block and the associated document; The access control module is used to verify the editing permissions of click operations on the content block; The reference relationship management module is used to manage the synchronous references and / or expanded references of content blocks in the document after the editing permission verification is passed; The synchronized reference is used to determine the reference information of the content block; based on the reference information, a source-dependent mapping relationship is determined between the subordinate content block referencing the content block and the content block; based on the click operation and the source-dependent mapping relationship, a first change operation is performed in the target document corresponding to the content block, the first change operation including at least one of an add operation, a delete operation, and a modify operation, wherein the add operation is used to add specified content in the content block to the subordinate content block, the modify operation is used to synchronously modify the specified content in the content block in the subordinate content block, and the delete operation is used to delete the content block and / or the specified content in the subordinate content block; The expanded reference is used to traverse the block information and cell information of the content block to obtain target information. The target information includes at least: the block tag corresponding to the content block, the position index of the content block in the document, and the number control of the content block. The number control is used to determine the number of content blocks to be added and the corresponding number level of the content block. Based on the target information, an operation block list corresponding to the content block is established. The operation block list includes the content blocks to be copied. Based on the target information and the operation block list, a second change operation is performed in the target document, and the numbering order of all content blocks affected by the click operation in the target document is updated. The second change operation includes an add operation, a modify operation, and a delete operation. The add operation is used to copy the content block to generate one or more copy content blocks, insert the one or more copy content blocks into the document, and add reference information and calculation formulas corresponding to the one or more copy content blocks. The modify operation is used to modify the reference information and calculation formulas of the one or more copy content blocks. The delete operation is used to delete the content block and / or one or more associated copy content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copy content blocks. The data update module is used to update the numbering order of all content blocks in the target document affected by the click operation, wherein all content blocks affected by the click operation include one or more copied content blocks.

16. The system according to claim 15, characterized in that, The content block management module is also used for: Upon detecting a click operation on a content block in the document, the properties of the control corresponding to the content block are displayed. The properties include color, shape, and size. The properties are used to instruct the user to perform an add, delete, or modify operation on the content block in the corresponding target document. The reference relationship management module is also used to perform the first change operation or the second change operation in the target document corresponding to the content block in response to the attribute selected by the user.

17. The system according to claim 16, characterized in that, The data update module is also used for: After performing the first change operation or the second change operation in the target document corresponding to the content block, if the content block, the subordinate content block, or the copied content block contains a drop-down control, the data source of the drop-down control is updated synchronously.

18. The system according to claim 17, characterized in that, The data update module is also used for: When the target document contains statistical items related to acceptance or inspection, the pass rate or acceptance statistics are automatically calculated and updated in response to the selection operation of the drop-down control.

19. A data processing apparatus, characterized in that, The device includes: The first detection unit is used to detect click operations on content blocks in the document and determine the reference information of the content blocks; The determining unit is configured to determine, based on the reference information, the source-dependent mapping relationship between the dependent content block referencing the content block and the content block; The first modification unit is configured to perform a first modification operation in the target document corresponding to the content block according to the click operation and the source-subordinate mapping relationship. The first modification operation includes at least one of an add operation, a delete operation, and a modify operation. The add operation is used to add specified content in the content block to the subordinate content block. The modify operation is used to synchronously modify the specified content in the content block in the subordinate content block. The delete operation is used to delete the specified content in the content block and / or the subordinate content block. The target document includes at least one of the following: the document and an external document associated with the document.

20. A data processing apparatus, characterized in that, The device includes: The second detection unit is used to detect click operations on content blocks in the document, traverse the block information and cell information of the content blocks to obtain target information. The target information includes at least: the block marker corresponding to the content block, the position index of the content block in the document, and the number control of the content block. The number control is used to determine the number of content blocks that need to be added and the corresponding number level of the content blocks. The establishment unit is used to establish an operation block list corresponding to the content block based on the target information, wherein the operation block list includes the content block that needs to be copied; The second modification unit is configured to perform a second modification operation in the target document based on the target information and the operation block list. The second modification operation includes an add operation, a modify operation, and a delete operation. Specifically, the add operation is used to copy the content block to generate one or more copied content blocks, insert the one or more copied content blocks into the document, and add reference information and calculation formulas corresponding to the one or more copied content blocks. The modify operation is used to modify the reference information and calculation formulas of the one or more copied content blocks. The delete operation is used to delete the content block and / or one or more associated copied content blocks, and delete the reference information and calculation formulas corresponding to the content block and / or one or more associated copied content blocks. An update unit is used to update the numbering order of the one or more copied content blocks in the target document that are affected by the click operation.

21. An electronic device, characterized in that, The method includes a processor, a memory, a communication interface, and one or more programs, said one or more programs being stored in the memory and configured to be executed by the processor, said programs including instructions for performing the steps of the method as described in any one of claims 1-14.

22. A computer-readable storage medium, characterized in that, A computer program for storing electronic data interchange is provided, wherein the computer program causes a computer to perform the method as described in any one of claims 1-14.