A page building method, server, terminal and storage medium
Patent Information
- Application Number
- CN202111172664.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-08
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2041-10-08
AI Technical Summary
[0033] In the page building method provided in this application embodiment, the server can obtain an access request from a first object for an operation interface, wherein the operation interface is used to build a target page formed by components, and the first object is any one of multiple objects participating in building the target page. Therefore, the server can determine the first editing page for the first object to perform editing operations based on the edited content of the target page, and feed back the operation interface including the first editing page to the first object, so that the first object can perform editing operations on the target page on the operation interface. When the first object performs editing operations on the operation interface, the server can obtain the component editing content of the first object on the operation interface, and detect whether there is a conflict between the components selected by the first object and the second object to form the target page and/or the edited component data. If the detection result is no conflict, the server can update the component editing content of the first object in the first editing page to record the edited content of the first object on the target page; furthermore, after the first object completes editing, the server can obtain the first object's editing completion instruction, update the target page based on the first editing page, so as to actually save the first object's edited content on the target page, realizing the first object's work in building the target page.
Smart Images

Figure CN114021053B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of page technology, specifically to a page building method, server, terminal, and storage medium. Background Technology
[0002] Pages are a fundamental component of websites and apps. As the number and functionality of websites and apps continue to increase, the workload of building pages also rises. Therefore, how to provide page building solutions to achieve efficient page building has become a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0003] In view of this, embodiments of this application provide a page building method, server, terminal, and storage medium to achieve efficient page building.
[0004] To achieve the above objectives, the embodiments of this application provide the following technical solutions.
[0005] In a first aspect, embodiments of this application provide a page building method, including:
[0006] Obtain an access request from a first object for the operation interface, wherein the operation interface is used to build a target page formed by components, and the first object is any one of a plurality of objects participating in building the target page;
[0007] Based on the edited content of the target page, determine the first editing page on which the first object performs the editing operation, and feed back the operation interface including the first editing page to the first object;
[0008] Obtain the component editing content of the first object on the operation interface;
[0009] Based on the component editing content of the first object and the component editing content of the second object, detect whether there is a conflict between the components selected by the first object and the second object to form the target page and / or the edited component data; the second object is different from the first object;
[0010] If the detection result is no conflict, update the component editing content of the first object on the first editing page;
[0011] Obtain the editing completion instruction for the first object, and update the target page according to the first editing page.
[0012] Secondly, embodiments of this application provide a page building method, including:
[0013] Send a first object to the server for accessing the operation interface, the operation interface being used to build a target page formed by components, the first object being any one of the multiple objects participating in building the target page;
[0014] The operation interface of the first editing page is obtained from the server feedback and the operation interface is displayed. The first editing page is an editing page for editing the first object determined based on the edited content of the target page.
[0015] The component editing content of the first object on the operation interface is detected, and the component editing content is sent to the server. When the component editing content of the first object and the second object indicates that the components selected by the first object and the second object to form the target page and / or the edited component data do not conflict, the first editing page successfully updates the component editing content of the first object.
[0016] The system detects that the editing of the first object is complete and sends an editing completion instruction to the server, so that the server updates the target page based on the first edited page.
[0017] Thirdly, embodiments of this application provide a page building apparatus, including:
[0018] The access request acquisition module is used to acquire the access request of the first object to the operation interface, wherein the operation interface is used to build a target page formed by components, and the first object is any one of the multiple objects participating in building the target page.
[0019] The interface determination and feedback module is used to determine the first editing page for the first object to perform editing operations based on the edited content of the target page, and to feed back the operation interface including the first editing page to the first object;
[0020] The content editing module is used to obtain the component editing content of the first object on the operation interface;
[0021] The conflict detection module is used to detect whether there is a conflict between the components selected by the first object and the components edited by the second object to form the target page and / or the component data edited by the second object, based on the component editing content of the first object and the component editing content of the second object; the second object is different from the first object;
[0022] The content update module is used to update the component editing content of the first object in the first editing page if the detection result is no conflict;
[0023] The page update module is used to obtain the editing completion instruction of the first object and update the target page according to the first editing page.
[0024] Fourthly, embodiments of this application provide a page building apparatus, including:
[0025] An access request sending module is used to send an access request for a first object to the server for the operation interface. The operation interface is used to build a target page formed by components. The first object is any one of the multiple objects that participate in building the target page.
[0026] The interface acquisition and display module is used to acquire the operation interface including the first editing page fed back by the server and display the operation interface, wherein the first editing page is an editing page for editing the first object determined based on the edited content of the target page;
[0027] The content editing detection and sending module is used to detect the component editing content of the first object on the operation interface and send the component editing content to the server. When the component editing content of the first object and the second object indicates that the components selected by the first object and the second object to form the target page and / or the edited component data do not conflict, the first editing page successfully updates the component editing content of the first object.
[0028] The editing completion module is used to detect the editing completion operation of the first object, send the editing completion instruction of the first object to the server, so that the server updates the target page according to the first editing page.
[0029] Fifthly, embodiments of this application provide a server, including: at least one memory and at least one processor, wherein the memory stores one or more computer-executable instructions, and the processor invokes the one or more computer-executable instructions to execute the page building method as described in the first aspect above.
[0030] In a sixth aspect, embodiments of this application provide a terminal, including: at least one memory and at least one processor, wherein the memory stores one or more computer-executable instructions, and the processor invokes the one or more computer-executable instructions to execute the page building method as described in the second aspect above.
[0031] In a seventh aspect, embodiments of this application provide a storage medium that stores one or more computer-executable instructions. When the one or more computer-executable instructions are executed, they implement the page building method as described in the first aspect above, or the page building method as described in the second aspect above.
[0032] Eighthly, embodiments of this application provide a computer program that, when executed, implements the page building method as described in the first aspect above, or the page building method as described in the second aspect above.
[0033] In the page building method provided in this application embodiment, the server can obtain an access request from a first object for an operation interface, wherein the operation interface is used to build a target page formed by components, and the first object is any one of multiple objects participating in building the target page. Therefore, the server can determine the first editing page for the first object to perform editing operations based on the edited content of the target page, and feed back the operation interface including the first editing page to the first object, so that the first object can perform editing operations on the target page on the operation interface. When the first object performs editing operations on the operation interface, the server can obtain the component editing content of the first object on the operation interface, and detect whether there is a conflict between the components selected by the first object and the second object to form the target page and / or the edited component data. If the detection result is no conflict, the server can update the component editing content of the first object in the first editing page to record the edited content of the first object on the target page; furthermore, after the first object completes editing, the server can obtain the first object's editing completion instruction, update the target page based on the first editing page, so as to actually save the first object's edited content on the target page, realizing the first object's work in building the target page.
[0034] The page building method provided in this application allows multiple objects to participate in building a target page. For the first object among these objects, the first object performs editing operations based on a first editing page, which is determined based on the already edited content of the target page. This ensures that the first object actually performs subsequent editing operations based on the already edited content of the target page, reducing the scope of the first object's editing operations and improving the editing efficiency of the target page. Simultaneously, the component editing content of the first object and the component editing content of the second object can only be merged into the first editing page if the selected components and / or the edited component data do not conflict. That is, conflicting component editing content from multiple objects is not accepted, thus ensuring collaborative work among multiple objects building the target page and the accuracy of the final target page. Furthermore, this application embodiment can update the target page based on the first object's first editing page when the first object completes editing, thereby saving the component editing content of the first object for the target page into the target page, realizing the first object's work in building the target page. As can be seen, the page building method provided in this application embodiment allows multiple objects to participate in building the target page, and ensures that the objects participating in the building later edit the content of the previous objects. At the same time, it ensures that the component editing content of each object does not conflict. It can coordinate the page building work of multiple objects when multiple objects participate in building the target page, and achieve efficient page building. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0036] Figure 1 Example diagram of the visual user interface;
[0037] Figure 2 A block diagram of the page building system provided in the embodiments of this application;
[0038] Figure 3 A flowchart illustrating the page building method provided in this application embodiment;
[0039] Figure 4 Another flowchart of the page building method provided in the embodiments of this application;
[0040] Figure 5 Example diagrams of editing pages for different objects provided in embodiments of this application;
[0041] Figure 6 Example diagram of displaying object identifiers on the operation interface provided in this application embodiment;
[0042] Figure 7 Example diagram of displaying an operation cursor on the operation interface provided in this application embodiment;
[0043] Figure 8 Service architecture diagram provided for embodiments of this application;
[0044] Figure 9 A block diagram of the page building apparatus provided in the embodiments of this application;
[0045] Figure 10 Another block diagram of the page building apparatus provided in the embodiments of this application;
[0046] Figure 11 Another block diagram of the page building apparatus provided in the embodiments of this application;
[0047] Figure 12 A block diagram of a server provided in an embodiment of this application;
[0048] Figure 13 Another block diagram of the page building apparatus provided in the embodiments of this application;
[0049] Figure 14 Another block diagram of the page building apparatus provided in the embodiments of this application;
[0050] Figure 15 Another block diagram of the page building apparatus provided in the embodiments of this application. Detailed Implementation
[0051] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0052] Pages are generally in HTML (Hypertext Markup Language) file types. If objects are to write code in HTML or other languages to build pages, it will undoubtedly lead to a lot of workload. Therefore, to improve page building efficiency, a visual drag-and-drop component method can be considered to build pages. It should be noted that the objects referred to here include users who use page building services, artificial intelligence and other users with decision-making capabilities.
[0053] In practice, the page building process mainly includes building components and editing component data. By pre-building multiple types of component libraries (for example, a component library includes multiple different components of one type; generally, components of one type are used to implement the same function), when the object builds the page, the product or network service providing the page building service can display a visual operation interface to the object. The object can select the desired component from the multiple types of component libraries displayed in the visual operation interface by dragging and dropping, and edit the component data of the selected component to complete the page building process.
[0054] For example, taking form creation as an example (the form is the page primarily responsible for data collection), the form creation process mainly includes creating input box components and editing their data (such as creating serial input box components and / or numeric input box components, and editing the data in the input boxes), creating option box components and editing their data (such as creating radio button components and / or checkbox components, and editing the data for each option), creating date box components and editing their data, etc., thereby combining... Figure 1 The example provides a visual interface that can be displayed on the terminal used by the object. The component selection area of this interface can display multiple types of component libraries, such as an input box component library with multiple different input boxes, an option box component library with multiple different option boxes, and a date box component library with multiple different date boxes. The object can then select the desired input box component from the input box component library and drag it to the editing area of the visual interface to edit its data. Similarly, the object can select the desired option box component from the option box component library and drag it to the editing area of the visual interface to edit its data. Likewise, the object can select various components of the form and edit their corresponding data, thus completing the form construction process.
[0055] It should be noted that the component types selected for the form can be defined according to the actual situation. The above are just examples of the component types that the form may use.
[0056] The above-described method of building pages using visual drag-and-drop components allows objects to start from a blank page and, following the order of page (such as a form) building operations, drag and drop desired components in sequence and edit the corresponding component data to achieve page building; it also allows objects to load page templates (page templates predefine multiple components), and then select components from the component library to modify the predefined components in the page template to achieve page building.
[0057] For pages with simple logic and structure, a single object can efficiently build the page using the visual drag-and-drop component described above. However, for pages with complex logic and structure, multiple objects are often required to build the page. How to coordinate the page building work of multiple objects to achieve efficient page building becomes a problem that needs to be solved.
[0058] Based on this, embodiments of this application provide an improved page building scheme. Specifically, embodiments of this application provide a page building method, server, terminal, and storage medium to coordinate the page building work of multiple objects when multiple objects participate in page building, thereby achieving efficient page building. It should be noted that, for the solutions of embodiments of this application described below, the participation of multiple objects in page building is not limited to situations where the page logic and structure are complex. Multiple objects can also participate in building pages with simple logic and structure to further improve page building efficiency. In addition, the above-mentioned method of building pages using visual drag-and-drop components is only one optional operation method for multiple objects to participate in page building. Embodiments of this application do not limit the operation method of objects participating in page building. For example, objects can also manually write components and edit component data.
[0059] In the optional implementation, Figure 2 This diagram illustrates an optional block diagram of a page building system provided in an embodiment of this application. The page building method provided in this embodiment can be based on... Figure 2 The system implementation shown is as follows: Figure 2 As shown, the page building system may include: a server 10 and multiple terminals 20; wherein, the server 10 is a network service device that provides the page building service of this application embodiment, and may include a single server device or a server group formed by multiple server devices; the terminal 10 is the terminal device used by the object using the page building service, such as a laptop, smartphone, PC (personal computer), etc. Generally speaking, one object uses one terminal. The object referred to here may be a user using the terminal, or artificial intelligence with decision-making capabilities installed in the terminal; the terminal and the server can interact through a browser or through specific application software (APP). This application embodiment does not limit the interaction channel between the terminal and the server.
[0060] For ease of explanation, when multiple objects use the page building service provided by server 10 to participate in building the same page, the following description uses the first object as an example of any object participating in page building to illustrate the page building method provided in this application embodiment. The page building method corresponding to any object participating in page building can be implemented similarly; in optional implementations, Figure 3This application illustrates an optional flow of the page building method provided in an embodiment. This flow can be implemented through interaction between a server and a terminal used by the first object, such as... Figure 3 As shown, the process may include:
[0061] Step S10: The first object sends an access request to the server for the operation interface, which is used to build the target page.
[0062] The target page is the page that needs to be built in this application embodiment, such as a target form. The target page can be formed by components. In some embodiments, components are used to implement the functions of the target page. This application embodiment can set up various different types of components for building the target page, such as input box components, date box components, etc.; wherein, one type of component is used to implement one function of the target page, different types of components are used to implement different functions of the target page, and the number of one type of component can be one or more.
[0063] In this embodiment, if the first object needs to join the construction of the target page, the first object can use its terminal to send an access request to the server for the operation interface, requesting the operation interface used by the first object to construct the target page. The operation interface can be a visual operation interface based on a visual drag-and-drop component method. For example, the operation interface can have a component selection area for selecting components by dragging and dropping, and an editing area for placing the selected components and editing the component data. Of course, the visual operation interface is only an optional form of the operation interface described in step S10. This embodiment does not exclude an operation interface that allows the object to manually edit the components and component data.
[0064] In an optional implementation, a target address corresponding to the operation interface can be set, so that the first object can use the terminal to access the target address to send an access request for the operation interface to the server. For example, the first object can enter the target address in the browser of the terminal, so that the terminal can send an access request to the server to access the operation interface based on the target address entered in the browser. In other possible implementations, if the server and the terminal are allowed to interact with specific application software, the terminal of the first object can also request access to the operation interface from the server by accessing a specific interface in the application software.
[0065] Step S11: The server determines the first editing page for the first object to perform editing operations based on the edited content of the target page.
[0066] Step S12: The server will send the operation interface, including the first editing page, back to the first object.
[0067] After the server receives the access request of the first object, it needs to determine the editing page on which the first object performs editing operations. For ease of explanation, the editing page on which the first object performs editing operations is referred to as the first editing page in this embodiment of the application. That is, the first object is built on the basis of the first editing page.
[0068] In the optional implementation, the page building service can provide a design state for page editing and a display state for displaying the saved page editing results. That is, the object performs page editing operations in the design state. The editing operations in the design state are not actually saved to the target page, but are saved to a copy of the target page (the copy page can be considered as a page copied from the target page). Only when the object saves the page editing results are the editing content in the copy page actually merged into the target page for saving. Therefore, when a single object performs editing operations on the target page, the editing content of the object for the target page is first merged into the copy page of the target page, and is not actually merged into the target page.
[0069] Based on this, when multiple objects participate in building the target page, these objects may participate in building the target page in different orders. If the first object is the first object to participate in building the target page, that is, no object participated in building the target page before the first object, then when the first object participates in editing the target page, the edited content of the target page is empty. The first object builds the target page based on the copy page corresponding to the initial target page. At this time, the server can determine the copy page corresponding to the initial target page as the first editing page for the first object to perform editing operations.
[0070] Based on the above, if the first object is not the first object to participate in building the target page, that is, other objects have already performed editing operations on the target page before the first object, then when the first object participates in editing the target page, the edited content of the target page is not empty. The first object further builds the target page based on the edited content of other objects. At this time, the server can merge the edited content of other objects on the target page to obtain the first editing page for which the first object performs editing operations. It should be noted that the other objects, different from the first object, perform editing operations on the target page in design mode with their respective editing pages, and do not actually perform editing operations on the target page. Therefore, in specific optional implementations, if there are other objects that have already edited content on the target page when the first object participates in editing the target page, the embodiments of this application can merge the editing pages corresponding to the other objects to obtain the first editing page for which the first object performs editing operations. That is, after merging the editing pages corresponding to the other objects, the merged result of the edited content of other objects on the target page can be obtained, and the first object can then perform editing operations on this basis. In some embodiments, the edited content of the target page may include components that have been set on the target page, edited component data, etc.
[0071] It should be noted that providing design and display states for the page building service is only one optional implementation method. In this embodiment, editing operations on each object can also be performed directly on the target page. For example, the editing operations on each object can be actually merged into the target page, and the content of the target page can be dynamically updated and adjusted according to the editing operations on each object. Correspondingly, if the first object is the first object to participate in building the target page, this embodiment can use the initial target page as the first editing page for editing operations on the first object. If the first object is not the first object to participate in building the target page, this embodiment can use the target page that has been modified by other objects as the first editing page for editing operations on the first object.
[0072] In an optional implementation, multiple objects can agree in advance on the page portions they will build, or set page building permissions for each object so that each object only builds a specific portion of the page (overlapping portions built by different objects are also allowed). This application does not limit this.
[0073] After the server determines the first editing page for the first object to edit, it can display the first editing page in the operation interface and send it back to the first object so that the first object can perform editing operations on the target page based on the operation interface and the first editing page. At the same time, the server also needs to retain the first editing page so that it can synchronize the subsequent editing operations performed by the first object based on the first editing page.
[0074] Step S13: The first object sends the component editing content of the first object on the operation interface to the server.
[0075] After the terminal of the first object receives the operation interface fed back by the server, the terminal of the first object can display the operation interface so that the first object can perform editing operations on the target page based on the first editing page displayed on the operation interface. In some embodiments, the component editing content of the first object on the operation interface may include the components selected by the first object to form the target page, and / or the component data edited by the first object. In an optional implementation, if the operation interface is a visual operation interface based on a visual drag-and-drop component method, then the embodiments of this application can display the first editing page in the editing area of the operation interface. At the same time, the operation interface may also have a component selection area for selecting components, etc., so that the first object's editing operation on the target page can generate corresponding component editing content. For example, the component editing content of the first object may include: the components selected from the component selection area, and / or the component data edited on the selected components, etc.
[0076] Correspondingly, the terminal of the first object can detect the component editing content of the first object on the operation interface and send the component editing content to the server; in an optional implementation, the component editing content generated by the first object in editing the target page can be sent to the server in real time or periodically, so that the server can obtain the component editing content of the first object in real time or periodically.
[0077] Step S14: The server determines whether the component editing content of the first object conflicts with the component editing content of the second object. If yes, proceed to step S15; otherwise, proceed to step S16.
[0078] Step S15: The server prompts that it refuses to edit the component content of the first object.
[0079] Step S16: The server updates the component editing content of the first object in the first editing page.
[0080] Since multiple objects participate in building the target page, after the server obtains the component editing content sent by the first object, it does not directly merge the component editing content of the first object into the first editing page of the first object. Instead, it needs to first determine whether the component editing content of the first object conflicts with the component editing content of other objects. For ease of explanation, in the embodiments of this application, any object that is different from the first object among the multiple objects participating in building the target page is referred to as the second object.
[0081] In some embodiments, the component editing content based on the first object may include the component selected by the first object to form the target page, and / or the component data edited by the first object. Embodiments of this application can detect whether there is a conflict between the component editing content of the first object and the component editing content of the second object that form the target page, and / or the edited component data, to determine whether there is a conflict between the component editing content of the first object and the component editing content of the second object. For example, if the component selected by the first object and the second object to form the target page, or the edited component data, conflict, then there is a conflict between the component editing content of the first object and the component editing content of the second object; if the component selected by the first object and the second object to form the target page does not conflict, and the edited component data does not conflict, then there is no conflict between the component editing content of the first object and the component editing content of the second object.
[0082] As an optional implementation, if the component editing content of the first object conflicts with the component editing content of the second object, it indicates that the first object and the second object may be simultaneously editing the same type of component or the component data of the same component, and the editing of the first object and the second object is conflicting. For example, the first object and the second object have selected different components of the same type, or they are simultaneously editing the component data of the same component. In this case, if the component editing content of the first object is merged into the first editing page, it will cause the first editing page to be merged with the content that conflicts with the editing of the second object, resulting in a deviation in the editing of the target page. Therefore, this embodiment of the application needs to reject the component editing content of the first object (i.e., refuse to merge the component editing content of the first object into the first editing page of the first object) and provide feedback to the first object.
[0083] As an optional implementation, if the component editing content of the first object does not conflict with the component editing content of the second object, it indicates that the component editing content of the first object is acceptable, and the embodiment of this application can update the component editing content of the first object on the first editing page. For example, the component editing content of the first object can be merged on the first editing page, specifically, the modifications made by the first object to the components and / or component data can be merged on the first editing page.
[0084] Correspondingly, from the perspective of the first object (specifically, the terminal of the first object), when the component editing content of the first object conflicts with the component editing content of the second object, the first object can receive a prompt to reject the component editing content of the first object (the specific form of the prompt is not limited in this embodiment of the application; for example, it can be prompted by a pop-up window, or the component editing content may be highlighted to prompt, etc.), while when the component editing content of the first object does not conflict with the component editing content of the second object, the first editing page in the operation interface of the first object can successfully merge the component editing content.
[0085] In an optional implementation, the server can use the OT (Operation Transform) algorithm to calculate whether the component editing content of the first object conflicts with the component editing content of the second object. Of course, other algorithms can be used to detect the conflict of component editing content, and this application embodiment does not limit it.
[0086] Step S17: The first object sends an editing completion command to the server.
[0087] Step S18: The server updates the target page based on the first edit page.
[0088] In an optional implementation, based on steps S13 to S16, the server can periodically or in real-time update the first editing page of the first object by editing the content of the components of the first object, thereby recording the edited content of the first object on the target page in the first editing page, realizing the editing operation based on the first object, and adjusting the content of the first editing page accordingly in real-time or periodically.
[0089] Based on the above, if the first object completes the editing operation on the target page, the first object can send an editing completion instruction to the server through the terminal. For example, the first object can click the save button or the exit button on the operation interface, thereby triggering the first object's terminal to send an editing completion instruction to the server. Then, after obtaining the first object's editing completion instruction, the server can update the target page based on the first object's first editing page to realize the actual saving of the editing content of the first object on the target page. For example, in the embodiments of this application, the modified component content in the first editing page can be merged into the target page to realize the update of the target page. It can be understood that the modified component content in the first editing page is the editing content of the first object on the target page in the design state. When the first object completes the editing (conditional by the server detecting the first object's editing completion instruction), the modified component content in the first editing page in the design state can be merged into the target page. Thus, after the first object completes the editing, when the first object or other objects browse the editing results of the target page, the server can display the target page that has merged the modified content in the first editing page in the display state to realize the display of the first object's editing results on the target page.
[0090] In the page building method provided in this application embodiment, the server can obtain an access request from a first object for an operation interface, wherein the operation interface is used to build a target page formed by components, and the first object is any one of multiple objects participating in building the target page. Therefore, the server can determine the first editing page for the first object to perform editing operations based on the edited content of the target page, and feed back the operation interface including the first editing page to the first object, so that the first object can perform editing operations on the target page on the operation interface. When the first object performs editing operations on the operation interface, the server can obtain the component editing content of the first object on the operation interface, and detect whether there is a conflict between the components selected by the first object and the second object to form the target page and / or the edited component data. If the detection result is no conflict, the server can update the component editing content of the first object in the first editing page to record the edited content of the first object on the target page; furthermore, after the first object completes editing, the server can obtain the first object's editing completion instruction, update the target page based on the first editing page, so as to actually save the first object's edited content on the target page, realizing the first object's work in building the target page.
[0091] The page building method provided in this application allows multiple objects to participate in building a target page. For the first object among these objects, the first object performs editing operations based on a first editing page, which is determined based on the already edited content of the target page. This ensures that the first object actually performs subsequent editing operations based on the already edited content of the target page, reducing the scope of the first object's editing operations and improving the editing efficiency of the target page. Simultaneously, the component editing content of the first object and the component editing content of the second object can only be merged into the first editing page if the selected components and / or the edited component data do not conflict. That is, conflicting component editing content from multiple objects is not accepted, thus ensuring collaborative work among multiple objects building the target page and the accuracy of the final target page. Furthermore, this application embodiment can update the target page based on the first object's first editing page when the first object completes editing, thereby saving the component editing content of the first object for the target page into the target page, realizing the first object's work in building the target page. As can be seen, the page building method provided in this application embodiment allows multiple objects to participate in building the target page, and ensures that the objects participating in the building later edit the content of the previous objects. At the same time, it ensures that the component editing content of each object does not conflict. It can coordinate the page building work of multiple objects when multiple objects participate in building the target page, and achieve efficient page building.
[0092] In a more specific alternative implementation, from the server's perspective, Figure 4 This application illustrates another optional process for the page building method provided in its embodiments, which can be implemented by a server, such as... Figure 4 As shown, the process may include:
[0093] Step S20: Obtain the access request from the first object for the operation interface.
[0094] Optionally, the description of step S20 can be found in the corresponding section above, and will not be repeated here.
[0095] Step S21: Determine whether the first object is the first object to participate in building the target page. If yes, proceed to step S22; otherwise, proceed to step S23.
[0096] Step S22: Determine the copy page corresponding to the initial target page as the first editing page for the first object to be edited.
[0097] If the first object is the first object to participate in building the target page, then the edited content of the target page is empty. In this embodiment, the initial target page can be copied to obtain a copy page corresponding to the initial target page, which is used as the first editing page. In the design state, the first object can perform editing operations based on the first editing page. In an optional implementation, the initial target page can be a blank page or a template page with multiple predefined components.
[0098] Step S23: Merge the editing pages of all objects that have participated in building the target page, and use the resulting page as the first editing page for the first object to perform editing operations.
[0099] If the first object is not the first object to participate in building the target page, then the edited content of the target page is not empty. That is, there are other objects that have participated in building the target page (the number of other objects is at least one), and each object performs editing operations through its corresponding editing page in the design state. Therefore, in this embodiment, the editing pages of each object that has participated in building the target page can be merged, and the resulting page can be used as the first editing page for the first object to perform editing operations, so that the first object can further perform editing operations based on the edited content of the target page by other objects.
[0100] For ease of understanding, in one example, combined with Figure 5As shown, assuming objects A, B, and C participate in building the target page sequentially, when object A participates in building the target page, object A is the first object to participate. In this embodiment, a copy of the initial target page can be used as the editing page A for object A to perform editing operations. When object B participates in building the target page, object B needs to further edit the content already edited by object A. Therefore, in this embodiment, a copy of editing page A can be used as the editing page B for object B to perform editing operations. It should be noted that since the object before object B is only object A, the execution involves editing the editing pages of each object that has participated in building the target page. During the merging process, the result obtained is consistent with the edit page A of object A. At this point, a copy of the page with the same content as edit page A can be used as edit page B for object B's editing operations. When object C participates in building the target page, object C needs to further edit the content already edited by objects A and B. Therefore, in this embodiment, edit pages A and B can be merged, and the resulting page can be used as edit page C for object C's editing operations. Similarly, the edit pages corresponding to objects participating in building the target page in different orders can be determined, ensuring that subsequent objects participating in the building process edit the content already edited by preceding objects. The edited content of an object can include selected components and / or component data edited for the selected components.
[0101] It should be noted that if multiple objects participate in building the target page simultaneously, such as multiple objects simultaneously sending access requests to the server for the operation interface, then these multiple objects can be regarded as the first objects to participate in building the target page, and thus the editing pages of each object can all be copies of the initial target page. Optionally, due to network latency and other issues, the time difference between multiple objects participating in building the target page can be within a predetermined time range. For example, if the time difference between multiple objects participating in building the target page is within 1 minute or less, it can be regarded as multiple objects participating in building the target page simultaneously. Of course, the embodiments of this application can also set a time difference at the second level, or even a more granular time difference, to measure whether multiple objects participate in building the target page simultaneously.
[0102] Step S24: Feed back the operation interface, including the first editing page, to the first object.
[0103] Step S25: Obtain the component editing content of the first object on the operation interface in real time.
[0104] Step S26: Determine whether the component editing content of the first object conflicts with the component editing content of the second object. If yes, proceed to step S27; otherwise, proceed to step S28.
[0105] Step S27: Prompt the user to refuse editing the component content of the first object.
[0106] Step S28: Update the component editing content of the first object in the first editing page.
[0107] Step S29: Obtain the editing completion instruction of the first object, and merge the modified component content of the first object in the first editing page into the target page.
[0108] In an optional implementation, taking an interface that includes a component selection area for selecting components and an editing area for placing and editing the selected components' data as an example, the first editing page of the first object can be located in the editing area. Thus, the first object can select components from the component selection area, place the selected components on the first editing page, and edit the component data on the first editing page to realize the editing operation of the first object on the interface, thereby obtaining the component editing content of the first object. Correspondingly, the component editing content corresponding to each editing operation of the first object can be transmitted to the server so that the server can determine whether the component editing content of the first object conflicts with the component editing content of the second object. If there is no conflict, the component editing content of the first object is merged in the first editing page.
[0109] It should be noted that, since the embodiments of this application perform conflict detection of component editing content in a scenario where multiple objects participate in building a page, the situation of component editing content conflict is fundamentally different from that of simple text content conflict. Specifically, text content conflict generally involves determining whether multiple users simultaneously write the same string (like a single sentence). That is, if multiple users simultaneously write the same string, it can be considered that there is a conflict in the writing of text content. However, in the embodiments of this application, since the object editing operation involves selecting components and / or editing component data, the conflict between the component editing content of the first object and the component editing content of the second object may be a conflict in selecting components, and / or a conflict in editing component data. Based on this, in some embodiments, the embodiments of this application can detect whether the components selected by the first object and the second object from the component selection area conflict, and / or detect whether the component data edited by the first object and the second object on the selected components conflict, based on the component editing content of the first object and the component editing content of the second object, so as to realize the detection of whether the component editing content of the first object conflicts with the component editing content of the second object.
[0110] As an optional implementation, possible scenarios in which the component editing content of the first object conflicts with the component editing content of the second object may include at least one of the following:
[0111] The first object and the second object select different components of the same type. In other words, the first object and the second object choose different components to perform the same function, resulting in a conflict in component selection. Taking form building as an example, if both the first object and the second object select radio button components, but they select different radio buttons, then there is a conflict in radio button selection between the first object and the second object. In this case, the component editing content of the first object will not be accepted.
[0112] If two objects simultaneously edit the component data of the same component, a conflict arises because it's impossible to determine which object's edited data was used. For example, in a form, if both objects edit the option data of a radio button, the first object's edits will not be accepted because it's impossible to determine which object's edited data was used.
[0113] Accordingly, in possible implementations, embodiments of this application can determine that the component editing content of the first object and the component editing content of the second object do not conflict when the first object and the second object do not conflict in selecting components and editing component data. For example, when the first object and the second object do not select different components of the same type and do not simultaneously edit the component data of the same component, it can be determined that the component editing content of the first object and the component editing content of the second object do not conflict.
[0114] As can be seen, in the scenario of building a page, the editing operation of an object involves selecting components and / or editing component data. Therefore, the situation where the editing content of the components of an object conflicts is fundamentally different from the situation where the text content conflicts. In addition, it should be noted that the example of the first object and the second object having conflicting editing content is only optional. It is understood that in the scenario of building a page, there may be other situations where the editing content of components conflicts.
[0115] Once all objects have completed their editing operations, meaning the server receives the editing completion instructions for all objects, the target page can be updated based on the editing pages corresponding to each object, thereby summarizing the editing results of each object to form a complete target page.
[0116] In a further optional implementation, to enable the first object to clearly understand each object currently participating in building the target page, this embodiment of the application may display the object identifiers (e.g., object avatars and / or object names) of each object currently participating in building the target page in the operation interface fed back to the first object, so that the first object can clearly perceive the specific number and object information of each object currently participating in building the target page through the object identifiers of each object displayed in the operation interface; correspondingly, the server may carry the object identifiers of each object currently participating in building the target page in the operation interface fed back to the first object, so that the first object's terminal can display the object identifiers of each object currently participating in building the target page when displaying the operation interface;
[0117] Of course, if a new object participates in building the target page after the first object, the operation interface can further add the object identifier of the new object. Correspondingly, the server can send the object identifier of the new object back to the first object so that the object identifier of the new object can be added to the operation interface of the first object. If an object exits the target page, the operation interface of the first object can further remove the object identifier of the exiting object from the display. Correspondingly, the server can send an instruction to the first object to remove the object identifier of the exiting object from the display so that the object identifier of the exiting object can be removed from the operation interface. It can be understood that when an object exits the target page, it means that the object has completed the editing operation. The content modified in the corresponding editing page of the object can be merged into the target page to realize the content update of the target page.
[0118] For example, assuming objects A, B, and C participate in building the target page sequentially, let's take the user interface of object B as an example, combined with... Figure 6 For example, the server can display the object identifiers of both object A and object B in the user interface of object B. When object C is newly added to the target page, the server can send the object identifier of object C to object B to add the object identifier of object C to the user interface of object B. If object A subsequently exits the target page, the server can send an instruction to object B to remove the object identifier of object A from the user interface of object B. It can be understood that the method of displaying object identifiers in the user interfaces of other objects can be implemented in the same way, which will not be elaborated here.
[0119] In a further optional implementation, to reduce the possibility of operational conflicts between the first object and other objects currently participating in building the target page, this embodiment of the application may further display the operation markers of each object performing editing operations on the operation interface of the first object, so that the first object can perceive the position of other objects performing editing operations on the operation interface, thereby reducing the possibility of editing operation conflicts between the first object and other objects; for ease of explanation, this embodiment of the application may refer to objects currently participating in building the target page that are different from the first object as second objects (at least one in number), so that the server can determine the position information of the operation markers of the second objects on the operation interface and feed back the position information of the operation markers of the second objects to the first object, so as to display the operation markers of the second objects on the operation interface of the first object.
[0120] In a possible specific implementation, the embodiments of this application may display the operation cursor of the second object on the operation interface of the first object (the operation cursor can be considered as an optional form of operation mark, and other forms of operation mark may also be used in the embodiments of this application), so as to indicate the operation position of the second object in the operation interface to the first object through the position of the operation cursor of the second object, thereby reducing the possibility of conflict caused by different objects performing editing operations on the same position of the operation interface.
[0121] For example, assuming objects A, B, and C are involved in building the target page, let's take the user interface of object B as an example, combined with... Figure 7 For example, in addition to adjusting the operation cursor of object B as the operation position of object B changes, the operation interface of object B can also dynamically display the operation cursors of objects A and C based on the position information of the operation cursors of objects A and C fed back by the server. This reduces the possibility of conflicts arising from object B editing components and / or component data in the same position as objects A and C.
[0122] The page building method provided in this application embodiment allows multiple objects to participate in building the same target page. By displaying the object identifiers of each object on the operation interface, each object can clearly see all the objects currently participating in page building. Furthermore, by displaying its own operation identifier and the operation identifiers of other objects on the operation interface, each object can perceive the editing operation positions of other objects on the operation interface in real time, which can avoid duplicate and conflicting editing operations and greatly improve page building efficiency.
[0123] In an optional implementation, the server can be deployed. Figure 8 The example service architecture is used to implement the page building method provided in the embodiments of this application, such as... Figure 8As shown, the services deployed on the server may include at least: access interface, page designer, online collaboration service, multi-object collaboration synchronization service, and aggregation service;
[0124] The access interface is used to receive access requests from various objects; the page designer provides online page editing functions for objects, mainly providing an operation interface for objects to build pages, and implementing operation functions such as component drag-and-drop selection and component data editing. In this embodiment, multiple objects enter the same page designer to perform page editing operations. However, based on the different order in which the objects are added, the page designer provides different operation interfaces for different objects to edit pages. The specific implementation method can be referred to the corresponding description above, and will not be elaborated here.
[0125] Online collaboration service, multi-object collaboration synchronization service, and aggregation service can be deployed in the server console. Among them, after an object enables the online collaboration function, the online collaboration service can establish a long link for each object entering the page designer to ensure that the object's terminal and the server can conduct real-time and long-term data communication. At the same time, the online collaboration service can calculate the edited content (such as modified content) of each object on its own editing page based on the editing operation of each object and synchronize it to the multi-object collaboration synchronization service.
[0126] The multi-object collaboration synchronization service can use technologies such as OT algorithms to determine whether the component editing content of each object conflicts with the component editing content of other objects. When there is no conflict, the component editing content of each object is synchronized and merged into the corresponding editing page of each object stored on the server, and displayed in the page designer so that each object can clearly see the editing operation it has made through its own editing page. When a conflict occurs, the object is prompted to refuse the component editing content. Furthermore, the multi-object collaboration synchronization service can notify each object of the object identifier of each object currently participating in the page building, as well as the operation mark of each object in the operation interface, so that each object can perceive the editing operation position of other objects in the operation interface.
[0127] The aggregation service is used to merge the modified content of an object's editing page into the target page when an editing operation is completed. When all objects have completed their editing operations, the final aggregated target page is formed, thus completing the visual construction of the target page.
[0128] certainly, Figure 8 The above is only one possible service deployment architecture for the server. Based on the page building method and ideas disclosed in the previous embodiments of this application, other service architectures that can implement the page building method can also be adopted in the embodiments of this application. The service architecture described above is only shown as an optional approach.
[0129] As an application example, taking users as the object and form building as an example, for ease of explanation, this example illustrates the page building process provided by this application embodiment from the perspective of user C, with users A, B, and C joining the form building process in sequence. The specific process is as follows:
[0130] When user C participates in building the form, since users A and B have already participated in building the form, the editing page C for user C's editing operations is obtained by merging the editing page A corresponding to user A and the editing page B corresponding to user B. For example, suppose user A has built a serial input box component on the blank form and is editing the component data, and user B has built a radio button component and is editing the component data. Then, the editing page C corresponding to user C can be the form after the serial input box group and radio button component have been built. Furthermore, when the server feeds back the operation interface including the editing page C to user C's terminal, the server can simultaneously display the user avatars and usernames of users A, B, and C on the operation interface, and display the operation cursors of users A and B in the editing area of the operation interface.
[0131] Suppose that user C builds a checkbox component on the editing page C, then user C can drag and drop checkbox components from the checkbox component library onto the editing page C;
[0132] User C selects a checkbox component and uploads the edited content to the server. If the server determines that User C's edited content does not conflict with that of Users A and B, it can merge User C's edited content on editing page C, meaning that editing page C accepts the checkbox component selected by User C. If the server determines that User C's edited content conflicts with that of Users A and B, it can prompt User C to refuse to merge User C's edited content on editing page C, meaning that editing page C refuses to accept User C's selected checkbox component. Assuming that the checkbox component selected by User C can be merged into editing page C, User C can further edit the component data of the selected checkbox component (such as editing the data of each option). User C's corresponding edited content is then uploaded to the server in real time so that the server can perform conflict detection. If there is no conflict, the server allows further merging of User C's edited content on editing page C. Thus, each edit of User C's content can be processed in the same way, gradually enabling User C to build a form on editing page C.
[0133] During the form building process, if user A completes the building of the serial input box component and edits the corresponding component data, and user B completes the building of the radio button component and edits the corresponding component data, then users A and B can exit the form building process sequentially. The server can then send a message to user C's terminal to cancel the display of user A and B's avatars and usernames, and to cancel the display of user A and B's operation cursors. Simultaneously, when user A exits the form building process, the server can merge the content modified by user A's editing page A into the form, and when user B exits the form building process, the server can merge the content modified by user B's editing page B into the form. Thus, when browsing the form in the display state, the form can present the edits made by user A and user B, that is, the form can present the built serial input box component and its corresponding component data, and the radio button component and its corresponding component data.
[0134] Assuming user C completes the construction of the checkbox component and edits the corresponding component data, user C can save and exit the form construction. The server can then merge the modifications made by user C on the editing page into the form. Thus, when the form is viewed in display mode, it can present the edits made by user C, i.e., the form further presents the constructed checkbox component and its corresponding data. Therefore, after users A, B, and C complete the form construction in sequence, this embodiment can summarize the construction content of each user (A, B, and C) for the form, achieving efficient form construction.
[0135] Obviously, forms are only one optional form of the page built in this application embodiment. This application embodiment can also build other display-type pages, and this application embodiment does not set any limitations in this regard. The page building method provided by this application embodiment allows multiple objects to participate in building the target page, and ensures that the objects participating in the building later edit the content already edited by the objects that participated earlier. At the same time, it ensures that the edited content of each object does not conflict. It can coordinate the page building work of multiple objects when multiple objects participate in building the target page, and achieve efficient page building.
[0136] The foregoing describes multiple embodiment schemes provided by the embodiments of this application. The optional methods described in each embodiment scheme can be combined and cross-referenced with each other without conflict, thereby extending to a variety of possible embodiment schemes. These can all be considered as the embodiment schemes disclosed and published by the embodiments of this application.
[0137] The following description, from the server's perspective, introduces the page building apparatus provided in the embodiments of this application. The page building apparatus described below can be considered as the functional modules required by the server to implement the page building method provided in the embodiments of this application. The content of the page building apparatus described below can be referred to in correspondence with the content of the page building method described above.
[0138] In the optional implementation, Figure 9 An optional block diagram of the page building apparatus provided in an embodiment of this application is shown, such as... Figure 9 As shown, the page building device may include:
[0139] The access request acquisition module 100 is used to acquire the access request of the first object to the operation interface, wherein the operation interface is used to build a target page formed by components, and the first object is any one of the multiple objects participating in building the target page.
[0140] The interface determination and feedback module 110 is used to determine the first editing page for the first object to perform editing operations based on the edited content of the target page, and to feed back the operation interface including the first editing page to the first object;
[0141] The content editing module 120 is used to acquire the component editing content of the first object on the operation interface;
[0142] The conflict detection module 130 is used to detect whether there is a conflict between the components selected by the first object and the components edited by the second object to form the target page and / or the component data edited by the second object, based on the component editing content of the first object and the component editing content of the second object; the second object is different from the first object;
[0143] The content update module 140 is used to update the component editing content of the first object in the first editing page if the detection result is no conflict;
[0144] The page update module 150 is used to obtain the editing completion instruction of the first object and update the target page according to the first editing page.
[0145] Optionally, the interface determination and feedback module 110 is used to determine, based on the edited content of the target page, the first editing page for the first object to be edited, including:
[0146] If the first object is the first object to participate in building the target page, determine the copy page corresponding to the initial target page and use it as the first editing page for the first object to perform editing operations.
[0147] If the first object is not the first object to participate in building the target page, the editing pages of all objects that have participated in building the target page are merged, and the resulting page is used as the first editing page for the first object to perform editing operations.
[0148] Optionally, the operation interface includes: a component selection area for selecting components, and an editing area for placing the selected components and editing the component data of the selected components, wherein the first editing page is located in the editing area;
[0149] Optionally, the edit content acquisition module 120 is used to acquire the component edit content of the first object on the operation interface, including:
[0150] Retrieves the first object from the component selection area, and / or the component data edited on the selected component.
[0151] Optionally, the conflict detection module 130 is used to detect whether there is a conflict between the components selected by the first object and the components edited by the second object to form the target page and / or the edited component data, based on the component editing content of the first object and the component editing content of the second object, including:
[0152] Based on the component editing content of the first object and the component editing content of the second object, detect whether the components selected by the first object and the second object from the component selection area conflict, and / or detect whether the component data edited by the first object and the second object on the selected components conflict.
[0153] Optionally, the conflict detection module 130 is used to detect whether the components selected by the first object and the second object from the component selection area conflict, including:
[0154] Detect whether the first object and the second object select different components of the same type from the component selection area; wherein, if the first object and the second object select different components of the same type from the component selection area, the components selected by the first object and the second object from the component selection area conflict.
[0155] The conflict detection module 130 is used to detect whether there is a conflict between the component data edited by the first object and the second object on the selected component, including:
[0156] Detect whether the first object and the second object are simultaneously editing the component data of the same component; wherein, if the first object and the second object are simultaneously editing the component data of the same component, then the component data edited by the first object and the second object on the selected component conflict.
[0157] Optionally, the content update module 140 is used to update the component editing content of the first object in the first editing page, including:
[0158] In the first editing page, merge the component editing content of the first object.
[0159] Optionally, the page update module 150, used to update the target page according to the first edited page, includes:
[0160] The modified component content in the first editing page is merged into the target page.
[0161] Optional, Figure 10 Another optional block diagram of the page building apparatus provided in the embodiments of this application is shown, in conjunction with Figure 9 and Figure 10 As shown, the device may further include:
[0162] The rejection prompt module 160 is used to prompt the first object to reject the component editing content of the first object if the detection result is conflicting.
[0163] Optional, Figure 11 This illustration shows another optional block diagram of the page building apparatus provided in the embodiments of this application, in conjunction with... Figure 9 and Figure 11 As shown, the device may further include:
[0164] The object identification feedback module 170 is used to carry the object identifications of each object currently participating in building the target page in the operation interface fed back to the first object; if there is a new object participating in building the target page after the first object, the object identification of the new object is fed back to the first object so that the object identification of the new object is added to the operation interface of the first object; if there is an exiting object that exits from building the target page, the instruction to cancel the display of the object identification of the exiting object is fed back to the first object so that the object identification of the exiting object is canceled from the operation interface of the first object.
[0165] The operation flag feedback module 180 is used to determine the position information of the operation flag of each second object on the operation interface, and to feed back the position information of the operation flag of each second object to the first object so that the operation flag of each second object can be displayed on the operation interface of the first object.
[0166] Optionally, either the object identification feedback module 170 or the operation flag feedback module 180 can be implemented.
[0167] The page building apparatus provided in this application embodiment allows multiple objects to participate in building a target page, and ensures that subsequent objects participate in building by editing the content already edited by the preceding objects. At the same time, it ensures that the component editing content of each object does not conflict. It can coordinate the page building work of multiple objects when multiple objects participate in building a target page, thereby achieving efficient page building.
[0168] This application embodiment also provides a server that can deploy a page building service, allowing multiple objects to access the service and participate in page building. Specifically, the server can load the page building device described above from a server perspective to implement the page building method executed from a server perspective provided in this application embodiment. In optional implementations, Figure 12An optional block diagram of the server is shown, such as... Figure 12 As shown, the server may include: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4;
[0169] In this embodiment of the application, the number of processor 1, communication interface 2, memory 3, and communication bus 4 is at least one, and processor 1, communication interface 2, and memory 3 communicate with each other through communication bus 4;
[0170] Optionally, communication interface 2 can be an interface for a communication module used for network communication;
[0171] Optionally, processor 1 may be a CPU (Central Processing Unit), GPU (Graphics Processing Unit), NPU (Embedded Neural Network Processor), FPGA (Field Programmable Gate Array), TPU (Tensor Processing Unit), AI chip, ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of this application.
[0172] Memory 3 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0173] The memory 3 stores one or more computer-executable instructions, and the processor 1 calls the one or more computer-executable instructions to execute the page building method from the server perspective provided in the embodiments of this application.
[0174] This application also provides a storage medium that can store one or more computer-executable instructions. When these one or more computer-executable instructions are executed, they implement the page building method from the server perspective provided in this application.
[0175] This application also provides a computer program that, when executed, implements the page building method from a server perspective provided in this application.
[0176] The page building apparatus provided in this application embodiment will be described below from the perspective of the terminal using the device. The page building apparatus described below can be considered as the functional modules that the terminal needs to set up to implement the page building method provided in this application embodiment. The content of the page building apparatus described below can be referred to in correspondence with the content of the page building method described above.
[0177] In the optional implementation, Figure 13 This illustrates another optional block diagram of the page building apparatus provided in an embodiment of this application, such as... Figure 13 As shown, the device may include:
[0178] The access request sending module 200 is used to send an access request for a first object to the operation interface to the server. The operation interface is used to build a target page formed by components. The first object is any one of the multiple objects that participate in building the target page.
[0179] The interface acquisition and display module 210 is used to acquire the operation interface including the first editing page fed back by the server and display the operation interface, wherein the first editing page is an editing page for editing the first object determined based on the edited content of the target page;
[0180] The content editing detection and sending module 220 is used to detect the component editing content of the first object on the operation interface and send the component editing content to the server. When the component editing content of the first object and the second object indicates that the components selected by the first object and the second object to form the target page and / or the edited component data do not conflict, the first editing page successfully updates the component editing content of the first object.
[0181] The editing completion module 230 is used to detect the editing completion operation of the first object and send the editing completion instruction of the first object to the server so that the server updates the target page according to the first editing page.
[0182] Optionally, if the first object is the first object to participate in building the target page, then the first edit page is a copy page corresponding to the initial target page; if the first object is not the first object to participate in building the target page, then the first edit page is the page formed by merging the edit pages of all objects that have participated in building the target page.
[0183] Optionally, the interface acquisition and display module 210, used to display the operation interface, includes:
[0184] A component selection area is displayed for selecting components, and an editing area is displayed for placing the selected components and editing the component data of the selected components, wherein the first editing page is located in the editing area;
[0185] Optionally, the edit content detection and sending module 220 is used to detect the edit content of the first object on the operation interface, including:
[0186] Detect the components selected by the first object from the component selection area, and / or the component data edited on the selected components.
[0187] Optional, Figure 14 This illustration shows another optional block diagram of the page building apparatus provided in the embodiments of this application, in conjunction with... Figure 13 and Figure 14 As shown, the device may further include:
[0188] The rejection prompt acquisition module 240 is used to acquire a prompt from the server rejecting the component editing content of the first object when the component editing content of the first object and the second object indicates that the components selected by the first object and the second object to form the target page and / or the edited component data conflict.
[0189] Optional, Figure 15 This illustration shows yet another optional block diagram of the page building apparatus provided in the embodiments of this application, in conjunction with... Figure 13 and Figure 15 As shown, the device may further include:
[0190] The object identifier display module 250 is used to display the object identifiers of each object currently participating in building the target page on the operation interface when the operation interface is displayed; when there is a new object participating in building the target page after the first object, the object identifier of the new object is obtained from the server and the object identifier of the new object is added to the operation interface; when there is an exit object that exits from building the target page, the instruction to cancel the display of the object identifier of the exit object is obtained from the server and the object identifier of the exit object is canceled from the operation interface.
[0191] The operation mark display module 260 is used to obtain the position information of the operation mark of each second object in the operation interface fed back by the server, and display the operation mark of each second object in the operation interface of the first object.
[0192] Optionally, either the object identification display module 250 or the operation mark display module 260 can be used.
[0193] This application embodiment also provides a terminal that can be equipped with the page building device described above to implement the page building method executed from the terminal perspective provided in this application embodiment. In an optional implementation, combined with Figure 12 As shown, the terminal may include at least one memory and at least one processor. The memory stores one or more computer-executable instructions, and the processor calls the one or more computer-executable instructions to execute the page building method from the terminal perspective provided in the embodiments of this application.
[0194] This application also provides a storage medium that can store one or more computer-executable instructions. When these one or more computer-executable instructions are executed, they implement the page building method from the terminal perspective provided in this application.
[0195] This application also provides a computer program that, when executed, implements the page building method from the terminal perspective provided in this application.
[0196] While the embodiments disclosed above are described in this application, this application is not limited thereto. Any person skilled in the art can make various modifications and alterations without departing from the spirit and scope of this application; therefore, the scope of protection of this application should be determined by the scope defined in the claims.
Claims
1. A method for building a webpage, wherein, include: Obtain an access request from a first object for the operation interface, wherein the operation interface is used to build a target page formed by components, and the first object is any one of a plurality of objects participating in building the target page; Based on the edited content of the target page, determine the first editing page on which the first object performs the editing operation, and feed back the operation interface including the first editing page to the first object; Obtain the component editing content of the first object on the operation interface; Based on the component editing content of the first object and the component editing content of the second object, detect whether there is a conflict between the components selected by the first object and the second object to form the target page and / or the edited component data; the second object is different from the first object; If the detection result is no conflict, update the component editing content of the first object on the first editing page; Obtain the editing completion instruction for the first object, and update the target page according to the first editing page.
2. The page building method according to claim 1, wherein, The first editing page for which the first object is to be edited, determined based on the edited content of the target page, includes: If the first object is the first object to participate in building the target page, determine the copy page corresponding to the initial target page and use it as the first editing page for the first object to perform editing operations. If the first object is not the first object to participate in building the target page, the editing pages of all objects that have participated in building the target page are merged, and the resulting page is used as the first editing page for the first object to perform editing operations.
3. The page building method according to claim 1 or 2, wherein, The user interface includes: a component selection area for selecting components, and an editing area for placing the selected components and editing the component data of the selected components, wherein the first editing page is located in the editing area; The step of obtaining the component editing content of the first object on the operation interface includes: Obtain the components selected by the first object from the component selection area, and / or the component data edited on the selected components.
4. The page building method according to claim 3, wherein, The step of detecting whether there is a conflict between the component data selected by the first object and the component data edited by the second object to form the target page, based on the component editing content of the first object and the component editing content of the second object, includes: Based on the component editing content of the first object and the component editing content of the second object, detect whether the components selected by the first object and the second object from the component selection area conflict, and / or detect whether the component data edited by the first object and the second object on the selected components conflict.
5. The page building method according to claim 4, wherein, The step of detecting whether the components selected by the first object and the second object from the component selection area conflict includes: Detect whether the first object and the second object select different components of the same type from the component selection area; wherein, if the first object and the second object select different components of the same type from the component selection area, the components selected by the first object and the second object from the component selection area conflict. The detection of whether the component data edited by the first object and the second object on the selected component conflict includes: Detect whether the first object and the second object are simultaneously editing the component data of the same component; wherein, if the first object and the second object are simultaneously editing the component data of the same component, then the component data edited by the first object and the second object on the selected component conflict.
6. The page building method according to claim 1, wherein, The step of updating the component editing content of the first object in the first editing page includes: Merge the component editing content of the first object in the first editing page; The step of updating the target page according to the first editing page includes: The modified component content in the first editing page is merged into the target page; The method further includes: If the detection result is conflicting, the first object is prompted to refuse the editing of the component content of the first object.
7. The page building method according to claim 1, wherein, Also includes: The operation interface fed back to the first object carries the object identifiers of each object currently involved in building the target page; If a new object participating in building the target page exists after the first object, the object identifier of the new object is fed back to the first object so that the object identifier of the new object can be added to the operation interface of the first object; if an exiting object exits from building the target page, an instruction is fed back to the first object to cancel the display of the object identifier of the exiting object so that the object identifier of the exiting object is canceled from the display of the object identifier of the first object. And / or, determine the location information of the operation mark of the second object on the operation interface, and feed back the location information of the operation mark of the second object to the first object so that the operation mark of the second object can be displayed on the operation interface of the first object.
8. A method for building a page, wherein, include: Send a first object to the server for accessing the operation interface, the operation interface being used to build a target page formed by components, the first object being any one of the multiple objects participating in building the target page; The operation interface of the first editing page is obtained from the server feedback and the operation interface is displayed. The first editing page is an editing page for editing the first object determined based on the edited content of the target page. The component editing content of the first object on the operation interface is detected, and the component editing content is sent to the server. When the component editing content of the first object and the second object indicates that the components selected by the first object and the second object to form the target page and / or the edited component data do not conflict, the first editing page successfully updates the component editing content of the first object. The system detects that the editing of the first object is complete and sends an editing completion instruction to the server, so that the server updates the target page based on the first edited page.
9. The page building method according to claim 8, wherein, The interface shown includes: A component selection area is displayed for selecting components, and an editing area is displayed for placing the selected components and editing the component data of the selected components, wherein the first editing page is located in the editing area; The detection of the component editing content of the first object on the operation interface includes: Detect the components selected by the first object from the component selection area, and / or the component data edited on the selected components.
10. The page building method according to claim 8, wherein, Also includes: When the component editing content of the first object and the second object conflict with the component and / or component data selected by the first object and the second object to form the target page, the server will provide a prompt rejecting the component editing content of the first object.
11. The page building method according to claim 8, wherein, Also includes: When displaying the operation interface, the object identifiers of each object currently participating in building the target page are displayed on the operation interface; When a new object participating in building the target page exists after the first object, the object identifier of the new object is obtained from the server, and the object identifier of the new object is added to the operation interface; when an exit object exits the target page, the instruction to cancel the display of the object identifier of the exit object is obtained from the server, and the object identifier of the exit object is canceled from the operation interface. And / or, obtain the location information of the operation flag of the second object in the operation interface corresponding to the server feedback, and display the operation flag of the second object in the operation interface of the first object.
12. A server, wherein, include: At least one memory and at least one processor, the memory storing one or more computer-executable instructions, the processor invoking the one or more computer-executable instructions to execute the page building method as described in any one of claims 1-7.
13. A terminal, wherein, include: At least one memory and at least one processor, the memory storing one or more computer-executable instructions, the processor invoking the one or more computer-executable instructions to execute the page building method as described in any one of claims 8-11.
14. A storage medium, wherein, The storage medium stores one or more computer-executable instructions, which, when executed, implement the page building method as described in any one of claims 1-7, or the page building method as described in any one of claims 8-11.
Citation Information
Patent Citations
Document processing method and device and page processing method and device
CN113254815A
Browser Page Display Method and Apparatus, Storage Medium and Terminal
US20200042568A1