A data processing method and device
By receiving and storing data in the shuttle box and reducing interaction with the server, the server resource consumption problem caused by frequent shuttle box operation is solved, data processing efficiency is improved and user experience is improved.
Patent Information
- Application Number
- CN202210822725.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-12
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-07-12
AI Technical Summary
The shuttle box frequently interacts with the server on the web page, resulting in increased server resource consumption, low data processing efficiency, and affects user experience.
By receiving target instructions, data is acquired and stored in the local storage area, the interaction with the server is reduced and data processing efficiency is improved.
It reduces the performance consumption of the server, improves the efficiency of data processing, and improves the user experience.
Smart Images

Figure CN115113822B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data processing method and device. Background Art
[0002] When it is necessary to select data on a web page, the shuttle box becomes the first choice for web page data processing because of its simple implementation and convenient user operation.
[0003] However, in actual use, the amount of data that needs to be processed in the web page is very large. The data loading of the shuttle box and various operations on the shuttle box require frequent interactions with the server, which increases the resource consumption of the server, resulting in low data processing efficiency and seriously affecting the user experience. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, device, electronic device and storage medium to solve the problem in the prior art that various operations on the shuttle box require frequent interactions with the server, increasing the resource consumption of the server, resulting in low data processing efficiency and seriously affecting the user experience.
[0005] In a first aspect of an embodiment of the present application, a data processing method is provided, the method comprising:
[0006] Receive a target instruction, where the target instruction is an initialization instruction for the shuttle box, or the target instruction is a search instruction for the candidate box or the selected box in the shuttle box; based on the target instruction, obtain target data, where the target data is all or part of the data in the target instruction data corresponding to the target instruction; in the case where the target instruction is an initialization instruction or a search instruction for the candidate box, display the target data in the candidate box, and store the target data in a first storage area corresponding to the candidate box, so as to subsequently obtain the data in the target data from the first storage area; in the case where the target instruction is a search instruction for the selected box, display the target data in the selected box, and store the target data in a second storage area corresponding to the selected box, so as to subsequently obtain the data in the target data from the second storage area.
[0007] Optionally, the target instruction is a search instruction for the candidate box, and all to-be-displayed data corresponding to the candidate box are stored in a third storage area corresponding to the candidate box; based on the target instruction, acquiring the target data includes: based on the target instruction, searching the target instruction data from the third storage area; determining the target data from the target instruction data; storing the target data in the first storage area corresponding to the candidate box includes: storing the target instruction data in the first storage area;
[0008] or,
[0009] The target instruction is a search instruction for the selected box, and all the data to be displayed corresponding to the selected box are stored in the fourth storage area corresponding to the selected box; based on the target instruction, the target data is obtained, including: based on the target instruction, searching for the target instruction data from the fourth storage area; determining the target data from the target instruction data; storing the target data in the second storage area corresponding to the selected box, including: storing the target instruction data in the second storage area.
[0010] Optionally, the target data is part of the target instruction data; after storing the target data in the first storage area corresponding to the candidate box, the method also includes: receiving a first switching instruction for the candidate box to switch from a first current page to a first target page; in response to the first switching instruction, when the first target page data is included in the first storage area, obtaining the first target page data from the first storage area, and replacing the first current page data displayed by the candidate box with the first target page data; when the first storage area does not include the first target page data corresponding to the target page, obtaining the first target page data from the server; storing the first target page data in the first storage area, and replacing the first current page data displayed by the candidate box with the first target page data.
[0011] Optionally, the target data is part of the target instruction data, and the target instruction data is stored in the second storage area; after storing the target data in the second storage area corresponding to the selection box, the method also includes: receiving a second switching instruction for the selection box to switch from the second current page to the second target page; in response to the second switching instruction, obtaining the second target page data from the second storage area, and replacing the second current page data displayed by the selection box with the second target page data.
[0012] Optionally, the data processing method of the embodiment of the present application also includes: receiving a right shuttle instruction for the shuttle box, the right shuttle instruction is used to shuttle the currently selected data in the candidate box to the selected box; in response to the right shuttle instruction, determining the data to be shuttled corresponding to the right shuttle instruction; storing the data to be shuttled in a target storage area corresponding to the selected box, the target storage area is the second storage area or the fourth storage area, the fourth storage area is used to store all the data to be displayed corresponding to the selected box; performing target processing on the data to be shuttled in the first storage area, the target processing is deletion processing or marking processing, and the marking processing is used to make the marked data in an unselectable state when displayed.
[0013] Optionally, before receiving the right shuttle instruction, the first page of the candidate box displays the first data, and the first data includes at least one data in the data to be shuttled; after performing target processing on the data to be shuttled in the first storage area, the method also includes: when displaying the first page, replacing the data of the first page by the first data with the second data, and at least one data in the first data is in an optional state; when the target processing is a deletion processing, the second data includes data in the first data except at least one data, and when the target processing is a marking processing, the second data is all the data in the first data, but at least one data in the second data is in an unselectable state; the page currently displayed in the selected box is updated to the target page, and the data displayed in the target page includes the data in the data to be shuttled.
[0014] Optionally, after performing target processing on the data to be shuttled in the first storage area, the method further includes: receiving a preset instruction for the selected box, the preset instruction being a left shuttle instruction or a clear instruction, the left shuttle instruction being used to shuttle the data currently selected in the selected box to the candidate box, and the clear instruction being used to delete all the data in the selected box; in response to the preset instruction, determining the data to be processed corresponding to the preset instruction; when the target processing is a deletion processing, storing the data to be processed in the first storage area, and deleting the data to be processed in the target storage area; when the target processing is a marking processing, canceling the mark of the data to be processed in the first storage area, and deleting the data to be processed in the target storage area.
[0015] Optionally, after deleting the data to be processed in the second storage area, the method also includes: when the candidate box displays the second page, replacing the data displayed on the second page with the fourth data by the fifth data, and before receiving the preset instruction, the data to be processed includes N data shuttled from the second page to the selected box, N is a positive integer; when the target processing is a deletion processing, the fourth data does not include N data, and the fifth data includes N data; when the target processing is a marking processing, the N data included in the fourth data are in an unselectable state, and the N data included in the fifth data are in an selectable state; when the preset instruction is a left shuttle instruction, when the selected box displays the third page, the sixth data displayed on the third page is replaced with the seventh data, and the sixth data includes M data in the data to be processed; the seventh data does not include M data, M is a positive integer; when the preset instruction is a clear instruction, an empty page is displayed in the selected box.
[0016] Optionally, the data processing method of an embodiment of the present application also includes: receiving a role adding instruction to a candidate box; displaying a role adding box in response to the role adding instruction; receiving a data input instruction in the role adding box; determining the data to be added corresponding to the data input instruction; storing the data to be added to a first storage area; and displaying the data to be added in the candidate box.
[0017] According to a second aspect of an embodiment of the present application, a data processing device is provided, the device comprising: a receiving module, an acquisition module, a display module, and a storage module; the receiving module is used to receive a target instruction, the target instruction being an initialization instruction for a shuttle box, or the target instruction being a search instruction for a candidate box or a selected box in the shuttle box; the acquisition module is used to acquire target data based on the target instruction, the target data being all or part of the data in the target instruction data corresponding to the target instruction; the display module is used to display the target data in the candidate box when the target instruction is an initialization instruction or a search instruction for the candidate box; the storage module is used to store the target data in a first storage area corresponding to the candidate box, so as to subsequently acquire the data in the target data from the first storage area; the display module is also used to display the target data in the selected box when the target instruction is a search instruction for the selected box; the storage module is also used to store the target data in a second storage area corresponding to the selected box, so as to subsequently acquire the data in the target data from the second storage area.
[0018] Optionally, the target instruction is a search instruction for the candidate box, and all the to-be-displayed data corresponding to the candidate box are stored in a third storage area corresponding to the candidate box; the acquisition module is specifically used to search for the target instruction data from the third storage area based on the target instruction; determine the target data from the target instruction data; the storage module is specifically used to store the target instruction data in the first storage area;
[0019] or,
[0020] The target instruction is a search instruction for the selected box, and all the data to be displayed corresponding to the selected box are stored in the fourth storage area corresponding to the selected box; the acquisition module is specifically used to search for the target instruction data from the fourth storage area based on the target instruction; determine the target data from the target instruction data; the storage module is specifically used to store the target instruction data in the second storage area.
[0021] Optionally, the target data is part of the target instruction data; after storing the target data in the first storage area corresponding to the candidate box, the receiving module is also used to receive a first switching instruction for the candidate box to switch from a first current page to a first target page; the acquisition module is also used to respond to the first switching instruction and, when the first storage area includes the first target page data, acquire the first target page data from the first storage area; the display module is also used to replace the first current page data displayed by the candidate box with the first target page data; the acquisition module is also used to acquire the first target page data from the server when the first storage area does not include the first target page data corresponding to the target page; store the first target page data in the first storage area; the display module is also used to replace the first current page data displayed by the candidate box with the first target page data.
[0022] Optionally, the target data is part of the target instruction data, and the target instruction data is stored in the second storage area; after the target data is stored in the second storage area corresponding to the selection box, the receiving module is also used to receive a second switching instruction for the selection box to switch from the second current page to the second target page; the storage module is also used to obtain the second target page data from the second storage area in response to the second switching instruction; the display module is also used to replace the second current page data displayed by the selection box with the second target page data.
[0023] Optionally, the data processing module of the embodiment of the present application also includes: a determination module and a processing module; the receiving module is further used to receive a right shuttle instruction for the shuttle box, the right shuttle instruction is used to shuttle the currently selected data in the candidate box to the selected box; the determination module is used to determine the data to be shuttled corresponding to the right shuttle instruction in response to the right shuttle instruction; the storage module is further used to store the data to be shuttled in a target storage area corresponding to the selected box, the target storage area is the second storage area or the fourth storage area, the fourth storage area is used to store all the data to be displayed corresponding to the selected box; the processing module is used to perform target processing on the data to be shuttled in the first storage area, the target processing is deletion processing or marking processing, and the marking processing is used to make the marked data in an unselectable state when displayed.
[0024] Optionally, before receiving the right shuttle instruction, the first page of the candidate box displays first data, and the first data includes at least one data in the data to be shuttled; after the data to be shuttled in the first storage area is subjected to target processing, the display module is also used to replace the data of the first page from the first data to the second data when displaying the first page, and at least one data in the first data is in an optional state; when the target processing is a deletion processing, the second data includes data in the first data except at least one data, and when the target processing is a marking processing, the second data is all data in the first data, but at least one data in the second data is in an unselectable state; the display module is also used to update the page currently displayed in the selected box to the target page, and the data displayed in the target page includes the data in the data to be shuttled.
[0025] Optionally, after the target processing is performed on the data to be shuttled in the first storage area, the receiving module is also used to receive a preset instruction for the selected box, the preset instruction is a left shuttle instruction or a clear instruction, the left shuttle instruction is used to shuttle the data currently selected in the selected box to the candidate box, and the clear instruction is used to delete all the data in the selected box; the determination module is also used to determine the data to be processed corresponding to the preset instruction in response to the preset instruction; the storage module is also used to store the data to be processed in the first storage area and delete the data to be processed in the target storage area when the target processing is a deletion processing; the processing module is also used to cancel the mark of the data to be processed in the first storage area and delete the data to be processed in the target storage area when the target processing is a marking processing.
[0026] Optionally, the display module is also used to replace the data displayed on the second page with the fifth data when the candidate box displays the second page. Before receiving the preset instruction, the data to be processed includes N data that are shuttled from the second page to the selected box, and N is a positive integer; when the target processing is deletion processing, the fourth data does not include N data, and the fifth data includes N data; when the target processing is marking processing, the N data included in the fourth data are in an unselectable state, and the N data included in the fifth data are in an optional state; the display module is also used to replace the sixth data displayed on the third page with the seventh data when the preset instruction is a left shuttle instruction and the selected box displays the third page, the sixth data includes M data in the data to be processed; the seventh data does not include M data, and M is a positive integer; the display module is also used to display an empty page in the selected box when the preset instruction is a clear instruction.
[0027] Optionally, the receiving module is also used to receive a role adding instruction to the candidate box; the display module is also used to display the role adding box in response to the role adding instruction; the receiving module is also used to receive a data input instruction in the role adding box; the determining module is also used to determine the data to be added corresponding to the data input instruction; the storage module is also used to store the data to be added in the first storage area; the display module is also used to display the data to be added in the candidate box.
[0028] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the data processing method described in the first aspect.
[0029] According to a fourth aspect of an embodiment of the present application, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the data processing method described in the first aspect are implemented.
[0030] A fifth aspect of an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program or instructions. When the computer program product runs on a processor, the processor executes the computer program or instructions to implement the steps of the data processing method described in the first aspect.
[0031] In a sixth aspect of an embodiment of the present application, a chip is provided, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the data processing method described in the first aspect.
[0032] Compared with the prior art, the technical solution provided by the embodiments of the present application has the following advantages:
[0033] In the embodiment of the present application, a target instruction is received, the target instruction is an initialization instruction for the shuttle box, or the target instruction is a search instruction for the candidate box or the selected box in the shuttle box; based on the target instruction, the target data is obtained, and the target data is all or part of the data in the target instruction data corresponding to the target instruction; in the case where the target instruction is an initialization instruction or a search instruction for the candidate box, the target data is displayed in the candidate box, and the target data is stored in the first storage area corresponding to the candidate box, so that the data in the target data can be obtained from the first storage area later; in the case where the target instruction is a search instruction for the selected box, the target data is displayed in the selected box, and the target data is stored in the second storage area corresponding to the selected box, so that the data in the target data can be obtained from the second storage area later. In this way, the data obtained from the server is stored in the first storage area, and when the data already stored in the first storage area needs to be used later, the data can be obtained from the first storage area without obtaining the data from the server, thereby reducing the interaction with the server, reducing the performance consumption of the server, and can alleviate the pressure on the server to a certain extent. In addition, the efficiency of obtaining data from the first storage area is higher than that of obtaining data from the server, thereby improving the efficiency of data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can be obtained based on these drawings.
[0035] Figure 1 One of the flow charts of the data processing method provided in the embodiment of the present application;
[0036] Figure 2 One of the interface diagrams of the shuttle frame provided in the embodiment of the present application;
[0037] Figure 3 The second schematic diagram of the interface of the shuttle frame provided in the embodiment of the present application;
[0038] Figure 4 The second flowchart of the data processing method provided in the embodiment of the present application;
[0039] Figure 5 The third flowchart of the data processing method provided in the embodiment of the present application;
[0040] Figure 6 A fourth flowchart of the data processing method provided in an embodiment of the present application;
[0041] Figure 7 A fifth flowchart of the data processing method provided in the embodiment of the present application;
[0042] Figure 8 Flow chart six of the data processing method provided in the embodiment of the present application;
[0043] Fig. 9 The third schematic diagram of the interface of the shuttle frame provided in the embodiment of the present application;
[0044] Fig.10 Flow chart of the data processing method provided in the embodiment of the present application is as follows;
[0045] Fig.11 The eighth flowchart of the data processing method provided in the embodiment of the present application;
[0046] Fig.12 The fourth schematic diagram of the interface of the shuttle frame provided in the embodiment of the present application;
[0047] Fig.13 A structural block diagram of a data processing device provided in an embodiment of the present application;
[0048] Fig.14 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0050] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0051] The electronic device in the embodiment of the present application may be a mobile electronic device or a non-mobile electronic device. The mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA); the non-mobile electronic device may be a personal computer (PC), a television (TV), a teller machine, or a self-service machine; the embodiment of the present application does not specifically limit the above.
[0052] The executor of the data processing method provided in the embodiment of the present application may be the above-mentioned electronic device (including mobile electronic devices and non-mobile electronic devices), or may be a functional module and / or functional entity in the electronic device that can implement the data processing method. The specific execution may be determined according to actual usage requirements and is not limited by the embodiment of the present application.
[0053] The data processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0054] like Figure 1 As shown, the embodiment of the present application provides a data processing method, and the following takes the execution subject as an electronic device as an example to exemplarily illustrate the data processing method provided by the embodiment of the present application. The method may include the following steps 101 to 106.
[0055] 101. Receive target instructions.
[0056] The target instruction is an initialization instruction for the shuttle box, or the target instruction is a search instruction for a candidate box or a selected box in the shuttle box.
[0057] 102. Based on the target instruction, obtain target data.
[0058] The target data is all or part of the target instruction data corresponding to the target instruction.
[0059] It can be understood that when the target instruction is an initialization instruction, the target data is obtained from the server based on the initialization instruction.
[0060] It can be understood that while obtaining the target data from the server, the quantity of all data in the target instruction data can also be obtained from the server, recorded as quantity A, and stored in the local storage area, so that after the server data is subsequently updated, it can be determined locally whether the data has been updated based on quantity A.
[0061] It can be understood that when the target instruction is a search instruction for a candidate box, based on the search instruction for the candidate box, if data corresponding to the search instruction for the candidate box is stored in the local storage area, the target data is obtained from the local storage area; if data corresponding to the search instruction for the candidate box is not stored in the local storage area, the target data is obtained from the server.
[0062] It can be understood that when the target instruction is a search instruction for a selected box, the target data is obtained from the local storage area based on the search instruction for the selected box.
[0063] It can be understood that the target instruction data is all the data to be displayed in the candidate box or the selected box. When the number of target instruction data is less than or equal to the quantity threshold (the target instruction data can be displayed in one page of the candidate box or the selected box), the target data is the target instruction data (that is, all the data in the target instruction data is obtained); when the number of target instruction data is greater than the quantity threshold (the target instruction data needs to be displayed through multiple pages in the candidate box or the selected box), the target data is part of the target instruction data (that is, the target data is all the data to be displayed on the preset page).
[0064] 103. When the target instruction is an initialization instruction or a search instruction for a candidate box, display the target data in the candidate box.
[0065] 104. Store the target data in a first storage area corresponding to the candidate box.
[0066] The target data is stored in a first storage area corresponding to the candidate box, so that data in the target data can be subsequently obtained from the first storage area.
[0067] It can be understood that the first storage area stores the data that has been displayed in the candidate box, and when the target instruction is an initialization instruction or a search instruction for the candidate box, the first storage area is used to store the target instruction data.
[0068] 105. When the target instruction is a search instruction for a selected box, the target data is displayed in the selected box.
[0069] 106. Store the target data in the second storage area corresponding to the selected box.
[0070] The target data is stored in the second storage area corresponding to the selected box, so that the data in the target data can be subsequently obtained from the second storage area.
[0071] It can be understood that the second storage area stores the data that has been displayed in the selected box, and when the target instruction is a search instruction for the selected box, the second storage area is used to store the target instruction data.
[0072] For example, the quantity threshold is 10, and the target instruction is an initialization instruction for the shuttle box; in one case, the quantity of target instruction data is 10, then based on the target instruction, the target data obtained from the server is the data corresponding to all the target instructions, and the obtained 10 data are stored in the first storage area, and the 10 data are displayed in the candidate box, such as Figure 2 As shown, data 1 to data 10 are displayed in the candidate box indicated by label 200; in another case: the number of target instruction data is 300, and the number of pages is determined to be 300 / 10=30 according to the number threshold and the number of target instruction data. Then, based on the target instruction, the target data obtained from the server is the 10 data of the first page to be displayed in the candidate box (i.e., the target data), and the corresponding relationship between the 10 obtained data and the page number is stored in the first storage area (e.g., 0: [data 1, data 2...data 10], 0 represents the first page). Figure 3 As shown, data 1 to data 10 are displayed in the candidate box indicated by reference numeral 200 , and the page numbers corresponding to the 10 data and the total page number are displayed in the page number area indicated by reference numeral 201 .
[0073] Exemplarily, the first storage area and the second storage area are both local storage areas. The local storage area can be a global variable, sessionStroage or local variable customized in the code, etc. The storage format of the data can be an array or an object, etc., which is determined according to actual needs and is not limited in the embodiments of the present application.
[0074] In the embodiment of the present application, a target instruction is received, the target instruction is an initialization instruction for the shuttle box, or the target instruction is a search instruction for the candidate box or the selected box in the shuttle box; based on the target instruction, the target data is obtained, and the target data is all or part of the data in the target instruction data corresponding to the target instruction; in the case where the target instruction is an initialization instruction or a search instruction for the candidate box, the target data is displayed in the candidate box, and the target data is stored in the first storage area corresponding to the candidate box, so that the data in the target data can be obtained from the first storage area later; in the case where the target instruction is a search instruction for the selected box, the target data is displayed in the selected box, and the target data is stored in the second storage area corresponding to the selected box, so that the data in the target data can be obtained from the second storage area later. In this way, the data obtained from the server is stored in the first storage area, and when the data already stored in the first storage area needs to be used later, the data can be obtained from the first storage area without obtaining the data from the server, thereby reducing the interaction with the server, reducing the performance consumption of the server, and can alleviate the pressure on the server to a certain extent. In addition, the efficiency of obtaining data from the first storage area is higher than that of obtaining data from the server, thereby improving the efficiency of data processing.
[0075] Optionally, the target instruction is a search instruction for the candidate box, and all the to-be-displayed data corresponding to the candidate box are stored in the third storage area corresponding to the candidate box; Figure 1 ,like Figure 4 As shown, the above step 102 can be specifically implemented through the following steps 102a and 102b, and the above step 104 can be specifically implemented through the following step 104a.
[0076] 102a. Based on the target instruction, search the third storage area for target instruction data.
[0077] 102b. Determine target data from the target instruction data.
[0078] It can be understood that the target data is determined from the target instruction data, that is, all the data corresponding to the search instructions for the candidate box. When the number of target instruction data is less than or equal to the quantity threshold (the target instruction data can be displayed in one page of the candidate box), the target data is the target instruction data; when the number of target instruction data is greater than the quantity threshold (the target instruction data needs to be displayed through multiple pages in the candidate box), the target data is part of the target instruction data (such as the target data is all the data of the first page displayed in the candidate box).
[0079] 104a. Store the target instruction data in a first storage area.
[0080] It can be understood that the target instruction data is stored in the first storage area, that is, all the data corresponding to the search instructions for the candidate box are stored in the first storage area. If the amount of target instruction data is greater than the quantity threshold, it is necessary to display multiple pages in the candidate box. When switching the page number in the candidate box, there is no need to search again, and the data of the corresponding page number can be obtained from the first storage area.
[0081] Exemplarily, when the amount of target instruction data is greater than a quantity threshold, the number of paging is determined based on the quantity threshold and the amount of target instruction data, and the target instruction data is stored in a first storage area according to the correspondence between the page number and the data contained in the page. When the page number is switched in the candidate box, the data corresponding to the page number is obtained from the first storage area and replaces the data of the current page of the candidate box.
[0082] It should be noted that if the searched data has been moved to the selection box (ie, the data stored in the second storage area), the data will be in an unselectable state when displayed in the candidate box.
[0083] Exemplarily, the searched data is compared with the data in the second storage area. If they are identical, their display status is marked as unselectable. When displayed, the marked data is grayed out and the status is unselectable.
[0084] Optionally, if the third storage area corresponding to the candidate box does not store all the data to be displayed, the target data is obtained from the server based on the target instruction, thereby ensuring that the data corresponding to the search instruction for the candidate box is all the data that satisfies the search instruction.
[0085] In an embodiment of the present application, the target instruction is a search instruction for the candidate box, and all the data to be displayed corresponding to the candidate box are stored in the third storage area corresponding to the candidate box; based on the target instruction, the target instruction data is searched from the third storage area; the target data is determined from the target instruction data; the target instruction data is stored in the first storage area; in this way, when the search instruction for the candidate box is received, the target instruction data can be searched from the third storage area, and the target instruction data can be stored in the first storage area. In this way, when the amount of target instruction data is large and multiple pages need to be displayed, there is no need to re-search when switching pages, and the data of the corresponding page can be directly obtained from the first storage area, which saves the time for obtaining data and thereby improves the efficiency of data processing.
[0086] Optionally, the target instruction is a search instruction for the selected box, and all the to-be-displayed data corresponding to the selected box are stored in the fourth storage area corresponding to the selected box; Figure 1 ,like Figure 5 As shown, the above step 102 can be specifically implemented through the following steps 102c and 102d, and the above step 106 can be specifically implemented through the following step 106a.
[0087] 102c. Based on the target instruction, search the fourth storage area for target instruction data.
[0088] 102d. Determine target data from the target instruction data.
[0089] It can be understood that the target data is determined from the target instruction data, that is, all the data corresponding to the search instruction searched for the selected box. When the number of target instruction data is less than or equal to the quantity threshold (the target instruction data can be displayed in one page of the selected box), the target data is the target instruction data; when the number of target instruction data is greater than the quantity threshold (the target instruction data needs to be displayed through multiple pages in the selected box), the target data is part of the target instruction data (such as the target data is all the data on the first page displayed in the selected box).
[0090] 106a. Store the target instruction data in the second storage area.
[0091] It can be understood that the target instruction data is stored in the second storage area, that is, all the data corresponding to the search instructions of the selected box are stored in the second storage area. If the amount of target instruction data is greater than the quantity threshold, it is necessary to display multiple pages in the selected box. When switching the page number in the selected box, there is no need to search again, and the data of the corresponding page number can be obtained from the second storage area.
[0092] Exemplarily, when the amount of target instruction data is greater than a quantity threshold, the number of paging is determined based on the quantity threshold and the amount of target instruction data, and the target instruction data is stored in a second storage area according to the correspondence between the page number and the data contained in the page. When the page number is switched in the check box, the data corresponding to the page number is obtained from the second storage area and replaces the data of the current page of the check box.
[0093] In an embodiment of the present application, the target instruction is a search instruction for the selected box, and all the data to be displayed corresponding to the selected box are stored in the fourth storage area corresponding to the selected box; based on the target instruction, the target instruction data is searched from the fourth storage area; the target data is determined from the target instruction data; the target instruction data is stored in the second storage area; in this way, when the amount of target instruction data is large and multiple pages need to be displayed, there is no need to re-search when switching pages, and the data of the corresponding page can be directly obtained from the second storage area, which saves the time for obtaining data and thereby improves the efficiency of data processing.
[0094] Optionally, the target data is part of the target instruction data; Figure 1 ,like Figure 6 As shown, after the above step 104, the method of the embodiment of the present application also includes the following steps 107 to 112.
[0095] 107 . Receive a first switching instruction for switching the candidate box from a first current page to a first target page.
[0096] It can be understood that the first switching instruction can be generated based on the user clicking the control of the next page or the previous page, or it can be generated based on the operation of entering the target page in the page box. Specifically, the embodiment of the present application does not limit this.
[0097] It can be understood that receiving the first switching instruction for switching from the first current page to the first target page for the candidate box can be after receiving the initialization instruction for the shuttle box or the search instruction for the candidate box and displaying the target data, or before receiving the search instruction for the candidate box and displaying the target data.
[0098] 108. In response to the first switching instruction, when the first storage area includes the first target page data, obtain the first target page data from the first storage area.
[0099] It can be understood that before obtaining the first target page data from the first storage area, in order to ensure that the obtained data is the latest data, the number of target instruction data is obtained from the server, and the obtained number is compared with the number A stored locally. If they are the same, the first target page data is obtained from the first storage area. If they are different (that is, the data is updated), the first target page data is obtained from the server and the first target page data is stored in the first storage area (replacing the first target page data originally stored in the first storage area). In this way, it can be ensured that when the data on the server is updated, the data displayed in the shuttle box are all updated data.
[0100] 109. Replace the first current page data displayed in the candidate box with the first target page data.
[0101] 110. When the first storage area does not include first target page data corresponding to the target page, obtain the first target page data from the server.
[0102] 111. Store first target page data in a first storage area.
[0103] 112. Replace the first current page data displayed in the candidate box with the first target page data.
[0104] It can be understood that the number of target instruction data in the candidate box is greater than the quantity threshold and needs to be displayed through multiple pages. Therefore, when the first switching instruction is received, it indicates that the current page needs to be switched to the target page, and it is determined whether the first storage area stores the data corresponding to the target page. When the data corresponding to the target page (i.e., the target page data) is stored in the first storage area, the data corresponding to the target page is obtained from the first storage area and the data displayed on the current page in the candidate box (i.e., the first current page data) is replaced with the data corresponding to the target page; when the data corresponding to the target page is not stored in the first storage area, the data corresponding to the target page is obtained from the server, the data corresponding to the target page is stored in the first storage area, and the data displayed on the current page in the candidate box is replaced with the data corresponding to the target page.
[0105] It can be understood that the first storage area stores the data that has been displayed in the candidate box. Because when the amount of target instruction data is large, it will consume more time to obtain all of it from the server at one time. Therefore, when the target page needs to be displayed in the candidate box, and the target page has not been displayed in the candidate box, the data corresponding to the target page is obtained from the server. If the target page has been displayed in the candidate box, the data corresponding to the target page is obtained from the first storage area. That is, all data that have been displayed in the candidate box will be stored in the first storage area, and data that has not been displayed in the candidate box needs to be obtained from the server.
[0106] Exemplarily, there are 30 pages of data to be displayed in the candidate box. When the shuttle box is initialized, the data of the first page is obtained from the server and stored in the first storage area according to the correspondence between the page number and the data. When a switch from the first page to the third page is received, the data of the third page has not been displayed in the candidate box, so the first storage area does not store the data corresponding to the third page. Then, the data of the third page is obtained from the server and stored in the first storage area according to the correspondence between the page number and the data. When a switch from the third page to the first page is received, because the first page has been displayed in the candidate box, the first storage area stores the data corresponding to the first page, then the data corresponding to the first page is obtained from the first storage area.
[0107] In the embodiment of the present application, the target data is part of the target instruction data; a first switching instruction for switching from the first current page to the first target page for the candidate box is received; in response to the first switching instruction, when the first target page data is included in the first storage area, the first target page data is obtained from the first storage area, and the first current page data displayed by the candidate box is replaced with the first target page data; when the first storage area does not include the first target page data corresponding to the target page, the first target page data is obtained from the server; the first target page data is stored in the first storage area, and the first current page data displayed by the candidate box is replaced with the first target page data. In this way, when the amount of target instruction data is large, it is not necessary to obtain all the target instruction data from the server at one time, but when the target page needs to be displayed and the data corresponding to the target page is not stored in the first storage area, the data corresponding to the target page is obtained from the server, and the data is stored in the first storage area. When switching to the target page next time, it is not necessary to obtain it from the server again, and it can be directly obtained from the first storage area, which saves the time of data acquisition, reduces the interaction with the server, and thus improves the efficiency of data processing.
[0108] Optionally, the target data is part of the target instruction data, and the second storage area stores the target instruction data; Figure 1 ,like Figure 7 As shown, after the above step 106, the method of the embodiment of the present application also includes the following steps 113 to 115.
[0109] 113. Receive a second switching instruction for switching the selected box from the second current page to the second target page.
[0110] It can be understood that the second switching instruction can be generated based on the user clicking the control of the next page or the previous page, or it can be generated based on the operation of entering the target page in the page box. Specifically, the embodiment of the present application is not limited.
[0111] It can be understood that receiving the second switching instruction for switching from the second current page to the second target page for the selected box can be after receiving the initialization instruction for the shuttle box or receiving the search instruction for the candidate box and displaying the target data, or before receiving the search instruction for the candidate box and displaying the target data.
[0112] 114. In response to the second switching instruction, obtain second target page data from the second storage area.
[0113] 115. Replace the second current page data displayed in the selected box with the second target page data.
[0114] It can be understood that all the data to be displayed in the selected box are stored in the second storage area. When a second switching instruction is received for the selected box to switch from the second current page to the second target page, the data corresponding to the second target page (i.e., the second target page data) is obtained from the second storage area, and the second current page data displayed in the selected box is replaced with the second target page data.
[0115] In the embodiment of the present application, the target data is part of the target instruction data, and the second storage area stores the target instruction data; a second switching instruction for switching from the second current page to the second target page for the check box is received; in response to the second switching instruction, the second target page data is obtained from the second storage area, and the second current page data displayed in the check box is replaced with the second target page data. In this way, when switching pages in the check box, it is more efficient to obtain the data corresponding to the target page number from the second storage area than from the server.
[0116] Optionally, combined Figure 1 ,like Figure 8 As shown, the data processing method of the embodiment of the present application also includes the following steps 116 to 119.
[0117] 116. Receive a rightward shuttle instruction for the shuttle frame.
[0118] Among them, the right shuttle instruction is used to shuttle the currently selected data in the candidate box to the selected box.
[0119] It can be understood that the right shuttle instruction may be received after receiving the initialization instruction for the shuttle box or receiving the search instruction for the candidate box and displaying the target data, or before receiving the search instruction for the candidate box and displaying the target data.
[0120] It can be understood that the right shuttle instruction is an instruction generated after the user selects the data to be shuttled to the selected box in the candidate box and clicks the right shuttle control.
[0121] 117. In response to a right shuttle instruction, determine the to-be-shuttled data corresponding to the right shuttle instruction.
[0122] 118. Store the data to be shuttled to the target storage area corresponding to the selected box.
[0123] The target storage area is the second storage area or the fourth storage area, and the fourth storage area is used to store all the to-be-displayed data corresponding to the selected box.
[0124] It can be understood that if the right shuttle instruction receives the search instruction for the selected box and displays the target data, the data to be shuttled will be stored in the second storage area; if the right shuttle instruction receives the initialization instruction for the shuttle box or the search instruction for the candidate box and displays the target data, the data to be shuttled will be stored in the fourth storage area.
[0125] 119. Perform target processing on the data to be shuttled in the first storage area.
[0126] The target processing is a deletion processing or a marking processing, and the marking processing is used to make the marked data in an unselectable state when displayed.
[0127] It can be understood that after at least one data is selected in the candidate area, the at least one selected data is all moved to the selected area, then in the first storage area corresponding to the candidate area, the at least one data is all deleted, or a mark is added to each data in the at least one data (the mark is used to indicate that the status of the at least one data is not selectable when the at least one data is displayed), and the at least one data is stored in the target storage area corresponding to the candidate area.
[0128] For example, Fig. 9 As shown, after selecting data 23 and data 24 in the candidate box indicated by label 200, click the right arrow indicated by label 301 to shuttle the data to the selected box indicated by label 300, and data 23 and data 24 will become gray in the candidate box, that is, they are not selectable.
[0129] In the embodiment of the present application, a right shuttle instruction is received for the shuttle box, and the right shuttle instruction is used to shuttle the currently selected data in the candidate box to the selected box; in response to the right shuttle instruction, the data to be shuttled corresponding to the right shuttle instruction is determined; the data to be shuttled is stored in the target storage area corresponding to the selected box, and the target storage area is the second storage area or the fourth storage area, and the fourth storage area is used to store all the data to be displayed corresponding to the selected box; the data to be shuttled in the first storage area is subjected to target processing, and the target processing is deletion processing or marking processing, and the marking processing is used to make the marked data in an unselectable state when displayed. In this way, after receiving the right shuttle instruction, the data in the local storage area is added and deleted without interacting with the server, and relatively many times of appending data in the selected box requires multiple executions of dom operations. The present solution is to obtain data from the local storage area and then replace it as a whole, and execute a document object model (DocumentObject Model, dom) operation once, which improves the speed of data loading and interface rendering, and the data processing efficiency is higher.
[0130] Optionally, before receiving the rightward shuttle instruction, the first page of the candidate box displays first data, and the first data includes at least one data in the data to be shuttled; Figure 8 ,like Fig.10 As shown, after the above step 119, the data processing method of the embodiment of the present application also includes the following steps 120 to 121.
[0131] 120. When displaying the first page, replace the data of the first page with the second data from the first data, and at least one data in the first data is in an optional state.
[0132] Among them, when the target processing is deletion processing, the second data includes data in the first data except at least one data; when the target processing is marking processing, the second data is all data in the first data, but at least one data in the second data is in an unselectable state.
[0133] It can be understood that the first data includes at least one data in the data to be shuttled, that is, the first data includes all or part of the data in the data to be shuttled.
[0134] It can be understood that the first page can be the page currently displayed by the candidate box when the shuttle instruction is received, or it can be the page switched in response to the first switching instruction of the candidate box after the shuttle instruction is received.
[0135] Exemplarily, replacing the data of the first page from the first data to the second data means replacing the data of the first page as a whole. Specifically, in a Jquery framework, methods such as replaceWith and replaceAll may be used to achieve overall replacement of the data.
[0136] 121. The page currently displayed in the selected box is updated to the target page, and the data displayed in the target page includes the data in the data to be shuttled.
[0137] It can be understood that the data displayed in the target page includes part or all of the data to be shuttled.
[0138] It can be understood that for the convenience of the following description, the currently displayed page is recorded as page 1. If the total amount of data in the second storage area or the fourth storage area storing the data to be shuttled is less than or equal to the quantity threshold, the selected box page 1 is updated to the target page. The target page is the same page as page 1, and the target page includes the original data of page 1 and all the data in the data to be shuttled. If the total amount of data in the second storage area or the fourth storage area storing the data to be shuttled is greater than the quantity threshold, the selected box page 1 is updated to the target page, and before receiving the right shuttle instruction, the amount of data displayed on the last page in the selected box is less than the quantity threshold, the target page is the last page of the selected box, and the target page includes the original data of page 1 and part of the data in the data to be shuttled (the other data in the data to be shuttled except the part of the data displayed in the target page is displayed on the page after the target page); before receiving the right shuttle instruction, the amount of data displayed on the last page in the selected box is equal to the quantity threshold, the target page is the first page of the pages added in the selected box after receiving the right shuttle instruction (that is, the next page of the last page of the original selected box), and the target page includes all or part of the data in the data to be shuttled (if the amount of data to be shuttled is less than or equal to the quantity threshold, the target page includes all the data in the data to be shuttled; if the amount of data to be shuttled is greater than the quantity threshold, the target page includes part of the data in the data to be shuttled, and the rest of the data except the part of the data is displayed on the page after the target page).
[0139] In an embodiment of the present application, before receiving the right shuttle instruction, the first page of the candidate box displays the first data, and the first data includes at least one data in the data to be shuttled; after the data to be shuttled in the first storage area is subjected to target processing, the method further includes: when displaying the first page, the data of the first page is replaced by the second data from the first data, and at least one data in the first data is in an optional state; when the target processing is a deletion processing, the second data includes data in the first data except at least one data, and when the target processing is a marking processing, the second data is all data in the first data, but at least one data in the second data is in an unselectable state; the page currently displayed in the selected box is updated to the target page, and the data displayed in the target page includes the data in the data to be shuttled. In this way, after receiving the right shuttle instruction, data is obtained from the local storage area, and the data in the selected box or the candidate box is replaced as a whole, which reduces the interaction with the server, reduces DOM operations, improves the speed of data loading and interface rendering, and makes data processing more efficient.
[0140] Optionally, after the above step 119, the data processing method of the embodiment of the present application further includes the following steps 122 to 126.
[0141] 122. Receive preset instructions for the selected box.
[0142] Among them, the preset command is a left shuttle command or a clear command. The left shuttle command is used to shuttle the data currently selected in the selected box to the candidate box, and the clear command is used to delete all the data in the selected box.
[0143] It can be understood that the left shuttle instruction is an instruction generated after the user selects the data to be shuttled to the candidate box in the selection box and clicks the left shuttle control; the clear instruction is used to delete all the data in the selected box, that is, to delete all the data in the selected box and add all the data to the candidate box.
[0144] 123. In response to the preset instruction, determine the to-be-processed data corresponding to the preset instruction.
[0145] 124. When the target processing is a deletion processing, the data to be processed is stored in the first storage area.
[0146] 125. When the target processing is a marking processing, cancel the marking of the data to be processed in the first storage area.
[0147] 126. Delete the pending data in the target storage area.
[0148] In the embodiment of the present application, after the target processing is performed on the data to be shuttled in the first storage area, the method further includes: receiving a preset instruction for the selected box, the preset instruction is a left shuttle instruction or a clear instruction, the left shuttle instruction is used to shuttle the data currently selected in the selected box to the candidate box, and the clear instruction is used to delete all the data in the selected box; in response to the preset instruction, determining the data to be processed corresponding to the preset instruction; in the case where the target processing is a deletion processing, storing the data to be processed in the first storage area, and deleting the data to be processed in the target storage area; in the case where the target processing is a marking processing, canceling the marking of the data to be processed in the first storage area, and deleting the data to be processed in the target storage area. In this way, after receiving the preset instruction, the data in the local storage area is added and deleted without interacting with the server, and relatively many times of appending data in the candidate box requires multiple executions of dom operations. This scheme is to obtain data from the local storage area and then replace it as a whole, perform one dom operation, improve the speed of data loading and interface rendering, and the data processing efficiency is higher.
[0149] Optionally, after the above step 126, the data processing method of the embodiment of the present application further includes the following steps 127 to 128.
[0150] 127. When the candidate box displays the second page, the data displayed on the second page is replaced by the fifth data from the fourth data.
[0151] Among them, before receiving the preset instruction, the data to be processed includes N data shuttled from the second page to the selected box, and N is a positive integer; when the target processing is deletion processing, the fourth data does not include N data, and the fifth data includes N data; when the target processing is marking processing, the N data included in the fourth data are in a non-selectable state, and the N data included in the fifth data are in an optional state.
[0152] It can be understood that when the candidate box displays the second page, the data displayed on the second page is replaced by the fifth data from the fourth data. For example, data 1 in the data to be processed is at position 1 in the candidate box before shuttling from the candidate box to the selected box. After shuttling from the selected box back to the candidate box, it is still displayed at position 1 in the candidate box.
[0153] 128. When the preset instruction is a left shuttle instruction, when the third page is displayed in the selected box, the sixth data displayed on the third page is replaced with the seventh data.
[0154] The sixth data includes M data in the data to be processed; the seventh data does not include M data, and M is a positive integer.
[0155] It can be understood that when the third page is displayed in the selection box, the sixth data displayed on the third page is replaced by the seventh data, that is, the data selected in the selection box to be shuttled to the candidate box will no longer be displayed in the selection box after the shuttle.
[0156] 129. When the preset instruction is a clear instruction, an empty page is displayed in the selected box.
[0157] In an embodiment of the present application, after deleting the data to be processed in the second storage area, the method further includes: when the candidate box displays the second page, the data displayed on the second page is replaced by the fourth data with the fifth data, and before receiving the preset instruction, the data to be processed includes N data shuttled from the second page to the selected box, N is a positive integer; when the target processing is a deletion processing, the fourth data does not include N data, and the fifth data includes N data; when the target processing is a marking processing, the N data included in the fourth data is in an unselectable state, and the N data included in the fifth data is in an optional state; when the preset instruction is a left shuttle instruction, when the selected box displays the third page, the sixth data displayed on the third page is replaced with the seventh data, and the sixth data includes M data in the data to be processed; the seventh data does not include M data, M is a positive integer; when the preset instruction is a clear instruction, an empty page is displayed in the selected box. In this way, after receiving the preset instruction, data is obtained from the local storage area, and the data in the selected box or the candidate box is replaced as a whole, which reduces the interaction with the server, reduces the DOM operation, improves the speed of data loading and interface rendering, and has higher data processing efficiency.
[0158] Optionally, combined Figure 1 ,like Fig.11 The data processing method of the embodiment of the present application further includes the following steps 130 to 135 .
[0159] 130. Receive an instruction to add a role to the candidate box.
[0160] 131. In response to the role adding instruction, display a role adding box.
[0161] It can be understood that in response to the role adding instruction, the role adding box is displayed, which can be a pop-up window display, or the entire shuttle box can be refreshed to display the role adding box, which is not specifically limited in the embodiments of the present application.
[0162] 132. Receive data input instructions in the role adding box.
[0163] 133. Determine the data to be added corresponding to the data input instruction.
[0164] 134. Store the data to be added in the first storage area.
[0165] 135. Display the data to be added in the candidate box.
[0166] It can be understood that the role adding instruction is used to instruct to add data in the candidate box.
[0167] For example, Fig.12 As shown, by clicking the control indicated by the label 202 for adding a role, a role adding instruction can be generated, and the area indicated by the label 400 is a role adding box, in which the data to be added is input.
[0168] It can be understood that when adding roles in the candidate box, you can add them one by one, that is, add one at a time, or add them in batches, that is, add multiple at a time.
[0169] It can be understood that the data to be added is displayed in the candidate box. If the sum of the number of data on the last page of the candidate box and the number of data to be added is less than or equal to the quantity threshold, the data to be added is displayed on the last page; if the number of data on the last page of the candidate box is less than the quantity threshold, and the sum of the number of data on the last page of the candidate box and the number of data to be added is greater than the quantity threshold, part of the data to be added is displayed on the last page before the candidate box receives the add instruction, and the rest of the data to be added is displayed on the newly added page after the last page; if the number of data on the last page of the candidate box is greater than or equal to the quantity threshold, the data to be added is displayed on the newly added page after the last page before the candidate box receives the add instruction.
[0170] In the embodiment of the present application, the data processing method of the embodiment of the present application further includes: receiving a role adding instruction to the candidate box; displaying the role adding box in response to the role adding instruction; receiving a data input instruction in the role adding box; determining the data to be added corresponding to the data input instruction; storing the data to be added in the first storage area; and displaying the data to be added in the candidate box. In this way, data can be added dynamically in the candidate box, making the function of the shuttle box more complete and the user experience better.
[0171] Fig.13 A structural block diagram of a data processing device shown in an embodiment of the present application is shown in FIG. Fig.13As shown, the device includes: a receiving module 1301, an acquisition module 1302, a display module 1303, and a storage module 1304; the receiving module 1301 is used to receive a target instruction, the target instruction is an initialization instruction for the shuttle box, or the target instruction is a search instruction for a candidate box or a selected box in the shuttle box; the acquisition module 1302 is used to acquire target data based on the target instruction, the target data is all or part of the data in the target instruction data corresponding to the target instruction; the display module 1303 is used to display the target data in the candidate box when the target instruction is an initialization instruction or a search instruction for the candidate box; the storage module 1304 is used to store the target data in a first storage area corresponding to the candidate box, so as to subsequently acquire the data in the target data from the first storage area; the display module 1303 is also used to display the target data in the selected box when the target instruction is a search instruction for the selected box; the storage module 1304 is also used to store the target data in a second storage area corresponding to the selected box, so as to subsequently acquire the data in the target data from the second storage area.
[0172] Optionally, the target instruction is a search instruction for the candidate box, and all the to-be-displayed data corresponding to the candidate box are stored in the third storage area corresponding to the candidate box; the acquisition module 1302 is specifically used to search for the target instruction data from the third storage area based on the target instruction; determine the target data from the target instruction data; the storage module 1304 is specifically used to store the target instruction data in the first storage area;
[0173] or,
[0174] The target instruction is a search instruction for the selected box, and all the data to be displayed corresponding to the selected box are stored in the fourth storage area corresponding to the selected box; the acquisition module 1302 is specifically used to search for the target instruction data from the fourth storage area based on the target instruction; determine the target data from the target instruction data; the storage module 1304 is specifically used to store the target instruction data in the second storage area.
[0175] Optionally, the target data is part of the target instruction data; after storing the target data in the first storage area corresponding to the candidate box, the receiving module 1301 is also used to receive a first switching instruction for the candidate box to switch from the first current page to the first target page; the acquisition module 1302 is also used to respond to the first switching instruction and, when the first storage area includes the first target page data, obtain the first target page data from the first storage area; the display module 1303 is also used to replace the first current page data displayed by the candidate box with the first target page data; the acquisition module 1302 is also used to obtain the first target page data from the server when the first storage area does not include the first target page data corresponding to the target page; store the first target page data in the first storage area; the display module 1303 is also used to replace the first current page data displayed by the candidate box with the first target page data.
[0176] Optionally, the target data is part of the target instruction data, and the target instruction data is stored in the second storage area; after the target data is stored in the second storage area corresponding to the selected box, the receiving module 1301 is also used to receive a second switching instruction for the selected box to switch from the second current page to the second target page; the storage module 1304 is also used to obtain the second target page data from the second storage area in response to the second switching instruction; the display module 1303 is also used to replace the second current page data displayed in the selected box with the second target page data.
[0177] Optionally, the data processing module of the embodiment of the present application further includes: a determination module and a processing module; the receiving module 1301 is further used to receive a right shuttle instruction for the shuttle box, the right shuttle instruction is used to shuttle the currently selected data in the candidate box to the selected box; the determination module is used to determine the data to be shuttled corresponding to the right shuttle instruction in response to the right shuttle instruction; the storage module 1304 is further used to store the data to be shuttled in the target storage area corresponding to the selected box, the target storage area is the second storage area or the fourth storage area, the fourth storage area is used to store all the data to be displayed corresponding to the selected box; the processing module is used to perform target processing on the data to be shuttled in the first storage area, the target processing is deletion processing or marking processing, and the marking processing is used to make the marked data in an unselectable state when displayed.
[0178] Optionally, before receiving the right shuttle instruction, the first page of the candidate box displays the first data, and the first data includes at least one data in the data to be shuttled; after the data to be shuttled in the first storage area is subjected to target processing, the display module 1303 is also used to replace the data of the first page from the first data to the second data when displaying the first page, and at least one data in the first data is in an optional state; when the target processing is a deletion processing, the second data includes data in the first data except at least one data, and when the target processing is a marking processing, the second data is all the data in the first data, but at least one data in the second data is in an unselectable state; the display module 1303 is also used to update the page currently displayed in the selected box to the target page, and the data displayed in the target page includes the data in the data to be shuttled.
[0179] Optionally, after the target processing is performed on the data to be shuttled in the first storage area, the receiving module 1301 is also used to receive a preset instruction for the selected box, the preset instruction is a left shuttle instruction or a clear instruction, the left shuttle instruction is used to shuttle the data currently selected in the selected box to the candidate box, and the clear instruction is used to delete all the data in the selected box; the determination module is also used to determine the data to be processed corresponding to the preset instruction in response to the preset instruction; the storage module 1304 is also used to store the data to be processed in the first storage area and delete the data to be processed in the target storage area when the target processing is a deletion processing; the processing module is also used to cancel the mark of the data to be processed in the first storage area and delete the data to be processed in the target storage area when the target processing is a marking processing.
[0180] Optionally, the display module 1303 is also used to replace the data displayed on the second page with the fifth data when the candidate box displays the second page. Before receiving the preset instruction, the data to be processed includes N data that are shuttled from the second page to the selected box, and N is a positive integer; when the target processing is deletion processing, the fourth data does not include N data, and the fifth data includes N data; when the target processing is marking processing, the N data included in the fourth data are in an unselectable state, and the N data included in the fifth data are in an optional state; the display module 1303 is also used to replace the sixth data displayed on the third page with the seventh data when the preset instruction is a left shuttle instruction and the selected box displays the third page, the sixth data includes M data in the data to be processed; the seventh data does not include M data, and M is a positive integer; the display module 1303 is also used to display an empty page in the selected box when the preset instruction is a clear instruction.
[0181] Optionally, the receiving module 1301 is also used to receive a role adding instruction to the candidate box; the display module 1303 is also used to display the role adding box in response to the role adding instruction; the receiving module 1301 is also used to receive a data input instruction in the role adding box; the determination module is also used to determine the data to be added corresponding to the data input instruction; the storage module 1304 is also used to store the data to be added to the first storage area; the display module 1303 is also used to display the data to be added in the candidate box.
[0182] It should be noted that the above-mentioned data processing device can be the electronic device in the above-mentioned method embodiment of the present application, or it can be a functional module and / or functional entity in the electronic device that can implement the functions of the device embodiment, and the embodiment of the present application is not limited.
[0183] In the embodiments of the present application, each module can implement the data processing method provided in the above method embodiments and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0184] The beneficial effects of various implementation methods in this embodiment can be specifically referred to the beneficial effects of the corresponding implementation methods in the above data processing method embodiment. To avoid repetition, they will not be described again here.
[0185] An embodiment of the present application also provides an electronic device, which may include: a processor 1401, a memory 1402, and a program or instruction stored in the memory 1402 and executable on the processor 1401. When the program or instruction is executed by the processor 1401, the various processes of the data processing method provided in the above method embodiment can be implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0186] An embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the data processing method provided by the above method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0187] An embodiment of the present application also provides a computer program product, wherein the computer program product includes a computer program or instructions. When the computer program product runs on a processor, the processor executes the computer program or instructions to implement the various processes of the data processing method provided by the above method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0188] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned data processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0189] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0190] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, servers and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0191] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0192] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0193] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or 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 to enable 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 application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0194] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application 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 application.
Claims
1. A data processing method, characterized in that: The method comprises: receiving a target instruction, wherein the target instruction is an initialization instruction for the shuttle box, or the target instruction is a search instruction for a candidate box or a selected box in the shuttle box; Based on the target instruction, acquiring target data, the target data being all or part of the target instruction data corresponding to the target instruction; In the case where the target instruction is the initialization instruction or the search instruction for the candidate frame, the target data is displayed in the candidate frame, and the target data is stored in a first storage area corresponding to the candidate frame, so as to subsequently obtain data in the target data from the first storage area; In the case where the target instruction is the search instruction for the selected box, displaying the target data in the selected box, and storing the target data in a second storage area corresponding to the selected box, so as to subsequently obtain data in the target data from the second storage area; The target instruction is a search instruction for the candidate box, and all to-be-displayed data corresponding to the candidate box are stored in a third storage area corresponding to the candidate box; and obtaining the target data based on the target instruction includes: Based on the target instruction, searching the third storage area for the target instruction data; determining the target data from the target instruction data; The storing the target data in a first storage area corresponding to the candidate box includes: storing the target instruction data in the first storage area; or, The target instruction is a search instruction for the selected box, and all the to-be-displayed data corresponding to the selected box are stored in a fourth storage area corresponding to the selected box; and obtaining the target data based on the target instruction includes: Based on the target instruction, searching the fourth storage area for the target instruction data; determining the target data from the target instruction data; The storing the target data in the second storage area corresponding to the selected box includes: The target instruction data is stored in the second storage area.
2. The method according to claim 1, characterized in that The target data is part of the target instruction data; After storing the target data in the first storage area corresponding to the candidate box, the method further includes: Receiving a first switching instruction for switching the candidate frame from a first current page to a first target page; In response to the first switching instruction, if the first storage area includes the first target page data, acquiring the first target page data from the first storage area, and replacing the first current page data displayed in the candidate box with the first target page data; When the first storage area does not include first target page data corresponding to the target page, acquiring the first target page data from a server; The first target page data is stored in the first storage area, and the first current page data displayed in the candidate box is replaced with the first target page data.
3. The method according to claim 1, characterized in that The target data is part of the target instruction data, and the second storage area stores the target instruction data; After storing the target data in the second storage area corresponding to the selected box, the method further includes: receiving a second switching instruction for switching the selected box from a second current page to a second target page; In response to the second switching instruction, the second target page data is acquired from the second storage area, and the second current page data displayed in the selected box is replaced with the second target page data.
4. The method according to claim 1, characterized in that: The method further comprises: receiving a rightward shuttle instruction for the shuttle box, wherein the rightward shuttle instruction is used to shuttle the currently selected data in the candidate box to the selected box; In response to the right shuttle instruction, determining the to-be-shuttled data corresponding to the right shuttle instruction; storing the data to be shuttled to a target storage area corresponding to the selected box, wherein the target storage area is the second storage area or the fourth storage area, and the fourth storage area is used to store all the data to be displayed corresponding to the selected box; The data to be shuttled in the first storage area is subjected to target processing, wherein the target processing is a deletion processing or a marking processing, and the marking processing is used to make the marked data in an unselectable state when displayed.
5. The method according to claim 4, characterized in that Before receiving the rightward shuttle instruction, the first page of the candidate frame displays first data, and the first data includes at least one data in the data to be shuttled; After the target processing is performed on the data to be shuttled in the first storage area, the method further includes: When displaying the first page, the data of the first page is replaced by the first data with the second data, and the at least one data in the first data is in a selectable state; when the target processing is a deletion processing, the second data includes the data in the first data except the at least one data; when the target processing is a marking processing, the second data is all the data in the first data, but the at least one data in the second data is in a non-selectable state; The page currently displayed in the selected box is updated to a target page, and the data displayed in the target page includes the data in the data to be shuttled.
6. The method according to claim 4, characterized in that After the target processing is performed on the data to be shuttled in the first storage area, the method further includes: receiving a preset instruction for the selected box, wherein the preset instruction is a left shuttle instruction or a clear instruction, wherein the left shuttle instruction is used to shuttle the data currently selected in the selected box to the candidate box, and the clear instruction is used to delete all the data in the selected box; In response to the preset instruction, determining the to-be-processed data corresponding to the preset instruction; When the target processing is a deletion processing, storing the data to be processed in the first storage area, and deleting the data to be processed in the target storage area; In the case where the target processing is a marking processing, the marking of the data to be processed in the first storage area is cancelled, and the data to be processed in the target storage area is deleted.
7. The method according to claim 6, characterized in that After deleting the data to be processed in the second storage area, the method further includes: When the candidate box displays the second page, the data displayed on the second page is replaced by the fourth data with the fifth data, and before receiving the preset instruction, the data to be processed includes N data shuttled from the second page to the selected box, where N is a positive integer; In the case where the target processing is a deletion processing, the fourth data does not include the N data, and the fifth data includes the N data; In the case where the target processing is a marking processing, the N data included in the fourth data are in a non-selectable state, and the N data included in the fifth data are in a selectable state; In the case where the preset instruction is a left shuttle instruction, when the selected box displays the third page, the sixth data displayed on the third page is replaced with the seventh data, the sixth data includes M data in the data to be processed; the seventh data does not include the M data, and M is a positive integer; When the preset instruction is a clear instruction, an empty page is displayed in the selection box.
8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: Receive instructions for adding roles to the candidate box; In response to the role adding instruction, displaying a role adding box; Receiving a data input instruction in the role adding box; Determine the data to be added corresponding to the data input instruction; storing the data to be added into the first storage area; The data to be added is displayed in the candidate box.
9. A data processing device, characterized in that: The device comprises: a receiving module, an acquiring module, a display module, and a storage module; The receiving module is used to receive a target instruction, wherein the target instruction is an initialization instruction for the shuttle box, or the target instruction is a search instruction for a candidate box or a selected box in the shuttle box; The acquisition module is used to acquire target data based on the target instruction, where the target data is all or part of the target instruction data corresponding to the target instruction; The display module is used for displaying the target data in the candidate frame when the target instruction is the initialization instruction or a search instruction for the candidate frame; The storage module is used to store the target data in a first storage area corresponding to the candidate box, so as to subsequently obtain data in the target data from the first storage area; The display module is further configured to display the target data in the selected box when the target instruction is the search instruction for the selected box; The storage module is further used to store the target data in a second storage area corresponding to the selected box, so as to subsequently obtain the data in the target data from the second storage area; The target instruction is a search instruction for the candidate box, and all the to-be-displayed data corresponding to the candidate box are stored in a third storage area corresponding to the candidate box; the acquisition module is specifically used to search the target instruction data from the third storage area based on the target instruction; determining the target data from the target instruction data; The storing the target data in a first storage area corresponding to the candidate box includes: storing the target instruction data in the first storage area; or, The target instruction is a search instruction for the selected box, and all the to-be-displayed data corresponding to the selected box are stored in a fourth storage area corresponding to the selected box; and obtaining the target data based on the target instruction includes: Based on the target instruction, searching the fourth storage area for the target instruction data; determining the target data from the target instruction data; The storing the target data in the second storage area corresponding to the selected box includes: The target instruction data is stored in the second storage area.
10. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the data processing method as claimed in any one of claims 1 to 8.
11. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the data processing method according to any one of claims 1 to 8 are implemented.
