Page sorting state information management method and device, equipment and storage medium
By updating and sending sorting status information from the local storage container to the server, the problem of page sorting status being lost after refresh or restart is solved, enabling diverse storage architectures and efficient data transmission, and improving the reliability and consistency of page sorting status.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- LINKEDGO TECH CO LTD
- Filing Date
- 2026-01-04
- Publication Date
- 2026-05-08
AI Technical Summary
In existing technologies, page sorting status is easily lost after refreshing, restarting, or logging in again. The single storage architecture leads to information asynchrony and high data transmission latency, making it impossible to guarantee the reliability and consistency of page sorting status.
By storing and updating sorting status information in a local storage container and then sending it to the server, synchronization optimization between local storage and the server is achieved, reducing storage resource waste and ensuring efficient and consistent data transmission.
It effectively reduces data transmission latency, improves the reliability and consistency of page sorting status information, reduces the waste of storage resources, and ensures the high efficiency of system operation.
Smart Images

Figure CN121996115A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device and storage medium for managing page sorting status information. Background Technology
[0002] With the rapid development of single-page applications, users' demand for personalized layouts is increasing. Drag-and-drop sorting, as a core interaction method for achieving custom layouts, has been widely used in scenarios such as data dashboards, custom workbenches, and personalized dashboards in smart device management systems. By adjusting the order of components through drag-and-drop operations, users can create interface layouts that suit their own usage habits, significantly improving operational efficiency and user experience.
[0003] In related technologies, user-defined page sorting states are usually only valid in the current session. Once the page is refreshed, the browser is restarted, or the user logs in again, the sorting state will be lost. Users need to repeatedly perform drag-and-drop adjustments. The storage architecture is singular, and some technical solutions rely solely on the server to store the sorting state. Although this can achieve multi-device storage, it suffers from asynchronous page sorting state information, high data transmission latency, and the inability to guarantee the reliability and consistency of page sorting state information. Summary of the Invention
[0004] This application provides a method, apparatus, device, and storage medium for managing page sorting status information. It solves the problems of asynchronous page sorting status information and high data transmission latency caused by a single storage architecture or multiple devices storing page sorting status information during storage. By storing the sorting status information to be stored in a local storage container, updating the data in the local storage, and sending the updated data to the server, it achieves diverse storage architectures and optimizes the synchronization between the local storage container and the server-side data. This effectively reduces data transmission latency, improves the reliability and consistency of page sorting status information, and reduces storage resource waste by updating the local storage container, ensuring high system efficiency.
[0005] In a first aspect, embodiments of this application provide a method for managing page sorting status information, including: The system obtains historical sorting status information of the local storage container. When a preset key event is triggered, it reads the current sorting status information of the page and dynamically corrects the current sorting status information based on the preset target sorting status information to obtain the sorting status information to be stored. The sorting status information to be stored is stored in the local storage container, and the current storage timestamp is recorded. The sorting status information to be stored is updated based on the current storage timestamp and the historical sorting status information to obtain the target sorting status information. The target sorting status information is sent to the server so that the server stores the target sorting status information in the backend database.
[0006] Optionally, updating the sorting status information to be stored based on the current storage timestamp and the historical sorting status information includes: Extract the current element identifier from the sorting status information to be stored, and determine the redundant data in the sorting status information based on the current element identifier and the historical sorting status information. Calculate the time difference between the current storage timestamp and the historical storage timestamp corresponding to the redundant data, compare the time difference with a preset valid duration, and determine the target redundant data and non-target redundant data based on the comparison result; The target redundant data is removed, and the storage timestamp of the non-target redundant data is updated.
[0007] Optionally, determining redundant data in the stored sorting status information based on the current element identifier and the historical sorting status information includes: The current element identifier is matched with the historical element identifier in the historical sorting status information, and the overlapping element is determined based on the matching result. Determine the current position information corresponding to the overlapping element, match the current position information with the historical position information corresponding to the overlapping element in the historical sorting status information, and determine redundant data based on the matching result.
[0008] Optionally, the step of dynamically correcting the current sorting state information based on preset target sorting state information includes: The number of components in the current sorting status information is counted, and the number of components is compared with the number of target components in the preset target status information. Based on the comparison result, it is determined whether a component is missing. In the event of a missing component, the current sorting status information is supplemented based on the preset target sorting status information. If no components are missing, calculate the sequence similarity between the current sorting state information and the preset target state information. If the sequence similarity is greater than or equal to a preset similarity threshold, perform data fusion on the current sorting state information and the preset target state information.
[0009] Optionally, the data fusion of the current sorting state information and the preset target state information includes: Determine the differing components and newly added components in the current sorting status information, as well as the dragged data corresponding to the differing components; Based on the drag data, determine whether the difference component is an abnormal accidental touch component. If the difference component is an abnormal accidental touch component, replace the current state information of the difference component with the target state information.
[0010] Optionally, after storing the sorting status information to be stored in the local storage container, the method further includes: Invalid data is cleaned up in the local storage container based on the preset valid duration and the storage timestamp of the sorting status information in the local storage container.
[0011] Optionally, after reading the current sorting status information of the page, the method further includes: The current sorting status information is formatted to obtain standardized status information; Accordingly, the dynamic correction processing of the current sorting state information based on the preset target sorting state information includes: The standardized state information is dynamically corrected based on the preset target sorting state information.
[0012] In a second aspect, embodiments of this application provide a page sorting status information management device, comprising: The information acquisition module is used to acquire historical sorting status information of local storage containers; The module for determining sorting status information to be stored is used to read the current sorting status information of the page when a preset key event is detected, and to dynamically correct the current sorting status information based on the preset target sorting status information to obtain the sorting status information to be stored. The target sorting status information determination module is used to store the sorting status information to be stored in the local storage container, record the current storage timestamp, and update the sorting status information to be stored based on the current storage timestamp and the historical sorting status information to obtain the target sorting status information. The sending module is used to send the target sorting status information to the server, so that the server stores the target sorting status information in the backend database.
[0013] In a third aspect, embodiments of this application provide an electronic device, the device comprising: one or more processors; and a storage device configured to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the page sorting status information management method described in the first aspect.
[0014] In a fourth aspect, embodiments of this application provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the page sorting status information management method as described in the first aspect.
[0015] In this embodiment, by acquiring historical sorting status information from a local storage container, and upon detecting the triggering of a preset key event, the current sorting status information of the page is read. Based on preset target sorting status information, the current sorting status information is dynamically corrected to obtain sorting status information to be stored. This sorting status information is then stored in the local storage container, and a current storage timestamp is recorded. Based on this current storage timestamp and historical sorting status information, the sorting status information to be stored is updated to obtain target sorting status information. This target sorting status information is then sent to a server, which stores it in a backend database. This solution achieves diverse storage architectures and optimized synchronization between the local storage container and server-side data by storing the sorting status information to be stored in a local storage container, updating the data in the local storage, and sending the updated data to the server. This effectively reduces data transmission latency, improves the reliability and consistency of page sorting status information, and reduces storage resource waste by updating the local storage container, ensuring high system efficiency. Attached Figure Description
[0016] Figure 1 This is a flowchart of a page sorting status information management method provided in an embodiment of this application; Figure 2 This is a flowchart of a method for updating sorted status information to be stored, provided in an embodiment of this application; Figure 3 This is a flowchart of a method for dynamically correcting current sorting status information provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of a page sorting status information management device provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of a page sorting status information management device provided in an embodiment of this application. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0018] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0019] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0020] The page sorting status information management method, apparatus, device, and medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0021] The page sorting status information management method provided in this application is used in screen data rendering scenarios, such as data screen rendering, custom workbench rendering, and personalized dashboard configuration interface rendering in intelligent device management systems. Based on the above application scenarios, it can be understood that the executing entity for each step can be an electronic device. This electronic device refers to any device with data computing, processing, and storage capabilities, such as mobile phones, PCs (Personal Computers), tablets, and other terminal devices, or servers, etc. This application does not limit the scope of the method.
[0022] Figure 1 This is a flowchart of a page sorting status information management method provided in an embodiment of this application, such as... Figure 1 As shown, it includes: Step S101: Obtain the historical sorting status information of the local storage container. When a preset key event is detected, read the current sorting status information of the page. Based on the preset target sorting status information, dynamically correct the current sorting status information to obtain the sorting status information to be stored.
[0023] The local storage container refers to the carrier used by the browser or client for temporary or persistent data storage. Historical sorting state information refers to page sorting data stored in the local storage container, which is a record of the historical state saved after previous user operations. Preset key events refer to predefined specific events that trigger sorting state saving or processing logic, such as page unloading events, data refresh times, and device switching events. The current page sorting state information refers to the actual component arrangement data currently displayed on the page when the preset key event is detected. This can include component identifiers, positions, and orders, such as component IDs, sorting indices, and layout parameters. It can also include drag data generated during user dragging, such as drag direction and distance. Preset target sorting state information refers to pre-set sorting state baseline data, including the necessary components required in the current scenario and specifying the minimum number of components the page must contain. Dynamic correction processing refers to the operation of adaptively adjusting the current sorting state information. Storable sorting state information refers to the final storable data obtained after the current sorting state information has undergone dynamic correction processing.
[0024] In one embodiment, since the local storage container may periodically update the stored data, the historical sorting status information of the local storage container is periodically obtained according to the update cycle of the local storage container, and the key event listening function is enabled. If a preset key event is triggered, the custom rendering page is obtained, the component arrangement data currently actually presented on the page is read, the minimum number of components contained in the preset sorting status information is compared with the number of components in the current sorting status information, and it is determined whether there are any missing necessary components on the current page. If so, the missing components are added to the current page and set in a position that does not conflict with other set components, thereby obtaining complete sorting status information to be stored.
[0025] Step S102: Store the sorting status information to be stored in the local storage container and record the current storage timestamp. Update the sorting status information to be stored based on the current storage timestamp and the historical sorting status information to obtain the target sorting status information.
[0026] The current storage timestamp refers to the precise time stamp recorded by the system when the sorting status information to be stored is stored in the local storage container. The target sorting status information refers to the complete and valid sorting status data generated after the sorting status information to be stored has been stored locally and updated.
[0027] In one embodiment, after obtaining the sorting status information to be stored, the sorting status information is stored in a local storage container, and the precise timestamp of the storage is recorded. Based on the current storage timestamp and the historical storage timestamp corresponding to the historical status information, it is determined whether the historical sorting status information has exceeded its validity period. If it has not exceeded the validity period, the historical sorting status information is compared with the sorting status information to be stored to determine the incremental information, and the incremental information in the sorting status information to be stored is updated to obtain the updated target sorting status information. If it has exceeded the validity period, the sorting status information to be stored is directly determined as the target sorting status information.
[0028] Step S103: Send the target sorting status information to the server so that the server stores the target sorting status information in the backend database.
[0029] In this context, "server" can refer to a remote computing cluster capable of receiving, processing, storing, and synchronizing data. "Backend database" can refer to the structured data storage system used by the mouse catcher on the server. In one embodiment, while storing the target sorting status information in a local storage container, the target sorting status information is also sent to the server. Upon receiving the target sorting status information, the server parses and verifies it. If the verification passes, the target sorting status information is stored in the backend database, and the database's timestamp record is updated. If the verification fails, an exception handling mechanism is triggered, an error log is generated, and an error log is returned to notify relevant maintenance personnel to investigate the problem.
[0030] In this embodiment, by acquiring historical sorting status information from a local storage container, and upon detecting the triggering of a preset key event, the current sorting status information of the page is read. Based on preset target sorting status information, the current sorting status information is dynamically corrected to obtain sorting status information to be stored. This sorting status information is then stored in the local storage container, and a current storage timestamp is recorded. Based on this current storage timestamp and historical sorting status information, the sorting status information to be stored is updated to obtain target sorting status information. This target sorting status information is then sent to a server, which stores it in a backend database. This solution achieves diverse storage architectures and optimized synchronization between the local storage container and server-side data by storing the sorting status information to be stored in a local storage container, updating the data in the local storage, and sending the updated data to the server. This effectively reduces data transmission latency, improves the reliability and consistency of page sorting status information, and reduces storage resource waste by updating the local storage container, ensuring high system efficiency.
[0031] Optionally, after storing the sorting status information to be stored in the local storage container, the method further includes: cleaning up invalid data in the local storage container based on a preset valid duration and the storage timestamp of the sorting status information in the local storage container.
[0032] Invalid data refers to sorting status information that no longer needs to be retained due to exceeding a preset validity period, conflicting with the latest status, or losing its usability. In one embodiment, based on the comparison between the preset validity period and the storage timestamp, redundant historical data that has exceeded the validity period or old version data that has been updated and overwritten is filtered out. All sorting status information in the local storage container is scanned, the storage timestamp of each piece of data is extracted, and the time difference between it and the current time is calculated. If the time difference exceeds the preset validity period, the data is marked as invalid data, and a deletion operation is performed on the invalid data to release storage space.
[0033] In this embodiment of the application, invalid data in the local storage container is cleaned up according to the preset effective duration and the storage timestamp of the sorting status information in the local storage container. This can effectively reduce the occupation of storage resources by invalid data and improve the utilization efficiency of the local storage container.
[0034] Optionally, after reading the current sorting status information of the page, the method further includes: formatting the current sorting status information to obtain standardized status information; correspondingly, dynamically correcting the current sorting status information based on the preset target sorting status information, including: dynamically correcting the standardized status information based on the preset target sorting status information.
[0035] Formatting refers to the standardized transformation of the current sorting status information according to unified rules, avoiding inconsistent or non-standard data formats. Standardized status information refers to the structured status data that conforms to the system's unified data standards after the current sorting status information has been formatted.
[0036] In one embodiment, key fields, such as component identifiers, position parameters, and sorting indexes, are extracted from the current sorting status information, and missing or abnormal fields are supplemented or corrected to ensure data integrity and consistency. After formatting, standardized status information is obtained. The system then checks whether the standardized status information meets the requirements according to the rules defined in the target sorting status information. If any non-compliance is found, such as insufficient component quantity or sorting logic errors, adjustments are made according to preset rules to ultimately generate sorting status information to be stored that meets business requirements.
[0037] In this embodiment, standardized status information is obtained by formatting the current sorting status information, and then dynamically corrected based on preset target sorting status information. This approach not only improves the standardization of data processing but also further enhances the reliability and accuracy of the page sorting status information.
[0038] Figure 2 This is a flowchart of a method for updating sorted state information to be stored, provided in an embodiment of this application. Figure 2 As shown, it includes: Step S1021: Extract the current element identifier from the sorting status information to be stored, and determine the redundant data in the sorting status information based on the current element identifier and the historical sorting status information.
[0039] The current element identifier can refer to a feature identifier in the sorting status information to be stored that uniquely identifies a single component or element on the page. Redundant data can refer to invalid or duplicate data that does not need to be retained due to duplication, lack of change, or expiration.
[0040] In one embodiment, all component identifiers or element identifiers are extracted from the sorting status information to be stored, and all extracted element identifiers are matched with element identifiers in the historical sorting status information to determine the same sorting status information and different sorting status information. The same sorting status information contained in the sorting status information to be stored or the historical sorting status information is determined as redundant data.
[0041] Step S1022: Calculate the time difference between the current storage timestamp and the historical storage timestamp corresponding to the redundant data, compare the time difference with the preset effective duration, and determine the target redundant data and non-target redundant data based on the comparison result.
[0042] Among these, historical storage timestamp refers to the precise time identifier recorded when redundant data is stored as historical sorting status information. Time difference redundant data corresponds to the time interval between the current storage timestamp and the historical storage timestamp. Preset valid duration refers to the time threshold pre-configured by the system for determining whether data has retention value. Target redundant data refers to redundant data determined to be expired or without retention value. Non-target redundant data refers to redundant data determined to still be valid or have retention value.
[0043] In one embodiment, since the redundant data consists of duplicate data in both historical sorting status information and the sorting status information to be stored, the current storage timestamp and historical storage timestamp corresponding to the redundant data can be determined separately. The time difference between the current and historical storage timestamps is then calculated. If this time difference is greater than a preset valid duration, the redundant data in the historical sorting status information is considered expired, and in this case, the redundant data is identified as target redundant data. If the time difference is less than or equal to the preset valid duration, the redundant data in the historical sorting status information is considered still valid, and in this case, the redundant data is identified as non-target redundant data.
[0044] Step S1023: Remove the target redundant data and update the storage timestamp of the non-target redundant data.
[0045] In one embodiment, since the target redundant data is expired or outdated, to save storage space in the local storage container, the target redundant data in the historical sorting status information stored in the local storage container can be deleted. Since the non-target redundant data is valid data, the non-target redundant data in the historical sorting status information is retained, and the historical storage timestamp of the non-target redundant data is updated to the current timestamp. The corresponding non-target redundant data in the sorting status information to be stored is then deleted. In another possible embodiment, after determining the redundant data, the data in the historical sorting status information is directly replaced with the data in the sorting status information to be stored, without needing to determine whether the redundant data in the historical sorting status information is valid.
[0046] In this embodiment, the current element identifier is extracted from the sorting status information to be stored. Redundant data in the sorting status information is determined based on the current element identifier and historical sorting status information. The time difference between the current storage timestamp and the historical storage timestamp corresponding to the redundant data is calculated. This time difference is compared with a preset valid duration, and target redundant data and non-target redundant data are determined based on the comparison result. Target redundant data is removed, and the storage timestamp of non-target redundant data is updated. This solution effectively reduces redundant data in the local storage container, optimizes storage space utilization, and ensures the timeliness and accuracy of historical sorting status information.
[0047] Optionally, redundant data in the stored sorting status information is determined based on the current element identifier and historical sorting status information, including: matching the current element identifier with the historical element identifier in the historical sorting status information, and determining overlapping elements based on the matching result; determining the current position information corresponding to the overlapping element, matching the current position information with the historical position information corresponding to the overlapping element in the historical sorting status information, and determining redundant data based on the matching result.
[0048] Here, "historical element identifier" refers to a feature identifier stored in the historical sorting state information of the local storage container, used to uniquely identify historical components or elements on the page. "Overlapping element" refers to the same page component or element that exists in both the current and historical sorting states. "Current position information" refers to the core data in the sorting state information to be stored, corresponding to the overlapping element, describing the element's current layout position and arrangement order on the page. "Historical position information" refers to historical data stored in the historical sorting state information of the local storage container, corresponding to the overlapping element, describing the element's past layout position and arrangement order on the page.
[0049] In one embodiment, the current element identifier in the sorting state information to be stored is matched with the historical element identifier in the historical sorting state information. If the match is successful, it means that the element exists in both the current and historical sorting states, and is therefore an overlapping element. The current position information of the overlapping element is extracted and compared with the corresponding historical position information in the historical sorting state information. If the current position information matches the historical position information, the sorting state information corresponding to the overlapping element is determined to be redundant data; otherwise, if they do not match, it means that the position or order of the element has changed, and its corresponding sorting state information should not be considered redundant data. For example, the vertex coordinates of the current element corresponding to the overlapping element are matched with the vertex coordinates of the historical element. If the match is successful, the overlapping element and its corresponding sorting state information are determined to be redundant data; if the match fails, the overlapping element and its corresponding sorting state information are determined to be non-redundant data. Alternatively, the current target region can be determined first based on the current vertex coordinates of the overlapping element, and the historical target region can be determined based on the historical vertex coordinates of the overlapping element. The current target region and the historical target region are then matched, and the matching result determines whether the overlapping element and its corresponding sorting state information are redundant data.
[0050] In this embodiment, overlapping elements are determined by matching the current element identifier with the historical element identifiers in the historical sorting status information. The current position information corresponding to the overlapping element is then determined, and this current position information is matched with the historical position information corresponding to the overlapping element in the historical sorting status information. Redundant data is determined based on the matching results. This approach allows for more precise identification of redundant parts in the stored sorting status information, improving the accuracy of subsequent data removal and effectively preventing the loss of critical information due to misjudgment.
[0051] Figure 3 This is a flowchart of a method for dynamically correcting current sorting status information provided in an embodiment of this application, such as... Figure 3 As shown, it includes: Step S1011: Count the number of components in the current sorting status information, compare the number of components with the target number of components in the preset target status information, and determine whether a component is missing based on the comparison result.
[0052] The number of components refers to the total number of independent functional components on the page included in the current sorting status information. The preset target status information refers to pre-configured baseline status data used to verify the validity of the current sorting status, which may include the target number of components, necessary component identifiers, etc. The target number of components is the minimum number of components required in the current scenario, i.e., the number of necessary components in the current scenario.
[0053] In one embodiment, the total number of all components in the current sorting status information is counted and compared with the target number of components. If the number of components is less than the target number, it can be considered that the current sorting status information is missing necessary components for the current scenario. If the number of components is equal to or greater than the target number, it can be considered that there are no missing necessary components in the current sorting status information, or that the user has added other components in addition to the basic necessary components.
[0054] Step S1012: In the case of missing components, supplement the current sorting status information based on the preset target sorting status information.
[0055] In one embodiment, if it is determined that there are missing necessary components in the current sorting status information, the missing necessary components are added to the current sorting status information. At the same time, the sorting status information corresponding to the corresponding components in the target sorting status information is also added to the current sorting status information.
[0056] Step S1013: If no components are missing, calculate the sequence similarity between the current sorting state information and the preset target state information. If the sequence similarity is greater than or equal to the preset similarity threshold, perform data fusion on the current sorting state information and the preset target state information.
[0057] Here, sequence similarity refers to the degree of match between the current sorting state information and the preset target state information in the component arrangement sequence. The preset similarity threshold refers to the critical value pre-configured by the system to determine whether the current sorting state and the preset target state need to be merged.
[0058] In one embodiment, the current component sequence from the current sorting state information and the target component sequence from the preset target state information are extracted. A first similarity between the lengths of the current component sequence and the target component sequence is calculated. The state value corresponding to each element in the target component sequence is compared with the state value corresponding to the corresponding element in the current component sequence. A second similarity value is calculated based on the comparison result. The first and second similarity values are weighted according to a preset weight coefficient to obtain the sequence similarity. For example, if the target component sequence is [A, B, C, D] and the current component sequence is [A, B, C, D, E], then the first similarity can be calculated as 80% based on the sequence length. The state values corresponding to components A, B, C, and D in the target component sequence are compared with the state values corresponding to components A, B, C, and D in the current component sequence. If the state values of components A and D in the current component sequence are different from those of components A and D in the target component sequence, and if the state values of components B and C in the current component sequence are different from those of components B and C in the target component sequence, since component E is not included in the target component sequence, the state value corresponding to component E is also considered a difference between the two sequences. In this case, a second similarity value of 40% can be calculated based on the differences in the state values of each component. The first similarity value and the second similarity value are then weighted according to a pre-set weighting coefficient to obtain the sequence similarity.
[0059] If the sequence similarity is greater than or equal to a preset similarity threshold, the current sorting status information is considered to closely match the preset target status information in terms of component arrangement order. In this case, the incremental data in the current sorting status information can be merged with the baseline data in the preset target status information to generate updated sorting status information. In another embodiment, if the sequence similarity is less than a preset similarity threshold, the current sorting status information is considered to have a significant difference from the preset target status information. In this case, an anomaly verification mechanism can be triggered to further analyze the source of the difference and generate corresponding correction suggestions.
[0060] In this embodiment, the number of components in the current sorting status information is counted and compared with the number of target components in the preset target status information to determine whether any components are missing. If components are missing, the current sorting status information is supplemented based on the preset target sorting status information. If no components are missing, the sequence similarity between the current sorting status information and the preset target status information is calculated, and data fusion is performed based on the similarity result. This scheme effectively ensures the completeness and accuracy of the current sorting status information, while dynamic correction processing improves the reliability and consistency of the page sorting status information, providing a high-quality data foundation for subsequent storage and transmission.
[0061] Optionally, data fusion is performed on the current sorting status information and the preset target status information, including: determining the difference components and newly added components in the current sorting status information, as well as the dragged data corresponding to the difference components; determining whether the difference components are abnormal accidental touch components based on the dragged data; and replacing the current status information of the difference components with the target status information if the difference components are abnormal accidental touch components.
[0062] Here, "difference components" can refer to components whose component identifiers are identical to those in the current sorted state information and the preset target state information, but whose state attributes are inconsistent. "New components" can refer to components that exist in the current sorted state information but are not defined in the preset target state information; these can be unnecessary components added by the user based on personalized needs. "Drag data" can refer to key data associated with the difference component that records its drag operation process, such as drag trigger time, drag start position, and drag trajectory. "Accidentally touched components" can refer to components whose state adjustment is not due to the user's true intention but rather due to accidental operation. "Target state information" can refer to the standard state information corresponding to the difference component in the preset target state information.
[0063] In one embodiment, since the current sorting status information is generated by relevant personnel dragging and dropping components on the settings page according to actual needs, components whose status in the current sorting status information is inconsistent with the component status in the preset target status information, as well as newly added components in the current sorting status information compared to the preset target status information, are identified. The drag data associated with the differing components is determined, and based on the drag duration and drag distance in the drag data, if the drag duration is greater than 0.5 seconds rather than an instantaneous action, it is considered that there may be a mis-touch behavior, and the differing component can be identified as an abnormal mis-touch component. If the drag distance is large or extremely small, there may also be a mis-touch behavior, and the differing component can also be identified as an abnormal mis-touch component. It is understood that the current status information of the differing components is inaccurate or does not meet the actual design requirements; therefore, the current status information of the differing components is replaced with the target status information.
[0064] In this embodiment, the difference components and newly added components in the current sorting status information, as well as the dragged data corresponding to the difference components, are determined. Based on the dragged data, it is determined whether the difference component is an abnormally touched component. If the difference component is an abnormally touched component, its current status information is replaced with the target status information. This solution effectively identifies and corrects component status anomalies caused by misoperation, ensuring the authenticity and accuracy of the current sorting status information.
[0065] Figure 4 This is a schematic diagram of the structure of a page sorting status information management device provided in an embodiment of this application, as shown below. Figure 4 As shown, it includes: Information acquisition module 21 is used to acquire historical sorting status information of local storage containers; The module 22 for determining the sorting status information to be stored is used to read the current sorting status information of the page when a preset key event is detected, and to dynamically correct the current sorting status information based on the preset target sorting status information to obtain the sorting status information to be stored. The target sorting status information determination module 23 is used to store the sorting status information to be stored in the local storage container, record the current storage timestamp, update the sorting status information to be stored based on the current storage timestamp and the historical sorting status information, and obtain the target sorting status information. The sending module 24 is used to send the target sorting status information to the server so that the server stores the target sorting status information in the backend database.
[0066] In this embodiment, by acquiring historical sorting status information from a local storage container, and upon detecting the triggering of a preset key event, the current sorting status information of the page is read. Based on preset target sorting status information, the current sorting status information is dynamically corrected to obtain sorting status information to be stored. This sorting status information is then stored in the local storage container, and a current storage timestamp is recorded. Based on this current storage timestamp and historical sorting status information, the sorting status information to be stored is updated to obtain target sorting status information. This target sorting status information is then sent to a server, which stores it in a backend database. This solution achieves diverse storage architectures and optimized synchronization between the local storage container and server-side data by storing the sorting status information to be stored in a local storage container, updating the data in the local storage, and sending the updated data to the server. This effectively reduces data transmission latency, improves the reliability and consistency of page sorting status information, and reduces storage resource waste by updating the local storage container, ensuring high system efficiency.
[0067] In one possible embodiment, the target sorting state information determination module 23 is specifically used for: Extract the current element identifier from the sorting status information to be stored, and determine the redundant data in the sorting status information based on the current element identifier and the historical sorting status information. Calculate the time difference between the current storage timestamp and the historical storage timestamp corresponding to the redundant data, compare the time difference with a preset valid duration, and determine the target redundant data and non-target redundant data based on the comparison result; The target redundant data is removed, and the storage timestamp of the non-target redundant data is updated.
[0068] In one possible embodiment, the target sorting state information determination module 23 is specifically used for: The current element identifier is matched with the historical element identifier in the historical sorting status information, and the overlapping element is determined based on the matching result. Determine the current position information corresponding to the overlapping element, match the current position information with the historical position information corresponding to the overlapping element in the historical sorting status information, and determine redundant data based on the matching result.
[0069] In one possible embodiment, the module 22 for determining the sorting status information to be stored is specifically used for: The number of components in the current sorting status information is counted, and the number of components is compared with the number of target components in the preset target status information. Based on the comparison result, it is determined whether a component is missing. In the event of a missing component, the current sorting status information is supplemented based on the preset target sorting status information. If no components are missing, calculate the sequence similarity between the current sorting state information and the preset target state information. If the sequence similarity is greater than or equal to a preset similarity threshold, perform data fusion on the current sorting state information and the preset target state information.
[0070] In one possible embodiment, the module 22 for determining the sorting status information to be stored is specifically used for: Determine the differing components and newly added components in the current sorting status information, as well as the dragged data corresponding to the differing components; Based on the drag data, determine whether the difference component is an abnormal accidental touch component. If the difference component is an abnormal accidental touch component, replace the current state information of the difference component with the target state information.
[0071] In one possible embodiment, an invalid data cleanup module is further included, the invalid data cleanup module being used for: Invalid data is cleaned up in the local storage container based on the preset valid duration and the storage timestamp of the sorting status information in the local storage container.
[0072] In one possible embodiment, a formatting processing module is further included, the formatting processing module being used for: The current sorting status information is formatted to obtain standardized status information; Correspondingly, the module 22 for determining the sorting status information to be stored is also specifically used for: The standardized state information is dynamically corrected based on the preset target sorting state information.
[0073] This application also provides an electronic device that can integrate a page sorting status information management device provided in this application. Figure 5 This is a schematic diagram of the structure of a page sorting status information management device provided in an embodiment of this application, with reference to... Figure 5 The page sorting status information management device includes: an input device 33, an output device 34, a memory 32, and one or more processors 31; the memory 32 is used to store one or more programs; when one or more programs are executed by one or more processors 31, the one or more processors 31 implement the page sorting status information management method provided in the above embodiments. The input device 33, output device 34, memory 32, and processors 31 can be connected via a bus or other means. Figure 5 Taking the example of a connection between China and Israel via a bus.
[0074] The memory 32, as a computing device readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the page sorting status information management method provided in any embodiment of this application. The memory 32 may mainly include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on the use of the device. Furthermore, the memory 32 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 32 may further include memory remotely located relative to the processor 31, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0075] Input device 33 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the device. Output device 34 may include display devices such as a display screen.
[0076] The processor 31 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 32, thereby realizing the page sorting status information management method described above.
[0077] The page sorting status information management device, equipment, and computer provided above can be used to execute the page sorting status information management method provided in any of the above embodiments, and have corresponding functions and beneficial effects.
[0078] This application embodiment also provides a storage medium for storing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to execute the page sorting status information management method provided in the above embodiment. The page sorting status information management method includes: obtaining historical sorting status information of a local storage container; reading the current sorting status information of the page when a preset key event is detected; dynamically correcting the current sorting status information based on preset target sorting status information to obtain sorting status information to be stored; storing the sorting status information to be stored in the local storage container and recording the current storage timestamp; updating the sorting status information to be stored based on the current storage timestamp and the historical sorting status information to obtain target sorting status information; and sending the target sorting status information to a server so that the server stores the target sorting status information in a backend database.
[0079] Storage medium – any type of memory device or storage device. The term “storage medium” is intended to include: mounting media, such as CD-ROMs, floppy disks, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disks or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. Furthermore, storage media may reside in a first computer system in which a program is executed, or may reside in a different second computer system connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term “storage medium” can include two or more storage media that may reside in different locations (e.g., in different computer systems connected via a network). Storage media may store program instructions (e.g., specifically implemented as a computer program) executable by one or more processors.
[0080] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the page sorting status information management method described above, but can also perform related operations in the page sorting status information management method provided in any embodiment of this application.
[0081] The page sorting status information management device, equipment, and storage medium provided in the above embodiments can execute the page sorting status information management method provided in any embodiment of this application. For technical details not described in detail in the above embodiments, please refer to the page sorting status information management method provided in any embodiment of this application.
[0082] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the claims.
Claims
1. A method for managing page sorting status information, characterized in that, include: The system obtains historical sorting status information of the local storage container. When a preset key event is triggered, it reads the current sorting status information of the page and dynamically corrects the current sorting status information based on the preset target sorting status information to obtain the sorting status information to be stored. The sorting status information to be stored is stored in the local storage container, and the current storage timestamp is recorded. The sorting status information to be stored is updated based on the current storage timestamp and the historical sorting status information to obtain the target sorting status information. The target sorting status information is sent to the server so that the server stores the target sorting status information in the backend database.
2. The page sorting status information management method according to claim 1, characterized in that, The step of updating the sorting status information to be stored based on the current storage timestamp and the historical sorting status information includes: Extract the current element identifier from the sorting status information to be stored, and determine the redundant data in the sorting status information based on the current element identifier and the historical sorting status information. Calculate the time difference between the current storage timestamp and the historical storage timestamp corresponding to the redundant data, compare the time difference with a preset valid duration, and determine the target redundant data and non-target redundant data based on the comparison result; The target redundant data is removed, and the storage timestamp of the non-target redundant data is updated.
3. The page sorting status information management method according to claim 2, characterized in that, The step of determining redundant data in the stored sorting status information based on the current element identifier and the historical sorting status information includes: The current element identifier is matched with the historical element identifier in the historical sorting status information, and the overlapping element is determined based on the matching result. Determine the current position information corresponding to the overlapping element, match the current position information with the historical position information corresponding to the overlapping element in the historical sorting status information, and determine redundant data based on the matching result.
4. The page sorting status information management method according to claim 1, characterized in that, The dynamic correction process for the current sorting status information based on preset target sorting status information includes: The number of components in the current sorting status information is counted, and the number of components is compared with the number of target components in the preset target status information. Based on the comparison result, it is determined whether a component is missing. In the event of a missing component, the current sorting status information is supplemented based on the preset target sorting status information. If no components are missing, calculate the sequence similarity between the current sorting state information and the preset target state information. If the sequence similarity is greater than or equal to a preset similarity threshold, perform data fusion on the current sorting state information and the preset target state information.
5. The page sorting status information management method according to claim 4, characterized in that, The data fusion of the current sorting status information and the preset target status information includes: Determine the differing components and newly added components in the current sorting status information, as well as the dragged data corresponding to the differing components; Based on the drag data, determine whether the difference component is an abnormal accidental touch component. If the difference component is an abnormal accidental touch component, replace the current state information of the difference component with the target state information.
6. The page sorting status information management method according to claim 1, characterized in that, After storing the sorting status information to be stored into the local storage container, the method further includes: The invalid data in the local storage container is cleaned up according to the preset valid duration and the storage timestamp of the sorting status information in the local storage container.
7. The page sorting status information management method according to any one of claims 1-6, characterized in that, After reading the current sorting status information of the page, the following is also included: The current sorting status information is formatted to obtain standardized status information; Accordingly, the dynamic correction processing of the current sorting state information based on the preset target sorting state information includes: The standardized state information is dynamically corrected based on the preset target sorting state information.
8. A page sorting status information management device, characterized in that, include: The information acquisition module is used to acquire historical sorting status information of local storage containers; The module for determining sorting status information to be stored is used to read the current sorting status information of the page when a preset key event is detected, and to dynamically correct the current sorting status information based on the preset target sorting status information to obtain the sorting status information to be stored. The target sorting status information determination module is used to store the sorting status information to be stored in the local storage container, record the current storage timestamp, and update the sorting status information to be stored based on the current storage timestamp and the historical sorting status information to obtain the target sorting status information. The sending module is used to send the target sorting status information to the server, so that the server stores the target sorting status information in the backend database.
9. An electronic device, characterized in that, The device includes: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the page sorting status information management method as described in any one of claims 1-7.
10. A storage medium for storing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the page sorting status information management method as described in any one of claims 1-7.