CN-121996115-A - Page ordering state information management method, device, equipment and storage medium
Abstract
The embodiment of the application discloses a page ordering state information management method, device, equipment and storage medium, which comprises the steps of obtaining historical ordering state information of a local storage container, reading current ordering state information of a page under the condition that a preset key event is monitored to trigger, dynamically correcting the current ordering state information based on the preset target ordering state information to obtain ordering state information to be stored, storing the ordering state information to be stored into the local storage container, recording a current storage timestamp, updating the ordering state information to be stored based on the current storage timestamp and the historical ordering state information to obtain the target ordering state information, and sending the target ordering state information to a server, wherein the server stores the target ordering state information into a rear-end database, so that the diversity of a storage architecture is realized, the data transmission delay is effectively reduced, the reliability and consistency of the page ordering state information are improved, and the high efficiency of system operation is ensured.
Inventors
- ZHANG XIAZHI
- MAO WEIMIN
- LEI PENGFEI
- ZHANG LI
Assignees
- 广州云雷智能科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260104
Claims (10)
- 1. A page rank status information management method, characterized by comprising: Acquiring historical ordering state information of a local storage container, reading current ordering state information of a page under the condition that a preset key event trigger is monitored, and dynamically correcting the current ordering state information based on preset target ordering state information to obtain ordering state information to be stored; Storing the sorting state information to be stored into the local storage container, recording a current storage time stamp, and updating the sorting state information to be stored based on the current storage time stamp and the historical sorting state information to obtain target sorting state information; and sending the target ordering state information to a server so that the server stores the target ordering state information to a back-end database.
- 2. The page rank state information management method according to claim 1, wherein the updating the rank state information to be stored based on the current storage timestamp and the historical rank state information comprises: extracting a current element identifier in the ordering state information to be stored, and determining redundant data in the ordering state information according to the current element identifier and the historical ordering state information; calculating a time difference value of a current storage time stamp and a historical storage time stamp corresponding to the redundant data, comparing the time difference value with a preset effective duration, and determining target redundant data and non-target redundant data according to a comparison result; And eliminating the target redundant data, and updating the storage time stamp of the non-target redundant data.
- 3. The page rank state information management method according to claim 2, wherein said determining redundant data in the stored rank state information from the current element identification and the historical rank state information comprises: matching the current element identifier with a history element identifier in the history sequencing state information, and determining an overlapping element according to a matching result; and determining current position information corresponding to the overlapped element, matching the current position information with historical position information corresponding to the overlapped element in the historical ordering state information, and determining redundant data according to a matching result.
- 4. The method for managing page rank state information according to claim 1, wherein the dynamically modifying the current rank state information based on preset target rank state information comprises: Counting the number of components in the current ordering state information, comparing the number of components with the number of target components in preset target state information, and judging whether the components are missing or not according to a comparison result; under the condition that a component is missing, supplementing state information to the current ordering state information based on the preset target ordering state information; And under the condition that a component is not missing, calculating the sequence similarity of the current ordering state information and the preset target state information, and under the condition that the sequence similarity is larger than or equal to a preset similarity threshold value, carrying out data fusion on the current ordering state information and the preset target state information.
- 5. The method for managing page rank status information according to claim 4, wherein the data fusion of the current rank status information and the preset target status information comprises: determining a difference component and a newly added component in the current ordering state information, and drag data corresponding to the difference component; Judging whether the difference component is an abnormal false touch component or not according to the dragging data, and replacing the current state information of the difference component with target state information under the condition that the difference component is the abnormal false touch component.
- 6. The page rank state information management method according to claim 1, further comprising, after said storing the rank state information to be stored to the local storage container: and cleaning invalid data of the local storage container according to a preset effective duration and a storage time stamp of ordering state information in the local storage container.
- 7. The page rank status information management method according to any one of claims 1 to 6, further comprising, after the reading of the current rank status information of the page: Formatting the current ordering state information to obtain standardized state information; Correspondingly, the dynamic correction processing for the current ordering state information based on the preset target ordering state information comprises the following steps: and carrying out dynamic correction processing on the standardized state information based on preset target ordering state information.
- 8. A page rank status information management apparatus, characterized by comprising: The information acquisition module is used for acquiring the historical ordering state information of the local storage container; the to-be-stored ordering state information determining module is used for reading current ordering state information of the page under the condition that a preset key event trigger is monitored, and dynamically correcting the current ordering state information based on preset target ordering state information to obtain to-be-stored ordering state information; The target ordering state information determining module is used for storing the ordering state information to be stored into the local storage container, recording a current storage time stamp, and updating the ordering state information to be stored based on the current storage time stamp and the historical ordering state information to obtain target ordering state information; And the sending module is used for sending the target ordering state information to a server so that the server stores the target ordering state information to a back-end database.
- 9. An electronic device comprising one or more processors and storage means for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the page rank status information management method of any of claims 1-7.
- 10. A storage medium storing computer executable instructions which, when executed by a computer processor, are adapted to carry out the page rank status information management method according to any one of claims 1 to 7.
Description
Page ordering state information management method, device, equipment and storage medium Technical Field The embodiment of the application relates to the technical field of computers, in particular to a page ordering state information management method, device and equipment and a storage medium. Background When single-page application rapidly develops, the demands of users on personalized layout are increasing, and drag sequencing is used as a core interaction mode for realizing custom layout, and is widely applied to scenes such as a data large screen, a custom workbench, a personalized instrument panel and the like of an intelligent device management system. The user can construct an interface layout conforming to the use habit of the user by adjusting the arrangement sequence of the components through the dragging operation, and the operation efficiency and the use experience are obviously improved. In the related art, the user-defined page ordering state is generally valid only in the current session, the ordering state is lost once the page refreshing, browser restarting or user re-logging occur, the user needs to repeatedly execute drag adjustment operation, the storage architecture is single, part of the technical schemes only depend on a server to store the ordering state, and although multi-device storage can be realized, the page ordering state information is asynchronous, the data transmission delay is high, and the reliability and consistency of the page ordering state information cannot be ensured. Disclosure of Invention The embodiment of the application provides a page ordering state information management method, device, equipment and storage medium, which solve the problems of asynchronous page ordering state information, high data transmission delay and the like caused by single storage architecture or multi-equipment storage in the page ordering state storage process. The method has the advantages that the sorting state information to be stored is stored in the local storage container, the data in the local storage container is updated, the updated data is sent to the server, the diversity of the storage architecture is realized, the local storage container and the server side data are synchronously optimized, the data transmission delay is effectively reduced, the reliability and the consistency of the page sorting state information are improved, the waste of storage resources is reduced through updating the local storage container, and the high efficiency of system operation is ensured. In a first aspect, an embodiment of the present application provides a method for managing page rank status information, including: Acquiring historical ordering state information of a local storage container, reading current ordering state information of a page under the condition that a preset key event trigger is monitored, and dynamically correcting the current ordering state information based on preset target ordering state information to obtain ordering state information to be stored; Storing the sorting state information to be stored into the local storage container, recording a current storage time stamp, and updating the sorting state information to be stored based on the current storage time stamp and the historical sorting state information to obtain target sorting state information; and sending the target ordering state information to a server so that the server stores the target ordering state information to a back-end database. Optionally, the updating the to-be-stored ordering state information based on the current storage timestamp and the historical ordering state information includes: extracting a current element identifier in the ordering state information to be stored, and determining redundant data in the ordering state information according to the current element identifier and the historical ordering state information; calculating a time difference value of a current storage time stamp and a historical storage time stamp corresponding to the redundant data, comparing the time difference value with a preset effective duration, and determining target redundant data and non-target redundant data according to a comparison result; And eliminating the target redundant data, and updating the storage time stamp of the non-target redundant data. Optionally, the determining redundant data in the storage ordering state information according to the current element identifier and the historical ordering state information includes: matching the current element identifier with a history element identifier in the history sequencing state information, and determining an overlapping element according to a matching result; and determining current position information corresponding to the overlapped element, matching the current position information with historical position information corresponding to the overlapped element in the historical ordering state information, and determining redundant data a