Control panel status resetting method, device, equipment and storage medium
By retrieving the historical operation list in control panel management and verifying the legality of instructions, the problem of unstable revocation and recovery operations in the existing technology is solved, and a safe and efficient panel status reset is achieved, avoiding system exceptions and data loss. , improves the user experience.
Patent Information
- Application Number
- CN202411313633.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-09-20
AI Technical Summary
The control panel management method in the prior art lacks effective control of undo and recovery operations, resulting in slow system response, loss of operation records, and even system crashes, and fails to fully consider the legality detection of instructions, affecting user experience and system stability. sex.
By responding to reset operation instructions, the historical operation list is retrieved, the legality of the instruction is determined, and the panel status is reset according to the legal operation cache information, including revoking and restoring operations, ensuring the safety and efficiency of the operation.
It effectively avoids system abnormalities and data loss caused by improper operation, ensures operation security and user experience, and improves operation efficiency and convenience.
Smart Images

Figure CN118819906B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of device control technology, and in particular to a method, device, equipment and storage medium for resetting a control panel state. Background Art
[0002] In modern interactive systems and applications, users often perform operations frequently, such as dragging controls, adjusting layouts, and modifying properties in design software. These operations often require undo or redo functions so that users can return to a previous state or re-execute canceled operations. However, existing control panel management methods often lack effective control over undo and redo operations, which can easily lead to slow system response, loss of operation records, and even system crashes. In addition, some methods fail to fully consider the legitimacy detection of instructions, resulting in illegal operation instructions being incorrectly executed, affecting user experience and system stability.
[0003] In summary, the problems existing in the prior art need to be solved urgently. Summary of the invention
[0004] The present invention provides a method, device, equipment and storage medium for resetting the state of a control panel, so as to solve the defects in the prior art and avoid system abnormality or data loss caused by improper operation.
[0005] The present invention provides a method for resetting a control panel state, comprising:
[0006] Responding to a reset operation instruction, calling a historical operation list, wherein the reset operation instruction includes a cancel operation instruction and a restore operation instruction;
[0007] Determining the legitimacy of the reset operation instruction according to the historical operation list;
[0008] When the reset operation instruction is legal, obtaining the operation cache information in the history operation list;
[0009] Reset the state of the control panel according to the operation cache information.
[0010] According to a method for resetting a control panel state provided by the present invention, the historical operation list is obtained by the following steps:
[0011] Monitoring control elements of the control panel, wherein the control elements include control information, location information, and time information;
[0012] When the control element changes, the operation cache information before the change and the operation cache information after the change are saved in the historical operation list, and the operation cache information includes the control element.
[0013] According to a method for resetting a control panel state provided by the present invention, after the step of saving the operation cache information before the change and the operation cache information after the change in the history operation list when the control element changes, the method further includes:
[0014] Monitoring the current number of records in the history operation list;
[0015] If the current record quantity is greater than the maximum record quantity, the corresponding operation cache information is deleted according to the time information.
[0016] According to a method for resetting a control panel state provided by the present invention, the undo operation instruction includes a target undo step number, and the step of determining the legitimacy of the reset operation instruction according to the historical operation list specifically includes:
[0017] When the reset operation instruction is an undo operation instruction, determining a maximum number of undo steps according to the historical operation list, wherein the maximum number of undo steps is determined according to a maximum number of records in the historical operation list and a current step position;
[0018] When the maximum undo step number is greater than or equal to the target undo step number, the undo operation instruction is legal.
[0019] According to a method for resetting a control panel state provided by the present invention, the undo operation instruction includes a target undo step number, and the step of determining the legitimacy of the reset operation instruction according to the historical operation list specifically includes:
[0020] When the reset operation instruction is a restore operation instruction, and the target undo step number is less than or equal to the current step position, the restore operation instruction is legal.
[0021] According to a method for resetting the state of a control panel provided by the present invention, the step of resetting the state of the control panel according to the operation cache information specifically includes:
[0022] Clearing the control elements of the control panel;
[0023] According to the operation cache information, a target control element is added to the control panel, and the target control element is a control element corresponding to the operation cache information.
[0024] According to a method for resetting the state of a control panel provided by the present invention, after the step of resetting the state of the control panel according to the operation cache information, the method further includes:
[0025] Update the current step position;
[0026] Determining the executability of the undo operation instruction and the restore operation instruction according to the current step position;
[0027] When the undo operation instruction is not executable, disabling the undo operation instruction;
[0028] When the recovery operation instruction is not executable, the recovery operation instruction is disabled.
[0029] The present invention also provides a device for resetting the control panel status, comprising:
[0030] A list calling module, used to call a historical operation list in response to a reset operation instruction, wherein the reset operation instruction includes a cancel operation instruction and a restore operation instruction;
[0031] An operation verification module, used to determine the legitimacy of the reset operation instruction according to the historical operation list;
[0032] An information acquisition module, used for acquiring the operation cache information in the history operation list when the reset operation instruction is legal;
[0033] The state resetting module is used to reset the state of the control panel according to the operation cache information.
[0034] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned methods for resetting the control panel status is implemented.
[0035] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for resetting the control panel state as described in any one of the above is implemented.
[0036] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for resetting the control panel state as described in any one of the above is implemented.
[0037] The reset method, device, equipment and storage medium of the control panel status provided by the present invention call up a historical operation list in response to a reset operation instruction, wherein the reset operation instruction includes an undo operation instruction and a restore operation instruction; determine the legality of the reset operation instruction according to the historical operation list; when the reset operation instruction is legal, obtain the operation cache information in the historical operation list; reset the status of the control panel according to the operation cache information. By judging the legality of the instruction before executing the reset operation, system abnormalities or data loss caused by improper operation are avoided, and the safety of the operation is ensured. In addition, the user only needs to simply reset the operation instruction to quickly restore or revoke to the historical state, which improves the efficiency and convenience of the operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 It is a flowchart of a method for resetting the control panel status provided by the present invention;
[0040] Figure 2 It is a schematic diagram of the structure of a device for resetting the control panel status provided by the present invention;
[0041] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] In order to solve the problems in the prior art, the present invention proposes a method for resetting the control panel status to avoid system abnormalities or data loss caused by improper operations. The following describes the method for resetting the control panel status. Figure 1 As shown, including but not limited to the following steps:
[0044] Step 110 , in response to a reset operation instruction, retrieve a history operation list, wherein the reset operation instruction includes a cancel operation instruction and a restore operation instruction.
[0045] When the user issues a reset operation command on the control panel, the system first responds to the command and calls up the corresponding historical operation list. The reset operation command includes two situations: cancel operation command and restore operation command. When the user chooses to cancel the operation, the system will return to the previous operation state; when the user chooses to restore the operation, the system will move forward to the next operation state.
[0046] The system stores the status after each user operation and saves this status information in the form of operation records in the historical operation list. The generation and maintenance mechanism of the historical operation list is activated when the system is initialized and is continuously updated during user operations to ensure that all operation steps can be accurately recorded.
[0047] Step 120: Determine the validity of the reset operation instruction according to the historical operation list.
[0048] Before executing the reset operation, the system will check the legitimacy of the reset operation instruction issued by the user based on the retrieved history operation list. Specifically, the system will check whether the user's undo or redo operation exceeds the scope of the history operation list.
[0049] For example, when a user attempts to undo a state that does not exist in the list, the system will determine that the operation is illegal and prevent the execution of the instruction. Similarly, when a user attempts to restore a state that has not yet been executed, the system will also perform a legality check on the instruction to ensure that the restoration operation is within a reasonable range.
[0050] Step 130: When the reset operation instruction is legal, obtain the operation cache information in the history operation list.
[0051] When the system confirms that the reset operation instruction is legal, the system will obtain the cache information of the corresponding operation from the historical operation list. The operation cache information usually includes detailed data such as the position, status, and properties of each control element on the current operation panel.
[0052] These cached information are automatically saved after each user operation for use in subsequent undo or restore operations. The integrity and accuracy of the cached information is the key to whether the system can accurately restore the operation status.
[0053] Step 140: reset the state of the control panel according to the operation cache information.
[0054] After obtaining the legal operation cache information, the system resets the state of the control panel based on the information. Specifically, the system restores the position, state, and properties of the control elements in the panel to the state recorded in the cache information.
[0055] For example, if the user moves a control during an operation, after performing an undo operation, the system will restore the control to its original position based on the cached information. Similarly, a restore operation will return the control to its original state before the undo operation.
[0056] After the reset operation is completed, the system will also update the historical operation list, record the current operation status, and adjust the enablement status of the system's undo and redo functions to ensure that users can continue to undo or redo in subsequent operations.
[0057] The method for resetting the control panel status provided by the present invention responds to a reset operation instruction, retrieves a historical operation list, and the reset operation instruction includes an undo operation instruction and a restore operation instruction; determines the legality of the reset operation instruction according to the historical operation list; when the reset operation instruction is legal, obtains the operation cache information in the historical operation list; and resets the status of the control panel according to the operation cache information. By judging the legality of the instruction before executing the reset operation, system abnormalities or data loss caused by improper operation are avoided, and the safety of the operation is ensured. In addition, the user only needs to simply reset the operation instruction to quickly restore or revoke to the historical state, which improves the efficiency and convenience of the operation.
[0058] As a further optional embodiment, the historical operation list is obtained by the following steps:
[0059] Monitoring control elements of the control panel, wherein the control elements include control information, location information, and time information;
[0060] When the control element changes, the operation cache information before the change and the operation cache information after the change are saved in the historical operation list, and the operation cache information includes the control element.
[0061] In this embodiment, the system monitors all control elements on the control panel in real time to capture any possible changes. The monitored control elements include but are not limited to control information, location information, and time information. Control information refers to descriptive data such as the type, identifier, and attributes of the control. Location information refers to the specific coordinates or arrangement position of the control on the control panel. Time information refers to the timestamp of the change of the control, recording the time point of each operation.
[0062] When the system detects that a control element on the control panel has changed (such as position movement, state change, or property modification), the system will immediately save the operation cache information before and after the change to the historical operation list. Specifically, before the control changes, the system saves the current state of the control element (that is, the state before the change) to the historical operation list for use when undoing the operation. After the control changes, the system records the latest state of the control element and saves this information to the historical operation list. This information will be called when the user performs a restore operation. Each saved operation cache information includes not only the basic information of the control, but also the location information and time information of the control. With this data, the system can accurately restore the state of the control in a specific operation step.
[0063] With each change of the control element, the system saves the operation cache information in order to the historical operation list. The operation steps recorded in the historical operation list are arranged in chronological order, so that the system can undo and restore operations according to the user's operation track.
[0064] As a further optional embodiment, after the step of saving the operation cache information before the change and the operation cache information after the change in the history operation list when the control element changes, the method further includes:
[0065] Monitoring the current number of records in the history operation list;
[0066] If the current record quantity is greater than the maximum record quantity, the corresponding operation cache information is deleted according to the time information.
[0067] In this embodiment, after each update of the historical operation list, the system will monitor the number of records in the list in real time. The purpose of this step is to ensure that the historical operation list will not affect system performance and operating efficiency due to too many operation records. The system pre-sets a threshold for the maximum number of records to limit the length of the historical operation list. When it is detected that the current number of records in the historical operation list exceeds this preset maximum number of records, the system will automatically trigger the record cleanup mechanism. The system will give priority to deleting the earliest entered operation cache information based on the time information of each record to ensure that the records in the historical operation list are always kept up to date and within a reasonable range. The system will gradually delete unnecessary old records until the number of records in the historical operation list is restored to within the preset maximum number of records. The purpose of this is to ensure that historical records related to the current operation are not lost during the deletion process.
[0068] Through this step, the system can effectively manage the length of the historical operation list, avoid system burden caused by too many records, and thus maintain the efficiency and stability of system operation. At the same time, deleting the earliest record also helps to ensure that the data in the historical operation list is always closely related to the user's most recent operation status, improving the practicality and recoverability of the operation.
[0069] As a further optional embodiment, the undo operation instruction includes a target undo step number, and the step of determining the legitimacy of the reset operation instruction according to the historical operation list specifically includes:
[0070] When the reset operation instruction is an undo operation instruction, determining a maximum number of undo steps according to the historical operation list, wherein the maximum number of undo steps is determined according to a maximum number of records in the historical operation list and a current step position;
[0071] When the maximum undo step number is greater than or equal to the target undo step number, the undo operation instruction is legal.
[0072] In this embodiment, when the system receives a reset operation instruction, it first determines whether the instruction is an undo operation instruction. If it is an undo operation instruction, the system will continue with the following steps. The system determines the maximum number of undo steps based on the records in the historical operation list. The maximum number of undo steps is calculated based on the maximum number of records in the historical operation list and the current step position, reflecting the maximum number of operation steps that the user can undo in the current state.
[0073] If the maximum undo step count is greater than or equal to the target undo step count, it means that the system is able to perform the undo operation requested by the user. In this case, the undo operation instruction is considered legal and the system will continue to perform subsequent undo operation steps. If the maximum undo step count is less than the target undo step count, the undo operation instruction is illegal, the system will terminate the operation and prompt the user why it cannot be executed.
[0074] As a further optional embodiment, the undo operation instruction includes a target undo step number, and the step of determining the legitimacy of the reset operation instruction according to the historical operation list specifically includes:
[0075] When the reset operation instruction is a restore operation instruction, and the target undo step number is less than or equal to the current step position, the restore operation instruction is legal.
[0076] In this embodiment, when the system receives a reset operation instruction, it first determines whether the instruction is a restore operation instruction. If it is a restore operation instruction, the system will continue with the following steps. The system compares the target undo step number with the current step position. The target undo step number indicates the operation step number that the user wants to restore, and the current step position indicates the step position where the user is currently undoing the operation.
[0077] If the target undo step count is less than or equal to the current step position, the restore operation instruction is within the legal range. The system is able to perform the restore operation requested by the user. In this case, the restore operation instruction is considered legal and the system will continue to perform subsequent restore operation steps. If the target undo step count is greater than the current step position, the restore operation instruction is illegal, the system will terminate the operation and prompt the user why it cannot be executed.
[0078] As a further optional embodiment, the step of resetting the state of the control panel according to the operation cache information specifically includes:
[0079] Clearing the control elements of the control panel;
[0080] According to the operation cache information, a target control element is added to the control panel, and the target control element is a control element corresponding to the operation cache information.
[0081] In this embodiment, the system first cleans up the control panel and removes all control elements on the current panel. This step ensures that the state of the panel is completely returned to the initial state before the reset operation, providing a clean basic environment for the next state reset.
[0082] The system extracts the corresponding operation cache information from the historical operation list and determines the detailed information of the control elements that need to be restored. This information includes the type, location, status, and other necessary attribute data of the control. Based on the extracted operation cache information, the system recreates and adds the target control elements on the control panel. These target control elements fully conform to the previously saved operation cache information, ensuring that the restored panel state is consistent with the original operation state.
[0083] Through this embodiment, the system can effectively restore the state of the control panel, ensuring that after the user performs an undo or restore operation, the panel can accurately reflect the previous operation results. This method helps to improve the system's operational accuracy and user experience, and avoid operational confusion caused by incomplete or inaccurate state reset.
[0084] As a further optional embodiment, after the step of resetting the state of the control panel according to the operation cache information, the method further includes:
[0085] Update the current step position;
[0086] Determining the executability of the undo operation instruction and the restore operation instruction according to the current step position;
[0087] When the undo operation instruction is not executable, disabling the undo operation instruction;
[0088] When the recovery operation instruction is not executable, the recovery operation instruction is disabled.
[0089] In this embodiment, after the control panel state is reset, the system will update the current step position according to the undo or restore operation performed. The current step position reflects the user's current position in the historical operation list, which helps the system to accurately judge and process subsequent operations.
[0090] The system determines whether the undo operation can be continued based on the updated current step position. If the current step position is 0 (i.e., there are no more operations to be undone), the system determines that the undo operation instruction cannot be executed. Similarly, the system determines whether the restore operation can be continued based on the current step position. If the current step position is equal to the maximum number of records in the history operation list (i.e., all undo operations have been restored), the system determines that the restore operation instruction cannot be executed.
[0091] When the system determines that the undo operation is not executable, the system will automatically disable the undo operation command to prevent the user from attempting to perform invalid operations, ensuring the operation guidance and consistency of the user interface. Similarly, when the redo operation is not executable, the system will disable the redo operation command to ensure the effectiveness of the operation and user experience.
[0092] The device for resetting the control panel status provided by the present invention is described below. Figure 2 As shown, the device for resetting the control panel status described below and the method for resetting the control panel status described above can correspond to each other.
[0093] A device for resetting a control panel state, comprising:
[0094] A list calling module 210, for calling a history operation list in response to a reset operation instruction, wherein the reset operation instruction includes a cancel operation instruction and a restore operation instruction;
[0095] An operation verification module 220, configured to determine the legitimacy of the reset operation instruction according to the historical operation list;
[0096] The information acquisition module 230 is used to acquire the operation cache information in the history operation list when the reset operation instruction is legal;
[0097] The state resetting module 240 is used to reset the state of the control panel according to the operation cache information.
[0098] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communications interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the method for resetting the control panel state, and the method includes:
[0099] Responding to a reset operation instruction, calling a historical operation list, wherein the reset operation instruction includes a cancel operation instruction and a restore operation instruction;
[0100] Determining the legitimacy of the reset operation instruction according to the historical operation list;
[0101] When the reset operation instruction is legal, obtaining the operation cache information in the history operation list;
[0102] Reset the state of the control panel according to the operation cache information.
[0103] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, 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 for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0104] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the control panel state resetting method provided by the above methods, the method comprising:
[0105] Responding to a reset operation instruction, calling a historical operation list, wherein the reset operation instruction includes a cancel operation instruction and a restore operation instruction;
[0106] Determining the legitimacy of the reset operation instruction according to the historical operation list;
[0107] When the reset operation instruction is legal, obtaining the operation cache information in the history operation list;
[0108] Reset the state of the control panel according to the operation cache information.
[0109] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for resetting the control panel state provided by the above methods is implemented, and the method includes:
[0110] Responding to a reset operation instruction, calling a historical operation list, wherein the reset operation instruction includes a cancel operation instruction and a restore operation instruction;
[0111] Determining the legitimacy of the reset operation instruction according to the historical operation list;
[0112] When the reset operation instruction is legal, obtaining the operation cache information in the history operation list;
[0113] Reset the state of the control panel according to the operation cache information.
[0114] The device embodiments described above are merely illustrative, wherein the units described 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 they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution 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 can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0116] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for resetting a control panel status, characterized in that: include: Responding to a reset operation instruction, calling a historical operation list, wherein the reset operation instruction includes a cancel operation instruction and a restore operation instruction; Determining the legitimacy of the reset operation instruction according to the historical operation list; When the reset operation instruction is legal, obtaining the operation cache information in the history operation list; Resetting the state of the control panel according to the operation cache information; The undo operation instruction includes a target undo step number, and the step of determining the legitimacy of the reset operation instruction according to the historical operation list specifically includes: When the reset operation instruction is an undo operation instruction, determining a maximum number of undo steps according to the historical operation list, wherein the maximum number of undo steps is determined according to a maximum number of records in the historical operation list and a current step position; When the maximum number of revocation steps is greater than or equal to the target number of revocation steps, the revocation operation instruction is legal; The undo operation instruction includes a target undo step number, and the step of determining the legitimacy of the reset operation instruction according to the historical operation list specifically includes: When the reset operation instruction is a restore operation instruction, and the target undo step number is less than or equal to the current step number position, the restore operation instruction is legal; The historical operation list is obtained by following the steps below: Monitoring control elements of the control panel, wherein the control elements include control information, location information, and time information; When the control element changes, the operation cache information before the change and the operation cache information after the change are saved in the historical operation list, wherein the operation cache information includes the control element; The step of resetting the state of the control panel according to the operation cache information specifically includes: Clearing the control elements of the control panel; According to the operation cache information, adding a target control element on the control panel, the target control element being a control element corresponding to the operation cache information; After the step of resetting the state of the control panel according to the operation cache information, the method further includes: Update the current step position; Determining the executability of the undo operation instruction and the restore operation instruction according to the current step position; When the undo operation instruction is not executable, disabling the undo operation instruction; When the recovery operation instruction is not executable, the recovery operation instruction is disabled.
2. The method for resetting the control panel status according to claim 1, characterized in that: After the step of saving the operation cache information before the change and the operation cache information after the change to the historical operation list when the control element changes, the method further includes: Monitoring the current number of records in the history operation list; If the current record quantity is greater than the maximum record quantity, the corresponding operation cache information is deleted according to the time information.
3. A device for resetting the control panel status, characterized in that: include: A list calling module, used to call a historical operation list in response to a reset operation instruction, wherein the reset operation instruction includes a cancel operation instruction and a restore operation instruction; An operation verification module, used to determine the legitimacy of the reset operation instruction according to the historical operation list; An information acquisition module, used for acquiring the operation cache information in the history operation list when the reset operation instruction is legal; A state resetting module, used to reset the state of the control panel according to the operation cache information; The undo operation instruction includes a target undo step number, and the step of determining the legitimacy of the reset operation instruction according to the historical operation list specifically includes: When the reset operation instruction is an undo operation instruction, determining a maximum number of undo steps according to the historical operation list, wherein the maximum number of undo steps is determined according to a maximum number of records in the historical operation list and a current step position; When the maximum number of revocation steps is greater than or equal to the target number of revocation steps, the revocation operation instruction is legal; The undo operation instruction includes a target undo step number, and the step of determining the legitimacy of the reset operation instruction according to the historical operation list specifically includes: When the reset operation instruction is a restore operation instruction, and the target undo step number is less than or equal to the current step number position, the restore operation instruction is legal; The historical operation list is obtained by following the steps below: Monitoring control elements of the control panel, wherein the control elements include control information, location information, and time information; When the control element changes, the operation cache information before the change and the operation cache information after the change are saved in the historical operation list, wherein the operation cache information includes the control element; The step of resetting the state of the control panel according to the operation cache information specifically includes: Clearing the control elements of the control panel; According to the operation cache information, adding a target control element on the control panel, the target control element being a control element corresponding to the operation cache information; After the step of resetting the state of the control panel according to the operation cache information, the method further includes: Update the current step position; Determining the executability of the undo operation instruction and the restore operation instruction according to the current step position; When the undo operation instruction is not executable, disabling the undo operation instruction; When the recovery operation instruction is not executable, the recovery operation instruction is disabled.
4. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for resetting the control panel status as described in any one of claims 1 to 2 is implemented.
5. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for resetting the control panel status as claimed in any one of claims 1 to 2 is implemented.
Citation Information
Patent Citations
Webpage data processing method and device, electronic equipment and storage medium
CN112799948A
Data tamper-proofing method and device, electronic equipment and storage medium
CN115525933A
