CN110413279B - Data loading method and device - Google Patents

Data loading method and device Download PDF

Info

Publication number
CN110413279B
CN110413279B CN201910613596.5A CN201910613596A CN110413279B CN 110413279 B CN110413279 B CN 110413279B CN 201910613596 A CN201910613596 A CN 201910613596A CN 110413279 B CN110413279 B CN 110413279B
Authority
CN
China
Prior art keywords
data
page
template
hiding
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910613596.5A
Other languages
Chinese (zh)
Other versions
CN110413279A (en
Inventor
闭君能
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201910613596.5A priority Critical patent/CN110413279B/en
Publication of CN110413279A publication Critical patent/CN110413279A/en
Application granted granted Critical
Publication of CN110413279B publication Critical patent/CN110413279B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The invention provides a data loading method and a data loading device, wherein the method comprises the following steps: acquiring batch information files uploaded by a data operation user; under the condition that the number of the plurality of data in the batch information files is larger than or equal to a preset number threshold, a temporary storage template is created for the page hiding template, and the plurality of data in the batch information files are stored in the temporary storage template; generating and displaying a data uploading response; under the condition that a loading instruction is acquired, acquiring a plurality of data corresponding to a page identifier from the temporary storage template according to the page identifier in the loading instruction, and storing the plurality of data corresponding to the page identifier into the page hiding template; and loading the page hiding template to load and display the plurality of data corresponding to the page identification on a data display page corresponding to the page identification. The technical scheme can improve the data loading efficiency.

Description

Data loading method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data loading method and apparatus.
Background
The angular js is a front-end framework based on JavaScript script language, which is a solution designed to overcome the defect of hypertext markup language (HTML) in constructing a front-end dynamic application and suitable for a client. The angullarjs may be added to an HTML page (web page) through < script >.
The AngularJS can change the information and data in the model and controller (controller) into a page view that the user can see on the browser through the template. At present, the AngullarJS can establish a corresponding relation between data and a page hiding template through data binding of the template, so that a page view is updated in real time, and the page is a dynamically changed page. However, this data binding has the following technical problems: when more data is bound with the page hiding template, the data in the page hiding template can be loaded for a long time, so that the page is blocked or unresponsive, and long waiting time is needed to update to a new page.
Disclosure of Invention
The embodiment of the invention provides a data loading method and device, which solve the problem of low data loading efficiency.
In a first aspect, a data loading method is provided, including:
acquiring batch information files uploaded by a data operation user;
under the condition that the number of the plurality of data in the batch information files is larger than or equal to a preset number threshold, a temporary storage template is created for the page hiding template, the plurality of data in the batch information files are stored in the temporary storage template, and a corresponding relation between the page hiding template and the temporary storage template is created;
Generating a data uploading response, and displaying the data uploading response on a first display page, wherein the data uploading response is used for indicating that loading preparation of a plurality of data in the batch information file is completed;
under the condition that a loading instruction aiming at a plurality of data in the batch information file is acquired, acquiring the plurality of data corresponding to the page identification from the temporary storage template according to the page identification in the loading instruction, and storing the plurality of data corresponding to the page identification into the page hiding template;
and loading the page hiding template to load and display the plurality of data corresponding to the page identification on a data display page corresponding to the page identification.
According to the technical scheme, a batch information file uploaded by a data operation user is obtained, under the condition that the number of a plurality of data in the batch information file is larger than or equal to a preset number threshold, a temporary storage template is created for a page hiding template, the plurality of data in the batch information file are stored in the temporary storage template, the corresponding relation between the page hiding template and the temporary storage template is established, a data uploading response is generated and displayed, and under the condition that a loading instruction is obtained, the page hiding template is loaded to load and display the plurality of data on a data page. Under the condition that more data are uploaded by a user, a temporary storage template for temporarily storing the data uploaded by the user is created for the page hiding template for supporting page display, and corresponding data are acquired from the temporary storage template and stored in the page hiding template for loading and displaying when the data are required to be loaded, so that the data required to be loaded in the page hiding template are reduced, the probability of page blocking is reduced, and the data loading efficiency is improved.
With reference to the first aspect, in a possible implementation manner, after the loading the page hiding template to load and display the plurality of data corresponding to the page identifier on a data display page corresponding to the page identifier, the method further includes: acquiring a modification instruction aiming at target data, wherein the modification instruction comprises replacement data corresponding to the target data, and the target data is any one data of the plurality of data corresponding to the page identifier; modifying the target data in the page hiding template into the replacement data, and modifying the target data in the temporary storage template into the replacement data; and generating a data change response, and displaying the data change response on a second display page, wherein the data change response is used for indicating that the modification of the target data is completed.
With reference to the first aspect, in a possible implementation manner, after the loading the page hiding template to load and display the plurality of data corresponding to the page identifier on a data display page corresponding to the page identifier, the method further includes: acquiring a modification instruction aiming at target data, wherein the modification instruction comprises replacement data corresponding to the target data, and the target data is any one data of the plurality of data corresponding to the page identifier; modifying the target data in the page hiding template into the replacement data, and modifying the target data in the temporary storage template into the replacement data; and reloading the page hiding template to load and display the replacement data on the data display page corresponding to the page identifier.
With reference to the first aspect, in a possible implementation manner, after the loading the page hiding template to load and display the plurality of data corresponding to the page identifier on a data display page corresponding to the page identifier, the method further includes: acquiring commit instructions for the plurality of data corresponding to the page identifier; submitting a plurality of data corresponding to the page identifier in the temporary storage template to a data storage background so that the data storage background stores the plurality of data corresponding to the page identifier into a data storage library; and generating a data submission response, and displaying the submission response on a third display page, wherein the submission response is used for indicating that the submission of the plurality of data corresponding to the page identification is completed.
With reference to the first aspect, in a possible implementation manner, the method further includes: and under the condition that the quantity of the plurality of data in the batch information file is smaller than a preset quantity threshold, storing the plurality of data in the batch information file into the page hiding template.
In a second aspect, there is provided a data loading apparatus comprising:
The information file acquisition module is used for acquiring batch information files uploaded by the data operation user;
the first storage module is used for creating a temporary storage template for the page hiding template under the condition that the number of the plurality of data in the batch information files is larger than or equal to a preset number threshold value, storing the plurality of data in the batch information files into the temporary storage template, and creating a corresponding relation between the page hiding template and the temporary storage template;
the data response module is used for generating a data uploading response and displaying the data uploading response on a first display page, wherein the data uploading response is used for indicating that loading preparation of a plurality of data in the batch information file is completed;
the loading instruction acquisition module is used for acquiring a plurality of data corresponding to the page identifier from the temporary storage template according to the page identifier in the loading instruction under the condition that the loading instruction aiming at the plurality of data in the batch information file is acquired, and storing the plurality of data corresponding to the page identifier into the page hiding template;
and the data display module is used for loading the page hiding template so as to load and display the plurality of data corresponding to the page identification on the data display page corresponding to the page identification.
In a third aspect, a data loading device is provided, comprising a processor, a memory, and an input-output interface, the processor, the memory, and the input-output interface being interconnected, wherein the input-output interface is for inputting or outputting data, the memory is for storing application program code for the data loading device to perform the above method, and the processor is configured to perform the above method of the first aspect.
In a fourth aspect, there is provided a computer storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first aspect described above.
In the embodiment of the invention, the accuracy of data loading is improved by modifying the data in the page hiding template, and the user can know that the current data modification is completed by generating the corresponding data modification response after the data modification, so that the user experience is improved; by saving the data to a data repository in the data saving background, subsequent data manipulation users and other users, such as data auditing users, are facilitated to view the plurality of data in the bulk information file.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a data loading method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of three types of display data upload responses on a display page according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a method for obtaining a load instruction according to a design of a web page according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of displaying data on a data display page according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating another data loading method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a display data modification response provided by an embodiment of the present invention;
FIG. 7 is a schematic diagram of another display data modification response provided by an embodiment of the present invention;
FIG. 8 is a flowchart illustrating another data loading method according to an embodiment of the present invention;
FIG. 9 is a diagram of a display commit instruction according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a display data commit response provided by an embodiment of the present invention;
FIG. 11 is a schematic diagram of a data loading device according to an embodiment of the present invention;
fig. 12 is a schematic diagram of a composition structure of another data loading device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flow chart of a data loading method according to an embodiment of the present invention, as shown in the drawing, the method includes:
s101, acquiring batch information files uploaded by a data operation user.
Here, the data operation user refers to a user who performs batch operation on certain information on the information operation system, for example, batch creation, batch uploading, batch modification, batch entry and the like on certain information, and the information to be performed batch operation may be commodity information, user information, customer information and the like. The batch information file is a file storing a plurality of data, and a batch is a plurality of data. For example, the batch information file may include names, genders, grades, contact phones, and the like of each of the student 1, the student 2, the student 3, and the student 4.
S102, under the condition that the number of the plurality of data in the batch information files is larger than or equal to a preset number threshold, a temporary storage template is created for the page hiding template, the plurality of data in the batch information files are stored in the temporary storage template, and a corresponding relation between the page hiding template and the temporary storage template is created.
Here, the plurality of data in the batch information file are different data having the same attribute, the same feature, the same characteristic, or the like. For example, the plurality of data in the batch information file may be sales data for each month in a year; alternatively, the plurality of data in the batch information file may be a plurality of data corresponding to a plurality of students, and so on. For example, the plurality of data in the batch information file may be data corresponding to the name, sex, grade, and contact phone of the student 1; the name, sex, grade and contact phone of student 2; the name, sex, grade, and contact phone data of student 3; the name, sex, grade and contact phone corresponding to the student 4; if the data corresponding to the grade can be a positive number greater than 0, the data corresponding to the name can be "male" and "female". The preset number threshold may be any number of 20, 35, 50, etc. The page hiding template is a front-end template corresponding to the page view, and is used for storing page data which enables the page view to normally display view elements and data in the view, wherein the page data comprises codes corresponding to the page view and data corresponding to various parameters, and the data in the page hiding template can be displayed on the page view after being loaded. The temporary storage template is a front-end template for temporarily storing data, and the temporary storage template is not used for loading.
In a specific implementation, creating a temporary storage template for a page hiding template may be performed by creating a scope temporary object, and using the scope temporary object as the temporary storage template, where values of a plurality of data in a batch information file may be assigned to an entry parameter or an entry array of the scope temporary object, so as to save the plurality of data in the batch information file to the temporary storage template, and then, authority of calling the data in the entry parameter or the entry array is assigned to the page hiding template, so as to establish a correspondence between the page hiding template and the temporary storage template.
In one possible case, when the number of the plurality of data in the batch information file is smaller than a preset number threshold, the plurality of data in the batch information file is saved into the page hiding template. For example, when the preset number threshold is 20 and the number of data in the batch information file is 15, a temporary storage template is not required to be created for the page hiding template, and the 15 data in the batch information file are directly stored in the page hiding template.
And S103, generating a data uploading response, and displaying the data uploading response on the first display page, wherein the data uploading response is used for indicating that the loading preparation of the plurality of data in the batch information file is completed.
Here, the data upload response is a response to an upload situation in which the user uploads a plurality of data in the batch information file, and the first display page is used to display the data upload response.
In a specific implementation, page data in a page hiding template corresponding to the data uploading response can be called and executed to generate and display the data uploading response. For example, the data upload response may be a prompt window of "upload success" displayed on the first display page, as shown in fig. 2 a, fig. 2 is a schematic diagram of three types of displaying data upload responses on the display page provided in the embodiment of the present invention, where the page numbered 1 in fig. 2 is the first display page, and the page numbered 2 is the prompt window. Optionally, after displaying the data upload response, a next view page of the data upload response may also be displayed, which may be a page for the data manipulation user to view and modify multiple data in the batch information file.
In one possible scenario, the plurality of data uploads in the batch information file are anomalous, and the data upload response is used to indicate that at least one of the plurality of data in the current batch information file is anomalous. In this case, the cause of the current data upload abnormality is detected, and the data upload response and the cause of the data upload abnormality are displayed on the first display page. Here, the data upload response may be a prompt window for displaying "upload abnormality" on the first display page and a cause of the data upload abnormality such as "XX data occurrence abnormality" (for example, when the data corresponding to the user contact phone is greater than 11 digits, the current data abnormality may be considered) as shown in fig. 2 b, or the data upload response may be a prompt window for displaying "upload abnormality" on the first display page and a cause of the data upload abnormality such as "current network connection abnormality", as shown in fig. 2 c. The data operation user can modify the corresponding data according to the current data uploading abnormal reasons and then upload the data again.
S104, when a loading instruction for a plurality of data in the batch information file is acquired, acquiring the plurality of data corresponding to the page identification from the temporary storage template according to the page identification in the loading instruction, and storing the plurality of data corresponding to the page identification into the page hiding template.
Here, according to different designs of web pages, the case of acquiring the load instruction for the plurality of data in the batch information file is different, and the case of acquiring the load instruction for the plurality of data in the batch information file may be:
in the first case, the web page is designed to generate a data upload response, and the web page view always maintains the data upload response on the first display page.
In this case, when a data upload response is acquired in which the data operation user closes the first display page, or when the data operation user selects the "back" key/button on the first display page, a load instruction for a plurality of data in the batch information file is acquired. For example, the data uploading response is to display a prompt window of "successful uploading" on the first display page, and when the prompt window is closed by the data operation user is obtained, a load instruction for a plurality of data in the batch information file is obtained as shown in fig. 3, fig. 3 is a schematic diagram of obtaining the load instruction according to the design of the web page, in fig. 3, the page numbered 1 is the first display page, and the page numbered 2 is the prompt window.
In the second case, the web page is designed to automatically jump to a page for the data manipulation user to view and modify the plurality of data in the batch information file after a pause of a certain time after generating the data upload response.
In this case, a data load instruction is obtained when a view element that functions to view the plurality of data in the bulk information file is selected on the page for the data manipulation user to view and modify the plurality of data in the bulk information file.
In a third case, after generating a data uploading response, the webpage is designed to pause for a certain time to automatically jump to a page for a data operation user to view and modify a plurality of data in the batch information file, and when the webpage automatically jumps to a page for the data operation user to view and modify a plurality of data in the batch information file, a data loading instruction is acquired. Here, when the web page automatically jumps to a page for the data operation user to view and modify the plurality of data in the batch information file, the data operation user can obtain the data loading instruction without manually operating the page.
Here, the page identification in the data load instruction is used to indicate the page where the plurality of data in the bulk information file is located to be viewed by the data manipulation user. Since the plurality of data in the batch information file is large in number, all the data cannot be displayed on one page, and therefore the data are displayed on the web page in the form of pages, the page number corresponding to the page for displaying the plurality of data in the batch information file in the pages can be used as the page identifier. For example, if the data manipulation user is to view data on page 1, the page identification may be 1.
Specifically, the array range of a plurality of data in the batch information file corresponding to the page identifier can be determined according to the page identifier, and the value of the array number in the array range, namely the value of the plurality of data corresponding to the page identifier, is obtained from the temporary storage template; and then, assigning values of a plurality of data corresponding to the page identification in the array range to an array which enables the plurality of data corresponding to the page identification to be normally displayed in the page hiding template, so as to store the plurality of data corresponding to the page identification into the page hiding template.
S105, loading the page hiding template to load and display a plurality of data corresponding to the page identification on the data display page corresponding to the page identification.
Here, when the data in the page hiding template is loaded, a plurality of data corresponding to the page identifier may be loaded and displayed on a data display page, as shown in fig. 4, fig. 4 is a schematic diagram of displaying data on the data display page, where both view elements and data on the data display page originate from the page hiding template.
In the embodiment of the invention, a batch information file uploaded by a data operation user is obtained, a temporary storage template is created for a page hiding template and a plurality of data in the batch information file are stored in the temporary storage template under the condition that the number of the plurality of data in the batch information file is larger than or equal to a preset number threshold value, a corresponding relation between the page hiding template and the temporary storage template is established, a data uploading response is generated and displayed, and the page hiding template is loaded to load and display the plurality of data on a data page under the condition that a loading instruction is obtained. Under the condition that more data are uploaded by a user, a temporary storage template for temporarily storing the data uploaded by the user is created for the page hiding template for supporting page display, and corresponding data are acquired from the temporary storage template and stored in the page hiding template for loading and displaying when the data are required to be loaded, so that the data required to be loaded in the page hiding template are reduced, the probability of page blocking is reduced, and the data loading efficiency is improved.
In one possible implementation, the data in the page hiding templates may also be modified. Referring to fig. 5, fig. 5 is a flowchart of another data loading method according to an embodiment of the present invention. As shown, the method comprises the steps of:
S201, acquiring batch information files uploaded by a data operation user.
S202, under the condition that the number of the plurality of data in the batch information files is larger than or equal to a preset number threshold, a temporary storage template is created for the page hiding template, the plurality of data in the batch information files are stored in the temporary storage template, and a corresponding relation between the page hiding template and the temporary storage template is created.
S203, generating a data uploading response, and displaying the data uploading response on the first display page, wherein the data uploading response is used for indicating that loading preparation of a plurality of data in the batch information file is completed.
S204, when a loading instruction for a plurality of data in the batch information file is acquired, acquiring the plurality of data corresponding to the page identification from the temporary storage template according to the page identification in the loading instruction, and storing the plurality of data corresponding to the page identification into the page hiding template.
S205, loading the page hiding template to load and display a plurality of data corresponding to the page identification on the data display page corresponding to the page identification.
Here, the specific implementation manner of steps S201 to S205 may refer to descriptions of steps S101 to S105 in the corresponding embodiment of fig. 1, which are not repeated herein.
S206, acquiring a modification instruction aiming at target data, wherein the modification instruction comprises replacement data corresponding to the target data, and the target data is any one of a plurality of data corresponding to the page identifier.
Here, the replacement data is data obtained by modifying the target data on the data display page by the data operation user. For example, the target data is "50", and the data operation user modifies the target data to 60 on the data display page, then 60 is the replacement data corresponding to the target data.
S207, modifying the target data in the page hiding template into replacement data, and modifying the target data in the temporary storage template into replacement data.
Here, the data in the temporary storage template includes a plurality of data in the batch information file uploaded by the data operation user, and the data in the page hiding template is the data to be loaded in the temporary storage template, and it is known that the target data in the page hiding template and the target data in the temporary storage template are the same data, so when the target data in the page hiding template is modified to the replacement data, the target data in the temporary storage template needs to be modified to the replacement data.
S208, reloading the page hiding template to load and display the replacement data on the data display page corresponding to the page identification.
Here, the page hiding template is reloaded, that is, the modified page hiding template is loaded, and the loaded replacement data is displayed on the data display page corresponding to the page identifier.
Here, depending on the design of the web page, reloading the page hidden templates may be several cases:
in the first case, the design of the web page is to automatically jump to the page after reloading the page hiding template, i.e. the data display page displaying the replacement data. For example, if the target data is the name "X1" corresponding to the insured life 1 and the substitute data is "A1", the modified data display page may be as shown in fig. 6, and fig. 6 is a schematic diagram showing a data change response provided by the embodiment of the present invention.
In the second case, the web page is designed to generate a data change response first, and after the data change response is displayed on the second display page, the web page jumps to the page after the page hiding template is reloaded, namely, the data display page displaying the replacement data.
Here, the data change response is used to indicate that the modification to the target data is completed. For example, the data change response may be a prompt window of "successful modification" displayed on the second display page, as shown in fig. 7, fig. 7 is a schematic diagram of another display data change response provided in an embodiment of the present invention, where the page numbered 1 in fig. 7 is the second display page, and the page numbered 2 is the prompt window. When more target data need to be modified, the data operation user can know that the modification of the current target data is completed through the data modification response on the second display page, and the data operation user does not need to check in addition to determine that the modification of the target data is completed.
In the embodiment of the invention, when the data operation user finds that the plurality of data in the uploaded batch information file are wrong, the data with the wrong uploading can be modified, so that the accuracy of uploading the plurality of data in the batch information file is improved.
In one possible implementation, the data in the page hiding template may also be submitted and saved to the data saving background. Referring to fig. 8, fig. 8 is a flowchart of another data loading method according to an embodiment of the present invention. As shown, the method comprises the steps of:
s301, acquiring batch information files uploaded by a data operation user.
S302, under the condition that the number of the plurality of data in the batch information files is larger than or equal to a preset number threshold, a temporary storage template is created for the page hiding template, the plurality of data in the batch information files are stored in the temporary storage template, and a corresponding relation between the page hiding template and the temporary storage template is created.
S303, generating a data uploading response, and displaying the data uploading response on the first display page, wherein the data uploading response is used for indicating that loading preparation of a plurality of data in the batch information file is completed.
S304, under the condition that a loading instruction for a plurality of data in the batch information file is acquired, acquiring the plurality of data corresponding to the page identification from the temporary storage template according to the page identification in the loading instruction, and storing the plurality of data corresponding to the page identification into the page hiding template.
S305, loading the page hiding template to load and display a plurality of data corresponding to the page identification on the data display page corresponding to the page identification.
Here, the specific implementation manner of steps S301 to S305 may refer to descriptions of steps S101 to S105 in the corresponding embodiment of fig. 1, which are not repeated herein.
S306, acquiring commit instructions for a plurality of data corresponding to the page identification.
Here, the commit instruction for the plurality of data corresponding to the page identifier may be a "commit" button/button displayed on a third display page, as shown in fig. 9, fig. 9 is a schematic diagram of displaying a commit instruction provided in an embodiment of the present invention, where the display page in fig. 9 is the third display page, and the third display page is a page displaying data waiting to be committed. When the data manipulation user clicks the "submit" button/button in fig. 9, a submit instruction for a plurality of data corresponding to the page identification is acquired.
S307, submitting the data corresponding to the page identifier in the temporary storage template to a data storage background so that the data storage background stores the data corresponding to the page identifier in a data storage library.
Here, submitting the plurality of data corresponding to the page identifier in the temporary storage template to the data saving background is to submit the same plurality of data in the temporary storage template as in the page hiding template to the data saving background.
Specifically, when the page where the data corresponding to the page identifier is located is the last page, namely, the data in the temporary storage template is all stored in the page hiding template, and all the data in the temporary storage template are submitted to a data storage background and stored in the data storage library; when the page where the data corresponding to the page identification is located is not the last page, namely, the data in the temporary storage template is not all saved to the page hiding template, the data which is the same as the data saved in the page hiding template in the temporary storage template is submitted to a data saving background and saved to a data saving library.
In one possible scenario, all data in the temporary storage template may be committed to the data saving background, such that the data saving background saves all data in the temporary storage template to the data repository. Here, all data in the temporary storage template may include the same data in the temporary storage template as in the page hiding template and data in the batch information file uploaded by the data manipulation user that is not stored in the page hiding template, that is, when all data in the temporary storage template is not stored in the page hiding template to be loaded, all data in the temporary storage template is submitted to be stored in the data repository, where all data includes data stored in the temporary storage template to be loaded in the page hiding template and data not stored in the temporary storage template to be loaded in the page hiding template.
S308, generating a data submission response and displaying the data submission response on the third display page, wherein the data submission response is used for indicating that the submission of the plurality of data corresponding to the page identification is completed.
Here, the data submission response may be a prompt window of "successful submission" displayed on the third display page, as shown in fig. 10, fig. 10 is a schematic diagram of displaying the data submission response provided by the embodiment of the present invention, where the page numbered 1 in fig. 10 is the third display page, and the page numbered 2 is the prompt window.
In the embodiment of the invention, the data operation user can upload a plurality of data in the uploaded batch information file and the modified data to the data storage library in the data storage background, so that the subsequent data operation user and other users can conveniently check the plurality of data in the batch information file.
The method of the embodiment of the invention is described above, and the apparatus of the embodiment of the invention is described below.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a data loading device according to an embodiment of the present invention, where the device 110 includes:
an information file obtaining module 1101, configured to obtain a batch of information files uploaded by a data operation user;
A first storage module 1102, configured to create a temporary storage template for a page hiding template when the number of the plurality of data in the batch information file is greater than or equal to a preset number threshold, store the plurality of data in the batch information file in the temporary storage template, and establish a correspondence between the page hiding template and the temporary storage template;
a data response module 1103, configured to generate a data upload response, and display the data upload response on a first display page, where the data upload response is used to indicate that loading preparation for a plurality of data in the batch information file is completed;
a load instruction obtaining module 1104, configured to, when obtaining a load instruction for a plurality of data in the batch information file, obtain, according to a page identifier in the load instruction, a plurality of data corresponding to the page identifier from the temporary storage template, and store the plurality of data corresponding to the page identifier in the page hiding template;
the data display module 1105 is configured to load the page hiding template, so that the plurality of data corresponding to the page identifier are loaded and displayed on a data display page corresponding to the page identifier.
In one possible design, the apparatus 110 further comprises:
a data modification response module 1106, configured to obtain a modification instruction for target data, where the modification instruction includes replacement data corresponding to the target data, and the target data is any one of the plurality of data corresponding to the page identifier;
the data modification response module 1106 is further configured to modify the target data in the page hiding template into the replacement data, and modify the target data in the temporary storage template into the replacement data;
the data modification response module 1106 is further configured to generate a data modification response, and display the data modification response on a second display page, where the data modification response is used to indicate that modification of the target data is completed.
In one possible design, the apparatus 110 further comprises:
a reloading module 1107, configured to obtain a modification instruction for target data, where the modification instruction includes replacement data corresponding to the target data, and the target data is any one of the plurality of data corresponding to the page identifier;
the reloading module 1107 is further configured to modify the target data in the page hiding template into the replacement data, and modify the target data in the temporary storage template into the replacement data;
The reloading module 1107 is further configured to reload the page hiding template to load and display the replacement data on the data display page corresponding to the page identifier.
In one possible design, the apparatus 110 further comprises:
a data submitting module 1108, configured to obtain a submitting instruction for the plurality of data corresponding to the page identifier;
the data submitting module 1108 is further configured to submit the plurality of data corresponding to the page identifier in the temporary storage template to a data saving background, so that the data saving background saves the plurality of data corresponding to the page identifier in a data saving repository;
the data submitting module 1108 is further configured to generate a data submitting response, and display the submitting response on a third display page, where the submitting response is used to indicate that the submitting of the plurality of data corresponding to the page identifier is completed.
In one possible design, the apparatus 110 further comprises:
the second saving module 1109 is configured to save the plurality of data in the batch information file to the page hiding template if the number of the plurality of data in the batch information file is less than a preset number threshold.
It should be noted that, in the embodiment corresponding to fig. 11, the content not mentioned may be referred to the description of the method embodiment, and will not be repeated here.
In the embodiment of the invention, a batch information file uploaded by a data operation user is obtained, a temporary storage template is created for a page hiding template and a plurality of data in the batch information file are stored in the temporary storage template under the condition that the number of the plurality of data in the batch information file is larger than or equal to a preset number threshold value, a corresponding relation between the page hiding template and the temporary storage template is established, a data uploading response is generated and displayed, and the page hiding template is loaded to load and display the plurality of data on a data page under the condition that a loading instruction is obtained. Under the condition that more data are uploaded by a user, a temporary storage template for temporarily storing the data uploaded by the user is created for a page hiding template for supporting page display, and corresponding data are acquired from the temporary storage template and stored in the page hiding template for loading and displaying when the data are required to be loaded, so that the data required to be loaded in the page hiding template are reduced, the probability of page blocking is reduced, and the data loading efficiency is improved; the data in the page hiding template is modified, so that the accuracy of data loading is improved, and a user can know that the current data modification is completed by generating a corresponding data modification response after the data modification, so that the user experience is improved; by saving the data to a data repository in the data saving background, subsequent data manipulation users and other users, such as data auditing users, are facilitated to view the plurality of data in the bulk information file.
Referring to fig. 12, fig. 12 is a schematic diagram illustrating a composition structure of another data loading device according to an embodiment of the present invention, where the device 120 includes a processor 1201, a memory 1202, and an input/output interface 1203. The processor 1201 is connected to the memory 1202 and the input-output interface 1203, for example, the processor 1201 may be connected to the memory 1202 and the input-output interface 1203 through a bus.
Processor 1201 is configured to support the data loading apparatus to perform the corresponding functions of the data loading methods described in fig. 1, 5, and 8. The processor 1201 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP), a hardware chip, or any combination thereof. The hardware chip may be an application specific integrated circuit (application specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD), or a combination thereof. The PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), general-purpose array logic (generic array logic, GAL), or any combination thereof.
The memory 1202 is used for storing program codes and the like. The memory 1202 may include Volatile Memory (VM), such as random access memory (random access memory, RAM); the memory 1202 may also include a non-volatile memory (NVM), such as read-only memory (ROM), flash memory (flash memory), hard disk (HDD) or Solid State Drive (SSD); memory 1202 may also include combinations of the above types of memory.
The input/output interface 1203 is used to input or output data.
The processor 1201 may call the program code to:
acquiring batch information files uploaded by a data operation user;
under the condition that the number of the plurality of data in the batch information files is larger than or equal to a preset number threshold, a temporary storage template is created for the page hiding template, the plurality of data in the batch information files are stored in the temporary storage template, and a corresponding relation between the page hiding template and the temporary storage template is created;
generating a data uploading response, and displaying the data uploading response on a first display page, wherein the data uploading response is used for indicating that loading preparation of a plurality of data in the batch information file is completed;
under the condition that a loading instruction aiming at a plurality of data in the batch information file is acquired, acquiring the plurality of data corresponding to the page identification from the temporary storage template according to the page identification in the loading instruction, and storing the plurality of data corresponding to the page identification into the page hiding template;
and loading the page hiding template to load and display the plurality of data corresponding to the page identification on a data display page corresponding to the page identification.
It should be noted that, implementation of each operation may also correspond to the corresponding description referring to the above method embodiment; the processor 1201 may also cooperate with the input/output interface 1203 to perform other operations in the method embodiments described above.
Embodiments of the present invention also provide a computer storage medium storing a computer program comprising program instructions which, when executed by a computer, cause the computer to perform a method as described in the previous embodiments, the computer being part of the data loading apparatus mentioned above. Such as the processor 1201 described above.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in the embodiments may be accomplished by computer programs stored in a computer-readable storage medium, which when executed, may include the steps of the embodiments of the methods described above. Wherein the storage medium can be a magnetic disk, an optical disk, a ROM or a RAM, etc.
The foregoing disclosure is illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.

Claims (10)

1. A method of loading data, comprising:
acquiring batch information files uploaded by a data operation user;
under the condition that the number of the plurality of data in the batch information files is larger than or equal to a preset number threshold, a temporary storage template is created for the page hiding template, the plurality of data in the batch information files are stored in the temporary storage template, and a corresponding relation between the page hiding template and the temporary storage template is created;
generating a data uploading response, and displaying the data uploading response on a first display page, wherein the data uploading response is used for indicating that loading preparation of a plurality of data in the batch information file is completed;
under the condition that a loading instruction aiming at a plurality of data in the batch information file is acquired, acquiring the plurality of data corresponding to the page identification from the temporary storage template according to the page identification in the loading instruction, and storing the plurality of data corresponding to the page identification into the page hiding template;
and loading the page hiding template to load and display the plurality of data corresponding to the page identification on a data display page corresponding to the page identification.
2. The method of claim 1, wherein after loading the page hiding template to load and display the plurality of data corresponding to the page identifier on the data display page corresponding to the page identifier, further comprising:
acquiring a modification instruction aiming at target data, wherein the modification instruction comprises replacement data corresponding to the target data, and the target data is any one data of the plurality of data corresponding to the page identifier;
modifying the target data in the page hiding template into the replacement data, and modifying the target data in the temporary storage template into the replacement data;
and generating a data change response, and displaying the data change response on a second display page, wherein the data change response is used for indicating that the modification of the target data is completed.
3. The method of claim 1, wherein after loading the page hiding template to load and display the plurality of data corresponding to the page identifier on the data display page corresponding to the page identifier, further comprising:
acquiring a modification instruction aiming at target data, wherein the modification instruction comprises replacement data corresponding to the target data, and the target data is any one data of the plurality of data corresponding to the page identifier;
Modifying the target data in the page hiding template into the replacement data, and modifying the target data in the temporary storage template into the replacement data;
and reloading the page hiding template to load and display the replacement data on the data display page corresponding to the page identifier.
4. A method according to any one of claims 1-3, wherein after loading the page hiding template to load and display the plurality of data corresponding to the page identity on a data display page corresponding to the page identity, further comprising:
acquiring commit instructions for the plurality of data corresponding to the page identifier;
submitting a plurality of data corresponding to the page identifier in the temporary storage template to a data storage background so that the data storage background stores the plurality of data corresponding to the page identifier into a data storage library;
and generating a data submission response, and displaying the submission response on a third display page, wherein the submission response is used for indicating that the submission of the plurality of data corresponding to the page identification is completed.
5. The method according to claim 1, characterized in that the method further comprises:
and under the condition that the quantity of the plurality of data in the batch information file is smaller than a preset quantity threshold, storing the plurality of data in the batch information file into the page hiding template.
6. A data loading apparatus, comprising:
the information file acquisition module is used for acquiring batch information files uploaded by the data operation user;
the first storage module is used for creating a temporary storage template for the page hiding template under the condition that the number of the plurality of data in the batch information files is larger than or equal to a preset number threshold value, storing the plurality of data in the batch information files into the temporary storage template, and creating a corresponding relation between the page hiding template and the temporary storage template;
the data response module is used for generating a data uploading response and displaying the data uploading response on a first display page, wherein the data uploading response is used for indicating that loading preparation of a plurality of data in the batch information file is completed;
the loading instruction acquisition module is used for acquiring a plurality of data corresponding to the page identifier from the temporary storage template according to the page identifier in the loading instruction under the condition that the loading instruction aiming at the plurality of data in the batch information file is acquired, and storing the plurality of data corresponding to the page identifier into the page hiding template;
And the data display module is used for loading the page hiding template so as to load and display the plurality of data corresponding to the page identification on the data display page corresponding to the page identification.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the reloading module is used for acquiring a modification instruction aiming at target data, wherein the modification instruction comprises replacement data corresponding to the target data, and the target data is any one data of the plurality of data corresponding to the page identifier;
the reloading module is further configured to modify the target data in the page hiding template into the replacement data, and modify the target data in the temporary storage template into the replacement data;
the reloading module is further configured to reload the page hiding template to load and display the replacement data on a data display page corresponding to the page identifier.
8. The apparatus of claim 6, wherein the apparatus further comprises:
and the second storage module is used for storing the plurality of data in the batch information files into the page hiding template under the condition that the quantity of the plurality of data in the batch information files is smaller than a preset quantity threshold value.
9. A data loading device comprising a processor, a memory and an input-output interface, the processor, memory and input-output interface being interconnected, wherein the input-output interface is for inputting or outputting data, the memory is for storing program code, and the processor is for invoking the program code to perform the method of any of claims 1-5.
10. A computer storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1-5.
CN201910613596.5A 2019-07-05 2019-07-05 Data loading method and device Active CN110413279B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910613596.5A CN110413279B (en) 2019-07-05 2019-07-05 Data loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910613596.5A CN110413279B (en) 2019-07-05 2019-07-05 Data loading method and device

Publications (2)

Publication Number Publication Date
CN110413279A CN110413279A (en) 2019-11-05
CN110413279B true CN110413279B (en) 2023-11-03

Family

ID=68360751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910613596.5A Active CN110413279B (en) 2019-07-05 2019-07-05 Data loading method and device

Country Status (1)

Country Link
CN (1) CN110413279B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791974A (en) * 2021-08-25 2021-12-14 微梦创科网络科技(中国)有限公司 User interface UI element explicit waiting method and device
CN113689223B (en) * 2021-09-01 2023-08-08 北京京东振世信息技术有限公司 Information generation method, device, electronic equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007128139A (en) * 2005-11-01 2007-05-24 Fujifilm Corp Data file transmission system, image management server and data file duplication program
US7770122B1 (en) * 2010-04-29 2010-08-03 Cheman Shaik Codeless dynamic websites including general facilities
CN103186370A (en) * 2011-12-29 2013-07-03 金蝶软件(中国)有限公司 Web page presentation method and system
US8726264B1 (en) * 2011-11-02 2014-05-13 Amazon Technologies, Inc. Architecture for incremental deployment
CN104350518A (en) * 2014-05-20 2015-02-11 华为技术有限公司 Configuration method of advertisement templete, server and system
CN104462998A (en) * 2014-12-09 2015-03-25 天津光电安辰信息技术有限公司 Domestic commercial cryptography algorithm based cloud storage encryption system and implementation method thereof
CN105930437A (en) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 Method and device for managing pictures in application program as well as terminal equipment
CN106302581A (en) * 2015-05-21 2017-01-04 阿里巴巴集团控股有限公司 The introduction method of batch data and system
CN107077691A (en) * 2014-07-14 2017-08-18 甲骨文国际公司 The strategy based on the age for determining database cache hit
CN108062367A (en) * 2017-12-08 2018-05-22 平安科技(深圳)有限公司 The method for uploading and its terminal of a kind of data list
CN109271363A (en) * 2018-09-17 2019-01-25 平安科技(深圳)有限公司 A kind of method and apparatus of file storage
CN109783453A (en) * 2019-01-14 2019-05-21 哈皮尼思(北京)文化科技有限公司 A kind of file browsing method and device
WO2019104447A1 (en) * 2017-12-03 2019-06-06 Thomas Stachura Spreadsheet-based software application development

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040098414A1 (en) * 2002-11-19 2004-05-20 International Business Machines Corporation Method, system, program product and DHTML-based interface for uploading files in a single posting
US9311071B2 (en) * 2012-09-06 2016-04-12 Box, Inc. Force upgrade of a mobile application via a server side configuration file
US10540153B2 (en) * 2016-12-03 2020-01-21 Thomas STACHURA Spreadsheet-based software application development
US10855744B2 (en) * 2017-06-21 2020-12-01 Walmart Apollo, Llc Systems and methods for dynamic file creation

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007128139A (en) * 2005-11-01 2007-05-24 Fujifilm Corp Data file transmission system, image management server and data file duplication program
US7770122B1 (en) * 2010-04-29 2010-08-03 Cheman Shaik Codeless dynamic websites including general facilities
US8726264B1 (en) * 2011-11-02 2014-05-13 Amazon Technologies, Inc. Architecture for incremental deployment
CN103186370A (en) * 2011-12-29 2013-07-03 金蝶软件(中国)有限公司 Web page presentation method and system
CN104350518A (en) * 2014-05-20 2015-02-11 华为技术有限公司 Configuration method of advertisement templete, server and system
CN107077691A (en) * 2014-07-14 2017-08-18 甲骨文国际公司 The strategy based on the age for determining database cache hit
CN104462998A (en) * 2014-12-09 2015-03-25 天津光电安辰信息技术有限公司 Domestic commercial cryptography algorithm based cloud storage encryption system and implementation method thereof
CN106302581A (en) * 2015-05-21 2017-01-04 阿里巴巴集团控股有限公司 The introduction method of batch data and system
CN105930437A (en) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 Method and device for managing pictures in application program as well as terminal equipment
WO2019104447A1 (en) * 2017-12-03 2019-06-06 Thomas Stachura Spreadsheet-based software application development
CN108062367A (en) * 2017-12-08 2018-05-22 平安科技(深圳)有限公司 The method for uploading and its terminal of a kind of data list
CN109271363A (en) * 2018-09-17 2019-01-25 平安科技(深圳)有限公司 A kind of method and apparatus of file storage
CN109783453A (en) * 2019-01-14 2019-05-21 哈皮尼思(北京)文化科技有限公司 A kind of file browsing method and device

Also Published As

Publication number Publication date
CN110413279A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN109683953B (en) Method and device for processing configuration file based on visual interface
US9977658B2 (en) Code validation using content assist
KR101999409B1 (en) Formatting data by example
CN108647141B (en) Automatic test method, device, computer readable medium and electronic equipment
CN112765023B (en) Test case generation method and device
CN108874661B (en) Test mapping relation library generation method and device, computer equipment and storage medium
CN110413279B (en) Data loading method and device
CN111797026A (en) Test case generation method and device, computer equipment and storage medium
CN113448862B (en) Software version testing method and device and computer equipment
CN115114146A (en) Interface test method, device, equipment and storage medium
CN111444453A (en) Page return data processing method and device
US9104573B1 (en) Providing relevant diagnostic information using ontology rules
CN112613275A (en) Receipt generation method and device, computer equipment and storage medium
CN111158685A (en) Static page updating method and device, electronic equipment and storage medium
CN103838575A (en) Plug-in type page customization implementation method based on EXTJS frame
CN112130908A (en) Method and device for setting user guide
CN111008150B (en) Test report generation method, device and equipment
CN115033436A (en) Page testing method and device, electronic equipment and storage medium
CN114817152A (en) Method and system for querying slice file
CN107704484B (en) Webpage error information processing method and device, computer equipment and storage medium
CN112417020A (en) Method and device for realizing service expansion, computer equipment and storage medium
US20230359546A1 (en) Reducing computing power for generating test scenario files for decision models
CN113505159B (en) Data detection method, device and equipment
CN111144973B (en) Question ranking method and computer-readable storage medium
CN116107627A (en) Code adjustment method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant