Form calculation method, electronic device, and computer storage medium

By determining the starting field for calculation and constructing a network of calculated fields in a low-code platform, the problems of inaccurate calculation results and request overload during form calculation are solved, achieving ordered calculation and improved system performance.

CN115544989BActive Publication Date: 2026-07-14DINGTALK (CHINA) INFORMATION TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
DINGTALK (CHINA) INFORMATION TECH CO LTD
Filing Date
2022-10-26
Publication Date
2026-07-14

Smart Images

  • Figure CN115544989B_ABST
    Figure CN115544989B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a form calculation method, an electronic device and a computer storage medium. The form calculation method comprises the following steps: obtaining a preset form formula, and determining a dependency relationship between a plurality of form fields defined by the form formula; in response to a received form calculation operation, determining a calculation starting field from the plurality of form fields, and adding the calculation starting field to a calculation queue; obtaining the calculation starting field from the calculation queue, determining a calculation field network composed of to-be-calculated fields corresponding to the obtained calculation starting field according to the dependency relationship, and performing calculation according to the calculation field network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a form calculation method, electronic device, and computer storage medium. Background Technology

[0002] In existing low-code platforms, components and interfaces are all encapsulated. Users can edit form formulas for calculation using these encapsulated components and interfaces, and the platform will automatically perform the calculations. Because it uses a large number of components and encapsulated interfaces for development, it greatly improves development efficiency.

[0003] However, in the process of automatic calculation, a point-to-point calculation method is generally used. For example, when the platform frontend requests calculation results from the server based on the current form data and form formulas, and performs multi-level linked calculations, the formula calculation will be triggered again by the backfilled fields returned by the server. This situation leads to a large number of formula calculation requests, and it cannot be guaranteed whether the formulas requested for calculation are linked with the formulas being calculated. This results in calculation results that do not meet expectations, the formula calculation sequence cannot be guaranteed, and there is a high risk of incomplete or incorrect calculations, which reduces the accuracy of the calculated data.

[0004] In view of this, the technical problem that the existing technology urgently needs to solve is to provide an alternative form calculation scheme to improve the accuracy of the calculation results. Summary of the Invention

[0005] In view of this, embodiments of this application provide a form calculation scheme to at least partially solve the above problems.

[0006] According to a first aspect of the embodiments of this application, a form calculation method is provided, comprising: obtaining a preset form formula and determining the dependency relationship between a plurality of form fields defined by the form formula; responding to a received form calculation operation, determining a calculation start field from the plurality of form fields and adding the calculation start field to a calculation queue; obtaining the calculation start field from the calculation queue, determining a calculation field network composed of fields to be calculated corresponding to the obtained calculation start field according to the dependency relationship, and performing calculation according to the calculation field network.

[0007] According to a second aspect of the present application, an electronic device is provided, including: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, which causes the processor to perform an operation corresponding to the method described in the first aspect.

[0008] According to a third aspect of the embodiments of this application, a computer storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0009] According to the solution provided in the embodiments of this application, by adding the calculation start field to the calculation queue and obtaining the calculation start field from the calculation queue for calculation, the chaotic calculation order caused by directly starting the calculation based on the calculation start field is avoided. In addition, after obtaining the calculation start field from the calculation queue, the calculation field network composed of the fields to be calculated corresponding to the calculation start field is determined, and several fields to be calculated can be calculated according to the calculation field network, ensuring the orderly progress of the calculation process, solving the problems of inaccurate formula calculation results and request flooding, ensuring the accuracy of user data, and improving system performance. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings.

[0011] Figure 1 This is a schematic diagram of an exemplary system for the form calculation method applicable to the embodiments of this application;

[0012] Figure 2 This is a flowchart illustrating the steps of a form calculation method according to an embodiment of this application;

[0013] Figure 3 This is a flowchart illustrating a step of performing a calculation based on a calculation start field according to an embodiment of this application;

[0014] Figure 4A This is a schematic diagram of a calculation field network corresponding to a calculation start field according to an embodiment of this application;

[0015] Figure 4B This is a schematic diagram of a network of computed fields corresponding to two computed starting fields according to an embodiment of this application;

[0016] Figure 5 This is a schematic diagram illustrating a use case of a form calculation method according to an embodiment of this application;

[0017] Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0018] To enable those skilled in the art to better understand the technical solutions in the embodiments of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art should fall within the protection scope of the embodiments of this application.

[0019] The specific implementation of the embodiments of this application will be further described below with reference to the accompanying drawings.

[0020] Figure 1 An exemplary system for a form calculation method applicable to embodiments of this application is shown. For example... Figure 1 As shown, the system may include a cloud server 102, a communication network 104, and / or one or more user devices 106. Figure 1 The example in the text shows multiple user devices.

[0021] The cloud server 102 can be any suitable device for storing information, data, programs, and / or any other suitable type of content, including but not limited to distributed storage system devices, server clusters, computing cloud server clusters, etc. In some embodiments, the cloud server 102 can perform any suitable function. For example, in some embodiments, the cloud server 102 can serve as the server for a low-code platform for storage and computation.

[0022] In some embodiments, communication network 104 may be any suitable combination of one or more wired and / or wireless networks. For example, communication network 104 may include any one or more of the following: the Internet, intranet, wide area network (WAN), local area network (LAN), wireless network, digital subscriber line (DSL) network, frame relay network, asynchronous transfer mode (ATM) network, virtual private network (VPN), and / or any other suitable communication network. User equipment 106 may be connected to communication network 104 via one or more communication links (e.g., communication link 112), and communication network 104 may be linked to cloud server 102 via one or more communication links (e.g., communication link 114). Communication links may be any communication link suitable for transmitting data between user equipment 106 and cloud server 102, such as network links, dial-up links, wireless links, hardwired links, any other suitable communication links, or any suitable combination of such links.

[0023] User device 106 may include any one or more user devices suitable for displaying a low-code platform interface, receiving form design operations, receiving form formula design operations, receiving form update operations, and displaying form data. In some embodiments, user device 106 may include any suitable type of device. For example, in some embodiments, user device 106 may include a mobile device, tablet computer, laptop computer, desktop computer, wearable computer, game console, media player, vehicle entertainment system, and / or any other suitable type of user device.

[0024] Based on the above system, this application provides a form calculation method, which will be described below through several embodiments.

[0025] See Figure 2 A flowchart illustrating a form calculation method is provided, as shown in the figure, which includes:

[0026] S201. Obtain a preset form formula and determine the dependency relationship between several form fields defined by the form formula.

[0027] Forms in low-code platforms are primarily used for data collection. Each column in a form can correspond to a form field, and each row can correspond to a form row label, which is used to identify the data in that row. Various components can be embedded in forms, such as dropdown lists, radio buttons, and file upload boxes.

[0028] Form formulas are used to define dependencies between several form fields, specifically computational dependencies or conditional assignment dependencies. A computational dependency could be, for example, form field A = form field B + 1; a conditional assignment dependency could be, for example, form field B = 3 when form field A = 1, 2, 3. These are just examples. When a form formula specifies that the value of form field B is determined by form field A, it can be called a form field A being a dependent field of form field B.

[0029] The form fields and form formulas are determined by those skilled in the art during the form design process and can be updated subsequently based on user modifications to the form fields or form formulas.

[0030] When the dependencies between several form fields are determined, the dependencies can be displayed to the user through a graphical user interface. If there are errors in the dependencies, an error message can be displayed to the user directly. Furthermore, when the user deletes a form field, other form fields that have dependencies on that form field can be displayed to prompt the user to change the form formula.

[0031] S202. In response to the received form calculation operation, determine the calculation start field from the plurality of form fields and add the calculation start field to the calculation queue.

[0032] In this embodiment, the form calculation operation can be triggered directly by the user or indirectly by the user's operation, both of which are within the protection scope of this application.

[0033] In this application, the calculation starting field is the form field that is used during the first form formula calculation in the form calculation process. The calculation starting field can be determined based on the form initialization calculation operation or based on form change events. A form change is an event in which the form content changes. For example, a user manually changing a form's content can trigger a form change event and thus trigger a form calculation operation; alternatively, a user can trigger a form update operation, in which case the form change events that occurred from the last update to the current update can be counted, and the form calculation operation can be triggered based on the counted form change events.

[0034] In one specific implementation of this application embodiment, step S202 includes: if the received form calculation operation is a form initialization calculation operation, then tracing the dependency relationship between several form fields defined by the form formula; determining the calculation starting field according to the tracing result, and adding the calculation starting field to the calculation queue.

[0035] In this embodiment, the dependencies between form fields are traced back to their source. That is, the step of "tracing back the form fields that a certain form field depends on" is repeated until a certain form field does not depend on any other form fields. Then, the form field is determined as the calculation starting field. The calculation starting field obtained by tracing back can be one or more. The calculation starting field obtained by tracing back can be added to the calculation queue, so that subsequent processing can be performed based on the calculation queue.

[0036] In another specific implementation of this application embodiment, step S202 includes: if the received form calculation operation is triggered by a field change event, then the form field corresponding to the occurrence of the field change event is used as the calculation starting field, and the calculation starting field is added to the calculation queue.

[0037] A field change event is an event that occurs when the value of a form field changes. Field change events can be generated by the user modifying the value of a form field through the operation interface, or by changes in the data source accessed by the form, or by other means, all of which are within the scope of protection of this application.

[0038] After a field change event occurs, the form field where the field change event occurred can be directly added to the calculation queue as the starting field for calculation, so that subsequent processing can be performed based on the calculation queue.

[0039] Optionally, in this embodiment, the field change event can be generated by an assignment operation, that is, the calculation start field is determined by an assignment operation. Then, adding the calculation start field to the calculation queue includes: adding the calculation start field to the calculation queue in a debouncing manner. The debouncing manner includes: determining multiple trigger operations that assign values ​​to the calculation start field within a preset time period as a single valid trigger operation.

[0040] By adding the calculation start field to the calculation queue in a debouncing manner, the possibility of multiple false triggers is avoided, the number of duplicate calculation start fields is reduced, and the calculation accuracy is improved.

[0041] S203. Obtain the computation starting field from the computation queue, determine the computation field network composed of the fields to be computed corresponding to the obtained computation starting field according to the dependency relationship, and perform computation according to the computation field network.

[0042] The calculation queue is used to store one or more calculation start fields. In this embodiment, under the premise of ensuring that no calculation conflict occurs (the specific conditions for determining no calculation conflict can be set by the user according to the dependency relationship), one calculation start field can be extracted from it each time and calculated, or multiple calculation start fields can be extracted sequentially for calculation. These are all within the protection scope of this application.

[0043] Based on dependencies, we can identify other form fields that need to be changed when the starting field of calculation changes; these are the fields to be calculated. We can then derive a network of calculated fields, consisting of the starting field and the fields to be calculated. This network can be a directed graph, where nodes represent the starting and fields to be calculated, and edges represent dependencies, with the direction of the edge indicating whether it is a dependency or a dependent field. Therefore, the network accurately represents the dependencies and dependent relationships of several fields to be calculated, enabling accurate calculations.

[0044] It should be noted that in this embodiment, step S201 can be executed once during each form calculation, or it can be executed once during the form design process and then not executed again during each form calculation. These are all within the scope of protection of this application. In addition, this embodiment does not limit the order of steps S202 and S203. For any calculation starting node, step S202 can be executed first and then step S203 can be executed. For example, after adding the calculation starting field A to the calculation queue through step S202, the calculation starting field A can be obtained from the calculation queue and calculated through step S203. In actual use, steps S202 and S203 can be executed in parallel, and the two are only associated through the calculation queue. For example, while adding the calculation starting field B to the calculation queue through step S202, the calculation starting field A can be obtained from the calculation queue and calculated through step S203. These are all within the scope of protection of this application.

[0045] Optionally, in this embodiment, obtaining the calculation start field from the calculation queue may include: extracting all the calculation start fields from the calculation queue at once according to a preset calculation cycle.

[0046] Optionally, in the embodiments of this application, see Figure 3 Step S203 includes:

[0047] S2031. Obtain the calculation start field from the calculation queue;

[0048] S2032. Starting from the calculation start field, construct the formula logic relationship dependency tree corresponding to the calculation start field according to the dependency relationship. The nodes in the formula logic relationship dependency tree are the fields to be calculated that depend on the calculation start field.

[0049] The formula logic relationship dependency tree can be a tree structure consisting of the starting field of the calculation and other fields that depend on the starting field of the calculation as child nodes.

[0050] S2033. Obtain the calculation field network based on the formula logical relationship dependency tree corresponding to the calculation starting field;

[0051] The computed field network can be obtained by computing the dependency tree. The computed field network is a mesh structure composed of computed fields as nodes and dependency relationships as edges. It can accurately reflect the dependency and dependent relationships between the various fields to be computed, and then merge calculations can be performed based on the computed field network.

[0052] In one implementation of this application, if the dependency tree corresponds to a single calculation starting field, obtaining the calculation field network based on the formula logic relationship dependency tree corresponding to the calculation starting field includes: determining a formula logic relationship dependency tree corresponding to a single calculation starting field as the calculation field network.

[0053] See Figure 4A This illustrates a network of computed fields corresponding to a starting computed field, such as... Figure 4A As shown, form field A is the starting field for calculation, form field B depends on form field A, form field C depends on form fields A and B, form field D depends on form field C, and setvalue in the diagram represents assignment.

[0054] In another implementation of this application, if the dependency tree corresponds to at least two calculation starting fields, obtaining the calculation field network based on the formula logic relationship dependency tree corresponding to the calculation starting field includes: merging the formula logic relationship dependency trees corresponding to at least two calculation starting fields respectively to obtain the calculation field network.

[0055] In this embodiment of the application, at least two formula logic relationship dependency trees corresponding to the calculation start fields can be used respectively. Then, based on the form fields that exist in any two formula logic relationship dependency trees, the formula logic relationship dependency trees can be merged to obtain the calculation field network.

[0056] See Figure 4B This illustrates a network of computed fields corresponding to two initial computed fields, such as... Figure 4B As shown, form fields A and B are the starting fields for calculation (determined through external assignment), form field C depends on form fields A and B, and form field D depends on form field C. Specifically, form field A can be used as the starting field for calculation to determine the corresponding formula logic dependency tree, and form field B can be used as the starting field for calculation to determine another corresponding formula logic dependency tree. Then, based on the form fields C and D that coexist in any two formula logic dependency trees, the formula logic dependency trees can be merged to obtain the following... Figure 4B The calculated field network is shown.

[0057] S2034. Perform a merge calculation based on the fields to be calculated corresponding to each node in the calculation field network.

[0058] In one implementation of this application, the step of merging calculations based on the fields to be calculated corresponding to each node in the calculated field network may include: generating a calculation request corresponding to the field to be calculated according to the position of the node to be calculated in the calculated field network; the calculation request carries a calculation formula for calculating the form field that has already been calculated corresponding to the field to be calculated; the calculation request may be submitted to the server so that the server performs the calculations according to the calculation request.

[0059] In another implementation of this application, the step of merging calculations based on the fields to be calculated corresponding to each node in the calculation field network includes: determining the calculation priority of the fields to be calculated corresponding to each node based on the layer number of each node in the calculation field network; initiating a calculation request based on the calculation priority of the fields to be calculated corresponding to each node in the calculation field network, wherein the calculation request carries a plurality of fields to be calculated ordered according to calculation priority, and a calculation formula corresponding to the fields to be calculated based on the calculation starting field.

[0060] In this embodiment, since not all fields to be calculated directly depend on the calculation start node, the form formula corresponding to the field to be calculated needs to be rewritten to obtain the calculation formula based on the calculation start field before submitting the calculation request.

[0061] The solution provided in this embodiment can further improve computational efficiency by submitting a computation request once to request computation on several fields to be computed.

[0062] In this embodiment, by adding the calculation start field to the calculation queue and obtaining the calculation start field from the calculation queue for calculation, the chaotic calculation order caused by directly starting the calculation based on the calculation start field is avoided. In addition, after obtaining the calculation start field from the calculation queue, the calculation field network consisting of the fields to be calculated corresponding to the calculation start field is determined, and several fields to be calculated can be calculated according to the calculation field network, ensuring the orderly progress of the calculation process, solving the problems of inaccurate formula calculation results and request flooding, ensuring the accuracy of user data, and improving system performance.

[0063] See Figure 5 This application provides a schematic diagram of a low-code platform usage scenario according to an embodiment of the present application. As shown in the figure, it includes four usage stages: design stage, initialization stage, change stage, and submission stage.

[0064] During the design phase, users can configure form fields and form formulas. The low-code platform can then generate a dependency graph of the form fields based on the dependencies defined by the form formulas and display it to the user. Users can save the dependency graph after verifying its correctness. If the dependency graph contains issues such as infinite loops, the platform can provide warnings to the user.

[0065] During the initialization phase (corresponding to the form initialization calculation operation in the above embodiments), the low-code platform can obtain the page generator schema, build field dependencies, attach listener events to the dependent form fields, generate event flows, and attach them to the root component of the page. Afterwards, the form information can be completed, a new page generator schema can be generated, and the form component can be rendered based on the new schema. Then, based on the dependencies, the starting fields for calculation are obtained, and all the starting fields obtained from the dependencies are added to the calculation queue. The starting fields can then be obtained from the calculation queue, and based on the dependencies, a network of calculation fields consisting of the fields to be calculated corresponding to the obtained starting fields is determined. Calculations are then performed based on the network of calculation fields. The specific implementation process (mainly the bolded parts in the diagram) can be found in the above embodiments and will not be repeated here. It should be noted that, to ensure data accuracy, in this embodiment, `onchange` is not triggered after the calculation is completed; that is, the calculation is not performed again based on the backfilled results.

[0066] During the change phase, a pre-defined event flow can be set. Once an event flow is triggered, the calculation start field corresponding to the triggered event flow can be determined and added to the calculation queue. The calculation queue can then be executed periodically (e.g., every 100ms), and calculations are performed on each executed queue. The specific implementation process can be found in the above embodiment and will not be repeated here. It should be noted that, to ensure data accuracy, in this embodiment, `onchange` is not triggered after the calculation is completed; that is, the calculation is not performed again based on the backfilled results.

[0067] During the submission phase, after receiving a form submission request, the low-code platform can determine whether there is an ongoing calculation or whether there is a calculation start field in the calculation queue. If either exists, the form submission operation is blocked and a prompt is displayed. If neither exists, the form submission operation is completed.

[0068] Reference Figure 6 This document illustrates a schematic diagram of an electronic device according to an embodiment of this application. The specific embodiments of this application do not limit the specific implementation of the electronic device.

[0069] like Figure 6As shown, the electronic device may include: a processor 602, a communications interface 604, a memory 606, and a communications bus 608.

[0070] in:

[0071] The processor 602, communication interface 604, and memory 606 communicate with each other via communication bus 608.

[0072] Communication interface 604 is used for communication with other electronic devices or servers.

[0073] The processor 602 is used to execute program 610, specifically to perform the relevant steps in the above-described form calculation method embodiment.

[0074] Specifically, program 610 may include program code that includes computer operation instructions.

[0075] The processor 602 may be a CPU, an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application. The smart device includes one or more processors, which may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0076] Memory 606 is used to store program 610. Memory 606 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0077] Specifically, program 610 can be used to cause processor 602 to perform the operation corresponding to the method described in any of the foregoing multiple method embodiments.

[0078] The specific implementation of each step in program 610 can be found in the corresponding steps and units described in the above method embodiments, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the devices and modules described above can be referred to the corresponding process descriptions in the foregoing method embodiments, and will not be repeated here.

[0079] This application also provides a computer storage medium storing a computer program that, when executed by a processor, implements any of the methods described in the above-described multiple method embodiments.

[0080] This application also provides a computer program product, including computer instructions that instruct a computing device to perform an operation corresponding to any of the methods in the above-described multiple method embodiments.

[0081] It should be noted that, depending on the implementation needs, the various components / steps described in the embodiments of this application can be broken down into more components / steps, or two or more components / steps or parts of the operation of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of this application.

[0082] The methods described in the embodiments of this application can be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as a CD-ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or as computer code downloaded over a network that is originally stored in a remote recording medium or a non-transitory machine-readable medium and will be stored in a local recording medium. Thus, the methods described herein can be processed by software stored on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA). It is understood that the computer, processor, microprocessor controller, or programmable hardware includes storage components (e.g., RAM, ROM, flash memory, etc.) capable of storing or receiving software or computer code that, when accessed and executed by the computer, processor, or hardware, implements the methods described herein. Furthermore, when a general-purpose computer accesses code used to implement the methods shown herein, the execution of the code transforms the general-purpose computer into a dedicated computer for executing the methods shown herein.

[0083] Those skilled in the art will recognize that the units and method steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.

[0084] The above embodiments are only used to illustrate the embodiments of this application, and are not intended to limit the embodiments of this application. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of this application. Therefore, all equivalent technical solutions also fall within the scope of the embodiments of this application, and the patent protection scope of the embodiments of this application should be defined by the claims.

Claims

1. A form calculation method, comprising: Obtain a preset form formula and determine the dependencies between several form fields defined by the form formula; In response to a received form calculation operation, a calculation start field is determined from several form fields, and the calculation start field is added to the calculation queue; The computation starting field is obtained from the computation queue, and a computation field network consisting of fields to be computed corresponding to the obtained computation starting field is determined according to the dependency relationship. The computation field network is then used for computation. The computation field network includes a directed graph, where the nodes in the directed graph are the computation starting field and the fields to be computed, the edges in the directed graph are the dependency relationships, and the direction of the edges in the directed graph indicates whether the relationship is dependent or dependent. The calculation based on the calculated field network includes: The form formula corresponding to the field to be calculated is rewritten to obtain the calculation formula corresponding to the field to be calculated based on the calculation start field, and a calculation request is initiated. The calculation request carries several fields to be calculated and the corresponding calculation formulas for calculation.

2. The method according to claim 1, wherein, The step of responding to a received form calculation operation by determining a calculation start field from a plurality of form fields and adding the calculation start field to a calculation queue includes: If the received form calculation operation is a form initialization calculation operation, then the dependency relationship between several form fields defined by the form formula is traced. The calculation start field is determined based on the tracing results, and the calculation start field is added to the calculation queue.

3. The method according to claim 1, wherein, The step of responding to a received form calculation operation by determining a calculation start field from a plurality of form fields and adding the calculation start field to a calculation queue includes: If the received form calculation operation is triggered by a field change event, then the form field corresponding to the field change event is used as the calculation starting field, and the calculation starting field is added to the calculation queue.

4. The method according to any one of claims 1-3, wherein, The step of obtaining the computation starting field from the computation queue, determining the computation field network consisting of the fields to be computed corresponding to the obtained computation starting field according to the dependency relationship, and performing computation based on the computation field network includes: Obtain the calculation start field from the calculation queue; Starting from the calculation start field, construct a formula logic relationship dependency tree corresponding to the calculation start field according to the dependency relationship. The nodes in the formula logic relationship dependency tree are the fields to be calculated that depend on the calculation start field. The calculation field network is obtained based on the formula logical relationship dependency tree corresponding to the calculation starting field; The calculation is performed by merging the fields to be calculated based on the fields to be calculated for each node in the calculation field network.

5. The method according to claim 4, wherein, The step of merging and calculating based on the fields to be calculated corresponding to each node in the calculation field network includes: The calculation priority of the field to be calculated corresponding to the node is determined based on the layer number of each node in the calculation field network. The calculation request is initiated according to the calculation priority of the field to be calculated corresponding to each node in the calculation field network. The calculation request carries a number of fields to be calculated in order of calculation priority, and a calculation formula corresponding to the field to be calculated based on the calculation starting field.

6. The method according to claim 4, wherein, If the dependency tree corresponds to a single computation starting field, obtaining the computation field network based on the formula logic relationship dependency tree corresponding to the computation starting field includes: determining a formula logic relationship dependency tree corresponding to a single computation starting field as the computation field network; Alternatively, if the dependency tree corresponds to at least two calculation starting fields, obtaining the calculation field network based on the formula logic relationship dependency tree corresponding to the calculation starting field includes: merging the formula logic relationship dependency trees corresponding to at least two calculation starting fields respectively to obtain the calculation field network.

7. The method according to claim 4, wherein, Obtaining the calculation start field from the calculation queue includes: extracting all the calculation start fields from the calculation queue at one time according to a preset calculation cycle.

8. The method according to claim 4, wherein, If the calculation start field is determined by an assignment operation, then adding the calculation start field to the calculation queue includes: adding the calculation start field to the calculation queue in a de-jittering manner, wherein the de-jittering manner includes: determining multiple trigger operations that assign values ​​to the calculation start field within a preset time period as a single valid trigger operation.

9. An electronic device, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction that causes the processor to perform the operation corresponding to the method as described in any one of claims 1-8.

10. A computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any one of claims 1-8.