Table component processing method and device, computer equipment and storage medium

Through dynamic configuration and update of table components, the problem of inefficient development in the existing technology is solved, flexible functional configuration and efficient development process are realized, and business development needs of power systems are met.

CN119718400APending Publication Date: 2025-03-28CONTEMPORARY AMPEREX FUTURE ENERGY RES INST (SHANGHAI) LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311283018.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the interface development of power system computer software, when using the table components provided by the development environment to generate tables, developers need to write a large amount of code, and when the requirements change, the source code needs to be remodeled and compiled, resulting in low development efficiency and unable to meet the business development needs of the power system.

Method used

By obtaining the new functional configuration information of the table component, combining the basic configuration files to generate update configuration files, calling the table component to generate target tables, realizing dynamic configuration and update of functions, avoiding modification and compilation of source code.

Benefits of technology

It improves the development efficiency of table components, enables them to flexibly configure functions that meet user needs, meets various business development needs in the power system, and reduces the cost of later maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718400A_ABST
    Figure CN119718400A_ABST
Patent Text Reader

Abstract

The invention relates to a table component processing method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: in response to a function adding request for a table component, obtaining configuration information of an added function of the table component; obtaining an update configuration file of the table component according to the configuration information of the newly added function and the basic configuration file of the table component; and calling a table component to generate a target table according to the update configuration file. By adopting the method, the table component development efficiency can be effectively improved, and business development requirements in a power system are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of component development, and in particular to a method, apparatus, computer equipment, storage medium and computer program product for processing a table component. Background Art

[0002] In the process of interface development of power system host computer software, a large number of tables are needed for data display and editing. When generating tables for displaying and editing data, the table components that come with the development environment are usually used to implement it.

[0003] However, the process of generating the corresponding table by using the table component that comes with the development environment requires developers to write a lot of code, and once the requirements change, the source code of the table component needs to be modified and compiled again, resulting in low efficiency in table component development and failure to meet the needs of business development in the power system. Summary of the invention

[0004] Based on this, it is necessary to provide a processing method, device, computer equipment, computer-readable storage medium and computer program product for table components that can improve the efficiency of table component development and meet business development needs in the power system in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for processing a table component, the method comprising:

[0006] In response to a request for adding a function to a table component, obtaining configuration information of the newly added function of the table component;

[0007] Obtaining an updated configuration file of the table component according to the configuration information of the newly added function and the basic configuration file of the table component;

[0008] According to the update configuration file, the table component is called to generate a target table.

[0009] In the above embodiment, by decoupling the configuration information of the new functions from the basic configuration file of the table component, it is possible to easily and flexibly configure the corresponding functions that meet the user's usage needs in the table component, thereby effectively improving the development efficiency of the table component and enabling the developed table component to meet the various business development needs in the power system.

[0010] In one embodiment, obtaining the updated configuration file of the table component according to the configuration information of the newly added function and the basic configuration file of the table component includes:

[0011] Determining the function type of the newly added function;

[0012] Determining the extended configuration information and implementation configuration data of the newly added function according to the configuration information of the newly added function and the function type;

[0013] Based on the extended configuration information and the implementation configuration data, generating an extended configuration file for the newly added function;

[0014] According to the extended configuration file of the newly added function and the basic configuration file of the table component, an updated configuration file of the table component is obtained.

[0015] In the above embodiment, according to the function type of the new function and the configuration information of the new function, the extended configuration information and the implementation configuration data of the new function can be determined, and then based on the extended configuration information and the implementation configuration data, the table component can directly call the extended configuration file to implement the corresponding new function, which effectively improves the success rate of the new function configuration of the table component and thereby improves the development efficiency of the table component.

[0016] In one embodiment, the newly added function type includes a user operation mode, and the configuration information of the newly added function includes an implementation code of the newly added user operation mode, a preset storage path in the table component, and identification information of the newly added user operation mode;

[0017] The determining, according to the configuration information of the newly added function and the function type, the extended configuration information and the implementation configuration data of the newly added function comprises:

[0018] In the case where the newly added function type is a user operation mode, acquiring an implementation code of the newly added user operation mode according to the configuration information;

[0019] Compile and package the implementation code of the newly added user operation mode to obtain the implementation configuration data of the newly added user operation mode;

[0020] The extended configuration information of the newly added user operation mode is generated according to the preset storage path of the newly added user operation mode in the table component and the identification information of the newly added user operation mode.

[0021] In the above embodiment, when the function type of the new function is the user operation method, the table generation component can generate the implementation configuration data of the new user operation method according to the implementation code of the new user operation method, and generate the extended configuration information of the new user operation according to the identification information of the new user operation method and the preset storage path of the new user operation method in the table component, which provides a data basis for the subsequent generation of the table component to directly call the extended configuration file that implements the new user operation method, effectively improves the success rate of the new function configuration of the table component, and thereby improves the development efficiency of the table component.

[0022] In one embodiment, the newly added function type includes a cell editing mode, and the configuration information of the newly added function includes an implementation code of the newly added cell editing mode and an editor name of the newly added cell editing mode;

[0023] The determining, according to the configuration information of the newly added function and the function type, the extended configuration information and the implementation configuration data of the newly added function comprises:

[0024] In the case where the newly added function type is a cell editing mode, obtaining an implementation code of the newly added cell editing mode according to the configuration information;

[0025] Compile and package the implementation code of the newly added cell editing mode to obtain the implementation configuration data of the newly added cell editing mode;

[0026] According to the preset storage path of the newly added cell editing method in the table component and the editor name of the newly added cell editing method, the extended configuration information of the newly added cell editing method is generated.

[0027] In the above embodiment, when the function type of the new function is the cell editing mode, the table generation component can generate the implementation configuration data of the new cell editing mode according to the implementation code of the new cell editing mode, and generate the extended configuration information of the new cell editing mode according to the editor name of the new cell editing mode and the preset storage path of the new cell editing mode in the table component, which provides a data basis for the subsequent generation of the table component to directly call the extended configuration file for implementing the new cell editing mode, effectively improving the success rate of the new function configuration of the table component, and thereby improving the development efficiency of the table component.

[0028] In one of the embodiments, the newly added function type includes a cell rendering mode, and the configuration information of the newly added function includes an implementation code of the newly added cell rendering mode and a renderer name of the newly added cell rendering mode;

[0029] The determining, according to the configuration information of the newly added function and the function type, the extended configuration information and the implementation configuration data of the newly added function comprises:

[0030] In the case where the newly added function type is a cell rendering mode, obtaining an implementation code of the newly added cell rendering mode according to the configuration information;

[0031] Compile and package the implementation code of the newly added cell rendering mode to obtain implementation configuration data of the newly added cell rendering mode;

[0032] According to the preset storage path of the newly added cell rendering mode in the table component and the renderer name of the newly added cell rendering mode, the extended configuration information of the newly added cell rendering mode is generated.

[0033] In the above embodiment, when the function type of the new function is the cell rendering mode, the table generation component can generate the implementation configuration data of the new cell rendering mode according to the implementation code of the new cell rendering mode, and generate the extended configuration information of the new cell rendering mode according to the renderer name of the new cell rendering mode and the preset storage path of the new cell rendering mode in the table component, which provides a data basis for the subsequent generation of the table component to directly call the extended configuration file for implementing the new cell rendering mode, effectively improving the success rate of the new function configuration of the table component, and thereby improving the development efficiency of the table component.

[0034] In one of the embodiments, the newly added function type includes a data verification type, and the configuration information of the newly added function includes an implementation code of the newly added data verification type, and a data verification type name of the newly added data verification type, or a data verification logic class name;

[0035] The determining, according to the configuration information of the newly added function and the function type, the extended configuration information and the implementation configuration data of the newly added function comprises:

[0036] In the case where the newly added function type is a data verification type, obtaining an implementation code of the newly added data verification type according to the configuration information;

[0037] Compile and package the implementation code of the newly added data verification type to obtain the implementation configuration data of the newly added data verification type;

[0038] According to the preset storage path of the newly added data verification type in the table component, and the data verification type name of the newly added data verification type, or the data verification logic class name, the extended configuration information of the newly added data verification type is generated.

[0039] In the above embodiment, when the function type of the new function is a data verification type, the table generation component can generate implementation configuration data of the new data verification type according to the implementation code of the new data verification type, and generate extended configuration information of the new data verification type according to the data verification type name or data verification logic class name of the new data verification type and the preset storage path of the new data verification type in the table component, which provides a data basis for the subsequent generation of the table component to directly call the extended configuration file that implements the data verification type, effectively improves the success rate of the new function configuration of the table component, and thereby improves the development efficiency of the table component.

[0040] In one of the embodiments, the newly added function type includes a data dictionary type, and the configuration information of the newly added function includes a data dictionary type name and a data dictionary item of the newly added data dictionary;

[0041] The determining, according to the configuration information of the newly added function and the function type, the extended configuration information and the implementation configuration data of the newly added function comprises:

[0042] In the case where the newly added function type is a data dictionary type, calling a preset implementation interface to obtain a data dictionary item of the newly added data dictionary;

[0043] Determine the data dictionary item as implementation configuration data of the newly added data dictionary;

[0044] The extended configuration information of the newly added data dictionary is generated according to the preset storage path of the newly added data dictionary in the table component and the data dictionary type name of the newly added data dictionary.

[0045] In the above embodiment, when the function type of the new function is a data dictionary type, the table generation component can generate the implementation configuration data of the new data dictionary according to the implementation code of the new data dictionary, and generate the extended configuration information of the new data dictionary according to the data dictionary type name of the new data dictionary and the preset storage path of the new data dictionary in the table component, which provides a data basis for the subsequent generation of the table component to directly call the extended configuration file of the data dictionary, effectively improves the success rate of the new function configuration of the table component, and thereby improves the development efficiency of the table component.

[0046] In one embodiment, generating the extended configuration file of the newly added function based on the extended configuration information and the implementation configuration data includes:

[0047] Determine the configuration file to be written into the table component for the newly added function;

[0048] Writing the implementation configuration data into a preset storage path of the newly added function in the table component;

[0049] The extended configuration information of the new function is written into the configuration file to be written, so as to obtain the extended configuration file of the new function.

[0050] In the above embodiment, by writing the implementation configuration data of the new function into the preset storage path and writing the extended configuration of the new function into the configuration file to be written, the implementation of the new function in the table component can be completed, which effectively improves the development efficiency of the table component.

[0051] In a second aspect, the present application further provides a table component processing device, the device comprising:

[0052] A request response module, used to respond to a request for adding a function to a table component and obtain configuration information of the newly added function of the table component;

[0053] A configuration file updating module, used to obtain an updated configuration file of the table component according to the configuration information of the newly added function and the basic configuration file of the table component;

[0054] The table generation module is used to call the table component to generate a target table according to the update configuration file.

[0055] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0056] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0057] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.

[0058] The processing method, apparatus, computer equipment, storage medium and computer program product of the above-mentioned table component, when adding a new function to the table component, only needs to obtain the configuration information of the new function, and obtain the updated configuration file of the table component based on the configuration information of the new function and the basic configuration file of the table component, and then the new function can be added to the table component. Subsequently, it is only necessary to call the table component according to the updated configuration file to generate a target table that meets the user's needs. During the entire process of adding functions, there is no need to modify and compile the source code of the table component. By decoupling the configuration information of the new function from the basic configuration file of the table component, it is possible to easily and flexibly configure the corresponding functions that meet the user's usage needs in the table component, effectively improving the development efficiency of the table component, so that the developed table component can meet the various business development needs in the power system. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 It is an application environment diagram of the processing method of the table component in some embodiments;

[0060] Figure 2 is a flowchart of a method for processing a table component in some embodiments;

[0061] Figure 3A flowchart of a step of determining a function type of a new function from configuration information of the new function by a table generation system in some embodiments;

[0062] Figure 4 A flowchart of determining extended configuration information of a new function and implementing configuration data steps according to the configuration information and function type of the new function in some embodiments;

[0063] Figure 5 A flowchart of determining extended configuration information of a new function and implementing configuration data steps according to the configuration information and function type of the new function in some other embodiments;

[0064] Figure 6 A flowchart of determining extended configuration information of a new function and implementing configuration data steps according to the configuration information and function type of the new function in some other embodiments;

[0065] Figure 7 A flowchart of determining extended configuration information of a new function and implementing configuration data steps according to the configuration information and function type of the new function in some other embodiments;

[0066] Figure 8 A flowchart of determining extended configuration information of a new function and implementing configuration data steps according to the configuration information and function type of the new function in some other embodiments;

[0067] Fig. 9 A flowchart of steps for generating an extended configuration file for a newly added function based on extended configuration information and implementation configuration data in some embodiments;

[0068] Fig.10 A block diagram of the architecture of a table generation system in some embodiments;

[0069] Fig.11 is a flowchart of a method for processing a table component in some other embodiments;

[0070] Fig.12 is a structural block diagram of a processing device of a table component in some embodiments;

[0071] Fig.13 1 is a diagram of the internal structure of a computer device in some embodiments. DETAILED DESCRIPTION

[0072] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0073] The table component is an application component that uses a table as a carrier to provide data display and data editing functions for power business data in the power system. By using the table component, you can generate a data table that meets the needs of the power business scenario based on the power business data and the actual needs of the power business scenario for data display and editing.

[0074] Currently, when generating tables for displaying and editing data, the table components that come with the development environment are usually used. In order to generate tables that meet the needs of power business scenarios through the table components that come with the development environment, developers need to write a lot of code, and once the needs change, developers need to modify and compile the source code of the table components again, resulting in low development efficiency of the table components and failure to meet the needs of business development in the power system.

[0075] In order to improve the development efficiency of the table component, when there is a demand for new functions of the table component, the configuration information of the new functions of the table component can be directly obtained. According to the configuration information of the new functions and the basic configuration file of the table component, the updated configuration file of the table component can be obtained, and the new functions can be added to the table component. The table component can generate a target table that meets the requirements based on the updated configuration file. By decoupling the configuration information of the new functions from the basic configuration file of the table component, it is not necessary to modify and compile the source code of the table component when adding functions to the table component, which maintains the stability of the original functions of the table component from the source. At the same time, it is also easy and flexible to configure the corresponding functions that meet the user's needs in the table component, so that the table component can be continuously improved, effectively improving the development efficiency of the table component, and enabling the developed table component to meet the various business development needs in the power system.

[0076] The table component processing method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the table generation system 102 communicates with the development terminal 104 through the network, and the table generation system 102 is integrated with a table component 106. The data storage system can store the data that the table generation system 102 needs to process. The data storage system can be integrated on the table generation system 102, or it can be placed on the cloud or other network servers. When the developer needs to add a function to the table component 106, the development terminal 104 triggers a function addition request for the table component 106, and sends the function addition request to the table generation system 102. In response to the function addition request for the table component 106, the table generation system 102 obtains the configuration information of the new function of the table component 106, obtains the updated configuration file of the table component 106 according to the configuration information of the new function and the basic configuration file of the table component 106, and calls the table component 106 to generate the target table according to the updated configuration file. Among them, the development terminal 104 is an application terminal used by the developer, and the development terminal 104 can be but not limited to various personal computers, laptops, smart phones, tablet computers, etc. The table generation system 102 can be implemented with an independent server or a server cluster composed of multiple servers.

[0077] In some embodiments, Figure 2 As shown, a processing method for a table component is provided, and the method is applied to Figure 1 The table generation system 102 in FIG. 1 is used as an example to illustrate the method, which includes the following steps:

[0078] S202: In response to a request for adding a new function to a table component, obtain configuration information of the new function of the table component.

[0079] Among them, the new functions of the table component are the table functions that the table component needs to have in order to generate a target table that meets the requirements of the actual application scenario. The new functions can be determined by the developer based on the data display and editing requirements required by the actual application scenario of the table component. The function addition request of the table component is the request information that needs to be triggered when adding a new function to the table component. The function addition request carries the configuration information of the new function of the table component.

[0080] The configuration information of the new function is the function configuration information required to implement the new function in the table component. The configuration information of the new function may include the basic function information of the new function and the configuration data information for implementing the new function. For example, the basic function information of the new function may be the function name, function effect brief description, function identification, function type and other information of the new function. The configuration data information for implementing the new function may be the code data, function file data and the like for implementing the new function. It is understandable that the configuration information of the new function is pre-generated by the developer according to the scenario requirement information of the actual application scenario of the table component.

[0081] In some of the embodiments, developers determine the table functions that need to be added to the table component based on the scenario requirement information of the actual application scenario of the table component, and write corresponding configuration information for the new functions. Then, based on the development terminal, the developer generates a function addition request for the table component according to the configuration information of the new functions.

[0082] In some optional embodiments, a developer generates a function addition request for a table component based on a development terminal trigger, and a table generation system responds to the function addition request for the table component and obtains configuration information of the new function of the table component carried in the function property request.

[0083] S204, obtaining an updated configuration file of the table component according to the configuration information of the newly added function and the basic configuration file of the table component.

[0084] The basic configuration file of the table component refers to the configuration file corresponding to the basic functions already carried in the table component when adding new functions. In order to reduce the configuration steps of the table component, the table functions that are frequently used in data display and editing are usually configured as basic functions in the table component. Through the basic configuration files corresponding to each basic function, the table component can realize the corresponding basic functions.

[0085] In some optional embodiments, after acquiring the configuration information of the new function, the table generation system obtains an updated configuration file of the table component according to the configuration information of the new function and the basic configuration file in the table component.

[0086] In some of the embodiments, the table generation system may set a corresponding function identifier for the configuration information of the newly added function, and then put the marked configuration information into the basic configuration file to obtain an updated configuration file of the table component.

[0087] In some of the embodiments, in order to more clearly manage the configuration information within the table component, the table generation system may place the configuration information of the new function into the configuration file corresponding to the extended function, and then obtain the updated configuration file of the table component based on the extended function configuration file containing the new function configuration information and the basic configuration file in the table component.

[0088] S206, calling the table component to generate a target table according to the updated configuration file.

[0089] In some optional embodiments, after the table generation system obtains the updated configuration file of the table component according to the configuration information of the newly added function and the basic configuration information of the table component, the updated configuration file includes the basic configuration file for realizing the basic functions of the table and the configuration information for realizing the newly added function. The table generation system can call the table component and generate a target table having both the basic functions of the table component and the newly added functions according to the obtained updated configuration file.

[0090] In some of the embodiments, the table generation system calls the table component to generate a target table according to the updated configuration file, which may include: the table generation system calls the table component engine in the table component, reads the configuration files corresponding to each table function from the updated configuration file of the table component, parses the configuration file and generates a table model, and the table component engine generates a target table with both the basic functions of the table component and the new functions according to the table model.

[0091] In the processing method of the above table component, when adding a new function to the table component, it is only necessary to obtain the configuration information of the new function, and obtain the update configuration file of the table component based on the configuration information of the new function and the basic configuration file of the table component, so that the new function can be added to the table component. Subsequently, it is only necessary to call the table component according to the updated configuration file to generate a target table that meets the user's needs. During the entire process of adding functions, there is no need to modify and compile the source code of the table component. By decoupling the configuration information of the new function from the basic configuration file of the table component, it is possible to easily and flexibly configure the corresponding functions that meet the user's usage needs in the table component, effectively improving the development efficiency of the table component, so that the developed table component can meet the various business development needs in the power system.

[0092] Although the configuration information of the new function carries information data that can implement the corresponding table function in the table component, in the actual process of adding new functions, the configuration information may not be directly used by the table component. Certain information processing is required before it can become information data that can be directly used by the table component.

[0093] In some embodiments, Figure 3 As shown, according to the configuration information of the new function and the basic configuration file of the table component, the updated configuration file of the table component is obtained, including:

[0094] S302: Determine the function type of the new function.

[0095] Among them, the table function has different function types corresponding to different functions to be implemented. For example, the function type corresponding to the function used to implement different rendering effects of cells can be the cell rendering mode, and the function type corresponding to the function used to provide different operation effects to users can be the user operation type, etc.

[0096] In some optional embodiments, the table generation system determines the function type of the new function from the configuration information of the new function.

[0097] S304: Determine the extended configuration information and implementation configuration data of the new function according to the configuration information and function type of the new function.

[0098] The implementation configuration data of the new function refers to the function configuration data that can be directly used by the table component to implement the corresponding function. In actual use, if the table component needs to implement the new function, it needs to obtain the corresponding table model according to the implementation configuration data of the new function, and then generate the target table.

[0099] The extended configuration information of the new function is the function configuration information required to complete the extension point configuration in the table component for the new function. If you want to completely add the new function to the table component, you not only need to introduce the implementation configuration data required to implement the new function in the table component, but also need to declare the function information of the new function in the table component and the calling interface information when calling the implementation configuration data to complete the extension point configuration. Therefore, the extended configuration information of the new function includes the function information and calling interface information of the new function.

[0100] In some optional embodiments, after determining the function type of the new function, the table generation system determines the extended configuration information used to complete the extension point configuration and the implementation configuration data required to implement the new function in the table component based on the function type of the new function and the configuration information of the new function.

[0101] In some embodiments, after determining the function type of the new function, the table generation system determines the configuration information processing rule corresponding to the new function according to the function type of the new function. Based on the configuration information processing rule, the configuration information of the new function is processed to obtain the implementation configuration data of the new function and the extended configuration information of the new function.

[0102] In some of the embodiments, when the function type of the new function is the existing function type in the table component, the table generation system can determine the configuration information processing rules of the new function based on the function type of the new function and the correspondence between the pre-set function type and the processing rules.

[0103] Among them, developers can pre-bind the function types corresponding to each table function in the table component and the configuration information processing rules corresponding to the function types to obtain the correspondence between the function types and the processing rules, and store the correspondence between the function types and the processing rules in the data storage area of ​​the table generation system, so that the table generation system can call it at any time.

[0104] In some embodiments, when the function type is a newly added function type, that is, a function type that does not exist in the table component, the developer can write the configuration information processing rules corresponding to the newly added function type into the configuration information. The table generation system can directly obtain the configuration information processing rules corresponding to the function type of the newly added function from the configuration information.

[0105] S306: Generate an extended configuration file for the newly added function based on the extended configuration information and the implementation configuration data.

[0106] In some optional embodiments, after obtaining the extended configuration information and implementation configuration data of the new function, the table generation system can generate an extended configuration file of the new function based on the extended configuration information and the actual configuration data. It can be understood that the extended configuration file of the new function includes the extended configuration information required for the complete extension point configuration and the implementation configuration data for implementing the new function. In actual use, the table component can generate a target table that can implement the corresponding new function according to the extended configuration file of the new function.

[0107] S308, obtaining an updated configuration file of the table component according to the extended configuration file of the newly added function and the basic configuration file of the table component.

[0108] In some optional embodiments, after obtaining the extended configuration file of the new function, the table generation system directly obtains the updated configuration file of the table component according to the extended configuration file of the new function and the basic configuration file of the table component. The updated configuration file includes the extended configuration file for implementing the new function and the basic configuration file for implementing the basic functions of the table. The subsequent table component can directly generate a target table with both the basic functions of the table component and the new function according to the updated configuration file.

[0109] In the above embodiment, according to the function type of the new function and the configuration information of the new function, the extended configuration information and the implementation configuration data of the new function can be determined, and then based on the extended configuration information and the implementation configuration data, the table component can directly call the extended configuration file to implement the corresponding new function, which effectively improves the success rate of the new function configuration of the table component and thereby improves the development efficiency of the table component.

[0110] Furthermore, different types of newly added functions will lead to different corresponding extended configuration information and implementation configuration data. The following describes the process of obtaining the extended configuration information and implementation configuration data of the newly added functions for several types of newly added functions that can be extended by the table component.

[0111] In some embodiments, Figure 4As shown, the new function type includes the user operation function, and the configuration information of the new function includes the implementation code of the new user operation method, the preset storage path in the table component, and the identification information of the new user operation method. According to the configuration information and function type of the new function, the extended configuration information and implementation configuration data of the new function are determined, including:

[0112] S402: When the newly added function type is a user operation mode, an implementation code of the newly added user operation mode is obtained according to the configuration information.

[0113] Among them, the role of the table component is to generate a target table for display and editing for users. In actual use, users may edit the generated target table based on their own needs, such as adding rows, deleting rows, copying rows, etc.

[0114] In some of the embodiments, examples of user operations that can be supported in the table component are given as shown in the following table:

[0115]

[0116]

[0117] In some of the embodiments, the user operation mode is a user-oriented operation mode, and therefore may include a display name, a display icon, a function identifier, a function style, etc. Among them, the display name is the display name of the user operation mode on the target table interface when the user performs a marking operation based on the target table generated by the table component. It can be understood that the display name can be a toolbar button or a menu item text title. The display icon is the icon when the user operation mode is displayed on the target table interface, and the display icon can be a toolbar button or a menu item icon. The function identifier is a unique identifier of the user operation function. The function style refers to the operation style corresponding to the user operation mode, for example, it can be a toolbar button or a menu item, or both.

[0118] The implementation code of the newly added user operation mode is the source file data for implementing the newly added user operation mode. The implementation code of the newly added user operation mode is generated in advance by the developer according to the functions that can be realized by the newly added user operation mode. It can be understood that the developer can use any code writing tool to generate the implementation code of the newly added user operation mode, such as Java, Python, etc.

[0119] In some optional embodiments, when the table generation system determines that the function type of the new function is the user operation mode according to the configuration information of the new function, the implementation code of the new user operation mode is obtained from the configuration information of the new function.

[0120] S404, compile and package the implementation code of the newly added user operation mode to obtain implementation configuration data of the newly added user operation mode.

[0121] In some optional embodiments, after obtaining the implementation code of the newly added user operation mode, the table generation system needs to compile and package the implementation code to obtain the implementation configuration data of the newly added user operation mode. Among them, compiling and packaging the implementation code is a code processing operation that converts the implementation code into an executable file of the table component. It can be understood that the developer can complete the writing of the implementation code based on any code writing tool. After obtaining the implementation code, the table generation system must first compile the implementation code and translate the implementation code into a binary format that can be recognized by the table component. Then, the compiled code file is packaged and linked to the table component to form an executable file of the table component, that is, the implementation configuration data of the newly added user operation mode.

[0122] S406: Generate extended configuration information of the newly added user operation mode according to the preset storage path of the newly added user operation mode in the table component and the identification information of the newly added user operation mode.

[0123] The preset storage path is the storage location of the configuration data in the table component. The configuration data of the newly added user operation mode needs to be stored in the table component. In actual use, the table component can respond to the user's operation instructions at any time to realize the corresponding table function. It can be understood that the preset storage path of the newly added function can be determined in advance by the developer and written into the configuration information of the newly added function.

[0124] In some optional embodiments, the table generation system obtains the preset storage path of the new user operation method in the table component and the identification information of the new user operation method from the configuration information of the new user operation method, and generates extended configuration information of the new user operation method based on the preset storage path and the identification information.

[0125] In some of the embodiments, during actual use, when the table component generates a target table in response to a table generation instruction, it can determine the storage path of the target user operation mode in the table component from the extended configuration information of the target user operation mode based on the identification information of the target user operation mode in the target table, and then call the table component engine to obtain the corresponding implementation configuration data of the target user operation mode from the corresponding storage path, and configure the corresponding target user operation mode in the target table according to the implementation configuration data.

[0126] In the above embodiment, when the function type of the new function is the user operation method, the table generation component can generate the implementation configuration data of the new user operation method according to the implementation code of the new user operation method, and generate the extended configuration information of the new user operation according to the identification information of the new user operation method and the preset storage path of the new user operation method in the table component, which provides a data basis for the subsequent generation of the table component to directly call the extended configuration file that implements the new user operation method, effectively improves the success rate of the new function configuration of the table component, and thereby improves the development efficiency of the table component.

[0127] In other instances, such as Figure 5 As shown, the new function type includes the cell editing mode, and the configuration information of the new function includes the implementation code of the new cell editing mode and the editor name of the new cell editing mode. According to the configuration information and function type of the new function, the extended configuration information and implementation configuration data of the new function are determined, including:

[0128] S502: When the newly added function type is a cell editing mode, an implementation code of the newly added cell editing mode is obtained according to the configuration information.

[0129] Among them, the cell editing mode can be considered as a subtype of the cell function configuration type in the table component interface display function. When the table component generates the target table and the target table displays the power system data, how to fill in and how to display it can be determined by the interface display function of the table component.

[0130] In some embodiments, the interface display function of the table component may include four types: table, column, row, and cell. The configuration items supported by the interface display are shown in the following table:

[0131]

[0132]

[0133] It can be understood that the supported configuration contents listed in the above table are merely examples of the configuration types displayed on the interface, and the description content corresponding to each configuration item is also merely an example. The actual configuration content of the configuration item can be determined based on actual business needs. In addition to the supported configuration contents listed in the above table, the configuration items supported by the interface display can also be increased based on actual business needs.

[0134] Among them, the cell editing mode can be understood as the editing mode that users can use when editing cell data in the target table. The cell editing mode includes but is not limited to text box editing mode, check box editing mode, drop-down box editing mode, physical port, etc. It can be understood that developers can determine the required target cell editing mode based on the actual business needs of the power system. If the basic cell editing mode of the table component is different from the target cell editing mode, the developer can generate the configuration information of the newly added cell editing mode based on the target cell editing mode, and add the target cell editing mode in the table component through the configuration information of the newly added cell editing mode.

[0135] The implementation code of the newly added cell editing mode is the source file data for implementing the newly added cell editing mode. The implementation code of the newly added cell editing mode is pre-generated by the developer according to the functions that the newly added cell editing mode can realize.

[0136] In some optional embodiments, when the table generation system determines that the function type of the new function is the cell editing mode according to the configuration information of the new function, the implementation code of the new cell editing mode is obtained from the configuration information of the new function.

[0137] S504, compile and package the implementation code of the newly added cell editing mode to obtain the implementation configuration data of the newly added cell editing mode.

[0138] In some optional embodiments, after obtaining the implementation code of the newly added cell editing method, the table generation system needs to compile and package the implementation code to obtain the implementation configuration data of the newly added cell editing method. After obtaining the implementation code of the newly added cell editing method, the table generation system needs to first compile the implementation code, translate the implementation code into a binary format that can be recognized by the table component, and then package the compiled code file and link it to the table component to form an executable file of the table component, that is, the implementation configuration data of the newly added cell editing method.

[0139] S506: Generate extended configuration information of the newly added cell editing method according to the preset storage path of the newly added cell editing method in the table component and the editor name of the newly added cell editing method.

[0140] Among them, the preset storage path of the newly added cell editing method in the table component is the storage location of the implementation configuration data of the newly added cell editing method in the table component. The implementation configuration data of the newly added cell editing method needs to be stored in the table component. In actual use, the table component can respond to the user's operation instructions at any time to realize the corresponding table function. It can be understood that the preset storage path of the newly added cell editing method can be determined in advance by the developer and written into the configuration information of the newly added cell editing method.

[0141] The implementation of the cell editing mode needs to be completed through the cell editor. The cell editor can be considered as an editing program that implements the cell editing function. The editor name of the cell is the name of the editing mode that can be implemented in the cell.

[0142] In some optional embodiments, the table generation system obtains the preset storage path of the new cell editing method in the table component and the editor name of the new cell editing method from the configuration information of the new cell editing method, and generates extended configuration information of the new cell editing method based on the preset storage path and editor name.

[0143] In some of the embodiments, during actual use, when the table component generates a target table in response to a table generation instruction, it can determine the storage path of the target cell editing method in the table component from the extended configuration information of the target cell editing method based on the editor name of the target cell editing method in the target table, and then call the table component engine to obtain the corresponding implementation configuration data of the target cell editing method from the corresponding storage path, and configure the corresponding target cell editing method in the target table according to the implementation configuration data.

[0144] In the above embodiment, when the function type of the new function is the cell editing mode, the table generation component can generate the implementation configuration data of the new cell editing mode according to the implementation code of the new cell editing mode, and generate the extended configuration information of the new cell editing mode according to the editor name of the new cell editing mode and the preset storage path of the new cell editing mode in the table component, which provides a data basis for the subsequent generation of the table component to directly call the extended configuration file for implementing the new cell editing mode, effectively improving the success rate of the new function configuration of the table component, and thereby improving the development efficiency of the table component.

[0145] In addition to cell editing, in some embodiments, such as Figure 6 As shown, the new function type includes the cell rendering method, and the configuration information of the new function includes the implementation code of the new cell rendering method and the renderer name of the new cell rendering method. According to the configuration information and function type of the new function, the extended configuration information and implementation configuration data of the new function are determined, including:

[0146] S602: When the newly added function type is a cell rendering mode, obtain implementation code of the newly added cell rendering mode according to the configuration information.

[0147] Among them, the cell rendering function refers to a table function that displays the cell data filled in the cell using a preset display format. The cell rendering method is the display method of the cell data, such as picture display, progress bar display, etc. Different rendering methods can describe the cell data more vividly. It can be understood that developers can determine the required target cell rendering effect based on the actual business needs of the power system. If the basic function of the table component cannot achieve the target cell rendering effect, the developer can generate the configuration information of the new cell rendering method based on the target cell rendering effect, and add the cell rendering method that can achieve the target cell rendering effect in the table component through the configuration information of the new cell rendering method.

[0148] The implementation code of the newly added cell rendering method, that is, the source file data for implementing the newly added cell rendering method. The implementation code of the newly added cell rendering method is pre-generated by the developer according to the functions that the newly added cell rendering method can realize.

[0149] In some optional embodiments, when the table generation system determines that the function type of the new function is the cell rendering mode according to the configuration information of the new function, the implementation code of the new cell rendering mode is obtained from the configuration information of the new cell rendering mode.

[0150] S604, compile and package the implementation code of the newly added cell rendering mode to obtain implementation configuration data of the newly added cell rendering mode.

[0151] In some optional embodiments, after obtaining the implementation code of the newly added cell rendering method, the table generation system needs to compile and package the implementation code to obtain the implementation configuration data of the newly added cell rendering method. After obtaining the implementation code of the newly added cell rendering method, the table generation system needs to first compile the implementation code, translate the implementation code into a binary format that can be recognized by the table component, and then package the compiled code file and link it to the table component to form an executable file of the table component, that is, the implementation configuration data of the newly added cell rendering method.

[0152] S606: Generate extended configuration information of the newly added cell rendering method according to the preset storage path of the newly added cell rendering method in the table component and the renderer name of the newly added cell rendering method.

[0153] Among them, the preset storage path of the newly added cell rendering method in the table component is the storage location of the implementation configuration data of the newly added cell rendering method in the table component. The implementation configuration data of the newly added cell rendering method needs to be stored in the table component. In actual use, the table component can respond to the user's operation instructions at any time and realize the corresponding table function. It can be understood that the preset storage path of the newly added cell rendering method can be determined in advance by the developer and written into the configuration information of the newly added cell rendering method.

[0154] The implementation of the cell rendering method needs to be completed through the cell renderer. The cell renderer can be considered as a rendering control program that implements the cell rendering function. The name of the cell renderer is the name of the rendering method that the cell can implement.

[0155] In some optional embodiments, the table generation system obtains the preset storage path of the new cell rendering method in the table component and the renderer name of the new cell rendering method from the configuration information of the new cell rendering method, and generates extended configuration information of the new cell rendering method based on the preset storage path and renderer name.

[0156] In some of the embodiments, during actual use, when the table component generates a target table in response to a table generation instruction, it can determine the storage path of the target cell rendering method in the table component from the extended configuration information of the target cell rendering method based on the renderer name of the target cell rendering method in the target table, and then call the table component engine to obtain the corresponding implementation configuration data of the target cell rendering method from the corresponding storage path, and configure the corresponding target cell rendering method in the target table according to the implementation configuration data.

[0157] In the above embodiment, when the function type of the new function is the cell rendering mode, the table generation component can generate the implementation configuration data of the new cell rendering mode according to the implementation code of the new cell rendering mode, and generate the extended configuration information of the new cell rendering mode according to the renderer name of the new cell rendering mode and the preset storage path of the new cell rendering mode in the table component, which provides a data basis for the subsequent generation of the table component to directly call the extended configuration file for implementing the new cell rendering mode, effectively improving the success rate of the new function configuration of the table component, and thereby improving the development efficiency of the table component.

[0158] In some embodiments, Figure 7As shown, the newly added function type includes the data verification type, and the configuration information of the newly added function includes the implementation code of the newly added data verification type and the data verification type name of the newly added data verification type, or the data verification logic class name. According to the configuration information and function type of the newly added function, the extended configuration information and implementation configuration data of the newly added function are determined, including:

[0159] S702: When the newly added function type is a data verification type, obtain implementation code of the newly added data verification type according to the configuration information.

[0160] Among them, data verification refers to verifying the cell data in the cell with a preset verification rule to determine whether the cell data in the cell meets the required table function. The verification data type in the data verification process may include but is not limited to integers, real numbers, intervals, IP addresses, etc. The specific verification data type needs to be determined according to the actual usage scenario. For example, in the actual usage scenario, a certain field of power data should be an integer. At this time, the verification data type of the filled cell corresponding to the field can be determined as an integer verification type, and the data field filled in the cell is subjected to integer data verification. It can be understood that developers can determine the required target data verification effect based on the actual business needs of the power system. If the basic function of the table component cannot achieve the target data verification effect, the developer can generate configuration information of a new data verification type based on the target data verification effect, and add a data verification type that can achieve the target data verification effect in the table component through the configuration information of the new data verification type.

[0161] The implementation code of the newly added data verification type is the source file data generated according to the verification logic of the newly added data verification type. Through the implementation code of the newly added data verification type, the verification logic of the newly added data verification type can be added to the table component. The implementation code of the newly added data verification type is pre-generated by the developer according to the verification logic corresponding to the newly added data verification type.

[0162] In some optional embodiments, when the table generation system determines that the function type of the new function is a data verification type according to the configuration information of the new function, the implementation code of the new data verification type is obtained from the configuration information of the new data verification type.

[0163] S704, compile and package the implementation code of the newly added data verification type to obtain implementation configuration data of the newly added data verification type.

[0164] In some optional embodiments, after obtaining the implementation code of the newly added data verification type, the table generation system needs to compile and package the implementation code to obtain the implementation configuration data of the newly added data verification type. After obtaining the implementation code of the newly added data verification type, the table generation system needs to first compile the implementation code, translate the implementation code into a binary format that can be recognized by the table component, and then package the compiled code file and link it to the table component to form an executable file of the table component, that is, the implementation configuration data of the newly added data verification type.

[0165] S706, generating extended configuration information of the newly added data verification type according to the preset storage path of the newly added data verification type in the table component and the data verification type name of the newly added data verification type, or the data verification logic class name.

[0166] Among them, the preset storage path of the newly added data verification type in the table component is the storage location of the implementation configuration data of the newly added data verification type in the table component. The implementation configuration data of the newly added data verification type needs to be stored in the table component. In actual use, the table component can respond to the user's operation instructions at any time and realize the corresponding data verification function. It can be understood that the preset storage path of the newly added data verification type can be determined in advance by the developer and written into the configuration information of the newly added data verification type.

[0167] Data verification logic is the specific operation logic for performing verification operations on data. The data verification type name and the data verification logic class name can both be considered as names that describe the data verification logic. For example, when the data verification type name is an integer verification type, the data verification logic class name can be an integer verification logic.

[0168] In some optional embodiments, the table generation system obtains the preset storage path of the newly added data verification type in the table component, and the data verification type name or the data verification logic class name of the newly added data verification type from the configuration information of the newly added data verification type, and generates extended configuration information of the newly added data verification type based on the preset storage path, and the data verification type name or the data verification logic class name.

[0169] In some of the embodiments, during actual use, when the table component generates a target table in response to a table generation instruction, it can determine the storage path of the target data verification type in the table component from the extended configuration information of the target data verification type according to the data verification type name or the data verification logic class name of the target data verification type in the target table, and then call the table component engine to obtain the corresponding implementation configuration data of the target data verification type from the corresponding storage path, and configure the corresponding target data verification type in the target table according to the implementation configuration data.

[0170] In the above embodiment, when the function type of the new function is a data verification type, the table generation component can generate implementation configuration data of the new data verification type according to the implementation code of the new data verification type, and generate extended configuration information of the new data verification type according to the data verification type name or data verification logic class name of the new data verification type and the preset storage path of the new data verification type in the table component, which provides a data basis for the subsequent generation of the table component to directly call the extended configuration file that implements the data verification type, effectively improves the success rate of the new function configuration of the table component, and thereby improves the development efficiency of the table component.

[0171] In addition to the above table function types that require obtaining implementation codes, in some embodiments, such as Figure 8 As shown, the new function type includes the data dictionary type, and the configuration information of the new function includes the data dictionary type name and data dictionary item of the new data dictionary. According to the configuration information and function type of the new function, the extended configuration information and implementation configuration data of the new function are determined, including:

[0172] S802: When the newly added function type is a data dictionary type, a preset implementation interface is called to obtain a data dictionary item of the newly added data dictionary.

[0173] Among them, the data dictionary is a dictionary tool used to normalize certain specific data in the power system. By configuring the corresponding data dictionary in the table component, the table data in the subsequent target table can be standardized to make the input data more accurate. It can be understood that the actual usage scenarios of the table component are different, and the corresponding data dictionaries that need to be configured are also different. Developers can generate configuration information for new data dictionaries based on the actual application scenarios of the power system, or the corresponding data dictionary items, and add data dictionaries for actual application scenarios in the table component through the configuration information of the new data dictionary.

[0174] The data dictionary item of the data dictionary is the smallest unit of data. Several data items can form a data structure. The data dictionary describes the logical content of data flow and data storage by defining data items and data structures. It can be understood that the data dictionary item contains the name of each sub-element and the corresponding value of the sub-element.

[0175] In some optional embodiments, when the table generation system determines that the function type of the newly added function is a data dictionary type according to the configuration information of the newly added function, the preset implementation interface is called to obtain the data dictionary item of the newly added data dictionary. It can be understood that the preset implementation interface is a preset interface for obtaining data dictionary items that can be directly used. By obtaining the data dictionary item of the newly added data dictionary through the preset actual interface, the content of the newly added data dictionary can be added to the table component.

[0176] S804: Determine the data dictionary item as implementation configuration data of a newly added data dictionary type.

[0177] In some optional embodiments, since the data dictionary is different from the specific operation function, the addition of the data dictionary does not rely on the code file written by the developer, but is implemented through the data dictionary item. Therefore, after the data dictionary item of the data dictionary has been obtained using the preset implementation interface, that is, after the names of each sub-element of the data dictionary that can be directly used by the table component and the corresponding values ​​of each sub-element have been obtained, the data dictionary item can be determined as the actual configuration data of the newly added data dictionary type without the need for a compilation and packaging process.

[0178] S806: Generate extended configuration information of the newly added data dictionary according to the preset storage path of the newly added data dictionary in the table component and the data dictionary type name of the newly added data dictionary.

[0179] Among them, the preset storage path of the newly added data dictionary in the table component is the storage location of the implementation configuration data of the newly added data dictionary in the table component. The implementation configuration data of the newly added data dictionary needs to be stored in the table component. In actual use, the table component can respond to the user's operation instructions at any time and obtain the corresponding data dictionary for operation processing. It can be understood that the preset storage path of the newly added data dictionary can be determined in advance by the developer and written into the configuration information of the newly added data dictionary.

[0180] In some optional embodiments, the table generation system obtains the preset storage path of the new data dictionary in the table component and the data dictionary type name of the new data dictionary from the configuration information of the new data dictionary, and generates extended configuration information of the new data dictionary based on the preset storage path and the data dictionary type name.

[0181] In some of the embodiments, during actual use, when the table component generates a target table in response to a table generation instruction, it can determine the storage path of the target data dictionary in the table component from the extended configuration information of the target data dictionary based on the data dictionary type name of the target data dictionary in the target table, and then call the table component engine to obtain the corresponding implementation configuration data of the target data dictionary from the corresponding storage path, and obtain the target data dictionary configured in the target table based on the implementation configuration data.

[0182] In the above embodiment, when the function type of the new function is a data dictionary type, the table generation component can generate the implementation configuration data of the new data dictionary according to the implementation code of the new data dictionary, and generate the extended configuration information of the new data dictionary according to the data dictionary type name of the new data dictionary and the preset storage path of the new data dictionary in the table component, which provides a data basis for the subsequent generation of the table component to directly call the extended configuration file of the data dictionary, effectively improves the success rate of the new function configuration of the table component, and thereby improves the development efficiency of the table component.

[0183] The above embodiments illustrate how to determine the implementation configuration data and extended configuration information corresponding to the new function according to the new function type and the configuration information of the new function through several different new function types. It can be understood that in addition to the above several new function types, the table generation system can add corresponding new functions according to actual usage scenarios and usage requirements.

[0184] After obtaining the extended configuration information of the newly added function and the implementation configuration data, it is necessary to continue to generate a corresponding extended configuration file based on the extended configuration information and the implementation configuration data.

[0185] Based on this, in some embodiments, Fig. 9 As shown, based on the extended configuration information and the implementation configuration data, an extended configuration file for the new function is generated, including:

[0186] S902, determining the configuration file to be written into the table component for the new function;

[0187] Among them, the configuration file to be written is a storage file set up in the table component for extended functions. A single configuration file to be written can be set in the table component. When the corresponding functions are added to the subsequent table component, the implementation configuration data corresponding to each new function can be written into the configuration file. Multiple configuration files to be written can also be set in the table component. The number of configuration files to be written can be determined according to the number of function types of the new functions. For example, corresponding files to be written can be set for user operation methods, cell editing methods and other function types to facilitate subsequent search.

[0188] In some optional embodiments, after obtaining the extended configuration information and implementation configuration data of the new function, the table generation system determines the configuration file to be written into the new function.

[0189] In some of the embodiments, if a unified configuration file to be written is set in the table component, the table generation system directly determines the unified configuration file to be written as the configuration file to be written for the newly added function.

[0190] In some of the embodiments, if a configuration file to be written corresponding to a function type is set in the table component, the table generation system will determine the configuration file to be written corresponding to the newly added function according to the function type of the newly added function.

[0191] S904, writing the configuration data into the preset storage path of the new function in the table component;

[0192] In some optional embodiments, the table generation system writes the implementation configuration data of the new function into a preset storage path of the new function in the table component to complete the implementation configuration process of the new function in the table component.

[0193] S906, writing the extended configuration information of the new function into the configuration file to be written, to obtain the extended configuration file of the new function.

[0194] In some optional embodiments, after the table generation system writes the implementation configuration data of the new function into the preset storage path of the new function in the table component. The table generation system writes the extended configuration information that records the basic information of the new function and the storage path corresponding to the new function into the configuration file to be written, and the extended configuration file of the new function can be obtained. In subsequent actual use, the table component can directly obtain the extended configuration information of the new function from the extended configuration file, obtain the corresponding storage path of the new function based on the extended configuration information, call the table component engine to obtain the implementation configuration data of the new function from the corresponding storage path, and then generate the target table containing the new function according to the actual configuration data.

[0195] In the above embodiment, by writing the implementation configuration data of the new function into the preset storage path and writing the extended configuration of the new function into the configuration file to be written, the implementation of the new function in the table component can be completed, which effectively improves the development efficiency of the table component.

[0196] In some embodiments, a method for processing a table component is provided, wherein the system architecture of the table generation system is as follows: Fig.10 As shown, the system architecture is divided into three layers, including the interface layer, the table component engine layer, and the configuration layer. The configuration layer includes the table basic configuration and the extension point configuration.

[0197] like Fig.11 As shown, the processing method of the table component specifically includes the following steps:

[0198] S1100: In response to a request for adding a function to a table component, the table generation system obtains configuration information of a newly added function of the table component.

[0199] S1102: Determine the function type of the new function according to the configuration information of the new function.

[0200] S1103, when the function type of the new function is user operation mode, execute S1104 to S1106; when the function type of the new function is cell editing mode, execute S1107 to S1109; when the function type of the new function is cell rendering mode, execute S1110 to S1112; when the function type of the new function is data verification type, execute S1113 to S1115; when the function type of the new function is data dictionary type, execute S1116 to S1117.

[0201] S1104, acquiring an implementation code, a preset storage path, and identification information of the newly added user operation mode according to the configuration information.

[0202] S1105, compile and package the implementation code of the newly added user operation mode to obtain implementation configuration data of the newly added user operation mode.

[0203] S1106: Generate extended configuration information of the newly added user operation mode according to the preset storage path and identification information.

[0204] S1107, obtaining the implementation code, preset storage path and editor name of the newly added cell editing mode according to the configuration information.

[0205] S1108, compile and package the implementation code of the newly added cell editing mode to obtain the implementation configuration data of the newly added cell editing mode.

[0206] S1109: Generate extended configuration information of a newly added cell editing mode according to the preset storage path and editor name.

[0207] S1110, obtaining implementation code, preset storage path and renderer name of the newly added cell rendering method according to the configuration information.

[0208] S1111, compile and package the implementation code of the newly added cell rendering method to obtain implementation configuration data of the newly added cell rendering method.

[0209] S1112: Generate extended configuration information of a newly added cell rendering method according to a preset storage path and a renderer name.

[0210] S1113, obtaining the implementation code, preset storage path, and data verification type name or data verification logic class name of the newly added data verification type according to the configuration information.

[0211] S1114, compile and package the implementation code of the newly added data verification type to obtain implementation configuration data of the newly added data verification type.

[0212] S1115, generating extended configuration information of the newly added data verification type according to the preset storage path and the data verification type name of the newly added data verification type, or the data verification logic class name.

[0213] S1116, calling a preset implementation interface to obtain a data dictionary item of the newly added data dictionary, and determining the data dictionary item as implementation configuration data of the newly added data dictionary.

[0214] S1117, generating extended configuration information of the newly added data dictionary according to the preset storage path and the data dictionary type name.

[0215] S1118, determining the configuration file to be written in the table component of the new function, and writing the configuration data into the preset storage path.

[0216] S1119, writing the extended configuration information of the new function into the configuration file to be written, to obtain the extended configuration file of the new function.

[0217] S1120, obtaining an update configuration file of the table component according to the extended configuration file of the new function and the basic configuration file of the table component.

[0218] S1121, calling the table component engine to generate a target table according to the update configuration file of the table component.

[0219] It can be understood that the table component engine layer obtains the basic configuration file of the table component from the table basic configuration in the configuration layer, obtains the extended configuration file of the table component from the extension point configuration, generates a table model according to the basic configuration file and the extended configuration file, generates a target table interface based on the table model, and displays the target table in the interface layer.

[0220] In this embodiment, by decoupling the configuration information of the new functions from the basic configuration file of the table component, it is possible to easily and flexibly configure the corresponding functions that meet the user's needs in the table component, so that the table component not only has rich and reusable interface display and editing functions, which can cover most of the upper computer software development requirements of the power storage system, but also supports data verification and storage, meeting the needs of data persistence. By modifying the configuration, it is also easy to achieve local fine-tuning of the interface display and editing functions, effectively reducing the cost of subsequent upgrades and maintenance. At the same time, new functions of the table component are realized through expansion, and the stability of the original functions is maintained from the source. New functions with strong versatility can also be merged into the table component, so that the table component can be continuously improved and ultimately fully meet the needs of business development.

[0221] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0222] Based on the same inventive concept, the embodiment of the present application also provides a table component processing device for implementing the table component processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiment of the processing device of one or more table components provided below can refer to the limitations of the table component processing method above, and will not be repeated here.

[0223] In some embodiments, Fig.12 As shown, a table component processing device 1200 is provided, comprising: a request response module 1201, a configuration file update module 1202 and a table generation module 1203, wherein:

[0224] The request response module 1201 is used to respond to a request for adding a function to the table component and obtain configuration information of the new function of the table component.

[0225] The configuration file updating module 1202 is used to obtain an updated configuration file of the table component according to the configuration information of the newly added function and the basic configuration file of the table component.

[0226] The table generation module 1203 is used to call the table component to generate a target table according to the updated configuration file.

[0227] The processing device of the above-mentioned table component, when adding a new function to the table component, only needs to obtain the configuration information of the new function, and obtain the updated configuration file of the table component according to the configuration information of the new function and the basic configuration file of the table component, so that the new function can be added to the table component. Subsequently, it is only necessary to call the table component according to the updated configuration file to generate a target table that meets the user's needs. During the entire process of adding functions, there is no need to modify and compile the source code of the table component. By decoupling the configuration information of the new function from the basic configuration file of the table component, it is possible to easily and flexibly configure the corresponding functions that meet the user's usage needs in the table component, which effectively improves the development efficiency of the table component and enables the developed table component to meet the various business development needs in the power system.

[0228] In some embodiments, the configuration file update module is also used to: determine the function type of the new function; determine the extended configuration information and implementation configuration data of the new function based on the configuration information and function type of the new function; generate an extended configuration file for the new function based on the extended configuration information and the implementation configuration data; obtain an updated configuration file for the table component based on the extended configuration file of the new function and the basic configuration file of the table component.

[0229] In some embodiments, the newly added function type includes a user operation method, and the configuration information of the newly added function includes an implementation code of the newly added user operation method, a preset storage path in the table component, and identification information of the newly added user operation method.

[0230] The configuration file update module is also used for: when the new function type is user operation mode, obtaining the implementation code of the new user operation mode according to the configuration information; compiling and packaging the implementation code of the new user operation mode to obtain the implementation configuration data of the new user operation mode; generating the extended configuration information of the new user operation mode according to the preset storage path of the new user operation mode in the table component and the identification information of the new user operation mode.

[0231] In some embodiments, the newly added function type includes a cell editing mode, and the configuration information of the newly added function includes an implementation code of the newly added cell editing mode and an editor name of the newly added cell editing mode.

[0232] The configuration file update module is also used for: when the new function type is cell editing mode, obtaining the implementation code of the new cell editing mode according to the configuration information; compiling and packaging the implementation code of the new cell editing mode to obtain the implementation configuration data of the new cell editing mode; generating the extended configuration information of the new cell editing mode according to the preset storage path of the new cell editing mode in the table component and the editor name of the new cell editing mode.

[0233] In some embodiments, the newly added function type includes a cell rendering mode, and the configuration information of the newly added function includes an implementation code of the newly added cell rendering mode and a renderer name of the newly added cell rendering mode.

[0234] The configuration file update module is also used for: when the newly added function type is a cell rendering method, obtaining the implementation code of the newly added cell rendering method according to the configuration information; compiling and packaging the implementation code of the newly added cell rendering method to obtain the implementation configuration data of the newly added cell rendering method; generating the extended configuration information of the newly added cell rendering method according to the preset storage path of the newly added cell rendering method in the table component and the renderer name of the newly added cell rendering method.

[0235] In some embodiments, the newly added function type includes a data verification type, and the configuration information of the newly added function includes an implementation code of the newly added data verification type, and a data verification type name of the newly added data verification type, or a data verification logic class name.

[0236] The configuration file update module is also used for: when the newly added function type is a data verification type, obtaining the implementation code of the newly added data verification type according to the configuration information; compiling and packaging the implementation code of the newly added data verification type to obtain the implementation configuration data of the newly added data verification type; and generating extended configuration information of the newly added data verification type according to the preset storage path of the newly added data verification type in the table component, and the data verification type name of the newly added data verification type, or the data verification logic class name.

[0237] In some embodiments, the newly added function type includes a data dictionary type, and the configuration information of the newly added function includes a data dictionary type name and a data dictionary item of the newly added data dictionary.

[0238] The configuration file update module is also used to: when the new function type is a data dictionary type, call the preset implementation interface to obtain the data dictionary item of the new data dictionary; determine the data dictionary item as the implementation configuration data of the new data dictionary; and generate extended configuration information of the new data dictionary based on the preset storage path of the new data dictionary in the table component and the data dictionary type name of the new data dictionary.

[0239] In some embodiments, the configuration file update module is also used to: determine the configuration file to be written in the table component of the new function; write the implementation configuration data into the preset storage path of the new function in the table component; write the extended configuration information of the new function into the configuration file to be written to obtain the extended configuration file of the new function.

[0240] Each module in the processing device of the above table component can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0241] In some embodiments, a computer device is provided, which may be a table generation system, and its internal structure diagram may be as follows: Fig.13 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as configuration information of new functions of the table component, a basic configuration file of the table component, and an updated configuration file of the table component. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a processing method for a table component is implemented.

[0242] Those skilled in the art will understand that Fig.13 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0243] In some embodiments, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method steps in the specific embodiment of the processing method of the above-mentioned table component are implemented.

[0244] In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method steps in the specific embodiment of the processing method of the above-mentioned table component are implemented.

[0245] In some embodiments, a computer program product is provided, including a computer program, which, when executed by a processor, implements the method steps in the specific embodiment of the above-mentioned table component processing method.

[0246] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0247] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0248] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0249] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for processing a table component, characterized in that: The method comprises: In response to a request for adding a function to a table component, obtaining configuration information of the newly added function of the table component; Obtaining an updated configuration file of the table component according to the configuration information of the newly added function and the basic configuration file of the table component; According to the update configuration file, the table component is called to generate a target table.

2. The method according to claim 1, characterized in that The step of obtaining an updated configuration file of the table component according to the configuration information of the newly added function and the basic configuration file of the table component includes: Determining the function type of the newly added function; Determining the extended configuration information and implementation configuration data of the newly added function according to the configuration information of the newly added function and the function type; Based on the extended configuration information and the implementation configuration data, generating an extended configuration file for the newly added function; According to the extended configuration file of the newly added function and the basic configuration file of the table component, an updated configuration file of the table component is obtained.

3. The method according to claim 2, characterized in that The newly added function type includes a user operation mode, and the configuration information of the newly added function includes an implementation code of the newly added user operation mode, a preset storage path in the table component, and identification information of the newly added user operation mode; The determining, according to the configuration information of the newly added function and the function type, the extended configuration information and the implementation configuration data of the newly added function comprises: In the case where the newly added function type is a user operation mode, acquiring an implementation code of the newly added user operation mode according to the configuration information; Compile and package the implementation code of the newly added user operation mode to obtain the implementation configuration data of the newly added user operation mode; The extended configuration information of the newly added user operation mode is generated according to the preset storage path of the newly added user operation mode in the table component and the identification information of the newly added user operation mode.

4. The method according to claim 2, characterized in that: The newly added function type includes a cell editing mode, and the configuration information of the newly added function includes an implementation code of the newly added cell editing mode and an editor name of the newly added cell editing mode; The determining, according to the configuration information of the newly added function and the function type, the extended configuration information and the implementation configuration data of the newly added function comprises: In the case where the newly added function type is a cell editing mode, obtaining an implementation code of the newly added cell editing mode according to the configuration information; Compile and package the implementation code of the newly added cell editing mode to obtain the implementation configuration data of the newly added cell editing mode; According to the preset storage path of the newly added cell editing method in the table component and the editor name of the newly added cell editing method, the extended configuration information of the newly added cell editing method is generated.

5. The method according to claim 2, characterized in that: The newly added function type includes a cell rendering mode, and the configuration information of the newly added function includes an implementation code of the newly added cell rendering mode and a renderer name of the newly added cell rendering mode; The determining, according to the configuration information of the newly added function and the function type, the extended configuration information and the implementation configuration data of the newly added function comprises: In the case where the newly added function type is a cell rendering mode, obtaining an implementation code of the newly added cell rendering mode according to the configuration information; Compile and package the implementation code of the newly added cell rendering mode to obtain implementation configuration data of the newly added cell rendering mode; According to the preset storage path of the newly added cell rendering mode in the table component and the renderer name of the newly added cell rendering mode, the extended configuration information of the newly added cell rendering mode is generated.

6. The method according to claim 2, characterized in that The newly added function type includes a data verification type, and the configuration information of the newly added function includes an implementation code of the newly added data verification type, and a data verification type name of the newly added data verification type, or a data verification logic class name; The determining, according to the configuration information of the newly added function and the function type, the extended configuration information and the implementation configuration data of the newly added function comprises: In the case where the newly added function type is a data verification type, obtaining an implementation code of the newly added data verification type according to the configuration information; Compile and package the implementation code of the newly added data verification type to obtain the implementation configuration data of the newly added data verification type; According to the preset storage path of the newly added data verification type in the table component, and the data verification type name of the newly added data verification type, or the data verification logic class name, the extended configuration information of the newly added data verification type is generated.

7. The method according to claim 2, characterized in that The newly added function type includes a data dictionary type, and the configuration information of the newly added function includes a data dictionary type name and a data dictionary item of the newly added data dictionary; The determining, according to the configuration information of the newly added function and the function type, the extended configuration information and the implementation configuration data of the newly added function comprises: In the case where the newly added function type is a data dictionary type, calling a preset implementation interface to obtain a data dictionary item of the newly added data dictionary; Determine the data dictionary item as implementation configuration data of the newly added data dictionary; The extended configuration information of the newly added data dictionary is generated according to the preset storage path of the newly added data dictionary in the table component and the data dictionary type name of the newly added data dictionary.

8. The method according to any one of claims 3 to 7, characterized in that: The step of generating the extended configuration file of the newly added function based on the extended configuration information and the implementation configuration data includes: Determine the configuration file to be written into the table component for the newly added function; Writing the implementation configuration data into a preset storage path of the newly added function in the table component; The extended configuration information of the new function is written into the configuration file to be written, so as to obtain the extended configuration file of the new function.

9. A table component processing device, characterized in that: The device comprises: A request response module, used to respond to a request for adding a function to a table component and obtain configuration information of the newly added function of the table component; A configuration file updating module, used to obtain an updated configuration file of the table component according to the configuration information of the newly added function and the basic configuration file of the table component; The table generation module is used to call the table component to generate a target table according to the update configuration file.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.