Page data processing method, device, electronic device and storage medium
By responding to client page requests, a unified and personalized page display component is generated, and combined with data processing programs, the problem that unified page development is difficult to meet personalized needs is solved, and business processing efficiency is improved.
Patent Information
- Application Number
- CN202210143016.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-16
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2042-02-16
AI Technical Summary
In the fields of finance, unified page development is difficult to meet the personalized needs of each business, resulting in reduced business processing efficiency.
By responding to the client's page access request, obtaining the client's identity to determine the business type, calling the preset component library to generate unified and personalized page display components, processing target data with the data processor, and establishing data association relationships to meet personalized needs.
It has achieved the ability to meet the personalized business needs on the basis of unified development and improved the efficiency of business data processing.
Smart Images

Figure CN114625458B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, electronic device and storage medium for processing page data. Background Art
[0002] In the financial and other fields, various businesses need to be user-oriented, so usually the system will develop user-oriented pages in a unified manner so that users can enter data through the pages, and then the system can process the data entered by users. Due to the wide range of businesses, page development can integrate the requirements of the main project and then develop a unified user-oriented page, but this method can easily lead to failure to meet the personalized needs of each business, resulting in reduced business processing efficiency. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a method, device, electronic device and storage medium for processing page data, which can solve the problem that developing a unified page for users cannot meet the personalized needs of each business, thereby reducing business processing efficiency.
[0004] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for processing page data is provided.
[0005] A method for processing page data in an embodiment of the present invention includes: in response to a page access request from a client, obtaining an identifier of the client to query the business type to which the client belongs and determine corresponding display configuration data and a data processing program; calling a preset first component library to generate a unified page display component according to unified configuration data in the display configuration data; calling a second component library to generate a personalized page display component according to personalized configuration data in the display configuration data; sending the unified page display component and the personalized page display component to the client to render a target page; receiving target data input by the client based on the target page, and calling the data processing program to process the target data.
[0006] In one embodiment, calling the data processing program to process the target data includes:
[0007] Calling the data processing program to filter the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component from the target data;
[0008] An association relationship between the first data and the second data is established and stored.
[0009] In yet another embodiment, filtering the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component includes:
[0010] Obtaining a parameter value of an attribute parameter corresponding to the target data to determine whether the parameter value satisfies a configuration verification condition;
[0011] If so, the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component are filtered; if not, a data abnormality message is sent to the client.
[0012] In yet another embodiment, the attribute parameters include one or more of data display location, data length, and data type.
[0013] In yet another embodiment, before responding to the page access request of the client, the method further includes:
[0014] Receiving personalized configuration information, and identifying personalized configuration data and data processing configuration information in the personalized configuration information;
[0015] Acquire unified configuration data to establish an association relationship between the unified configuration data and personalized configuration data;
[0016] The unified data processing configuration information is acquired to embed the data processing configuration information into the unified data processing configuration information to obtain a data processing program.
[0017] In yet another embodiment, before receiving the personalized configuration information, the method further includes:
[0018] In response to a personalized page configuration request, obtaining a business type in the page configuration request to query a corresponding page data configuration template;
[0019] The page data configuration template is sent to display the page data configuration template, and then the personalized configuration information is input based on the page data configuration template.
[0020] In yet another embodiment, obtaining unified configuration data and establishing an association relationship between the unified configuration data and personalized configuration data includes:
[0021] Constructing first JSON data corresponding to the same configuration information data;
[0022] Acquire second JSON data corresponding to the unified configuration data to establish an association relationship between the first JSON data and the second JSON data.
[0023] In yet another embodiment, embedding the data processing configuration information into the unified data processing configuration information to obtain a data processing program includes:
[0024] Based on the data processing configuration information, a corresponding script is constructed, and the script is embedded in the unified data processing configuration information to obtain a data processing program.
[0025] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for processing page data is provided.
[0026] A page data processing device according to an embodiment of the present invention includes: a determination unit, which is used to respond to a page access request from a client, obtain an identification of the client, query the business type to which the client belongs, and determine the corresponding display configuration data and data processing program; a generation unit, which is used to call a preset first component library, and generate a unified page display component according to the unified configuration data in the display configuration data; call a second component library, and generate a personalized page display component according to the personalized configuration data in the display configuration data; a sending unit, which is used to send the unified page display component and the personalized page display component to the client, so as to render a target page; and a processing unit, which is used to receive target data input by the client based on the target page, and call the data processing program to process the target data.
[0027] In one embodiment, the processing unit is specifically configured to:
[0028] Calling the data processing program to filter the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component from the target data;
[0029] An association relationship between the first data and the second data is established and stored.
[0030] In yet another embodiment, the processing unit is specifically configured to:
[0031] Obtaining a parameter value of an attribute parameter corresponding to the target data to determine whether the parameter value satisfies a configuration verification condition;
[0032] If so, the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component are filtered; if not, a data abnormality message is sent to the client.
[0033] In yet another embodiment, the attribute parameters include one or more of data display location, data length, and data type.
[0034] In yet another embodiment, the apparatus further comprises:
[0035] an identification unit, configured to receive personalized configuration information, and identify personalized configuration data and data processing configuration information in the personalized configuration information;
[0036] An establishing unit, used for acquiring unified configuration data to establish an association relationship between the unified configuration data and the personalized configuration data;
[0037] The embedding unit is used to obtain unified data processing configuration information to embed the data processing configuration information into the unified data processing configuration information to obtain a data processing program.
[0038] In yet another embodiment, the apparatus further comprises:
[0039] An acquisition unit, configured to respond to a personalized page configuration request and acquire a business type in the page configuration request to query a corresponding page data configuration template;
[0040] The acquisition unit is further used to send the page data configuration template to display the page data configuration template, and then input the personalized configuration information based on the page data configuration template.
[0041] In yet another embodiment, the establishing unit is specifically configured to:
[0042] Constructing first JSON data corresponding to the same configuration information data;
[0043] Acquire second JSON data corresponding to the unified configuration data to establish an association relationship between the first JSON data and the second JSON data.
[0044] In yet another embodiment, the embedding unit is specifically used for:
[0045] Based on the data processing configuration information, a corresponding script is constructed, and the script is embedded in the unified data processing configuration information to obtain a data processing program.
[0046] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.
[0047] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the page data processing method provided by the embodiment of the present invention.
[0048] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.
[0049] A computer-readable medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, the method for processing page data provided by the embodiment of the present invention is implemented.
[0050] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer program product is provided.
[0051] A computer program product according to an embodiment of the present invention includes a computer program. When the program is executed by a processor, the method for processing page data provided by the embodiment of the present invention is implemented.
[0052] One embodiment of the above invention has the following advantages or beneficial effects: In the embodiment of the present invention, for a page access request, the corresponding display configuration data and data processing program can be determined based on the business type to which the client belongs; the display configuration data includes unified configuration data and personalized configuration data, so a unified page display component and a personalized page display component can be generated through the corresponding component library, and then the client performs page rendering, so that the rendered page includes both the uniformly developed page data and the personalized page data corresponding to the business type, thereby meeting the personalized needs of the user, so after receiving the target data input by the client based on the target page, it can be processed through the data processing program. In this way, in the embodiment of the present invention, the unified configuration data and the personalized configuration data are pre-configured, so a unified page display component and a personalized page display component can be generated, and the rendered target page includes both the unified page data and the personalized page data corresponding to the business type, thereby meeting the personalized needs of the business, thereby improving the processing efficiency of the business data.
[0053] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific implementation examples. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0055] Figure 1 is a schematic diagram of a main process of a method for processing page data according to an embodiment of the present invention;
[0056] Figure 2 is a schematic diagram of another main flow of a method for processing page data according to an embodiment of the present invention;
[0057] Figure 3 is a schematic diagram of main units of a device for processing page data according to an embodiment of the present invention;
[0058] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0059] Figure 5 It is a schematic diagram of the structure of a computer system suitable for implementing the embodiment of the present invention. DETAILED DESCRIPTION
[0060] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0061] It should be noted that the embodiments and features of the embodiments of the present invention can be combined with each other without conflict. The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations.
[0062] An embodiment of the present invention provides a method for processing page data, which can be executed by a page data processing system, such as Figure 1 As shown, the method includes:
[0063] S101: In response to a page access request from a client, an identifier of the client is obtained to query the business type to which the client belongs and determine corresponding display configuration data and data processing program.
[0064] Among them, the client can be a user-oriented terminal, and the client corresponds to different business types, so the corresponding display pages are different. In the embodiment of the present invention, in order to meet the needs of different business types for page content, corresponding configuration information is configured for different business types, which may specifically include display configuration data and data processing programs, wherein the display configuration data is used to generate a user-oriented target page, and the data processing program is used to process the data input by the user through the target page. In addition, in order to accurately determine the page accessed by the client, a correspondence between the client identifier and the business type is established in advance, so as to determine the personalized content that needs to be included in the client display page. In this step, after obtaining the client identifier, the corresponding business type can be queried based on the identifier, and then the display configuration data and data processing program corresponding to the business type can be determined.
[0065] S102: calling a preset first component library to generate a unified page display component according to the unified configuration data in the display configuration data; calling a second component library to generate a personalized page display component according to the personalized configuration data in the display configuration data.
[0066] The first component library is used to generate the uniformly developed page content in the target page, and the components in the second component library are used to generate the personalized page content in the target page. The first component library and the second component library are pre-configured. The display configuration data in this step includes the uniform configuration data and the personalized configuration data, so by calling the first component library, the uniform configuration data can be matched with the components in the first component library to generate a uniform page display component, and by calling the second component library, the personalized configuration data can be matched with the components in the second component library to generate a personalized page display component.
[0067] S103: Send the unified page display component and the personalized page display component to the client to render a target page.
[0068] The client can render the page based on the unified page display component and the personalized page display component to obtain the target page. Specifically, the target page rendering can include page architecture rendering and display of initialization default data of parameters in the page.
[0069] S104: receiving target data inputted by the client based on the target page, and calling a data processing program to process the target data.
[0070] Among them, after the user displays the target page on the client, he can input the target data to be processed based on the content displayed on the page. The client sends the target data entered by the user to the processing system. After the processing system receives the target data, it can call the corresponding data processing program to process the target data.
[0071] Specifically, calling the data processing program in this step to process the target data can be executed as follows: calling the data processing program to filter the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component from the target data; establishing an association relationship between the first data and the second data and storing it.
[0072] The target data is input based on the target page, so it may include first data corresponding to the unified page display component and second data corresponding to the personalized page display component. The first data and the second data need to be stored after data processing. In order to ensure the accuracy of data storage, it is necessary to establish an association relationship between the first data and the second data and store it to facilitate subsequent data query and other operations.
[0073] It should be noted that, in an embodiment of the present invention, the processing of the target data may also include verification of the target data, so the step of filtering the first data and the second data may be executed as follows: obtaining the parameter value of the attribute parameter corresponding to the target data to determine whether the parameter value meets the configuration verification condition; if so, filtering the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component; if not, sending a data exception message to the client.
[0074] The verification of the target data usually involves verifying the attribute parameters of the target data, so the parameter values of the attribute parameters corresponding to the target data can be obtained to determine whether the parameter values meet the configuration verification conditions; if so, it can be determined that the target data verification has passed, and then the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component are filtered; if not, a data exception message is sent to the client to prompt the user that the data input is incorrect.
[0075] In the embodiment of the present invention, the attribute parameter may include one or more of a data display position, a data length, and a data type, and the preset condition corresponding to each attribute parameter may be pre-configured.
[0076] In an embodiment of the present invention, unified configuration data and personalized configuration data are pre-configured, so a unified page display component and a personalized page display component can be generated. The rendered target page includes both the unified page data and the personalized page data corresponding to the business type, thereby meeting the personalized needs of the business and improving the processing efficiency of the business data.
[0077] In the embodiment of the present invention, before executing step S101, it is usually necessary to perform personalized configuration. Figure 1 The embodiment shown in the figure specifically describes the personalized configuration method in the embodiment of the present invention. Figure 2 As shown, the method includes:
[0078] S201: Receive personalized configuration information, and identify personalized configuration data and data processing configuration information in the personalized configuration information.
[0079] The personalized configuration information includes personalized configuration data and data processing configuration information. The personalized configuration data is used to configure personalized page content in the target page, and the data processing configuration information is used to process data input based on the personalized page content.
[0080] The personalized configuration may be triggered by a page configuration request, which may be triggered automatically or sent by an external device. The page configuration request includes a business type to indicate which personalized page configuration is to be performed, i.e., to query the corresponding page data configuration template. The personalized configuration information may be input through a page data configuration template. In an embodiment of the present invention, a page data configuration template may be preset to facilitate the user to input personalized configuration information, and different personalized configuration information may correspond to different business types. After the page data configuration template is queried in this step, it may be sent to the configuration device to facilitate the display of the page data configuration template, and then the personalized configuration information may be input based on the page data configuration template.
[0081] It should be noted that the page data configuration template can include custom field configuration to configure personalized fields, that is, based on the unified page content, some personalized fields corresponding to business types and attribute parameters of these fields can be created. The attribute parameters of these fields can be stored in the metadata of the JSON structure and stored in the corresponding server, while expanding the data storage structure and logic.
[0082] S202: Obtain unified configuration data to establish an association relationship between the unified configuration data and personalized configuration data.
[0083] Among them, since the personalized page content is personalized based on the unified configuration page, it is necessary to obtain the unified configuration data in this step to establish an association relationship between the unified configuration data and the personalized configuration data, so that the completed display configuration data can be queried when generating the target page.
[0084] Specifically, in this step, the unified configuration information data can be stored through a JSON structure, that is, first JSON data corresponding to the unified configuration information data is constructed, and then second JSON data corresponding to the unified configuration data is obtained to establish an association relationship between the first JSON data and the second JSON data.
[0085] S203: Acquire unified data processing configuration information to embed the data processing configuration information into the unified data processing configuration information to obtain a data processing program.
[0086] Specifically, after receiving the unified data processing configuration information in this step, a corresponding script may be constructed based on a scripting language, and then the script may be embedded in the unified data processing configuration information to obtain a data processing program to maintain data consistency.
[0087] In an embodiment of the present invention, unified configuration data and personalized configuration data are pre-configured, so a unified page display component and a personalized page display component can be generated. The rendered target page includes both the unified page data and the personalized page data corresponding to the business type, thereby meeting the personalized needs of the business and improving the processing efficiency of the business data.
[0088] In order to solve the problems existing in the prior art, an embodiment of the present invention provides a device 300 for processing page data, such as Figure 3 As shown, the device 300 includes:
[0089] The determination unit 301 is used to obtain the identification of the client in response to the page access request of the client, so as to query the service type to which the client belongs and determine the corresponding display configuration data and data processing program;
[0090] The generating unit 302 is used to call a preset first component library to generate a unified page display component according to the unified configuration data in the display configuration data; and call a second component library to generate a personalized page display component according to the personalized configuration data in the display configuration data;
[0091] A sending unit 303 is used to send the unified page display component and the personalized page display component to the client to render a target page;
[0092] The processing unit 304 is used to receive the target data input by the client based on the target page, and call the data processing program to process the target data.
[0093] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1 The method of the illustrated embodiment is the same and will not be repeated here.
[0094] In one embodiment, calling the data processing program to process the target data includes:
[0095] Calling the data processing program to filter the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component from the target data;
[0096] An association relationship between the first data and the second data is established and stored.
[0097] In yet another embodiment, filtering the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component includes:
[0098] Obtaining a parameter value of an attribute parameter corresponding to the target data to determine whether the parameter value satisfies a configuration verification condition;
[0099] If so, the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component are filtered; if not, a data abnormality message is sent to the client.
[0100] In yet another embodiment, the attribute parameters include one or more of data display location, data length, and data type.
[0101] In yet another embodiment, before responding to the page access request of the client, the method further includes:
[0102] Receiving personalized configuration information, and identifying personalized configuration data and data processing configuration information in the personalized configuration information;
[0103] Acquire unified configuration data to establish an association relationship between the unified configuration data and personalized configuration data;
[0104] The unified data processing configuration information is acquired to embed the data processing configuration information into the unified data processing configuration information to obtain a data processing program.
[0105] In yet another embodiment, before receiving the personalized configuration information, the method further includes:
[0106] In response to a personalized page configuration request, obtaining a business type in the page configuration request to query a corresponding page data configuration template;
[0107] The page data configuration template is sent to display the page data configuration template, and then the personalized configuration information is input based on the page data configuration template.
[0108] In yet another embodiment, obtaining unified configuration data and establishing an association relationship between the unified configuration data and personalized configuration data includes:
[0109] Constructing first JSON data corresponding to the same configuration information data;
[0110] Acquire second JSON data corresponding to the unified configuration data to establish an association relationship between the first JSON data and the second JSON data.
[0111] In yet another embodiment, embedding the data processing configuration information into the unified data processing configuration information to obtain a data processing program includes:
[0112] Based on the data processing configuration information, a corresponding script is constructed, and the script is embedded in the unified data processing configuration information to obtain a data processing program.
[0113] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1 and Figure 2 The method of the illustrated embodiment is the same and will not be repeated here.
[0114] In an embodiment of the present invention, unified configuration data and personalized configuration data are pre-configured, so a unified page display component and a personalized page display component can be generated. The rendered target page includes both the unified page data and the personalized page data corresponding to the business type, thereby meeting the personalized needs of the business and improving the processing efficiency of the business data.
[0115] According to an embodiment of the present invention, the embodiment of the present invention further provides an electronic device and a readable storage medium.
[0116] The electronic device of an embodiment of the present invention includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the page data processing method provided by the embodiment of the present invention.
[0117] Figure 4 An exemplary system architecture 400 is shown to which the page data processing method or the page data processing device according to the embodiment of the present invention can be applied.
[0118] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0119] The user can use the terminal devices 401, 402, 403 to interact with the server 405 through the network 404 to receive or send messages, etc. Various client applications can be installed on the terminal devices 401, 402, 403.
[0120] The terminal devices 401 , 402 , 403 may be, but are not limited to, smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0121] The server 405 may be a server that provides various services. The server may analyze and process the received data such as the product information query request, and feed back the processing result (such as product information - just an example) to the terminal device.
[0122] It should be noted that the method for processing page data provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the device for processing page data is generally disposed in the server 405 .
[0123] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0124] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 suitable for implementing an embodiment of the present invention. Figure 5 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0125] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0126] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0127] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0128] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0129] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a unit, a program segment, or a part of a code, and the above-mentioned unit, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0130] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a determination unit, a generation unit, a sending unit and a processing unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the determination unit may also be described as a "unit for determining a function".
[0131] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device executes the page data processing method provided by the present invention.
[0132] As another aspect, the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the page data processing method provided by an embodiment of the present invention.
[0133] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for processing page data, characterized in that: include: In response to a page access request from a client, an identifier of the client is obtained to query the business type to which the client belongs, and corresponding display configuration data and a data processing program are determined, wherein the display configuration data is used to generate a target page for the user, and the data processing program is used to process data input by the user through the target page; Calling a preset first component library to generate a unified page display component according to the unified configuration data in the display configuration data; Calling the second component library to generate a personalized page display component according to the personalized configuration data in the display configuration data; wherein, by calling the first component library, the unified configuration data is matched with the components in the first component library to generate the unified page display component, and by calling the second component library, the personalized configuration data is matched with the components in the second component library to generate the personalized page display component; Sending the unified page display component and the personalized page display component to the client to render a target page; receiving target data input by the client based on the target page, and calling the data processing program to process the target data; Calling the data processing program to process the target data includes: Calling the data processing program to filter the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component from the target data; Establishing and storing an association relationship between the first data and the second data; Before responding to the page access request of the client, the method further includes: Receiving personalized configuration information, and identifying personalized configuration data and data processing configuration information in the personalized configuration information; Acquire unified configuration data to establish an association relationship between the unified configuration data and personalized configuration data; The unified data processing configuration information is acquired to embed the data processing configuration information into the unified data processing configuration information to obtain a data processing program.
2. The method according to claim 1, characterized in that Filtering the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component includes: Obtaining a parameter value of an attribute parameter corresponding to the target data to determine whether the parameter value satisfies a configuration verification condition; If so, the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component are filtered; if not, a data abnormality message is sent to the client.
3. The method according to claim 2, characterized in that The attribute parameters include one or more of data display position, data length, and data type.
4. The method according to claim 1, characterized in that Before receiving the personalized configuration information, the method further includes: In response to a personalized page configuration request, obtaining a business type in the page configuration request to query a corresponding page data configuration template; The page data configuration template is sent to display the page data configuration template, and then the personalized configuration information is input based on the page data configuration template.
5. The method according to claim 1, characterized in that The data processing configuration information is embedded in the unified data processing configuration information to obtain a data processing program, including: Based on the data processing configuration information, a corresponding script is constructed, and the script is embedded in the unified data processing configuration information to obtain a data processing program.
6. A device for processing page data, characterized in that: include: A determination unit, configured to obtain an identifier of the client in response to a page access request from the client, to query the business type to which the client belongs, and to determine corresponding display configuration data and a data processing program, wherein the display configuration data is used to generate a target page for the user, and the data processing program is used to process data input by the user through the target page; A generating unit, configured to call a preset first component library and generate a unified page display component according to the unified configuration data in the display configuration data; Calling the second component library to generate a personalized page display component according to the personalized configuration data in the display configuration data; wherein, by calling the first component library, the unified configuration data is matched with the components in the first component library to generate the unified page display component, and by calling the second component library, the personalized configuration data is matched with the components in the second component library to generate the personalized page display component; A sending unit, used for sending the unified page display component and the personalized page display component to the client to render a target page; A processing unit, configured to receive target data input by the client based on the target page, and call the data processing program to process the target data; The processing unit is specifically used for: Calling the data processing program to filter the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component from the target data; Establishing and storing an association relationship between the first data and the second data; The device also includes: an identification unit, configured to receive personalized configuration information, and identify personalized configuration data and data processing configuration information in the personalized configuration information; An establishing unit, used for acquiring unified configuration data to establish an association relationship between the unified configuration data and the personalized configuration data; The embedding unit is used to obtain unified data processing configuration information to embed the data processing configuration information into the unified data processing configuration information to obtain a data processing program.
7. The device according to claim 6, characterized in that The processing unit is specifically used for: Obtaining a parameter value of an attribute parameter corresponding to the target data to determine whether the parameter value satisfies a configuration verification condition; If so, the first data corresponding to the unified page display component and the second data corresponding to the personalized page display component are filtered; if not, a data abnormality message is sent to the client.
8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
