CN113609421A - Page data updating method and device, computer equipment and storage medium - Google Patents

Page data updating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113609421A
CN113609421A CN202110915933.3A CN202110915933A CN113609421A CN 113609421 A CN113609421 A CN 113609421A CN 202110915933 A CN202110915933 A CN 202110915933A CN 113609421 A CN113609421 A CN 113609421A
Authority
CN
China
Prior art keywords
data
page
data processing
target
field
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.)
Granted
Application number
CN202110915933.3A
Other languages
Chinese (zh)
Other versions
CN113609421B (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 Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co 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 Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202110915933.3A priority Critical patent/CN113609421B/en
Publication of CN113609421A publication Critical patent/CN113609421A/en
Application granted granted Critical
Publication of CN113609421B publication Critical patent/CN113609421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to the field of data processing, the target data are processed in a centralized mode by calling a data processing service assembly, page data updating is carried out on a target page assembly through a data transmission object according to a data processing result, the situation that data reference is lost easily due to the adoption of a one-way data stream processing mode is avoided, and the efficiency of form page data updating is improved. A page data updating method, a device, a computer device and a storage medium are provided, the method comprises: when component selection operation of a form page is detected, determining a target page component and target data to be processed according to the component selection operation; calling a preset data processing service component to perform data processing on the target data; and determining a data transmission object corresponding to the form page, calling the data transmission object, and updating page data of the target page component according to the data processing result. In addition, the application also relates to a block chain technology, and a data processing result can be stored in the block chain.

Description

Page data updating method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a method and an apparatus for updating page data, a computer device, and a storage medium.
Background
In many service data processing scenarios, a large complex form page with a complex structure and a large number of contents needs to be processed. These large complex form pages contain many fields and many associated field entries. When data of a form page based on componentization is updated, data updating is often required to be performed according to the association relationship between fields to which page components belong.
In the prior art, the association relationship between the fields to which the page components belong is processed by adopting a unidirectional data stream processing mode based on a FLUX architecture. In practical application, when complex data linkage and multi-component data sequence circulation are realized, a unidirectional data flow processing mode needs to perform data circulation in a plurality of page components, so that the situation of data reference loss is easy to occur, and the efficiency of updating the form page data is low.
Therefore, how to improve the efficiency of updating the form page data becomes an urgent problem to be solved.
Disclosure of Invention
The application provides a page data updating method, a page data updating device, a computer device and a storage medium, wherein target data are processed in a centralized mode by calling a data processing service assembly, and page data updating is carried out on the target page assembly according to a data processing result through a data transmission object, so that the condition that data reference is easy to lose due to the adoption of a one-way data flow processing mode is avoided, and the efficiency of updating form page data is improved.
In a first aspect, the present application provides a page data updating method, where the method includes:
when component selection operation of a form page is detected, determining a target page component and target data to be processed according to the component selection operation;
calling a preset data processing service component to perform data processing on the target data to obtain a data processing result;
and determining a data transmission object corresponding to the form page, calling the data transmission object, and updating page data of the target page component according to the data processing result.
In a second aspect, the present application further provides a page data updating apparatus, including:
the target data determining module is used for determining a target page component and target data to be processed according to the component selection operation when the component selection operation of the form page is detected;
the data processing module is used for calling a preset data processing service component to perform data processing on the target data to obtain a data processing result;
and the page data updating module is used for determining a data transmission object corresponding to the form page, calling the data transmission object and updating the page data of the target page component according to the data processing result.
In a third aspect, the present application further provides a computer device comprising a memory and a processor;
the memory for storing a computer program;
the processor is used for executing the computer program and realizing the page data updating method when the computer program is executed.
In a fourth aspect, the present application further provides a computer-readable storage medium storing a computer program, which when executed by a processor causes the processor to implement the page data updating method as described above.
The application discloses a page data updating method, a page data updating device, computer equipment and a storage medium, wherein when component selection operation of a form page is detected, a target page component and target data to be processed can be determined according to the component selection operation; the target data are processed by calling the preset data processing service component, so that the target data corresponding to the target page component can be processed in a centralized manner without data circulation among a plurality of page components; by determining the data transmission object corresponding to the form page, the data transmission object can be called, and the page data of the target page component is updated according to the data processing result, so that the condition that data reference is easy to lose due to the adoption of a one-way data stream processing mode is avoided, and the efficiency of updating the form page data is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a page data updating method provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram of a substep of determining a data transfer object provided by an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of sub-steps of updating page data according to an embodiment of the present application;
FIG. 4 is a diagram illustrating a page data update performed on a target page component according to an embodiment of the present application;
FIG. 5 is a schematic block diagram of a page data updating apparatus according to an embodiment of the present application;
fig. 6 is a schematic block diagram of a structure of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
The embodiment of the application provides a page data updating method and device, computer equipment and a storage medium. The page data updating method can be applied to a client, centralized processing is carried out on target data by calling a data processing service component, and page data updating is carried out on the target page component according to a data processing result by a data transmission object, so that the condition that data reference is easy to lose due to the adoption of a unidirectional data stream processing mode is avoided, and the efficiency of updating the form page data is improved.
The client can be an electronic device such as a smart phone, a tablet computer, a notebook computer and a desktop computer.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
As shown in fig. 1, the page data updating method includes steps S10 through S30.
And step S10, when the component selection operation of the form page is detected, determining a target page component and target data to be processed according to the component selection operation.
Illustratively, the form page may be a form web page on a browser of the client, or may be a form page on various APPs (applications) of the client. The form page may include a plurality of page components, different page components are used for implementing different functions, and there may be an association relationship between fields in different page components.
It should be noted that the page data updating method provided by the embodiment of the present application may be applied to a page data updating scenario on a form page, and when data in a certain page component in the form page is modified, the whole form page needs to be updated. Because there is an incidence relation between the fields to which each page component belongs in the form page, when the form page data is updated, the data linkage occurs.
It can be understood that the data linkage means that when a user modifies a field value corresponding to a field in one of the page components, since there is an association relationship between fields in the page components, modifying a field value corresponding to a field in one of the page components causes field values corresponding to fields in other page components to be changed. For example, for data such as a premium, a rate, and a premium in a page component, the premium calculation formula is a premium × rate; if the premium is changed and the rate is changed, the premium is recalculated according to the changed premium and rate, and the data such as the premium, the rate, the premium and the like in the page component are updated according to the calculation result.
It should be noted that, when updating data of a single page, the prior art is implemented by adopting a unidirectional data stream processing mode based on a FLUX architecture, that is, a parent component transmits data to a child component, and the child component does not have a right to modify the data of the parent component. Therefore, the unidirectional data flow processing mode is easy to cause the situation of data reference loss, and reduces the efficiency of form page data updating. According to the page data updating method provided by the embodiment of the application, the target data is processed in a centralized mode by calling the data processing service assembly, and the page data is updated on the target page assembly according to the data processing result through the data transmission object, so that the phenomenon that data reference is easy to lose due to the adoption of a unidirectional data stream processing mode is avoided, and the efficiency of updating the form page data is improved.
In some embodiments, when a component selection operation of the form page is detected, a target page component and target data to be processed are determined according to the component selection operation. For example, a user can perform component selection operation in a form page according to actual requirements, and select a page component needing data modification; then, corresponding data is input in an input box of the page component.
For example, a user selected page component and other page components associated with the selected page component may be determined to be target page components. For example, the user selects page component a, and if the page components associated with page component a include page component B and page component C, page component a, page component B, and page component C may be determined as the target page component.
For example, the target data to be processed may be determined according to fields in the target page component and field values input by the user.
When the component selection operation of the form page is detected, the target page component and the target data to be processed can be determined according to the component selection operation.
And step S20, calling a preset data processing service component to perform data processing on the target data to obtain a data processing result.
Illustratively, the preset data processing service component is a component for performing data centralized processing on each page component in the form page. For example, a plurality of processing algorithms may be defined in advance in the data processing service component for performing data calculation on each page component.
It should be noted that, in the embodiment of the present application, when a field value corresponding to a field in a target page component changes, the target page component may actively send a data processing event to a data processing service component, so that the data processing service component performs data processing on target data according to the data processing event; or the data processing service assembly monitors the page assembly, and when the assembly triggering operation is detected, the data processing service assembly actively acquires the target data and processes the data.
In some embodiments, invoking a preset data processing service component to perform data processing on the target data to obtain a data processing result may include: and determining a target data processing event corresponding to the target page component based on the corresponding relation between the preset page component and the data processing event, and calling the data processing service component to execute the target data processing event to obtain a data processing result.
Illustratively, the data processing event may comprise a processing algorithm. In the embodiment of the present application, a correspondence between a page component and a data processing event may be preset. For example, for page component a, the corresponding processing algorithm is a multiplication algorithm. For example, for page component B, the corresponding processing algorithm is an addition algorithm.
For example, the target data processing event corresponding to the target page component may be determined based on a preset correspondence between the page component and the data processing event. For example, for target page component A, the corresponding target data processing event may be a multiplication algorithm.
For example, after determining the target data processing event corresponding to the target page component, the data processing service component may be invoked to execute the target data processing event, and obtain a data processing result. For example, the field values in the target data are multiplied by the data processing service component to obtain the data processing result. The specific process of executing the target data processing event is not limited herein.
The target data processing event corresponding to the target page component is determined based on the corresponding relation between the preset page component and the data processing event, the target page component triggers the data processing service component to execute the target data processing event, the data processing service component is called to carry out centralized processing on target data, and data circulation is not needed in a plurality of page components.
In other embodiments, invoking a preset data processing service component to perform data processing on the target data to obtain a data processing result may include: calling a data processing service component according to the component selection operation to acquire a target field in target data; and determining a target data processing event corresponding to the target field based on the corresponding relation between the preset field and the data processing event, and executing the target data processing event to obtain a data processing result.
Illustratively, when detecting component selection operation of a form page, calling a data processing service component according to the component selection operation; then, a target field in the target data is obtained by the data processing service component.
Illustratively, the data processing event may comprise a processing algorithm. In the embodiment of the present application, the correspondence between the field and the data processing event may be preset. For example, for field a and field b, the corresponding processing algorithm is an addition algorithm. For example, for field c and field d, the corresponding processing algorithm is a subtraction algorithm.
For example, the target data processing event corresponding to the target field may be determined based on a corresponding relationship between the preset field and the data processing event. For example, for the target fields being field a and field b, the corresponding target data processing event may be an addition algorithm.
Illustratively, after determining the target data processing event corresponding to the target field, the data processing service component executes the target data processing event to obtain the data processing result. For example, the data processing service component adds the field values corresponding to the target fields to obtain the data processing result. The specific process of executing the target data processing event is not limited herein.
The data processing service assembly is called according to the operation selected by the assembly, so that the data processing service assembly can acquire a target field in target data, determine a target data processing event corresponding to the target field and execute the target data processing event, the data processing service assembly is called to perform centralized processing on the target data, and data circulation is not needed in a plurality of page assemblies.
To further ensure the privacy and security of the data processing results, the data processing results may be stored in nodes of a blockchain.
It should be noted that, in the embodiment of the present application, the target data is processed in a centralized manner by calling the data processing service component, so that the processing logic of data linkage is clearer, and further, the exception positioning can be performed more conveniently when the data exception occurs, thereby improving the efficiency of data exception handling.
Step S30, determining a data transmission object corresponding to the form page, calling the data transmission object, and updating the page data of the target page component according to the data processing result.
It should be noted that a Data Transfer Object (DTO) is an object for encapsulating Data and transmitting the Data from one subsystem of an application to another subsystem. Illustratively, the data transfer object may include at least one field corresponding to a field value for each field.
Referring to fig. 2, fig. 2 is a schematic flowchart of a sub-step of determining a data transmission object corresponding to a form page according to an embodiment of the present application, and specifically includes the following steps S301 and S302.
Step S301, at least one field corresponding to the form page and a field value corresponding to each field are obtained.
Illustratively, at least one field corresponding to the form page and the field value corresponding to each field may be defined by the client or defined by the background server. For example, the field value corresponding to each field may be predefined according to the field and field value required by each page component in the form page.
Step S302, adding each field and the field value corresponding to each field to a preset data model layer to obtain a data transmission object.
In this embodiment of the application, after at least one field corresponding to a form page and a field value corresponding to each field are obtained, the field value corresponding to each field and each field may be added to a preset data model layer, so as to obtain a data transmission object.
It should be noted that the preset data model layer may be a class file, and is used for performing operations such as extracting, storing, updating, deleting, and the like on data information. For example, the data model layer may be a js file or json file, or may be other types of files, and is not limited herein.
Illustratively, the code may be written, and a field value corresponding to each field and each field is added to a js file or a json file, so as to obtain a data transmission object corresponding to a form page.
By acquiring at least one field corresponding to the form page and a field value corresponding to each field and adding each field and the field value corresponding to each field to a preset data model layer, a data transmission object corresponding to the form page can be acquired, and then, data updating can be conveniently carried out on a page component in the form page through the data transmission object.
In some embodiments, after determining the data transmission object corresponding to the form page, the method may further include: and executing data mapping operation, mapping the field in the data transmission object to the page component in the form page, and/or mapping the field in the data transmission object to the data processing service component.
It should be noted that data mapping refers to a process of establishing a correspondence relationship between data elements between two models.
For example, when mapping fields in a data transfer object to a page component in a form page, the fields in the data transfer object may be associated with the fields in the page component based on a bidirectional data synchronization channel function.
Wherein the bidirectional data synchronization channel function may be an object. It should be noted that the object.
By mapping the fields in the data transmission object to the page components in the form page, page data updating of the page components can be realized based on the mapping relation between the fields when the data transmission object is updated.
For example, when mapping fields in a data transfer object to data processing service components, the fields in the data transfer object may be associated with the fields in the data processing service components based on a bidirectional data synchronization channel function.
By mapping the fields in the data transmission object to the data processing service assembly, the data processing of the target data by the data processing service assembly can be realized, and after the data processing result is obtained, the data updating is carried out on the data transmission object based on the mapping relation among the fields.
In the embodiment of the application, after the data transmission object corresponding to the form page is determined, the data transmission object needs to be called, and page data updating is performed on the target page component according to the data processing result.
Referring to fig. 3, fig. 3 is a schematic flowchart of a sub-step of updating page data of a target page component according to an embodiment of the present application, and specifically includes the following steps S303 and S304.
Step S303, updating the data transmission object according to the data processing result.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a page data update performed on a target page component according to an embodiment of the present application. As shown in fig. 4, after the data processing service component performs data processing on the target data, the data processing service component may update the data transmission object according to the data processing result to obtain an updated data transmission object; then, the updated data transmission object updates the page data of the target page component in the form page. The data transmission object is updated according to the data processing result, so that page data can be updated on the target page component in the form page according to the updated data transmission object, the condition that data reference is easy to lose due to the adoption of a one-way data stream processing mode is avoided, and the efficiency of updating the form page data is improved. In addition, the page data updating method provided by the embodiment of the application can enable developers to develop the form page without following the unidirectional data stream processing rule, can reduce the development code amount, further can reduce the file volume of the form page, and can improve the loading speed of the form page.
Illustratively, the data processing result may include fields corresponding to the fields.
In some embodiments, updating the data transmission object according to the data processing result may include: extracting a first field and a first field value in a data processing result; and determining a second field in the data transmission object, wherein the second field has a mapping relation with the first field, and modifying a second field value corresponding to the second field into the first field value.
Illustratively, a field and a field value in the data processing result may be extracted to obtain a first field and a first field value. Then, a second field in the data transmission object, which has a mapping relation with the first field, is queried, and a second field value corresponding to the second field is modified into the first field value.
It should be noted that, after the data transmission object corresponding to the form page is determined, the fields in the data transmission object are mapped to the data processing service components, so that there is a mapping relationship between the fields in the data transmission object and the fields in the data processing service components. Thus, a second field in the data transfer object having a mapping relationship with the first field may be determined based on the mapping relationship between the fields.
For example, when the first field is "quota" and the first field value is "100", if the second field in the data transmission object is "quota" and the second field value is "80", the second field value of "80" may be modified to "100". In addition, if the data processing result further includes the field "quota" and the field "rate", the data transmission object may be updated according to a field value corresponding to the field "quota" and a field value corresponding to the field "rate".
And step S304, updating page data of the target page component according to the updated data transmission object.
In the embodiment of the application, after the data transmission object is updated according to the data processing result, the page data of the target page component can be updated according to the updated data transmission object.
In some embodiments, updating the page data of the target page component according to the updated data transmission object may include: and determining a third field in the target page component, wherein the mapping relation exists between the third field and the second field, and modifying a third field value corresponding to the third field into the first field value.
It should be noted that, after the data transmission object corresponding to the form page is determined, fields in the data transmission object are mapped to page components in the form page, so that there is a mapping relationship between the fields in the data transmission object and the fields in the page components. Therefore, page data updating can be carried out on the page component based on the mapping relation between the fields.
For example, when the second field is "quota" and the first field value corresponding to the second field "quota" is "100", if the third field in the target page component is "quota" and the third field value is "80", the third field value of "80" may be modified to "100". In addition, the field value corresponding to the field "quota" and the field value corresponding to the field "rate" in the target page component can be updated according to actual conditions.
In some embodiments, after the page data update is performed on the target page component, the method may further include: and displaying the target page component after the page data is updated.
It should be noted that, after the page data of the target page component in the form page is updated, the field value in the target page component is changed, so that the target page component after the page data is updated needs to be displayed.
For example, the target page component after the page data update may be rendered to a form page to display the target page component after the page data update on the form page. The rendering refers to a process of analyzing various resources or data by a browser rendering engine to output a visualized image or web page.
According to the page data updating method provided by the embodiment, when the component selection operation of the form page is detected, the target page component and the target data to be processed can be determined according to the component selection operation; determining a target data processing event corresponding to a target page component based on a preset corresponding relation between the page component and the data processing event, triggering the data processing service component to execute the target data processing event by the target page component, and realizing that the data processing service component is called to carry out centralized processing on target data without data circulation in a plurality of page components; the data transmission object corresponding to the form page can be obtained by obtaining at least one field corresponding to the form page and the field value corresponding to each field and adding the field value corresponding to each field and each field to a preset data model layer, and then the data of the page component in the form page can be conveniently updated through the data transmission object; by mapping the fields in the data transmission object to the page components in the form page, page data updating of the page components can be realized based on the mapping relation between the fields when the data transmission object is updated; by mapping the fields in the data transmission object to the data processing service assembly, the data processing of the target data by the data processing service assembly can be realized, and after a data processing result is obtained, the data updating is carried out on the data transmission object based on the mapping relation among the fields; the data transmission object is updated according to the data processing result, so that page data can be updated on the target page component in the form page according to the updated data transmission object, the condition that data reference is easy to lose due to the adoption of a one-way data stream processing mode is avoided, and the efficiency of updating the form page data is improved.
Referring to fig. 5, fig. 5 is a schematic block diagram of a page data updating apparatus 1000 according to an embodiment of the present application, the page data updating apparatus being configured to perform the page data updating method described above. The page data updating device can be configured in the client.
As shown in fig. 5, the page data updating apparatus 1000 includes: a target data determination module 1001, a data processing module 1002, and a page data update module 1003.
The target data determination module 1001 is configured to determine, when a component selection operation of a form page is detected, a target page component and target data to be processed according to the component selection operation.
The data processing module 1002 is configured to invoke a preset data processing service component to perform data processing on the target data, so as to obtain a data processing result.
A page data update module 1003, configured to determine a data transmission object corresponding to the form page, call the data transmission object, and update page data of the target page component according to the data processing result.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the apparatus and the modules described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The apparatus described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present disclosure.
Referring to fig. 6, the computer device includes a processor and a memory connected by a system bus, wherein the memory may include a nonvolatile storage medium and an internal memory.
The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.
The internal memory provides an environment for running a computer program in the non-volatile storage medium, which when executed by the processor causes the processor to perform any of the page data update methods.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
when component selection operation of a form page is detected, determining a target page component and target data to be processed according to the component selection operation; calling a preset data processing service component to perform data processing on the target data to obtain a data processing result; and determining a data transmission object corresponding to the form page, calling the data transmission object, and updating page data of the target page component according to the data processing result.
In one embodiment, the processor is configured to, when implementing data processing on the target data by calling a preset data processing service component and obtaining a data processing result, implement:
and determining a target data processing event corresponding to the target page component based on a preset corresponding relation between the page component and the data processing event, and calling the data processing service component to execute the target data processing event to obtain the data processing result.
In one embodiment, the processor is configured to, when implementing data processing on the target data by calling a preset data processing service component and obtaining a data processing result, implement:
calling the data processing service component according to the component selection operation to acquire a target field in the target data; and determining a target data processing event corresponding to the target field based on the corresponding relation between the preset field and the data processing event, and executing the target data processing event to obtain the data processing result.
In one embodiment, when the processor determines the data transmission object corresponding to the form page, the processor is configured to:
acquiring at least one field corresponding to the form page and a field value corresponding to each field; and adding each field and the field value corresponding to each field to a preset data model layer to obtain the data transmission object.
In one embodiment, after the determining of the data transmission object corresponding to the form page is implemented, the processor is further configured to implement:
and executing data mapping operation, mapping the field in the data transmission object to the page component in the form page, and/or mapping the field in the data transmission object to the data processing service component.
In one embodiment, the processor is configured to, when implementing calling the data transmission object and updating page data of the target page component according to the data processing result, implement:
updating the data transmission object according to the data processing result; and updating page data of the target page component according to the updated data transmission object.
In one embodiment, when the processor updates the data transmission object according to the data processing result, the processor is configured to implement:
extracting a first field and a first field value in the data processing result; and determining a second field in the data transmission object, which has a mapping relation with the first field, and modifying a second field value corresponding to the second field into the first field value.
In one embodiment, when implementing the page data update on the target page component according to the updated data transmission object, the processor is configured to implement:
determining a third field in the target page component, wherein the third field has a mapping relation with the second field, and modifying a third field value corresponding to the third field into the first field value.
The embodiment of the application further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, the computer program comprises program instructions, and the processor executes the program instructions to realize any page data updating method provided by the embodiment of the application.
For example, the program is loaded by a processor and may perform the following steps:
when component selection operation of a form page is detected, determining a target page component and target data to be processed according to the component selection operation; calling a preset data processing service component to perform data processing on the target data to obtain a data processing result; and determining a data transmission object corresponding to the form page, calling the data transmission object, and updating page data of the target page component according to the data processing result.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD Card), a Flash memory Card (Flash Card), and the like provided on the computer device.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A page data updating method is characterized by comprising the following steps:
when component selection operation of a form page is detected, determining a target page component and target data to be processed according to the component selection operation;
calling a preset data processing service component to perform data processing on the target data to obtain a data processing result;
and determining a data transmission object corresponding to the form page, calling the data transmission object, and updating page data of the target page component according to the data processing result.
2. The method for updating page data according to claim 1, wherein the invoking a preset data processing service component to perform data processing on the target data to obtain a data processing result comprises:
and determining a target data processing event corresponding to the target page component based on a preset corresponding relation between the page component and the data processing event, and calling the data processing service component to execute the target data processing event to obtain the data processing result.
3. The method for updating page data according to claim 1, wherein the invoking a preset data processing service component to perform data processing on the target data to obtain a data processing result comprises:
calling the data processing service component according to the component selection operation to acquire a target field in the target data;
and determining a target data processing event corresponding to the target field based on the corresponding relation between the preset field and the data processing event, and executing the target data processing event to obtain the data processing result.
4. The method for updating page data according to claim 1, wherein the determining the data transmission object corresponding to the form page comprises:
acquiring at least one field corresponding to the form page and a field value corresponding to each field;
adding each field and the field value corresponding to each field to a preset data model layer to obtain the data transmission object;
after the data transmission object corresponding to the form page is determined, the method further includes:
and executing data mapping operation, mapping the field in the data transmission object to the page component in the form page, and/or mapping the field in the data transmission object to the data processing service component.
5. The method for updating page data according to claim 1, wherein the invoking the data transmission object and updating the page data of the target page component according to the data processing result comprises:
updating the data transmission object according to the data processing result;
and updating page data of the target page component according to the updated data transmission object.
6. The method for updating page data according to claim 5, wherein the updating the data transmission object according to the data processing result comprises:
extracting a first field and a first field value in the data processing result;
and determining a second field in the data transmission object, which has a mapping relation with the first field, and modifying a second field value corresponding to the second field into the first field value.
7. The method for updating page data according to claim 6, wherein the updating the page data of the target page component according to the updated data transmission object comprises:
determining a third field in the target page component, wherein the third field has a mapping relation with the second field, and modifying a third field value corresponding to the third field into the first field value.
8. A page data updating apparatus, comprising:
the target data determining module is used for determining a target page component and target data to be processed according to the component selection operation when the component selection operation of the form page is detected;
the data processing module is used for calling a preset data processing service component to perform data processing on the target data to obtain a data processing result;
and the page data updating module is used for determining a data transmission object corresponding to the form page, calling the data transmission object and updating the page data of the target page component according to the data processing result.
9. A computer device, wherein the computer device comprises a memory and a processor;
the memory for storing a computer program;
the processor, configured to execute the computer program and implement the page data updating method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement the page data updating method according to any one of claims 1 to 7.
CN202110915933.3A 2021-08-10 2021-08-10 Page data updating method, device, computer equipment and storage medium Active CN113609421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110915933.3A CN113609421B (en) 2021-08-10 2021-08-10 Page data updating method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110915933.3A CN113609421B (en) 2021-08-10 2021-08-10 Page data updating method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113609421A true CN113609421A (en) 2021-11-05
CN113609421B CN113609421B (en) 2024-09-10

Family

ID=78308066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110915933.3A Active CN113609421B (en) 2021-08-10 2021-08-10 Page data updating method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113609421B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115206475A (en) * 2022-07-07 2022-10-18 上海太美数字科技有限公司 Form generation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106033436A (en) * 2015-03-13 2016-10-19 中国石油化工股份有限公司 Merging method for database
WO2016206377A1 (en) * 2015-06-23 2016-12-29 中兴通讯股份有限公司 Data integration and processing method and device
CN106548356A (en) * 2016-10-21 2017-03-29 邹春秋 A kind of agricultural product information trace back data processing meanss
CN109361490A (en) * 2018-08-10 2019-02-19 锐捷网络股份有限公司 Data transmission method, computer equipment, data switch plate and SDR platform
CN110990008A (en) * 2019-11-28 2020-04-10 北京三快在线科技有限公司 Method, device, storage medium and electronic equipment for updating page

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106033436A (en) * 2015-03-13 2016-10-19 中国石油化工股份有限公司 Merging method for database
WO2016206377A1 (en) * 2015-06-23 2016-12-29 中兴通讯股份有限公司 Data integration and processing method and device
CN106548356A (en) * 2016-10-21 2017-03-29 邹春秋 A kind of agricultural product information trace back data processing meanss
CN109361490A (en) * 2018-08-10 2019-02-19 锐捷网络股份有限公司 Data transmission method, computer equipment, data switch plate and SDR platform
CN110990008A (en) * 2019-11-28 2020-04-10 北京三快在线科技有限公司 Method, device, storage medium and electronic equipment for updating page

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115206475A (en) * 2022-07-07 2022-10-18 上海太美数字科技有限公司 Form generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113609421B (en) 2024-09-10

Similar Documents

Publication Publication Date Title
CN111639287A (en) Page processing method and device, terminal equipment and readable storage medium
US9104528B2 (en) Controlling the release of private information using static flow analysis
CN113377348A (en) Task adjustment method applied to task engine, related device and storage medium
CN113238850B (en) RPA realization method, device, equipment and medium based on browser
CN105593813A (en) Rendering interpreter for visualizing data provided from constrained environment containers
CN112764729B (en) Application software development method, device, computer equipment and readable storage medium
US11681507B2 (en) Composable context menus
US11775269B2 (en) Generating a synchronous digital circuit from a source code construct defining a function call
CN105718313A (en) Application operation method and device
CN111399833B (en) Service data processing method and device, computer equipment and storage medium
CN111552535A (en) Interface picture replacing method and device, computer equipment and storage medium
CN115809056B (en) Component multiplexing implementation method and device, terminal equipment and readable storage medium
US8280899B2 (en) Abstracting events for data mining
CN110764913B (en) Data calculation method based on rule calling, client and readable storage medium
WO2019148721A1 (en) Electronic device, risk early warning method for internet service system, and storage medium
CN112613275A (en) Receipt generation method and device, computer equipment and storage medium
CN113434582B (en) Service data processing method and device, computer equipment and storage medium
CN115562662A (en) Application page creating method and device, computer equipment and storage medium
CN116483410A (en) Financial application updating method, apparatus, computer device and storage medium
CN109522060A (en) The restoring method and terminal device of business scenario
CN113609421B (en) Page data updating method, device, computer equipment and storage medium
CN112817573B (en) Method, apparatus, computer system, and medium for building a streaming computing application
CN112527416A (en) Task processing method and device, computer equipment and storage medium
WO2024221918A1 (en) Privacy computing process execution method and apparatus, electronic device, and storage medium
CN116896587A (en) Processing method and device for repeated network request, 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