Gantt chart rendering method and device, electronic equipment and storage medium

Through WebSocket network communication protocol and incremental rendering technology, combined with version control and conflict resolution strategies, Gantt Chart solves the problem of insufficient real-time performance and slow performance in a multi-player collaboration environment, real-time data rendering and multi-player collaboration capabilities are realized , improves the performance and user experience of task management.

CN119048660APending Publication Date: 2024-11-29ZHIYAN GONGSOFT (HANGZHOU) TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411147864.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The existing Gantt chart tools have problems such as insufficient real-time, slow performance and inconsistent data when handling real-time data updates and high-frequency data changes in a multi-person collaborative environment.

Method used

The WebSocket network communication protocol is used to collect task data in real time, and only the changed task data is rendered through incremental rendering technology on the client, combining version control and conflict resolution strategies to ensure data consistency and real-timeness.

Benefits of technology

Real-time data rendering and incremental rendering are realized, which improves the performance and user experience of task management, supports multi-person collaboration, reduces computing and rendering overhead, reduces hardware costs and energy consumption, and improves overall work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119048660A_ABST
    Figure CN119048660A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a Gantt chart rendering method and device, electronic equipment and a storage medium, and the method comprises the steps: collecting task data from a project management system or a database in real time, transmitting the task data to a client through a WebSocket network communication protocol, receiving and analyzing the task data by the client, and transmitting the task data to the client through the WebSocket network communication protocol. And updating local task data, performing incremental rendering on the updated task data by using an incremental rendering technology, and only rendering the changed task data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to data processing technology, and relates to but is not limited to a Gantt chart rendering method and device, electronic equipment, and storage medium. Background Art

[0002] Gantt chart is a widely used project management tool to display the schedule and progress of tasks. However, although existing Gantt chart tools (such as Microsoft Project, JIRA, and Trello) are rich in functions, they are obviously insufficient in handling real-time data updates and high-frequency data changes in a multi-person collaborative environment. Traditional Gantt chart rendering methods usually require the entire chart to be regenerated, and large-scale data needs to be frequently updated when facing multi-person collaboration. The lack of real-time rendering and incremental rendering can easily lead to problems such as insufficient real-time performance, slow performance, and inconsistent data. Summary of the invention

[0003] Aiming at the problems of insufficient real-time performance, slow performance and inconsistent data in the prior art Gantt chart, the present invention provides a Gantt chart rendering method and device, electronic device and storage medium.

[0004] To achieve the above purpose, the technical solution of the present invention is:

[0005] A Gantt chart rendering method, comprising:

[0006] Task data is collected from a project management system or database in real time, and the task data is transmitted to a client via the WebSocket network communication protocol. The client receives and parses the task data, updates local task data, and incrementally renders the updated task data using incremental rendering technology, rendering only the changed task data.

[0007] Furthermore, the client receives and parses the task data, updates local task data, and performs incremental rendering on the updated task data using an incremental rendering technology, including:

[0008] The data processing module of the client receives the task data transmitted via the WebSocket network communication protocol and parses the data. When multiple people operate simultaneously, the module detects and processes data conflicts. If data conflicts exist, the module resolves the conflicts, updates the local task data, and performs incremental rendering on the updated data.

[0009] Furthermore, the client receives and parses the task data, updates local task data, and performs incremental rendering on the updated task data using an incremental rendering technique, including the following steps:

[0010] Step 1: The data processing module of the client receives the task data transmitted via the WebSocket network communication protocol and parses the data;

[0011] Step 2: Update local task data and check whether there is any conflict. When multiple people modify the same task at the same time, if the version number is less than or equal to the current version number, it indicates a data conflict.

[0012] Step 3: The updated task data is synchronized to the rendering module through the state synchronization module, and the rendering module uses the incremental rendering technology to perform incremental rendering only on the updated task data.

[0013] Furthermore, the client receives and parses the task data, updates local task data, and performs incremental rendering on the updated task data using incremental rendering technology, including: the system detects changes in task data, the changed task data includes the status, time or version of the task data, and marks the changed task data; generates update instructions, the update instructions include the changed data and its attributes, and synchronously passes the update instructions to the rendering module for incremental rendering.

[0014] Furthermore, when multiple people operate at the same time, detecting and processing data conflicts, if any, resolving the data conflicts, updating local task data, and performing incremental rendering on the updated data include the following steps:

[0015] Step 1: Version control: Each task data has a version number, which is incremented each time it is modified;

[0016] Step 2: Conflict judgment: When receiving new task data, check whether the version number of the new task data is greater than the version number of the existing data. If the version number is less than or the same as the current version number, it indicates a data conflict;

[0017] Step 3: Conflict handling: If the version number is the latest, modify it directly; if the user modifies different fields, the modifications are automatically merged; if the user modifies the same field and the version number is the same, there is a conflict, and the user is prompted to resolve it manually;

[0018] Step 4: Resolve conflicts: After resolving conflicts, the user updates local task data and synchronizes data through the status synchronization module;

[0019] Step 5: Data synchronization: Use the state synchronization module to pass the updated task data to the rendering module, and the rendering module performs incremental rendering and only updates the changed task data part.

[0020] A Gantt chart rendering device, comprising:

[0021] A data collection module is used to collect task data from a project management system or database and monitor changes in the task data in real time;

[0022] A real-time communication module is used to receive the data pushed by the data acquisition module and transmit the data to the data processing module through the WebSocket network communication protocol;

[0023] Conflict resolution module, used to detect and resolve task data conflicts during multi-person collaboration;

[0024] A data processing module, which is connected to the real-time communication module and the conflict resolution module respectively, receives and analyzes the data transmitted by the real-time communication module, and receives the conflict data detected by the conflict resolution module, and processes and updates the data;

[0025] A state synchronization module, which is connected to the data processing module and is used to receive the data processed by the data processing module and synchronize the processed data to the rendering module;

[0026] A rendering module is connected to the state synchronization module and the conflict resolution module respectively, and is used to receive the update instruction of the state synchronization module, and render according to the data provided by the data processing module and the conflict resolution strategy provided by the conflict resolution module to update the Gantt chart.

[0027] Furthermore, the data collection module includes a task data collector and a change monitor. The task data collector is used to collect task data from a project management system or database; the change monitor periodically scans the task data source, detects data changes, and pushes the changed data to the real-time communication module.

[0028] Furthermore, the real-time communication module includes a WebSocket server and a WebSocket client, which are used to establish a WebSocket connection between the server and the client. When the data acquisition module detects data changes, the changed data is pushed to the client via WebSocket.

[0029] Furthermore, the data processing module includes a data parser and a data processor, wherein the data parser is used to parse the received WebSocket data packet; the data processor is used to extract the change information of the task data and update the local data storage according to the change information.

[0030] Furthermore, the state synchronization module includes a data synchronizer and a state manager, wherein the data synchronizer is used to synchronize the updated data of the data processing module to the rendering module of the Gantt chart; the state manager is used to monitor the data changes of the data processing module in real time, and when a data update is detected, trigger the rendering module to perform a corresponding update operation.

[0031] Furthermore, the conflict resolution module includes a conflict detector and a conflict resolution strategy library unit. The conflict detector is used to detect conflicts through operation records and version control when multiple people modify the same task at the same time; the conflict resolution strategy library unit is used to handle conflicts according to preset conflict resolution strategies.

[0032] Furthermore, the rendering module includes a rendering engine and an incremental renderer. The rendering engine is used to receive and process update instructions from the state synchronization module; the incremental renderer uses incremental rendering technology to update only the changed task data part.

[0033] Furthermore, the conflict resolution strategy library unit is used to perform conflict handling according to a preset conflict resolution strategy, wherein the conflict handling includes: if the version number is the latest, directly modify it; if the user modifies different fields, automatically merge the modifications; if the user modifies the same field and the version number is the same, there is a conflict, and prompt the user to resolve it manually.

[0034] An electronic device includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor implements the steps in the above-mentioned Gantt chart rendering method when executing the program.

[0035] A computer-readable storage medium stores a computer program, which implements the steps in the above-mentioned Gantt chart rendering method when executed by a processor.

[0036] The effects and benefits of the present invention are: compared with the traditional Gantt chart, the present invention supports the capabilities of real-time data rendering, incremental rendering and multi-person collaboration in terms of task management performance and user experience. Real-time data rendering enables the system to respond quickly to user operations, reduce data processing delays, improve task management efficiency, and ensure that user operations are more intuitive and convenient. Incremental rendering only updates the changed part of the data, reduces unnecessary data transmission and rendering operations, significantly reduces computing and rendering overhead, enables the system to run on lower-configuration hardware, and reduces hardware costs and energy consumption. The system supports simultaneous online collaboration of multiple people, ensuring that team members work together efficiently and improves overall work efficiency. The present invention significantly improves the performance and user experience of the Gantt chart in task management, and provides an efficient, stable and convenient solution for large-scale project management. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A schematic diagram of the structure of a Gantt chart rendering device provided in an embodiment of the present invention;

[0038] Figure 2 A schematic diagram of the relationship between modules of the Gantt chart rendering device provided by an embodiment of the present invention;

[0039] Figure 3 A data processing flow chart of the Gantt chart rendering process provided by an embodiment of the present invention;

[0040] Figure 4 A schematic diagram of multi-person collaborative communication of a Gantt chart rendering device provided in an embodiment of the present invention;

[0041] Figure 5 A hardware entity schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0042] The specific implementation of the present invention is described in detail below in conjunction with the technical solution (and drawings).

[0043] like Figure 1 As shown, the Gantt chart rendering device mainly includes the following six modules:

[0044] The data collection module is used to collect task data from the project management system or database and monitor data changes in real time. The data collection module includes a task data collector and a change monitor, wherein the task data collector is used to collect task data from the project management system or database; the change monitor is used to regularly scan the task data source, detect data changes, and push the changed data to the real-time communication module.

[0045] The real-time communication module is used to achieve real-time data transmission through the WebSocket network communication protocol. The real-time communication module includes a WebSocket server and a WebSocket client, which are used to establish a WebSocket connection between the server and the client. When the data acquisition module detects data changes, the changed data is pushed to the client through WebSocket.

[0046] The data processing module is used to receive and parse the data transmitted by the real-time communication module, and process and update the data. The data processing module includes a data parser and a data processor, wherein the data parser is used to parse the WebSocket data packet transmitted from the real-time communication module; the data processor is used to extract the task data change information and update the local data storage according to the change information.

[0047] The state synchronization module is used to synchronize the updated data of the data processing module to the rendering module of the Gantt chart. The state synchronization module includes a data synchronizer and a state manager, wherein the data synchronizer is used to synchronize the updated data of the data processing module to the rendering module of the Gantt chart; the state manager is used to monitor the changes of the data processing module in real time, and when the data update is detected, the rendering module is triggered to perform the corresponding update operation.

[0048] The conflict resolution module is used to handle task data conflicts when multiple people collaborate to ensure data consistency and correctness. The conflict resolution module includes a conflict detector and a conflict resolution strategy library unit, wherein the conflict detector is used to detect conflicts through operation records and version control when multiple people modify the same task at the same time; the conflict resolution strategy library unit is used to handle conflicts according to preset conflict resolution strategies, including automatic merging or prompting users to manually resolve conflicts.

[0049] A rendering module is used to respond to the update instruction of the state synchronization module and update the display content of the Gantt chart. The rendering module includes a rendering engine and an incremental renderer, wherein the rendering engine is used to receive and process the update instruction of the state synchronization module; in response to the update instruction, the incremental renderer uses incremental rendering technology to update only the changed task data part.

[0050] The functions and relationships of the above modules of the Gantt chart rendering device are as follows: Figure 2 As shown, data acquisition module: the data acquisition module is connected to the real-time communication module and pushes the collected data to the real-time communication module.

[0051] Real-time communication module: The real-time communication module receives the task data pushed by the data acquisition module, and transmits the task data to the data processing module of the client.

[0052] Data processing module: The data processing module is connected to the state synchronization module and is used to synchronize the processed task data to the state synchronization module.

[0053] State synchronization module: The state synchronization module is connected to the rendering module and transmits the update instruction of the data processing module to the rendering module.

[0054] Conflict resolution module: The conflict resolution module is connected to the data processing module and the rendering module, and is used to detect and resolve task data conflicts to ensure data consistency.

[0055] Rendering module: The rendering module receives the update instruction of the state synchronization module and performs rendering according to the task data provided by the data processing module.

[0056] The specific implementation process of Gantt chart rendering, such as Figure 3 shown.

[0057] Data collection and data transmission process:

[0058] 1: The data acquisition module obtains task data from the project management system or database. Assume that a project has multiple tasks, each task contains data such as task name, start time, end time, person in charge, version number, etc. For example, the following task data is read from the project management system or database:

[0059]

[0060] 2: Pushing the task data to the real-time communication module via the WebSocket network communication protocol, for example, transmitting the following task data via the WebSocket network communication protocol:

[0061]

[0062]

[0063] Data processing and synchronization process:

[0064] 1: The data processing module receives the task data transmitted via the WebSocket network communication protocol and parses the data.

[0065] 2: Update local task data and check whether there is a conflict. If multiple people modify the same task at the same time and the version number is less than or equal to the current version number, there is a conflict.

[0066] 3: Synchronize the updated task data to the rendering module through the state synchronization module.

[0067] Incremental data detection and real-time rendering process:

[0068] 1: The system detects changes in task data, such as updates to task status, time, or other attributes, and marks the changed data.

[0069] 2: Generate update instructions, including the changed data and its attributes, and pass the update instructions to the rendering module through the state synchronization module.

[0070] 3: After receiving the update instruction, the rendering module performs incremental rendering and only updates the changed task data.

[0071] Conflict detection and resolution process:

[0072] 1: Version control: Each task data has a version number, which increases every time it is modified.

[0073] 2: Conflict judgment: When receiving new task data, check whether the version number of the new task data is greater than the version number of the existing data. If the version number is less than or the same as the current one, it indicates a data conflict.

[0074] 3: Conflict handling: If the version number is the latest, apply the changes directly; if the user modifies different fields, automatically merge the changes; if the user modifies the same field and the version number is the same, there is a conflict, and the user is prompted to resolve it manually.

[0075] 4: Resolve conflicts: After resolving conflicts, the user updates local task data and synchronizes data through the status synchronization module.

[0076] 5: Data synchronization: Use the state synchronization module to pass the updated task data to the rendering module for incremental rendering, updating only the changed parts of the task data.

[0077] Figure 4 An embodiment of a multi-person collaborative communication of the Gantt chart rendering device of the present application includes: multiple users, a real-time communication service module, a data processing module, a conflict resolution module and a status synchronization module.

[0078] Take the following task data as an example:

[0079]

[0080] If two users modify the end time of the task named "Design" at the same time:

[0081] User A changes the end time of the task named "Design" from "2024-06-05" to "2024-06-07", and increases the version number from 1 to 2.

[0082] User B changes the end time of the task named "Design" from "2024-06-05" to "2024-06-08", and increases the version number from 1 to 2.

[0083] The processing steps for the above situation in this embodiment are as follows:

[0084] Step 1. The data collection module of the user terminal collects two different end times and pushes them to the real-time communication service module through the WebSocket network communication protocol.

[0085] Step 2. When user B's modification arrives, the data processing module receives the data, and the system detects that the version number is 2, which is the same as the local data version number, and a conflict occurs.

[0086] Step 3. The conflict resolution module selects the latest modification or merges according to the policy or prompts the user based on the version control policy.

[0087] Step 4. According to the conflict resolution strategy, update the local task data, increment the version number to 3, and select the latest end time "2024-06-08".

[0088] Step 5. The status synchronization module passes the updated task data to the rendering module of the user client. The rendering module uses incremental rendering technology to update only the end time part of the task name "design" to ensure that the Gantt chart displays the latest task data.

[0089] Compared with the traditional Gantt chart, the present invention supports the capabilities of real-time data rendering, incremental rendering and multi-person collaboration in terms of task management performance and user experience.

[0090] Real-time data rendering enables the system to respond quickly to user operations, reduce data processing delays, improve task management efficiency, and ensure that user operations are more intuitive and convenient. Incremental rendering only updates the changed data, reduces unnecessary data transmission and rendering operations, significantly reduces computing and rendering overhead, enables the system to run on lower-configuration hardware, and reduces hardware costs and energy consumption.

[0091] Through version control and conflict resolution strategies, the system effectively handles data conflicts during multi-person collaboration, ensures data consistency and integrity, and reduces errors and abnormalities caused by data conflicts. The system supports multi-person online collaboration at the same time, ensuring that team members work together efficiently and improving overall work efficiency.

[0092] The present invention significantly improves the performance and user experience of the Gantt chart in task management, and provides an efficient, stable and convenient solution for large-scale project management.

[0093] It should be noted that in the embodiment of the present application, if the above-mentioned Gantt chart rendering method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable an electronic device (which can be a personal computer, server, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a ROM (Read Only Memory), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0094] Correspondingly, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the program, the steps in the Gantt chart rendering method provided in the above embodiment are implemented.

[0095] Correspondingly, an embodiment of the present application provides a readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned Gantt chart rendering method are implemented.

[0096] Correspondingly, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the Gantt chart rendering method described in the embodiment of the present application.

[0097] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0098] It should be noted that Figure 5 A hardware entity diagram of an electronic device according to an embodiment of the present application is shown in FIG. Figure 5 As shown, the hardware entity of the electronic device 500 includes: a processor 501, a communication interface 502 and a memory 503, wherein the processor 501 generally controls the overall operation of the electronic device 500. The communication interface 502 enables the electronic device 500 to communicate with other electronic devices or servers or platforms through a network. The memory 503 is configured to store instructions and applications executable by the processor 501, and can also cache data to be processed or processed by the processor 501 and each module in the electronic device 500 (for example, image data, audio data, voice communication data and video communication data), which can be implemented by FLASH (flash memory) or RAM (Random Access Memory); wherein the various hardware entities in the electronic device 500 are coupled together by a bus 504. It can be understood that the bus 504 is used to realize the connection and communication between these hardware entities.

[0099] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0100] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0101] In addition, all functional units in the embodiments of the present application can be integrated into one processing module, or each unit can be a separate unit, or two or more units can be integrated into one unit; the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units. A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium, which, when executed, executes the steps of the above method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, disks or optical disks.

[0102] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain a new method embodiment. The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain a new product embodiment. The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain a new method embodiment or device embodiment.

[0103] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A Gantt chart rendering method, characterized in that: The method comprises: Task data is collected from a project management system or database in real time, and the task data is transmitted to a client via the WebSocket network communication protocol. The client receives and parses the task data, updates local task data, and incrementally renders the updated task data using incremental rendering technology, rendering only the changed task data.

2. The method according to claim 1, characterized in that The client receives and parses the task data, updates local task data, and performs incremental rendering on the updated task data using an incremental rendering technology, including: The data processing module of the client receives the task data transmitted via the WebSocket network communication protocol and parses the data. When multiple people operate simultaneously, the module detects and processes data conflicts. If data conflicts exist, the module resolves the conflicts, updates the local task data, and performs incremental rendering on the updated data.

3. The method according to claim 1, characterized in that The client receives and parses the task data, updates local task data, and performs incremental rendering on the updated task data using an incremental rendering technology, including the following steps: Step 1: The data processing module of the client receives the task data transmitted via the WebSocket network communication protocol and parses the data; Step 2: Update local task data and check whether there is any conflict. When multiple people modify the same task at the same time, if the version number is less than or equal to the current version number, it indicates a data conflict. Step 3: The updated task data is synchronized to the rendering module through the state synchronization module, and the rendering module uses the incremental rendering technology to perform incremental rendering only on the updated task data.

4. The method according to claim 1, characterized in that The client receives and parses the task data, updates local task data, and performs incremental rendering on the updated task data using incremental rendering technology, including: the system detects changes in task data, the changed task data includes the status, time or version of the task data, and marks the changed task data; generates update instructions, the update instructions include the changed data and its attributes, and synchronously passes the update instructions to the rendering module for incremental rendering.

5. The method according to claim 2, characterized in that: When multiple people operate at the same time, data conflicts are detected and processed. If data conflicts exist, local task data is updated after the data conflicts are resolved, and the updated data is incrementally rendered, including the following steps: Step 1: Version control: Each task data has a version number, which is incremented each time it is modified; Step 2: Conflict judgment: When receiving new task data, check whether the version number of the new task data is greater than the version number of the existing data. If the version number is less than or the same as the current version number, it indicates a data conflict; Step 3: Conflict handling: If the version number is the latest, modify it directly; if the user modifies different fields, the modifications are automatically merged; if the user modifies the same field and the version number is the same, there is a conflict, and the user is prompted to resolve it manually; Step 4: Resolve conflicts: After resolving conflicts, the user updates local task data and synchronizes data through the status synchronization module; Step 5: Data synchronization: Use the state synchronization module to pass the updated task data to the rendering module, and the rendering module performs incremental rendering and only updates the changed task data part.

6. A Gantt chart rendering device, characterized in that: The device comprises: A data collection module is used to collect task data from a project management system or database and monitor changes in the task data in real time; A real-time communication module is used to receive the data pushed by the data acquisition module and transmit the data to the data processing module through the WebSocket network communication protocol; Conflict resolution module, used to detect and resolve task data conflicts during multi-person collaboration; A data processing module, which is connected to the real-time communication module and the conflict resolution module respectively, receives and analyzes the data transmitted by the real-time communication module, and receives the conflict data detected by the conflict resolution module, and processes and updates the data; A state synchronization module, which is connected to the data processing module and is used to receive the data processed by the data processing module and synchronize the processed data to the rendering module; A rendering module is connected to the state synchronization module and the conflict resolution module respectively, and is used to receive the update instruction of the state synchronization module, and render according to the data provided by the data processing module and the conflict resolution strategy provided by the conflict resolution module to update the Gantt chart.

7. The device according to claim 6, characterized in that The data collection module includes a task data collector and a change monitor. The task data collector is used to collect task data from a project management system or a database; the change monitor regularly scans the task data source, detects data changes, and pushes the changed data to the real-time communication module.

8. The device according to claim 6, characterized in that The real-time communication module includes a WebSocket server and a WebSocket client, which are used to establish a WebSocket connection between the server and the client. When the data acquisition module detects data changes, the changed data is pushed to the client via WebSocket.

9. The device according to claim 6, characterized in that The data processing module includes a data parser and a data processor. The data parser is used to parse the received WebSocket data packet; the data processor is used to extract the change information of the task data and update the local data storage according to the change information.

10. The device according to claim 6, characterized in that The state synchronization module includes a data synchronizer and a state manager. The data synchronizer is used to synchronize the updated data of the data processing module to the rendering module of the Gantt chart; the state manager is used to monitor the data changes of the data processing module in real time, and when data updates are detected, trigger the rendering module to perform corresponding update operations.

11. The device according to claim 6, characterized in that The conflict resolution module includes a conflict detector and a conflict resolution strategy library unit. The conflict detector is used to detect conflicts through operation records and version control when multiple people modify the same task at the same time; the conflict resolution strategy library unit is used to handle conflicts according to preset conflict resolution strategies.

12. The device according to claim 6, characterized in that The rendering module includes a rendering engine and an incremental renderer. The rendering engine is used to receive and process update instructions from the state synchronization module; the incremental renderer uses incremental rendering technology to update only the changed task data part.

13. The device according to claim 11, characterized in that The conflict resolution strategy library unit is used to perform conflict processing according to a preset conflict resolution strategy, wherein the conflict processing includes: if the version number is the latest, directly modify it; if the user modifies different fields, automatically merge the modifications; if the user modifies the same field and the version number is the same, there is a conflict, and prompt the user to manually resolve it.

14. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor implements the steps of the method according to any one of claims 1 to 5 when executing the program.

15. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 5.

Citation Information

Cited By

  • Dragging type visual chart component system

    CN119883231A