CN117952070A - Document processing method and related device - Google Patents

Document processing method and related device Download PDF

Info

Publication number
CN117952070A
CN117952070A CN202311300359.6A CN202311300359A CN117952070A CN 117952070 A CN117952070 A CN 117952070A CN 202311300359 A CN202311300359 A CN 202311300359A CN 117952070 A CN117952070 A CN 117952070A
Authority
CN
China
Prior art keywords
document
editing
sub
user
record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311300359.6A
Other languages
Chinese (zh)
Inventor
叶启松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mashang Xiaofei Finance Co Ltd
Original Assignee
Mashang Xiaofei Finance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mashang Xiaofei Finance Co Ltd filed Critical Mashang Xiaofei Finance Co Ltd
Priority to CN202311300359.6A priority Critical patent/CN117952070A/en
Publication of CN117952070A publication Critical patent/CN117952070A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the specification provides a document processing method and a related device, wherein the document processing method comprises the following steps: inquiring a document editing record of the target editing identity; acquiring a block-level element corresponding to the target editing identity; querying an element edit record of the block-level element, the element edit record including an edit record of the block-level element with the plurality of edit identities of the document; and creating the document content of the target sub-document corresponding to the target editing identity based on the block-level element and the element editing record.

Description

Document processing method and related device
Technical Field
The application relates to the technical field of artificial intelligence, in particular to a document processing method and a related device.
Background
Along with the creation and development of various mechanisms, common perception and common processing of information in the mechanisms become focus of a mechanism manager, document collaboration is a common sharing mode, real-time online collaboration of multiple people can be realized, consistency of contents of all clients is ensured through an algorithm, and documents needing common editing are repeatedly transferred and updated among collaborative users; the document collaboration can check the editing change record of the document according to the history record, and can check the contents of different versions through multiple document versions, so that the efficiency of sharing, editing and managing the document is improved, but how to completely and quickly obtain the incremental contents of a certain part of users to the document in a certain time period is an important point of increasing attention of document developers and institutions or users based on the service of the document.
Disclosure of Invention
In a first aspect, an embodiment of the present application provides a document processing method, including:
inquiring a document editing record of the target editing identity;
Acquiring a block-level element corresponding to the target editing identity;
Querying an element edit record of the block-level element, the element edit record including an edit record of the block-level element with the plurality of edit identities of the document;
And creating the document content of the target sub-document corresponding to the target editing identity based on the block-level element and the element editing record.
It can be seen that, in the embodiment of the present application, in the process of performing document processing, a document editing record of a target editing identity is first queried, a block level element corresponding to the target editing identity is obtained, then, an editing record of a block level element corresponding to the target editing identity is queried for a plurality of editing identities of a document, thus, the block level elements edited with the target editing identity are summarized, after the block level element edited with the target editing identity is summarized, an element editing record of a block level element corresponding to the target editing identity is queried for a plurality of editing identities of the document, and by reading all element editing records of the block level element corresponding to the target editing identity, a complete editing record of the block level element is obtained, after the block level element is edited by the target editing identity, editing contents of the block level element by other editing identities are complemented, further, based on the block level element and the element editing record, document contents of a target sub-document corresponding to the target editing identity are created, the created document contents not only include incremental contents edited with the target editing identity, but also possess information corresponding to the block level element, and the integrity of the created document contents is improved.
In a second aspect, an embodiment of the present application provides a document processing apparatus, including:
the first query module is used for querying the document editing record of the target editing identity;
the acquisition module is used for acquiring the block-level element corresponding to the target editing identity;
A second query module for querying element edit records of the block-level element, the element edit records including edit records of the block-level element with the plurality of edit identities of the document;
And the creating module is used for creating the document content of the target sub-document corresponding to the target editing identity based on the block-level element and the element editing record.
In a third aspect, an embodiment of the present application provides a computer apparatus, including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to perform the document processing method of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing computer executable instructions which, when executed by a processor, implement the document processing method of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are only some embodiments described in the present specification, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art;
FIG. 1 is a schematic diagram of an implementation environment of a document processing method according to an embodiment of the present application;
FIG. 2 is a process flow chart of a document processing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a document creation process according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a document access process according to an embodiment of the present application;
FIG. 5 is a schematic view of a document editing page according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a sub-document list display page according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a document display page according to an embodiment of the present application;
fig. 8 is a schematic diagram of a modification detail list display page according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a revised content presentation page according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a document processing method applied to a document content creation scenario according to an embodiment of the present application;
FIG. 11 is a schematic diagram of a document processing apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the embodiments of the present application, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
The document processing method provided by one or more embodiments of the present disclosure may be applicable to an implementation environment of content creation of a target sub-document, where the implementation environment includes at least a server 101 as illustrated in fig. 1; the server 101 may be one or more servers, a server cluster formed by a plurality of servers, or a cloud server of a cloud computing platform, which is used for creating a document, creating an editing identity of the document, and creating document contents of sub-documents corresponding to the editing identity;
In addition, the implementation environment may further include a client 102, where the client 102 may be a smart phone, a tablet computer, an electronic book reader, a wearable device, an AR (Augmented Reality )/VR (Virtual Reality) based device for information interaction, and may further be installed with an application program or a browser, through which the client interacts with a user; in addition, the client 102 may interact with the server 101 to interact with various instructions and to conduct presentation of document content for documents and sub-documents.
In this implementation environment, the server 101 queries a document editing record of a target editing identity, acquires a block-level element corresponding to the target editing identity, queries an element editing record of the block-level element for a plurality of editing identities of the document, and then creates document contents of a target sub-document corresponding to the target editing identity based on the block-level element and the element editing record.
The document processing method provided by the specification comprises the following steps:
in the document processing method provided by the embodiment, in the process of creating document contents of a target sub-document corresponding to a target editing identity of a document, according to element editing records of block-level elements edited by the target editing identity and document contents of the target sub-document created by the block-level elements in the document, specifically, firstly, inquiring the document editing records of the target editing identity, acquiring the block-level elements edited by the target editing identity based on the document editing records, then inquiring all the element editing records of the block-level elements by a plurality of editing identities, and finally, creating the document contents of the target sub-document based on the element editing records and the block-level elements;
In this way, in the process of creating the document content of the target sub-document corresponding to the target editing identity of the document, the document content of the target sub-document is created based on the element editing records of the block-level elements edited by the target editing identity based on the plurality of editing identities of the document, the incremental content of the document editing by the target editing identity is obtained, and the document content is created by combining the block-level elements and the element editing records, so that the complete and effective document content of the target sub-document is obtained.
Referring to fig. 2, the document processing method provided in the present embodiment specifically includes steps S202 to S208.
Step S202, inquiring the document editing record of the target editing identity.
The document processing method in the embodiment can be used for creating document contents of target sub-documents of the document; optionally, the document includes a plurality of editing identities, where the plurality of editing identities includes a target editing identity, and in this embodiment, a creation process of a document content of a target sub-document corresponding to the target editing identity is taken as an example, and a creation process of the sub-document of the document is specifically described. It should be noted that, in the document content creation process of the sub-document corresponding to the editing identity other than the target editing identity of the document, similar to the document content creation process of the target sub-document corresponding to the target editing identity in the present embodiment, the creation of the document content of the corresponding sub-document is performed by using any editing identity as the target editing identity, which is not described in the present embodiment.
In this embodiment, the documents include documents that support simultaneous editing and collaboration by multiple persons, such as online collaboration documents; the user can perform common editing, viewing and other operations through the online collaboration document.
In this embodiment, a user edits a document by using different edit identities in the process of editing the document, so as to distinguish different edit contents, each edit identity corresponds to one sub-document, and under the condition that the document editing with the edit identity is finished, the document contents of the sub-document corresponding to the edit identity are used to characterize the editing process and the editing result of the document with the edit identity. The document editing is carried out by utilizing different editing identities, so that the specific editing identity can be clearly and completely represented to edit a part of content; for example, a document of an organization needs to be edited by three teams under the organization, wherein team 1 edits part a, team 2 edits part B, team 3 edits part C, and team 4 needs to perform subsequent processing based on team 1 edited part a, but because team 1, team 2 and team 3 edit the document, team 4 cannot accurately know which contents are specifically edited by members in team 1, therefore, by creating different editing identities for different teams, each team performs document editing based on respective editing identities, and downstream team can clearly and completely see which team edits which contents specifically.
It can be seen that the sub-document in this embodiment is related to a document, and the document content of the sub-document is determined by a document editing record generated by editing the document based on the editing identity corresponding to the sub-document and the content related to the sub-document in the document; the sub-document is used for recording an editing process and an editing result of document editing according to the editing identity between the creation of the editing identity corresponding to the sub-document and the final archiving of the sub-document. The target editing identity refers to any editing identity in a plurality of editing identities of a document; the target sub-document refers to a sub-document corresponding to a target editing identity of the document.
In this embodiment, the editing of the document is the editing of the document itself with the editing identity corresponding to the sub-document. The document editing record comprises records which are generated in the process of editing the document by the target editing identity and comprise editing user identification, editing time and editing content. Optionally, editing the document is implemented based on the document, and in the process of editing the document by any user, editing the document according to the editing identity of the document.
In particular, in order to ensure the security of the document, the document management user of the document is associated, wherein the document management user comprises a document creation user and/or a management user determined by the document creation user, and in addition, the document creation user can set other users under processing authority for the document, for example, a user with reading authority for the document, a user with collaborative editing authority for the document and a user with sub-document creation authority for the document. The document creation user and the user with sub-document creation authority can perform sub-document creation on the document; after the creation of the sub-document, the sub-document management user can also set a user with the sub-document editing authority and a user with the sub-document management authority;
in other words, the users to which the document is associated include a document creation user, a reading user, a document management user, a collaborative editing user, and a sub-document creation user; the respective numbers of the document management user, the collaborative editing user, and the sub-document creation user may be one or more; the users associated with each sub-document comprise a sub-document creation user, a sub-document management user and a sub-document editing user of the sub-document; the number of each of the sub-document management user and the sub-document editing user may be one or more;
The sub-document creation user associated with the document refers to a user with sub-document creation authority for the document; the creation user of the sub-document refers to the user who creates the sub-document; the document management user may include a document creation user; the sub-document management user of the sub-document may include a sub-document creation user of the sub-document; the document management user can manage the collaborative editing user and the sub-document creation user; the sub-document management user may also manage sub-document editing users. The reading user may read the document and sub-documents of the document. Alternatively, all users who have rights to the document, regardless of the rights, can read the document and the sub-documents.
Based on this, in an alternative document creation embodiment provided in the present embodiment, the following operations are performed:
creating the document according to a document creation instruction of a creation user, and sending a document identification of the document to the creation user;
Acquiring a document management user, a collaborative editing user and/or a sub-document creation user configured by the creation user aiming at the document;
The document management user, the collaborative editing user, and/or the sub-document creation user are associated to the document.
For the document creation process, the document creation process can also be implemented interactively by the client and the server, as shown in the schematic diagram of the document creation process in fig. 3, specifically, the document creation is performed by the following manner:
step S302, after detecting a document creation instruction of a creation user, a client sends a document creation request carrying a creation user identifier of the creation user to a server;
step S304, the server receives a document creation request sent by the client;
step S306, the server creates the document based on the document creation request;
Step S308, the server sends a document identification of the document and a user configuration reminder to the client;
step S310, the client receives the document identification and the user configuration prompt;
step S312, the client displays a configuration reminding page based on the document identification and the user configuration reminding;
Step S314, if the client detects that the creating user performs the user configuration of the document based on the configuration reminding page and submits a confirmation instruction, a configuration request carrying a document management user, a collaboration editing user and/or a sub-document creating user obtained by the user configuration is sent to the server;
Step S316, the server receives a configuration request sent by the client;
step S318 associates the document management user, the collaborative editing user, and/or the sub-document creation user to the document based on the configuration request.
For example, a user u1 submits a document creation instruction through a client, after detecting the document creation instruction of the user u1, the client sends a document creation request carrying a user identifier of the user u1 to a server, after receiving the document creation request, the server creates a document d based on the document creation request, associates the user identifier of the user u1 with the identity of the user creating the document d to the document d, sends the document identifier of the document d and a user configuration reminder to the client, the client displays a document page of the document d, displays a user configuration reminder above the document page, the user u1 inputs a user u2 as a management user of the document d based on the user configuration reminder, the user u3 and the user u4 as collaborative editing users of the document d, the user u5 creates users for sub-documents of the document d, and if detecting a confirmation instruction of the user u1 after inputting, sends a configuration request including information to the server, the server receives the configuration request, associates the user u1 and the user u2 as the document management user of the document d to the document d, associates the user u3 and the user u4 as the user of the document d as a collaborative user of the document d, and associates the user u4 as a sub-document d of the user of the document d to be created by the user of the user d. In addition, users having only reading rights to the document may be set, for example, user u6 and user u7 may be set as reading users of the document.
In addition, the client can also carry out the creation of the document, specifically, after the client detects the document creation instruction of the creation user, the document is created, the configuration request of the creation user identification, the document identification and the document management user identification, the collaborative editing user identification and/or the sub-document creation user identification is sent to the server based on the document identification of the document and the pre-stored user configuration reminding display configuration reminding page, and after the creation user is detected to carry out the user configuration of the document based on the configuration reminding page, the confirmation instruction is submitted;
The server receives a configuration request sent by the client and associates the creation user, the document management, the collaborative editing user and/or the sub-document creation user with the document based on the configuration request.
It should be noted that, in this embodiment, the creation of the sub-document is similar to the process of creating the document, specifically, the edit page of the sub-document creation user of the document displays a sub-document new control, the sub-document creation user of the document performs creation of the sub-document by triggering the sub-document new control, after detecting that the sub-document new control is triggered, the client sends the user identifier of the user triggering the sub-document new control and the document identifier of the document to the server, and after receiving the user identifier and the document identifier, the server can check whether the user corresponding to the user identifier is the sub-document creation user of the document corresponding to the document identifier, if not, the creation failure reminding is performed, if yes, the sub-document using the user as the sub-document creation user is created, and the configuration of the sub-document management user and the sub-document editing user can be performed by interacting with the user.
In particular, in order to ensure the security of the document, the problem that the document content is caused by editing the document by a user who does not have editing authority is avoided, so that the user who uses the document later is affected to obtain wrong information, and in the process that the user accesses the document, the user needs to verify the processing authority of the user to the document, and in an optional implementation manner provided in this embodiment, in the process that the user accesses the document, the following operations are executed:
acquiring a document identification of the document;
According to the user identification and the document identification, carrying out processing permission matching of the document on the user;
If the processing authority is the sub-document editing authority, reading an editing sub-document list of the user with the editing authority;
And taking the sub-document with the time meeting the preset condition created in the editing sub-document list as the target sub-document, so as to edit the document based on the editing identity corresponding to the target sub-document.
Optionally, the obtaining the document identifier of the document further includes obtaining the user identifier of the user after detecting the access instruction of the user to the document. Optionally, the preset condition may be that a distance between the creation time and the current time is the smallest; in addition, the preset conditions can be configured according to actual requirements, and the embodiment is not limited herein. Optionally, the sub-document editing authority is opened to the user after the user is set as a sub-document editing user.
Specifically, under the condition that a user accesses a document, a user identification of the user and a document identification of the document are obtained, the processing authority of the user on the document is matched according to the user identification and the document identification, and if the processing authority of the user on the document is a sub-document editing authority, an editing sub-document list with editing authority of the user is read; after the edit sub-document list is read, in order to improve the editing simplicity of the user, the sub-document meeting the preset condition in the edit sub-document list can be determined as the target sub-document, so that the user can edit the document based on the editing identity corresponding to the target sub-document.
In an optional implementation manner provided in this embodiment, if the edit sub-document list does not include the edit sub-document having the editing authority of the user, the following operations are performed:
reading an editable sub-document list of the document and sending the editable sub-document list to the user;
Generating authority application information comprising the user identification and the sub-document identification according to an authority application instruction aiming at the target sub-document in the editable sub-document list;
sending the authority application information to a management user of the document or the target sub-document;
and if the authorization class submitted by the management user based on the authority application information is the management user authorization class, opening the content creation authority of the target sub-document to the user.
Specifically, there is no editing sub-document with editing authority of the user in the editing sub-document list, that is, the editing sub-document list is empty or the reading result of the editing sub-document list with editing authority of the user is empty, the editing sub-document list formed by all the editing sub-documents associated with the document is sent to the user, and the user can apply authority to the management user of any editing sub-document in the editing sub-document list for applying to become the sub-document management user or the sub-document editing user of any editing sub-document; in the case where the administrative user of any one of the editable sub-documents authorizes the user to be the administrative user of any one of the editable sub-documents, the user is opened with content creation rights for the any one of the editable sub-documents. Wherein the any editable sub-document may be a target sub-document.
In addition to directly determining the sub-document meeting the preset condition in the editing sub-document list as the target sub-document, the sub-document meeting the preset condition in the editing sub-document list can be determined as the default sub-document, so that the user can edit the document based on the editing identity corresponding to the default sub-document; further, the user can switch the sub-documents based on the edited sub-document list; specifically, during the process of accessing the document by the user, the following operations may be further performed:
Acquiring the user identification and the document identification of the document; the user identification and the document identification are obtained after an access instruction of the user to the document is detected;
according to the user identification and the document identification, carrying out processing permission matching of the document on the user to obtain the processing permission of the user on the document;
If the processing authority is the sub-document editing authority, reading an editing sub-document list of the user with the editing authority;
And determining the sub-document with the creation time meeting the preset condition in the editing sub-document list as a default sub-document, so as to edit the document based on the editing identity corresponding to the default sub-document.
Specifically, under the condition that a user accesses a document, a user identification of the user and a document identification of the document are obtained, the processing authority of the user on the document is matched according to the user identification and the document identification, and if the processing authority of the user on the document is a sub-document editing authority, an editing sub-document list with editing authority of the user is read; after the edit sub-document list is read, in order to improve the editing simplicity of the user, the sub-document meeting the preset condition in the edit sub-document list can be determined as a default sub-document, so that the user can edit the document based on the editing identity corresponding to the default sub-document.
In addition, after determining the target sub-document with the creation time meeting the preset condition in the editing sub-document list as a default sub-document, the user can also be queried whether to manage the user for the sub-document of the target sub-document, if so, the user is opened to create the authority, namely the archiving authority, for the content of the target sub-document. In the process of needing to interact with the client, an editing sub-document list with default sub-documents and content creation permission are sent to the client, and the client can display archive controls on an editing page based on the content creation permission. It should be noted that, whether the user has the sub-document management authority for each edited sub-document in the edited sub-document list may also be queried, and the configuration of the query result may be performed in the edited sub-document list. Further, if the user has content creation authority to the default sub-document, after the user triggers the archiving control of the default sub-document, the default sub-document is determined to be the target sub-document. That is, the target editing identity in this embodiment refers to the editing identity corresponding to the target sub-document of the triggered archiving control.
In an optional implementation manner provided in this embodiment, if the read edit sub-document list with the editing authority of the user is empty, the following operations are performed:
reading an editable sub-document list of the document and sending the editable sub-document list to the user;
Generating authority application information containing the user identification and the sub-document identification according to the authority application instruction of the user for the target sub-document in the editable sub-document list;
Sending the authority application information to a sub-document management user of the document or the target sub-document;
and if the authorization class submitted by the sub-document management user based on the authority application information is the management user authorization class, opening the content creation authority of the target sub-document to the user.
Specifically, when the edit sub-document list with the editing authority of the user is empty, all the editable sub-documents associated with the document are sent to the user, and the user can apply the authority to the document management user of any editable sub-document aiming at any editable sub-document to apply for becoming the document management user or the document editing user of any editable sub-document; after the document management user of any one of the editable sub-documents is authorized, the user becomes the document management user or the document editing user of the any one of the editable sub-documents.
In addition, if the obtained processing permission of the user to the document is sub-document creation permission, a sub-document creation control is displayed to the user so as to create a sub-document based on the sub-document creation control; if the processing authority of the user on the document is the reading authority, the user can view the document and the sub-documents of the document.
The user can also have the sub-document creation authority and the sub-document editing authority at the same time, under the condition that the user has the sub-document creation authority and the sub-document editing authority at the same time, an editing sub-document list with the editing authority of the user is read, the sub-document with the creation time meeting the preset condition in the editing sub-document list is determined to be a target sub-document, and a sub-document creation control is opened to the user so as to edit the document based on the editing identity corresponding to the target sub-document, or the sub-document creation is performed based on the sub-document creation control.
The above process may be implemented by interaction between a client and a server, such as the document access process shown in fig. 4, where the process implemented by interaction between the client and the server is as follows:
Step S402, after detecting an access instruction of a user to the document, the client sends a user identification of the user and a document identification of the document to a server;
step S404, the server receives the user identifier and the document identifier sent by the client;
step S406, the server performs authority matching of the document on the user according to the user identification and the document identification to obtain the processing authority of the user on the document;
Step S408, if the processing authority is the sub-document editing authority, the server reads an editing sub-document list with editing authority of the user;
In addition, the server not only reads the editing sub-document list with editing authority of the user, but also inquires whether the user is a sub-document management user of each editing sub-document in the editing sub-document list, and carries out management marking on each editing sub-document in the editing sub-document list based on the inquiry result; the sub-documents of which the users are sub-document management users are subjected to manageable marking, and the sub-documents of which the users are not sub-document management users are subjected to non-manageable marking; the client exposes the archive control based on the management mark in the process of editing the sub-document presentation in the editing sub-document list. For example, the edited sub-document of the user u5 includes a sub-document sd1, a sub-document sd2 and a sub-document sd3, and the user u5 is not a sub-document management user of the sub-document sd2, but is not a sub-document management user of the sub-document sd1 and the sub-document sd3, and when the user edits the document with the edit identity corresponding to the sub-document sd2, the editing page displays the archive control, and when the user edits the document with the edit identity corresponding to the sub-document sd1 and the sub-document sd3, the editing page does not display the archive control.
Step S410, if the editing sub-document list is not empty, the server sets the sub-document with the time meeting the preset condition in the editing sub-document list as a target sub-document;
Step S412, the server sends the editing sub-document list with the set target sub-document to the client so as to edit the document based on the editing identity corresponding to the target sub-document at the client;
in addition, if the editing sub-document list does not exist, namely the editing sub-document list is empty, the editable sub-document list of the document is read and sent to the client;
Step S414, if the client receives the edit sub-document list sent by the server and set with the target sub-document, displaying an edit page based on edit identities corresponding to the document and the target sub-document;
In addition, if the client receives the editable sub-document list sent by the server, the client displays an editing page based on the document and the editable sub-document list.
In addition, after obtaining the edited sub-document list with the target sub-document set, namely the default sub-document, the server can send the edited sub-document list with the default sub-document set, the editable sub-document list and the processing authority of the user on the document to the client; correspondingly, the client receives an editing sub-document list, an editable sub-document list and the processing permission of the user for the document, wherein the editing sub-document list and the editable sub-document list are set as default sub-documents, and editing page display is performed on the basis of the received editing sub-document list, the editable sub-document list and the processing permission of the user for the document. The server reads the editable sub-document list of the document when the editable sub-document list is empty, and then sends the editable sub-document list and the processing authority of the user on the document to the client; correspondingly, after receiving the editable sub-document list and the processing permission of the user on the document sent by the server, the client displays an editing page based on the editable sub-document list and the processing permission of the user on the document.
Taking document d as an example, a user u5 accesses the document based on a client, after detecting an access instruction of the user u5 to the document d, the client sends a user identifier of the user u5 and a document identifier of the document d to a server, after receiving the user identifier of the user u5 and the document identifier of the document d, the server firstly carries out processing authority matching of the user u5 in a user associated with the document d, determines that the processing authority of the user u5 to the document d is a sub-document editing authority and a sub-document creating authority, reads a sub-document sd1, a sub-document sd2 and a sub-document sd3 with editing authority in the sub-document of the document d, reads all the sub-documents of the document except for reading the sub-document with editing authority of the user u5, obtains a sub-document list of the document d, creates a sub-document sd1, a sub-document sd2 and a sub-document sd3 with editing authority in the sub-document d associated with the obtained user u5, creates a sub-document sd2 with the minimum time and a time distance between the sub-document sd2 and the current time as a target sub-document sd2, and a sub-document with editing authority, and a sub-document 2 is edited in the sub-document with the editing authority list of the sub-document d is obtained; the client renders a document editing page shown in FIG. 5 according to the data sent by the server;
In the document editing page, the current document content of the document d is displayed, the document title 501 of the document d is displayed in a compiling sub-document display frame 502, the sub-document identification of a target sub-document is displayed in the compiling sub-document display frame, the document editing is currently carried out according to the editing identity corresponding to the target sub-document, an editing sub-document list can be checked through a pull-down option in the compiling sub-document display frame, sub-document switching is carried out by clicking other editing sub-documents in the editing sub-document list, and after the sub-document switching is carried out, the other editing sub-documents are the target sub-documents; because user u5 is a child document creation user of the document, a child document new control 503 is also displayed, and in addition, the document editing page is also displayed with a child document viewing control 504, and the child document list, such as the child document list display page shown in fig. 6, can be viewed by triggering the child document viewing control 504; the sub-document list displayed on the sub-document list display page comprises editing sub-documents and archiving sub-documents, wherein the editing sub-documents comprise a sub-document sd1, a sub-document sd2, a sub-document sd3 and a sub-document sd4, the states of the sub-document sd1, the sub-document sd2 and the sub-document sd3 are editing, document editing can be carried out based on editing identities corresponding to the sub-document sd1, the sub-document sd2 and the sub-document sd3, the state of the sub-document sd4 is archiving, and document editing cannot be carried out based on editing identities corresponding to the sub-document sd4 later.
In addition, in the case of determining that the sub-document sd2 is the target sub-document, inquiring whether the user u5 is the sub-document management user of the sub-document sd2, if yes, the client side presents an archive control 505 on the document editing page as shown in fig. 5 based on the flag that the user u5 sent by the server is the sub-document management user of the sub-document sd2, and the user u5 can submit the archive instruction of the sub-document sd2 by triggering the archive control 505; if the user u5 is not the sub-document management user of the sub-document sd2, the document editing page does not show the archiving control.
It should be noted that, the server may be further divided into modules, and in the case of dividing the server into modules, the operations performed by the server in the process of creating the document and accessing the document may be performed by the sub-document allocation module of the server.
In a specific implementation, if the user is a sub-document management user of a target sub-document of the document, the user may submit an archiving instruction for the target sub-document based on the displayed archiving control to create document content of the target sub-document, so as to ensure that the user has sub-document management authority for the target sub-document, in an optional implementation provided in this embodiment, the following operations are performed:
optionally, the content creation instruction is acquired after detecting an archiving instruction of the target sub-document by the user.
Acquiring a content creation instruction, and reading a user identifier and a sub-document identifier of the target sub-document contained in the content creation instruction;
And executing the document editing record operation for inquiring the target editing identity when verifying that the user manages the user for the sub-document of the target sub-document according to the user identification and the sub-document identification.
Optionally, the content creation instruction is acquired after detecting an archiving instruction of the target sub-document by the user.
Specifically, a content creation instruction of a target sub-document of a document is obtained, and a user identifier and a sub-document identifier of the target sub-document contained in the content creation instruction are read; checking whether the user is a sub-document management user of the target sub-document according to the user identification and the sub-document identification, if so, inquiring a document editing record of a target editing identity corresponding to the target sub-document according to a content creation instruction of the target sub-document; if not, the permission prompt is sent to the user or the user is not processed.
Further, in order to avoid that the user files to cause failure of editing other documents being performed by the user corresponding to the target sub-document, in an optional implementation manner provided in this embodiment, in a process of querying a document editing record of a target editing identity corresponding to the target sub-document according to a content creation instruction of the target sub-document, the following operations are performed:
Inquiring an editing user editing the document according to the content creation instruction and sending a creation confirmation prompt to the editing user;
and under the condition that the confirmation instruction submitted by the editing user based on the creation confirmation prompt is detected, inquiring the document editing record of the target editing identity.
In a specific execution process, a content creation instruction of a user on a target sub-document of a document is obtained, a user identification and a sub-document identification of the target sub-document contained in the content creation instruction are read, whether the user is a sub-document management user of the target sub-document or not is checked according to the user identification and the sub-document identification, if yes, an editing user editing the document according to an editing identity corresponding to the target sub-document is inquired, a creation confirmation prompt is sent to the editing user, and under the condition that the editing user submits a confirmation instruction based on the creation confirmation prompt, a document editing record of document editing according to an editing identity corresponding to the target sub-document is inquired.
Specifically, under the condition that a user submits a content creation instruction by clicking an archiving control, besides creating the document content of a target sub-document, the state of the sub-document of the target sub-document is set from an editing state to an archiving state, and after the state is set to the archiving state, all users cannot edit the document according to the target editing identity corresponding to the target sub-document; therefore, in the process of archiving the target sub-document, other users may edit the document according to the target editing identity, so as to avoid the influence on the document editing of other users who edit the document according to the target editing identity, after acquiring the content creation instruction of the target sub-document of the document, the method also sends a creation confirmation prompt to the editing user who edits the document according to the target editing identity, and starts to create the document content under the condition that the editing user submits the confirmation instruction.
Continuing taking the access of the user u5 to the sub-document sd2 of the document d as an example, clicking the archiving control 505 in the process of editing the document by using the editing identity corresponding to the sub-document sd2 by the user u5, sending an archiving instruction comprising the user identification of the user u5 and the sub-document identification of the sub-document sd2 to a server by the client under the condition that the archiving control 505 is detected to be clicked, receiving the archiving instruction by the server, firstly checking whether the user u5 is a sub-document management user of the sub-document sd2 based on the user identification and the sub-document identification, and if so, reading an editing user which is editing the document by using the editing identity corresponding to the sub-document sd2 based on the sub-document identification and the document identification to obtain the editing user u2 and the editing user u8; and sending a creating confirmation prompt to the editing user u2 and the editing user u8, and inquiring a document editing record for editing the document by the editing identity corresponding to the sub-document sd2 if a confirmation instruction submitted by the editing user u2 and the editing user u8 is received.
In this embodiment, according to a content creation instruction for a target sub-document of a document, a document editing record of a target editing identity corresponding to the target sub-document is queried; in this embodiment, in addition to the content creation instruction performed by the user clicking the archive control, the content creation instruction is submitted when the document is automatically saved or when the user saves the document, and optionally, the content creation instruction is acquired when the user clicking the archive control is detected, or when the document automatic save instruction is detected, or when the user submitting the document save instruction is detected. After a user clicks an archiving control to acquire a content creation instruction, setting the sub-document state of the target sub-document to be an archiving state, so that a confirmation prompt is created for editing users according to the process; after the automatic document saving instruction is detected or the document creation instruction is acquired under the condition that the user submits the document saving instruction, only the document content of the target sub-document is generated, the state of the target sub-document is not required to be updated, and a creation confirmation prompt is not required.
In the specific execution process, inquiring a document editing record of a target editing identity, namely inquiring the document editing record of document editing according to a content creation instruction of a target sub-document of the document, wherein the target editing identity corresponds to the target sub-document, and in the process, inquiring the document editing record of document editing according to the editing identity corresponding to the target sub-document in the receiving time from creation to content creation instruction of the target sub-document.
For example, before the creation of the sub-document sd2, the content of the document d is as follows:
1. Summary of the inventionsummary
[T1]xxxxxxx
2. First module
2.1 Module login design
[T2]xxxxxxx
2.2 Module logout design
[T3]xxxxx
3. Management module
3.1, First administration
[T4]xxxxx
3.2, Second management
[T5]xxxxx
In order to ensure the integrity of the document content of the sub-document, dividing the document into block-level elements according to paragraphs; for example, the document d includes, a block-level element [ T1], a block-level element [ T2], a block-level element [ T3], a block-level element [ T4], and a block-level element [ T5]; the document d is edited by a plurality of users based on different sub-documents, and the document editing record is expressed by the combination of x such as x1 and different numbers (x 2 editing operation is after x1, x3 editing operation is after x2, and the like) to describe the document editing of the document d:
1. Summary of the inventionsummary
[T1]xxxxxxx
2. First module
2.1 Module login design
[ T2] hcccxxxxxyyyzzzAAbbmvp (sd 2-x1, create sub-document sd2, yyy for [ T2] (sd 2-x 3), h for [ T2] (sd 5-x 4), create sub-document sd5, ccc for [ T2] (sd 5-x 5), xx for [ T2] (sd 2-x 6), zz for [ T2] (sd 6-x 7), create sub-document sd6, AA for [ T2] (sd 5-x 9), bb for [ T2] (sd 2-x 11), archive sub-document sd 2) (sd 6-x 12), v for [ T2] (sd 7-x 13), create sub-document sd7, m for [ T2 ])
2.2 Module logout design
[T3]xxxxx
3. Management module
3.1, First administration
[ T4] xxxxxrr (sd 6-x8, rr added to [ T4 ])
3.2, Second management
[T5]xxxxx
3.3, Third management (sd 2-x2, 3.3 added, wwwwwwwww added to [ T6 ])
[T6]wwwwwwwww
3.4, Fourth management
[ T7] RRRRRRR (sd 5-x10, RRRRR to [ T7] is added)
The step of screening the document editing record for editing the document with the editing identity corresponding to the sub-document sd2 in the document editing process comprises the following steps: x1, x2, x3, x6, x11, wherein x11 is archive and may or may not be recorded.
Step S204, obtaining the block-level element corresponding to the target editing identity.
In this embodiment, the block-level elements, including elements that occupy the entire width available, starting from a new row; in this embodiment, in order to ensure the integrity of the document content of the generated sub-document, the block-level elements are divided according to paragraphs, i.e., one paragraph is taken as one block-level element.
In order to enable document content of a target sub-document to effectively characterize document editing in which document editing is performed according to editing identities corresponding to the target sub-document, in this embodiment, after a document editing record of the target editing identity is queried, block-level elements corresponding to the target editing identity are read from the document editing record.
In order to more accurately represent the increment content of the target sub-document, editing of the block-level element after the target editing identity is prevented from being summarized to the target block-level element by other editing identities; in an optional implementation manner provided in this embodiment, obtaining a block-level element corresponding to the target editing identity further includes: acquiring the editing termination time of the block-level element; that is, based on the document editing record, reading the block-level element edited with the target editing identity and the editing termination time of the block-level element; in other words, based on the document editing record, a block-level element edited with a target editing identity and an editing termination time of the block-level element by the target editing identity are read. The editing termination time of the block-level element refers to the time of the last editing of the block-level element by the editing identity corresponding to the target sub-document.
Continuing taking the sub-document sd2 with the target sub-document as the document d as an example, the querying to obtain the document editing record for editing the document with the editing identity corresponding to the sub-document sd2 includes: x1, x2, x3, x6, wherein x1, x3 and x6 are all document editing records of the block-level element [ T2], x2 is document editing records of 3.3 and [ T6], thus, the read block-level element edited with the editing identity corresponding to the document sd2 comprises [ T2], 3.3 and [ T6], the read block-level element comprises two types, the first type is the block-level element which exists in the document d before creation of the sub-document sd2 and is edited with the editing identity corresponding to the sub-document sd2, the second type is the element which is newly added before creation of the document content of the sub-document sd2 and is edited with the editing identity corresponding to the sub-document sd2, and the second type can only comprise the element which is newly added with the editing identity corresponding to the sub-document sd2 and can also comprise the element which is newly added with the editing identity corresponding to other sub-documents;
After reading the block-level element edited with the editing identity corresponding to the sub-document sd2, continuing to read the last editing time of the block-level element with the editing identity corresponding to the sub-document sd2, wherein, for the block-level element [ T2], x6 is the last editing of [ T2] with the sub-document sd2, the editing time of x6 is the editing termination time of [ T2 ]; similarly, the edit time of x2 is the edit termination time of 3.3 and [ T6 ].
Step S206, inquiring the element editing record of the block-level element.
In this embodiment, the element editing record refers to an editing record of a block-level element in a document according to an editing identity corresponding to each sub-document before the editing termination time; in an optional implementation manner provided in this embodiment, querying the element edit record of the block-level element is querying the element edit record of the block-level element before the editing termination time. Optionally, the element editing record includes an editing record of the block-level element with the plurality of editing identities of the document, that is, the element editing record includes an editing record of the block-level element with editing identities corresponding to respective sub-documents of the document.
In the implementation, on the basis of reading the block-level element edited by the editing identity corresponding to the target sub-document and the editing termination time of the block-level element, the specific editing process of the edited block-level element is displayed in the document content of the target sub-document, so that the element editing record of the block-level element is queried according to the editing termination time; in an optional implementation manner provided in this embodiment, in a process of querying an element editing record of the block-level element, the following operations are performed:
reading an editing record of the document, wherein the editing record comprises editing records for editing the document according to editing identities corresponding to the plurality of sub-documents;
screening historical editing records of the block-level elements from editing records of the document;
and reading a historical editing record with the editing time smaller than the editing ending time in the historical editing record as an element editing record of the block-level element.
Specifically, firstly, reading an editing record of a document for editing the document according to the editing identity corresponding to each sub-document, and then screening a historical editing record for editing the block-level element from the editing record of the document; finally, the history edit record before the edit termination time in the history edit record is read as the element edit record of the block-level element.
Along the above example, the block level elements include [ T2], 3.3, and [ T6], read all edit records of document d: x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12 and x13; screening the history edit records of each of [ T2], 3.3 and [ T6] among all the edit records of the above document d:
The history edit record of [ T2] includes: x1, x3, x4, x5, x6, x7, x9, x11, x12 and x13;
3.3 includes: x2;
the history edit record of [ T6] includes: x2;
Then, the history edit record before the edit expiration time is selected as the element edit record of the block-level element from the history edit records of the block-level element:
The element edit record of [ T2] includes: x1, x3, x4, x5, x6;
the element edit record of 3.3 includes: x2;
The element edit record of [ T6] includes: x2.
Step S208, based on the block-level element and the element editing record, creating the document content of the target sub-document corresponding to the target editing identity.
The document content of the target sub-document refers to the content displayed to the user in the process of accessing the target sub-document by the user.
When the method is implemented, after the element editing record of the block-level element is obtained, the document content of the target sub-document is created based on the block-level element and the element editing record; in order to make the created document content clearer and more complete in the process of creating the document content of the target sub-document, in an alternative implementation manner provided in this embodiment, in the process of creating the document content of the target sub-document based on the block-level element and the element editing record, the following operations are performed:
Reading an element title corresponding to the block-level element in the document, and determining element content of the block-level element based on the element editing record;
creating initial sub-document content based on the element title and the element content;
and initializing the initial sub-document content to obtain document display content.
Optionally, the element content of the block-level element refers to content contained in the block-level element after editing corresponding to the element editing record corresponding to the editing termination time.
Specifically, on one hand, in order to completely and effectively represent the block-level element in the document content, the document content further comprises an element title corresponding to the block-level element, namely, an initial sub-document content is created based on the element content and the element title of the block-level element; because the block-level elements edited by the editing identity corresponding to the target sub-document in the document do not necessarily have the title sequence, in order to promote the perception degree of the content displayed by the document, after the initial sub-document content is obtained, the initial sub-document content is initialized to obtain the document display content;
Continuing to use the above example, reading element titles corresponding to [ T2], 3.3 and [ T6] in the document d to obtain element title pairs 3 corresponding to [ T2] and [ 2.1,3.3 ], element titles 3 and 3.3 corresponding to [ T6], reading element content of [ T2] after x6 editing to be hcccxxxxxyyyzzz, reading element content of 3.3 after x2 editing to be 3.3, [ T6] after x2 editing to be wwwwwwwww, merging the element titles and block-level elements, and de-duplicating to obtain the following initial sub-document content:
2
2.1
[T2]
3
3.3
[T6]
In the process of initializing the initial sub-document content, firstly, reading a title block level element and a sequence number format corresponding to each element title in a document, updating the element title in the initial sub-document based on the title block level element and the sequence number format, and merging an updating result and the element content to obtain the intermediate document display content:
2. First module
2.1 Module login design
[T2]hcccxxxxxyyyzzz
3. Management module
3.3, Third management
[T6]wwwwwwwww
Because the title sequence is discontinuous in the middle document display content, reconstructing the title sequence in the middle document display content to obtain initial sub-document content:
1. First module
1.1 Module login design
[T2]hcccxxxxxyyyzzz
2. Management module
2.1, Third management
[T6]wwwwwwwww
When the user accesses the sub-document sd2, the document presentation content is presented through the document presentation page as shown in fig. 7.
In addition to taking the document presentation content as the document content of the target sub-document, so that the incremental content of the document editing based on the target editing identity can be perceived based on the target sub-document, in this embodiment, in order to enable the user to see all editing records of the block-level element before the target sub-document is archived in the process of accessing the target sub-document, in an optional implementation provided in this embodiment, in the process of creating the document content of the target sub-document corresponding to the target editing identity based on the block-level element and the element editing record, the following operations may be further performed:
arranging the element editing records according to the editing time corresponding to the element editing records to obtain an editing record list;
and taking the editing record list as a document editing list of the target sub-document.
Specifically, according to the editing time corresponding to the element editing record, arranging the element editing record to obtain an editing record list, and taking the editing record as a document editing list of the target sub-document, wherein the document content comprises a document display content and a document editing list; when a plurality of block-level elements exist, arranging element editing records of each block-level element to obtain an editing record list of each block-level element; and associating the edit record list of each block level element with the corresponding block level element, and finally obtaining the document content comprising the document display content and the edit record list associated with each block level element in the document display content. It should be noted that, to further improve the perception degree of the user on the modification details of each element editing record, after obtaining the editing record list, the modification details corresponding to each editing record in the editing record list are read, and the obtained modification detail list and document display content are used as document content.
Continuing to use the above example, and arranging the element editing records in a descending order according to the editing time corresponding to the element editing records to obtain an editing record list, wherein for [ T2], the editing record list after the descending order is { x1, x3, x4, x5, x6}; in order to more clearly and completely represent the specific modification situation, the modification details corresponding to the editing record can be read to obtain a modification detail list:
{ sd 2-user u 1-revision time;
sd 2-user u 2-revision time;
sd 5-user u 1-revision time;
sd 5-user u 2-revision time;
sd 2-user u 3-revision time; }
Similarly, a modification detail list of 3.3 and [ T6] is obtained.
After obtaining the above-described document presentation content and modification detail list, the modification detail list is associated to the corresponding block-level element, and in the case where the user accesses the sub-document sd2 and clicks [ T2] as in fig. 7, the modification detail list associated with [ T2] is presented.
If the server performs module division, the creation of the document content is performed by the sub-document generation module of the server.
In order to further more intuitively show which content is modified by which user, which content is specifically modified by an edit record with respect to a previous edit record, the following operations are further performed after obtaining the edit record list:
determining element change data corresponding to each element editing record based on each element editing record and a previous element editing record in the editing record list;
according to a preset revision format and the element change data, revising the element content of each element editing record to obtain the element revision content of each element editing record;
And mapping the element revision content to a corresponding element edit record in the edit record list to obtain an edit record list mapped with the element revision content.
Specifically, for two adjacent element editing records, for an element editing record of a next editing time, determining element change data corresponding to the element editing record of a previous editing time, taking element content corresponding to the element editing record of the next editing time as final content, taking element content corresponding to the element editing record of the previous editing time as comparison content, and displaying element revision content through a visual interaction style. For example, adding a background color to the added content, adding a deletion line to the deleted content, displaying the content to be deleted in the element content corresponding to the previous editing record into the deletion line, adding a frame and a background color to the content with changed style, and adding a background color to the content area of the filtering or sorting operation; it should be noted that, the setting irrelevant to the block level element is not shown. By displaying the element revision content, the content before and after editing can be perceived quickly.
Continuing to take a block-level element [ T2] of the sub-document sd2 as an example, and specifically explaining the determination of the element revision content; for [ T2], the associated modification detail list is:
{ sd 2-user u 1-revision time;
sd 2-user u 2-revision time;
sd 5-user u 1-revision time;
sd 5-user u 2-revision time;
sd 2-user u 3-revision time; }
The user can click any modification detail to check the corresponding element revision content, taking sd 2-user u 3-revision time as an example to specifically explain the determination of the element revision content, firstly, determining that the element content corresponding to the modification detail of sd 5-user u 2-revision time is hcccxxxxxyyy, the modification content corresponding to the modification detail of sd 2-user u 3-revision time is hcccxxxxxyyyzzz, adding zzz on the basis of the element content corresponding to the modification detail of sd 5-user u 2-revision time, and determining that the element revision content of sd 2-user u 3-revision time is 'hcccxxxxxyyyzzz', wherein the zzz is added with background color; the element revision content is associated with the modification details of sd 2-user u 3-revision time, and if the user clicks [ T2] in the page shown in fig. 7, the modification detail list showing page shown in fig. 8 is shown, and if the user clicks the modification details of sd 2-user u 3-revision time in the modification detail page shown in fig. 8, the revision content showing page shown in fig. 9 is shown.
It should be noted that, the generation of the element revision content may be implemented by a sub-document hint model of the server.
In addition, in order to further enhance the perception degree of the user on the element editing record of the block level element, the element editing record of the block level element can be divided into a sub-document before and a sub-document after, for example, the obtained revision record list of [ T2] is
{ Previous revision record
Pre-version-
Sd 2-user u 1-revision time;
sd 2-user u 2-revision time;
sd 5-user u 1-revision time;
sd 5-user u 2-revision time;
sd 2-user u 3-revision time;
post-version-
Sd 6-user u 3-revision time;
sd 5-user u 1-revision time;
sd 6-user u 3-revision time;
sd 7-user u 2-revision time; }
In this embodiment, the above description is given of the generation process of the document content from the viewpoint of editing records, and the document content may be generated from the viewpoint of saving versions in addition to the viewpoint of one editing record; in the process of generating the document content from the viewpoint of version preservation, other processing procedures are similar to the implementation procedure from the viewpoint of editing records except that the form of the editing record list obtained later is different from that of the editing record list;
Specifically, in the process of generating the document content in terms of the saved version, the edited record list is divided according to the saved version, and since the edited record list can be automatically saved in a certain time, a user can submit a saving instruction, so that all element edited records in one saving period are aggregated to the saving period to generate a saving period list formed by all the saving periods; any one of the save periods in the save period list is associated with an element edit record within that save period.
For example, the element edit record of [ T2] includes: x1, x3, x4, x5, x6; in the process of editing the document by using the editing identity corresponding to the sub document sd2, the document is automatically saved once every 10 minutes, saved once after x3, saved once based on an archiving instruction after x6, saved once every 10 minutes, saved once after x4, saved once after x5, and the corresponding saved version comprises sd 2-saved version 1-t1, sd 5-saved version 1-t2, sd 5-saved version 2-t3 and sd 2-saved version 2-t4;
the save version list is constructed from the save times of the four save versions as follows:
{ sd 2-save version 1-t1;
sd 2-user u 1-revision time;
sd 2-user u 2-revision time;
sd 5-save version 1-t2;
sd 5-user u 1-revision time;
sd 5-saved version 2-t3;
sd 5-user u 2-revision time;
sd 2-save version 2-t4;
sd 2-user u 3-revision time; }
In the process of displaying, only the four versions can be displayed first, and when any version is triggered, the element editing record associated with the version can be displayed.
Further, when the revision list is constructed with the saved versions, the element revision content can be created between two element editing records, the element revision content can be created between two saved versions, and the element revision content can be created between two element editing records, both the element revision content corresponding to the saved versions and the element revision content corresponding to the element editing records are created in the above manner, and the embodiment is not described herein.
In summary, according to the document processing method provided by the embodiment, by creating the document content of the target sub-document of the document, the incremental content of a certain part of users on the document within a certain period of time is displayed, that is, the incremental content of the document editing performed by the user who edits the document with the target editing identity is generated from the creation of the target sub-document to the editing termination time of the document editing with the target editing identity, the incremental content of each iterative version of each team is efficiently generated and managed, the reading efficiency and the reading perception degree are improved, and the change record of a certain part of content is displayed by revising the content through the elements contained in the document content, so that the reading convenience and the reading efficiency of the editing process are improved; in addition, the document version of the document can also show the snapshot content from the document creation to a certain time, the revision record shows a history revision record, and the revision process of the document and different documents in the revision process are managed through records of multiple dimensions.
The document processing method applied to the document content creation scene provided in this embodiment is further described below by taking an application of the document processing method provided in this embodiment to the document content creation scene as an example, and referring to fig. 10, the document processing method applied to the text recognition scene specifically includes the following steps.
Step S1002, a content creation instruction of a user for a target sub-document of a document is acquired.
Step S1004, inquiring an editing user for editing the document with a target editing identity corresponding to the target sub-document based on the content creation instruction.
Step S1006, a creation confirmation reminder is sent to the editing user.
Step S1008, in the case where it is detected that the editing user submits a confirmation instruction based on the creation confirmation instruction, a document editing record in which document editing is performed with the target editing identity is queried.
Step S1010, based on the document editing record, reading at least one block-level element of editing and editing termination time of each block-level element.
Step S1012, before the editing termination time of each block level element is queried, the element editing record of each block level element is edited by the editing identity corresponding to each sub-document of the document.
Step S1014 reads the element header corresponding to each block-level element, and determines the element content of each block-level element.
Step S1016, de-duplicating the element title to obtain a target element title, and combining the target element title with the element content to obtain the initial sub-document content.
Step S1018, initializing the initial sub-document content to obtain document display content, and generating an edit record list of each block level element based on the element edit record of each block level element;
step S1020, the edit record list of each block level element is associated to the element content of the corresponding block level element in the document display content, so as to obtain the document content of the target sub-document.
An embodiment of a document processing apparatus provided in the present specification is as follows:
In the above-described embodiments, a document processing method and a document processing apparatus are provided, corresponding thereto, and the following description is made with reference to the accompanying drawings.
Referring to fig. 11, there is shown a schematic diagram of a document processing apparatus provided in the present embodiment.
Since the apparatus embodiments correspond to the method embodiments, the description is relatively simple, and the relevant portions should be referred to the corresponding descriptions of the method embodiments provided above. The device embodiments described below are merely illustrative.
The present embodiment provides a document processing apparatus including:
A first query module 1102, configured to query a document editing record of the target editing identity;
an obtaining module 1104, configured to obtain a block-level element corresponding to the target editing identity;
A second query module 1106 for querying element edit records of the block-level element, the element edit records including edit records of the block-level element with the plurality of edit identities of the document;
And a creating module 1108, configured to create document content of a target sub-document corresponding to the target editing identity based on the block-level element and the element editing record.
The respective modules in the above-described document processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
An embodiment of a computer device provided in the present specification is as follows:
Corresponding to the above-described document processing method, based on the same technical concept, the embodiment of the present application further provides a computer device, where the computer device is configured to execute the above-provided document processing method, and fig. 12 is a schematic structural diagram of a document processing device provided by the embodiment of the present application.
The embodiment provides a computer device, including:
As shown in fig. 12, the computer device may have a relatively large difference due to different configurations or performances, and may include one or more processors 1201 and a memory 1202, where the memory 1202 may store one or more storage applications or data. Wherein the memory 1202 may be transient storage or persistent storage. The application programs stored in memory 1202 may include one or more modules (not shown in the figures), each of which may include a series of computer-executable instructions in a computer device. Still further, the processor 1201 may be configured to communicate with the memory 1202 and execute a series of computer executable instructions in the memory 1202 on a computer device. The computer device may also include one or more power supplies 1203, one or more wired or wireless network interfaces 1204, one or more input/output interfaces 1205, one or more keyboards 1206, and the like.
In a particular embodiment, a computer device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the computer device, and configured to be executed by one or more processors, the one or more programs comprising computer-executable instructions for:
inquiring a document editing record of the target editing identity;
Acquiring a block-level element corresponding to the target editing identity;
Querying an element edit record of the block-level element, the element edit record including an edit record of the block-level element with the plurality of edit identities of the document;
And creating the document content of the target sub-document corresponding to the target editing identity based on the block-level element and the element editing record.
An embodiment of a computer-readable storage medium provided in the present specification is as follows:
corresponding to the above-described document processing method, the embodiment of the application further provides a computer readable storage medium based on the same technical concept.
The present embodiment provides a computer-readable storage medium for storing computer-executable instructions that, when executed by a processor, implement the following flow:
inquiring a document editing record of the target editing identity;
Acquiring a block-level element corresponding to the target editing identity;
Querying an element edit record of the block-level element, the element edit record including an edit record of the block-level element with the plurality of edit identities of the document;
And creating the document content of the target sub-document corresponding to the target editing identity based on the block-level element and the element editing record.
It should be noted that, in the present specification, an embodiment of a computer readable storage medium and an embodiment of a document processing method in the present specification are based on the same inventive concept, so that a specific implementation of the embodiment may refer to an implementation of the foregoing corresponding method, and a repetition is omitted.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some implementations, multiple document processing and parallel processing are also possible or may be advantageous.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-readable storage media (including, but not limited to, magnetic disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable test apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable test apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable test apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable test apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
Embodiments of the application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is by way of example only and is not intended to limit the present disclosure. Various modifications and changes may occur to those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. that fall within the spirit and principles of the present document are intended to be included within the scope of the claims of the present document.

Claims (13)

1. A document processing method, wherein the document includes a plurality of edit identities, the plurality of edit identities including a target edit identity, the method comprising:
inquiring a document editing record of the target editing identity;
Acquiring a block-level element corresponding to the target editing identity;
Querying an element edit record of the block-level element, the element edit record including an edit record of the block-level element with the plurality of edit identities of the document;
And creating the document content of the target sub-document corresponding to the target editing identity based on the block-level element and the element editing record.
2. The method of claim 1, wherein the obtaining the block-level element corresponding to the target edit identity further comprises: and acquiring the editing termination time of the block-level element.
3. The method of claim 2, wherein the querying the element-editing record of the block-level element is querying the element-editing record of the block-level element prior to the edit-termination time.
4. The method of claim 1, wherein prior to querying the document edit record for the target edit identity, further comprising:
Acquiring a content creation instruction, and reading a user identifier and a sub-document identifier of the target sub-document contained in the content creation instruction;
And executing the document editing record operation for inquiring the target editing identity when verifying that the user manages the user for the sub-document of the target sub-document according to the user identification and the sub-document identification.
5. The method of claim 4, wherein the obtaining the content creation instruction, before reading the user identifier and the sub-document identifier of the target sub-document included in the content creation instruction, further comprises:
acquiring a document identification of the document;
According to the user identification and the document identification, carrying out processing permission matching of the document on the user;
If the processing authority is the sub-document editing authority, reading an editing sub-document list of the user with the editing authority;
And taking the sub-document with the time meeting the preset condition created in the editing sub-document list as the target sub-document, so as to edit the document based on the editing identity corresponding to the target sub-document.
6. The method of claim 5, wherein if there is no edit sub-document in the edit sub-document list for which the user has editing authority, performing the following operations:
reading an editable sub-document list of the document and sending the editable sub-document list to the user;
Generating authority application information comprising the user identification and the sub-document identification according to an authority application instruction aiming at the target sub-document in the editable sub-document list;
sending the authority application information to a management user of the document or the target sub-document;
and if the authorization class submitted by the management user based on the authority application information is the management user authorization class, opening the content creation authority of the target sub-document to the user.
7. A method according to claim 3, wherein said querying element-editing records of said block-level element comprises:
reading an editing record of the document, wherein the editing record comprises editing records for editing the document according to editing identities corresponding to the plurality of sub-documents;
screening historical editing records of the block-level elements from editing records of the document;
and reading a historical editing record with the editing time smaller than the editing ending time in the historical editing record as an element editing record of the block-level element.
8. The method of claim 1, wherein creating document content of the target sub-document corresponding to the target edit identity based on the block-level element and the element edit record comprises:
Reading an element title corresponding to the block-level element in the document, and determining element content of the block-level element based on the element editing record;
creating initial sub-document content based on the element title and the element content;
and initializing the initial sub-document content to obtain document display content.
9. The method of claim 8, wherein creating document content of a target sub-document corresponding to the target edit identity based on the block-level element and the element edit record, further comprises:
arranging the element editing records according to the editing time corresponding to the element editing records to obtain an editing record list;
and taking the editing record list as a document editing list of the target sub-document.
10. The method according to claim 9, wherein the arranging the element edit records according to the edit time corresponding to the element edit record, after the performing, further comprises:
determining element change data corresponding to each element editing record based on each element editing record and a previous element editing record in the editing record list;
according to a preset revision format and the element change data, revising the element content of each element editing record to obtain the element revision content of each element editing record;
And mapping the element revision content to a corresponding element edit record in the edit record list to obtain an edit record list mapped with the element revision content.
11. A document processing apparatus, wherein the document includes a plurality of edit identities, the plurality of edit identities including a target edit identity, the apparatus comprising:
the first query module is used for querying the document editing record of the target editing identity;
the acquisition module is used for acquiring the block-level element corresponding to the target editing identity;
A second query module for querying element edit records of the block-level element, the element edit records including edit records of the block-level element with the plurality of edit identities of the document;
And the creating module is used for creating the document content of the target sub-document corresponding to the target editing identity based on the block-level element and the element editing record.
12. A computer device, the device comprising:
A processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to perform the document processing method of any of claims 1-10.
13. A computer readable storage medium for storing computer executable instructions which, when executed by a processor, implement the document processing method of any one of claims 1 to 10.
CN202311300359.6A 2023-10-09 2023-10-09 Document processing method and related device Pending CN117952070A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311300359.6A CN117952070A (en) 2023-10-09 2023-10-09 Document processing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311300359.6A CN117952070A (en) 2023-10-09 2023-10-09 Document processing method and related device

Publications (1)

Publication Number Publication Date
CN117952070A true CN117952070A (en) 2024-04-30

Family

ID=90799291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311300359.6A Pending CN117952070A (en) 2023-10-09 2023-10-09 Document processing method and related device

Country Status (1)

Country Link
CN (1) CN117952070A (en)

Similar Documents

Publication Publication Date Title
US11586800B2 (en) Document architecture with fragment-driven role based access controls
US10747841B2 (en) Systems and methods for modifying and restoring website content via a website directory
US9245137B2 (en) Management of digital information
CN102436441B (en) Synchronizing online document edits
US7913161B2 (en) Computer-implemented methods and systems for electronic document inheritance
CN101472140B (en) System for distributing and requiring multimedia program and implementing method thereof
US11163906B2 (en) Adaptive redaction and data releasability systems using dynamic parameters and user defined rule sets
US9805209B2 (en) Systems and methodologies for managing document access permissions
US10089371B2 (en) Extensible extract, transform and load (ETL) framework
CN111625510A (en) Multi-source data sharing system and method based on cloud mapping
US11775474B2 (en) Systems and methods for implementing content aware file management labeling
US20230267387A1 (en) Computer-Guided Corporate Relationship Management
CN112527873B (en) Big data management application system based on chain number cube
CN112149109A (en) Modularized authority control management method and system
CN111048164A (en) Medical big data long-term storage system
US8396887B2 (en) Method and system for facilities management
Kim et al. Comprehensive Knowledge Archive Network harvester improvement for efficient open‐data collection and management
CN111651122B (en) Data deleting method, device, server and storage medium
US7693185B1 (en) Method and apparatus for creation and management of intelligent packets
Kohler Atlassian confluence 5 essentials
CN117952070A (en) Document processing method and related device
CN115705189A (en) Display interface construction method and related device
Ham et al. Evaluation of Data Catalog Software for Hanford Site Environmental Datasets
CN112346808B (en) Method and system for managing and controlling background button authority
US20230306000A1 (en) Data asset sharing

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination