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

By obtaining and parsing new functional configuration information of table components and generating update configuration files to call table components, the problem of inefficient development of table components in the existing technology is solved, and more efficient table component development and meeting power system business requirements is achieved.

WO2025066164A1PCT designated stage expired Publication Date: 2025-04-03CONTEMPORARY AMPEREX FUTURE ENERGY RES INST (SHANGHAI) LTD +1

Patent Information

Application Number
PCT/CN2024/092874
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-28
Filing Date
2024-05-13
Publication Date
2025-04-03

AI Technical Summary

Technical Problem

During the interface development process of power system host computer software, the existing technology has led to inefficient development of table components and cannot meet the business development needs in the power system.

Method used

By obtaining the new functional configuration information of the table component and generating update configuration files based on this information and the basic configuration file of the table component, directly call the table component to generate the target table to avoid modification and compilation of the source code.

Benefits of technology

The development efficiency of table components is improved, allowing them to flexibly configure functions that meet user needs and meet various business development needs in the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024092874_03042025_PF_FP_ABST
    Figure CN2024092874_03042025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to a table component processing method and apparatus, a computer device, a storage medium, and a computer program product. The method comprises: in response to a request to add a new function to a table component, acquiring configuration information of the newly added function of the table component; on the basis of the configuration information of the newly added function and a basic configuration file of the table component, obtaining an updated configuration file of the table component; and on the basis of the updated configuration file, calling the table component to generate a target table. By using the described method, the development efficiency of the table component can be effectively improved, and service development requirements in power systems can be met.
Need to check novelty before this filing date? Find Prior Art

Description

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

[0001] Cross-references

[0002] This application refers to Chinese Patent Application No. 2023112830182, filed on September 28, 2023, entitled “Processing Method, Apparatus, Computer Equipment and Storage Medium for Table Components,” which is incorporated herein by reference in its entirety. Technical Field

[0003] The present application relates to the 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

[0004] During the interface development process of the 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 them.

[0005] However, the process of generating the corresponding table by using the table component that comes with the development environment requires developers to write a large amount of code, and once the requirements change, the source code of the table component needs to be modified and recompiled, resulting in low efficiency in table component development and inability to meet the business development needs of the power system.

[0006] Summary of the Invention

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

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

[0009] In response to a request for adding a function to the table component, obtaining configuration information of the new function of the table component;

[0010] According to the configuration information of the new function and the basic configuration file of the table component, an updated configuration file of the table component is obtained;

[0011] According to the updated configuration file, call the table component to generate the target table.

[0012] 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 user 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.

[0013] In some embodiments, obtaining an updated configuration file of the table component based on the configuration information of the newly added function and the basic configuration file of the table component includes:

[0014] Determine the functional type of the new feature;

[0015] 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;

[0016] Generate an extended configuration file for new functions based on the extended configuration information and implementation configuration data;

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

[0018] In the above embodiment, based on the function type of the new function and the configuration information of the new function, the extended configuration information and implementation configuration data of the new function can be determined, and then based on the extended configuration information and 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.

[0019] In some embodiments, 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;

[0020] Based on the configuration information and function type of the new function, determine the extended configuration information and implementation configuration data of the new function, including:

[0021] When the newly added function type is a user operation mode, the implementation code of the newly added user operation mode is obtained according to the configuration information;

[0022] 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;

[0023] 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, the extended configuration information of the newly added user operation mode is generated.

[0024] In the above embodiment, when the function type of the new function is a user operation mode, the table generation component can generate implementation configuration data of the new user operation mode based on the implementation code of the new user operation mode, and generate extended configuration information of the new user operation based on the identification information of the new user operation mode and the preset storage path of the new user operation 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 user operation 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.

[0025] 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;

[0026] Based on the configuration information and function type of the new function, determine the extended configuration information and implementation configuration data of the new function, including:

[0027] When the newly added function type is a cell editing mode, the implementation code of the newly added cell editing mode is obtained according to the configuration information;

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

[0029] Generate extended configuration information of the new cell editing method according to the preset storage path of the new cell editing method in the table component and the editor name of the new cell editing method.

[0030] 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.

[0031] 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;

[0032] Based on the configuration information and function type of the new function, determine the extended configuration information and implementation configuration data of the new function, including:

[0033] When the newly added function type is cell rendering mode, the implementation code of the newly added cell rendering mode is obtained according to the configuration information;

[0034] Compile and package the implementation code of the new cell rendering method to obtain the implementation configuration data of the new cell rendering method;

[0035] Generate extended configuration information of the new cell rendering method according to the preset storage path of the new cell rendering method in the table component and the renderer name of the new cell rendering method.

[0036] 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.

[0037] 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;

[0038] Based on the configuration information and function type of the new function, determine the extended configuration information and implementation configuration data of the new function, including:

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

[0040] 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;

[0041] Generate extended configuration information of the newly added data validation type based on the preset storage path of the newly added data validation type in the table component and the data validation type name of the newly added data validation type, or the data validation logic class name.

[0042] 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, as well as 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 for implementing the data verification type, effectively improving the success rate of the new function configuration of the table component, and thereby improving the development efficiency of the table component.

[0043] 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;

[0044] Based on the configuration information and function type of the new function, determine the extended configuration information and implementation configuration data of the new function, including:

[0045] When the newly added function type is a data dictionary type, call the preset implementation interface to obtain the data dictionary item of the newly added data dictionary;

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

[0047] 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.

[0048] 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 based on the implementation code of the new data dictionary, and generate the extended configuration information of the new data dictionary based on 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 improving the success rate of the new function configuration of the table component, and thereby improving the development efficiency of the table component.

[0049] In some embodiments, based on the extended configuration information and the implementation configuration data, an extended configuration file for the newly added function is generated, including:

[0050] Determine the configuration file to be written to the table component for the new function;

[0051] Write the configuration data into the preset storage path of the new function in the table component;

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

[0053] 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.

[0054] In some embodiments, determining the configuration file to be written to the table component for the newly added function includes:

[0055] In the case where a configuration file to be written corresponding to the function type of the new function is set in the table component, the configuration file to be written to the table component of the new function is determined according to the function type of the new function.

[0056] In the above embodiment, by first determining whether a configuration file to be written corresponding to the function type to which the new function belongs is set in the table component, if there is a configuration file to be written corresponding to the function type to which the new function belongs, the configuration file to be written corresponding to the new function in the table component can be determined according to the function type of the new function, thereby improving the accuracy of subsequent writing of the new function.

[0057] In some embodiments, the method further comprises:

[0058] In the case that a unified configuration file to be written is set in the table component, the unified configuration file to be written is determined as the configuration file to be written in the table component for the new function.

[0059] In the above embodiment, when it is determined that a unified configuration file to be written is set in the table component, the unified configuration file to be written can be directly determined as the configuration file to be written in the table component for the new function, which effectively improves the accuracy of subsequent writing of the new function.

[0060] In some embodiments, calling a table component to generate a target table according to an updated configuration file includes:

[0061] Call the table component engine in the table component and read the configuration files corresponding to each table function from the update configuration file of the table component;

[0062] The table component engine parses each configuration file to generate a table model, and then generates a target table with the basic functions and new functions of the table component based on the table model.

[0063] In the above embodiment, the generation efficiency of the target table can be effectively improved by calling the table component engine to automatically read the configuration files corresponding to each table function to generate a table model, and generating the target table based on the table model.

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

[0065] The request response module 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;

[0066] The configuration file update module is used to 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;

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

[0068] In a third aspect, the present application further provides a computer device comprising 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.

[0069] In a fourth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.

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

[0071] 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

[0072] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on the drawings without inventive work. In the drawings:

[0073] FIG1 is a diagram illustrating an application environment of a table component processing method in some embodiments;

[0074] FIG2 is a flow chart of a method for processing a table component in some embodiments;

[0075] FIG3 is a flowchart illustrating steps of determining the function type of a new function from configuration information of the new function by a table generation system in some embodiments;

[0076] FIG4 is a flowchart illustrating steps for determining extended configuration information of a new function and implementing configuration data according to the configuration information and function type of the new function in some embodiments;

[0077] 5 is a flowchart illustrating steps for determining extended configuration information of a new function and implementing configuration data according to the configuration information and function type of the new function in some other embodiments;

[0078] 6 is a flowchart illustrating steps for determining extended configuration information of a new function and implementing configuration data according to the configuration information and function type of the new function in other embodiments;

[0079] 7 is a flowchart illustrating steps for determining extended configuration information of a new function and implementing configuration data according to the configuration information and function type of the new function in some other embodiments;

[0080] 8 is a flowchart illustrating steps for determining extended configuration information of a new function and implementing configuration data according to the configuration information and function type of the new function in other embodiments;

[0081] FIG9 is a flowchart illustrating steps for generating an extended configuration file for a newly added function based on extended configuration information and implementation configuration data in some embodiments;

[0082] FIG10 is a block diagram of the structure of a table generation system in some embodiments;

[0083] FIG11 is a flow chart of a method for processing a table component in some other embodiments;

[0084] FIG12 is a block diagram of a processing device for a table component in some embodiments;

[0085] FIG13 is a diagram illustrating the internal structure of a computer device in some embodiments. DETAILED DESCRIPTION

[0086] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0087] 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 data tables that meet the needs of power business scenarios based on the actual needs of power business data and power business scenarios for data display and editing.

[0088] Currently, when generating tables for displaying and editing data, the table components provided by the development environment are usually used. In order to use the table components provided by the development environment to generate tables that meet the needs of power business scenarios, developers need to write a large amount of code. Once the requirements change, developers need to modify and recompile the source code of the table components, resulting in low development efficiency of the table components and failure to meet the business development needs of the power system.

[0089] 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, there is no need to modify and compile the source code of the table component when adding functions to the table component. The stability of the original functions of the table component is maintained from the source. At the same time, it is also easy and flexible to configure the corresponding functions that meet user 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.

[0090] The table component processing method provided in the embodiments of the present application can be applied in the application environment shown in FIG1 . A table generation system 102 communicates with a development terminal 104 via a network, and a table component 106 is integrated into the table generation system 102. A data storage system can store data that the table generation system 102 needs to process. The data storage system can be integrated into the table generation system 102, or it can be located in the cloud or on another network server. When a developer needs to add functionality to the table component 106, they trigger a feature addition request for the table component 106 through the development terminal 104 and send the feature addition request to the table generation system 102. In response to the feature addition request for the table component 106, the table generation system 102 obtains configuration information for the new functionality of the table component 106. Based on the configuration information of the new functionality and the basic configuration file of the table component 106, it obtains an updated configuration file for the table component 106. The table generation system 106 is invoked to generate a target table based on the updated configuration file. The development terminal 104 is an application terminal used by developers and can be, but is not limited to, various personal computers, laptops, smartphones, tablet computers, etc. The table generation system 102 can be implemented using an independent server or a server cluster consisting of multiple servers.

[0091] In some embodiments, as shown in FIG2 , a method for processing a table component is provided. The method is described by taking the table generation system 102 in FIG1 as an example, and includes the following steps:

[0092] 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.

[0093] New features in the table component are the table functions required for the component to generate a target table that meets the requirements of actual application scenarios. Developers can determine these new features based on the data display and editing requirements of the table component's actual application scenarios. A feature request for the table component is a request message generated when adding a new feature to the table component. This request contains the configuration information for the new feature.

[0094] The configuration information for a new function is the functional configuration information required to implement the new function in the table component. The configuration information for a new function may include basic functional information of the new function, as well as configuration data information for implementing the new function. For example, the basic functional information of the new function may include information such as the function name, a brief description of the function effect, function identifier, and function type of the new function. The configuration data information for implementing the new function may include code data, function file data, etc. for implementing the new function. It is understood that the configuration information for the new function is pre-generated by the developer based on the scenario requirements information of the actual application scenario of the table component.

[0095] 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, developers generate a function addition request for the table component based on the configuration information of the new functions.

[0096] In some 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.

[0097] S204: 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.

[0098] The basic configuration file for a table component refers to the configuration file corresponding to the basic functions already included in the component when adding new functions. To reduce the number of configuration steps for a table component, table functions frequently used for 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 implement the corresponding basic function.

[0099] In some embodiments, after obtaining the configuration information of the newly added function, the table generation system obtains an updated configuration file of the table component based on the configuration information of the newly added function and the basic configuration file in the table component.

[0100] In some 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.

[0101] 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 within the table component.

[0102] S206: Call the table component to generate a target table according to the updated configuration file.

[0103] In some embodiments, after the table generation system obtains an updated configuration file for the table component based on the configuration information for the newly added functions and the basic configuration information for the table component, the updated configuration file includes the basic configuration file for implementing the basic functions of the table and the configuration information for implementing the newly added functions. The table generation system can call the table component and, based on the obtained updated configuration file, generate a target table that has both the basic functions of the table component and the newly added functions.

[0104] In some 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 file 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 newly added functions according to the table model.

[0105] In the processing method of the above-mentioned 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 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, 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.

[0106] 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.

[0107] In some embodiments, as shown in FIG3 , an updated configuration file of the table component is obtained based on the configuration information of the newly added function and the basic configuration file of the table component, including:

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

[0109] Among them, the table function has different function types depending on the 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 method, and the function type corresponding to the function used to provide different operation effects to users can be the user operation type, etc.

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

[0111] 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.

[0112] The "new function implementation configuration data" refers to the functional 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 a new function, it needs to obtain the corresponding table model based on the new function implementation configuration data, and then generate the target table.

[0113] The extended configuration information for a new feature is the functional configuration information required to complete the extension point configuration in the table component for the new feature. To fully add a new feature to the table component, you must not only include the implementation configuration data required to implement the new feature, but also declare the functional information of the new feature and the call interface information for calling the implementation configuration data in the table component to complete the extension point configuration. Therefore, the extended configuration information for a new feature includes both the functional information and the call interface information of the new feature.

[0114] In some embodiments, after determining the functional 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 functional type of the new function and the configuration information of the new function.

[0115] In some embodiments, after determining the function type of a new function, the table generation system determines a configuration information processing rule corresponding to the new function based on 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 implementation configuration data of the new function and extended configuration information of the new function.

[0116] In some of these 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.

[0117] 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.

[0118] In some embodiments, when the function type is a newly added function type, i.e., 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.

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

[0120] In some embodiments, after obtaining the extended configuration information and implementation configuration data for a new function, the table generation system may generate an extended configuration file for the new function based on the extended configuration information and the actual configuration data. It will be appreciated that the extended configuration file for the new function includes the extended configuration information required for complete extension point configuration, as well as the implementation configuration data for implementing the new function. In actual use, the table component may generate a target table that implements the corresponding new function based on the extended configuration file for the new function.

[0121] S308: Obtain 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.

[0122] In some embodiments, after obtaining the extended configuration file for the newly added functionality, the table generation system directly generates an updated configuration file for the table component based on the extended configuration file for the newly added functionality and the basic configuration file for the table component. The updated configuration file includes the extended configuration file for implementing the newly added functionality and the basic configuration file for implementing the basic functionality of the table. Subsequently, the table component can directly generate a target table that has both the basic functionality of the table component and the newly added functionality based on the updated configuration file.

[0123] In the above embodiment, based on the function type of the new function and the configuration information of the new function, the extended configuration information and implementation configuration data of the new function can be determined, and then based on the extended configuration information and 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.

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

[0125] In some embodiments, as shown in FIG4 , the newly added function type includes a user operation function, and the configuration information of the newly added function includes the implementation code of the newly added user operation method, the preset storage path in the table component, and the identification information of the newly added user operation method. Based on 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:

[0126] 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.

[0127] 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 perform editing operations on the generated target table based on their own needs, such as adding rows, deleting rows, copying rows, etc.

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

[0129] In some 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.

[0130] The implementation code for the newly added user operation method, i.e., the source file data for implementing the newly added user operation method, is pre-generated by the developer based on the functionality that the newly added user operation method can implement. It is understood that the developer can use any coding tool, such as Java, Python, etc., to generate the implementation code for the newly added user operation method.

[0131] In some embodiments, when the table generation system determines that the function type of the new function is a 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.

[0132] 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.

[0133] In some 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 developers 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 the executable file of the table component, that is, the implementation configuration data of the newly added user operation mode.

[0134] 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.

[0135] The preset storage path is the storage location for configuration data within the table component. The configuration data for newly added user operation methods must be stored within the table component so that the table component can readily respond to user operation instructions and implement the corresponding table functionality during actual use. It is understood that the preset storage path for newly added functions can be predetermined by the developer and written into the configuration information for the newly added function.

[0136] In some 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 identification information.

[0137] 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.

[0138] In the above embodiment, when the function type of the new function is a user operation mode, the table generation component can generate implementation configuration data of the new user operation mode based on the implementation code of the new user operation mode, and generate extended configuration information of the new user operation based on the identification information of the new user operation mode and the preset storage path of the new user operation 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 user operation 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.

[0139] In other examples, as shown in FIG5 , the newly added function type includes a cell editing method, and the configuration information of the newly added function includes the implementation code of the newly added cell editing method and the name of the editor of the newly added cell editing method. Based on 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:

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

[0141] 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, the specific filling and display methods can be determined by the table component interface display function.

[0142] 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:

[0143] 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. 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.

[0144] 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. Cell editing modes include but are not limited to text box editing mode, check box editing mode, drop-down box editing mode, physical port, etc. It is understandable 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 configuration information for a new cell editing mode based on the target cell editing mode, and add the target cell editing mode to the table component through the configuration information of the new cell editing mode.

[0145] The implementation code of the newly added cell editing method, i.e., the source file data for implementing the newly added cell editing method, is pre-generated by the developer based on the functions that the newly added cell editing method can implement.

[0146] In some embodiments, when the table generation system determines that the function type of the new function is a 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.

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

[0148] In some embodiments, after obtaining the implementation code for the newly added cell editing method, the table generation system needs to compile and package the implementation code to obtain the implementation configuration data for the newly added cell editing method. After obtaining the implementation code for the newly added cell editing method, the table generation system must 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 the table component's executable file, i.e., the implementation configuration data for the newly added cell editing method.

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

[0150] The preset storage path for the newly added cell editing method in the table component is where the configuration data for implementing the newly added cell editing method is stored in the table component. This configuration data must be stored in the table component so that the table component can respond to user commands and implement corresponding table functions during actual use. It is understood that the preset storage path for the newly added cell editing method can be pre-determined by the developer and written into the configuration information for the newly added cell editing method.

[0151] 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 name of the cell editor is the name of the editing mode that can be implemented in the cell.

[0152] In some 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.

[0153] In some of these 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.

[0154] 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.

[0155] In addition to the cell editing mode, in some embodiments, as shown in FIG6 , the newly added function type includes a cell rendering mode, and the configuration information of the newly added function includes the implementation code of the newly added cell rendering mode and the renderer name of the newly added cell rendering mode. Based on 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:

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

[0157] Among them, the cell rendering function refers to the 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. Through different rendering methods, the cell data can be described more vividly. It is understandable 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.

[0158] The implementation code of the newly added cell rendering method, i.e., 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 based on the functions that the newly added cell rendering method can achieve.

[0159] In some embodiments, when the table generation system determines that the function type of the new function is a 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.

[0160] 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.

[0161] In some embodiments, after obtaining the implementation code for the newly added cell rendering method, the table generation system needs to compile and package the implementation code to obtain the implementation configuration data for the newly added cell rendering method. After obtaining the implementation code for the newly added cell rendering method, the table generation system must 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 the table component's executable file, i.e., the implementation configuration data for the newly added cell rendering method.

[0162] 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.

[0163] The preset storage path for the newly added cell rendering method in the table component is where the implementation configuration data for the newly added cell rendering method is stored in the table component. The implementation configuration data for the newly added cell rendering method must be stored in the table component so that the table component can respond to user commands and implement corresponding table functions at any time during actual use. It is understood that the preset storage path for the newly added cell rendering method can be pre-determined by the developer and written into the configuration information for the newly added cell rendering method.

[0164] 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.

[0165] In some 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.

[0166] 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.

[0167] 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.

[0168] In some embodiments, as shown in FIG7 , the newly added function type includes a 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. Based on 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:

[0169] 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.

[0170] 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, Internet Protocol (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 integer data verification is performed on the data field filled in the cell. 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.

[0171] The implementation code for a new data validation type is the source file data generated based on the validation logic for that new data validation type. This code allows you to add validation logic for that new data validation type to the table component. The implementation code for a new data validation type is pre-generated by the developer based on the validation logic for that new data validation type.

[0172] In some 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.

[0173] 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.

[0174] In some embodiments, after obtaining the implementation code for the newly added data validation type, the table generation system needs to compile and package the implementation code to obtain the implementation configuration data for the newly added data validation type. After obtaining the implementation code for the newly added data validation type, the table generation system must first compile the implementation code, translate the implementation code into a binary format that the table component can recognize, and then package the compiled code file and link it to the table component to form the table component's executable file, i.e., the implementation configuration data for the newly added data validation type.

[0175] S706: Generate 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.

[0176] The preset storage path for the newly added data validation type in the table component is the storage location for the implementation configuration data of the newly added data validation type in the table component. The implementation configuration data of the newly added data validation type must be stored in the table component so that the table component can respond to user operation instructions at any time during actual use and implement the corresponding data validation function. It is understood that the preset storage path for the newly added data validation type can be predetermined by the developer and written into the configuration information of the newly added data validation type.

[0177] 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 integer verification logic.

[0178] In some embodiments, the table generation system obtains the preset storage path of the newly added data verification type in the table component, as well as the data verification type name or 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 data verification logic class name.

[0179] 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 based on 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.

[0180] 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, as well as 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 for implementing the data verification type, effectively improving the success rate of the new function configuration of the table component, and thereby improving the development efficiency of the table component.

[0181] In addition to the table function types for which implementation codes need to be obtained, in some embodiments, as shown in FIG8 , the newly added function types include data dictionary types, and the configuration information of the newly added function includes the data dictionary type name and data dictionary items of the newly added data dictionary. Based on 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:

[0182] 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.

[0183] Among them, the data dictionary is a dictionary tool used to standardize 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 accordingly to make the input data more accurate. It is understandable 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 the configuration information of the new data dictionary based on the actual application scenarios of the power system or the corresponding data dictionary items, and add the data dictionary of the actual application scenario to the table component through the configuration information of the new data dictionary.

[0184] A data dictionary item is the smallest unit of data. Several data items form a data structure. The data dictionary describes the logical content of data flows and data storage by defining data items and data structures. As you can understand, a data dictionary item contains the names of each sub-element and its corresponding value.

[0185] In some embodiments, when the table generation system determines that the function type of the newly added function is a data dictionary type based on the configuration information of the newly added function, it calls a preset implementation interface to obtain the data dictionary items of the newly added data dictionary. It is understood that the preset implementation interface is a pre-set interface for obtaining directly usable data dictionary items. By obtaining the data dictionary items 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.

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

[0187] In some embodiments, because the data dictionary is different from the specific operational functions, the addition of the data dictionary does not rely on the code files written by the developer, but is implemented through data dictionary items. Therefore, after the data dictionary items of the data dictionary have been obtained using the preset implementation interface, that is, after the names of the sub-elements 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 items can be determined as the actual configuration data of the newly added data dictionary type without the need for compilation and packaging.

[0188] S806 , generating 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.

[0189] The preset storage path for the newly added data dictionary in the table component is the storage location for the implementation configuration data of the newly added data dictionary in the table component. The implementation configuration data of the newly added data dictionary must be stored in the table component so that the table component can respond to user operation instructions at any time and obtain the corresponding data dictionary for operation and processing. It is understood that the preset storage path for the newly added data dictionary can be pre-determined by the developer and written into the configuration information of the newly added data dictionary.

[0190] In some 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.

[0191] 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.

[0192] 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 based on the implementation code of the new data dictionary, and generate the extended configuration information of the new data dictionary based on 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 improving the success rate of the new function configuration of the table component, and thereby improving the development efficiency of the table component.

[0193] The above embodiments illustrate how to determine the implementation configuration data and extended configuration information corresponding to a new function based on the new function type and configuration information of the new function using several different new function types. It is understood that in addition to the above-mentioned new function types, the table generation system can add corresponding new functions based on actual usage scenarios and requirements.

[0194] 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.

[0195] Based on this, in some embodiments, as shown in FIG9 , based on the extended configuration information and the implementation configuration data, an extended configuration file for the newly added function is generated, including:

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

[0197] 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 table component adds corresponding functions later, 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.

[0198] In some embodiments, after obtaining the extended configuration information and implementation configuration data of the newly added function, the table generation system determines a configuration file to be written into the newly added function.

[0199] In some 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.

[0200] In some 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.

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

[0202] In some 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.

[0203] 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.

[0204] In some 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.

[0205] 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.

[0206] In some embodiments, a method for processing a table component is provided, wherein the system architecture of the table generation system is shown in FIG10 , wherein the system architecture is divided into three layers, including an interface layer, a table component engine layer, and a configuration layer, wherein the configuration layer includes table basic configuration and extension point configuration.

[0207] As shown in FIG11 , the processing method of the table component specifically includes the following steps:

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

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

[0210] 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.

[0211] S1104: Acquire the implementation code, preset storage path, and identification information of the newly added user operation mode according to the configuration information.

[0212] 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.

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

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

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

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

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

[0218] 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.

[0219] S1112: Generate extended configuration information of the newly added cell rendering mode according to the preset storage path and renderer name.

[0220] 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.

[0221] 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.

[0222] 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.

[0223] 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.

[0224] S1117: Generate extended configuration information of the newly added data dictionary according to the preset storage path and data dictionary type name.

[0225] 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.

[0226] 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.

[0227] S1120 , 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.

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

[0229] 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 based on the basic configuration file and the extended configuration file, generates the target table interface based on the table model, and displays the target table in the interface layer.

[0230] In this embodiment, by decoupling the configuration information of the newly added functions from the basic configuration file of the table component, it is possible to easily and flexibly configure the corresponding functions in the table component to meet the user's needs, so that the table component not only has rich and reusable interface display and editing functions, which can cover most of the power storage system host computer software development requirements, 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, by implementing new functions of the table component through expansion, the stability of the original functions is maintained from the source, and 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.

[0231] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed 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 portion of steps or stages in other steps.

[0232] Based on the same inventive concept, the embodiments of the present application also provide a table component processing device for implementing the table component processing method involved above. The implementation solution provided by this device is similar to the implementation solution described in the above method. Therefore, the specific limitations of the embodiments of the table component processing device provided below can be found in the above-mentioned limitations of the table component processing method, and will not be repeated here.

[0233] In some embodiments, as shown in FIG12 , 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:

[0234] 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.

[0235] 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.

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

[0237] 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 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.

[0238] 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 of the new function based on the extended configuration information and the implementation configuration data; obtain an updated configuration file of the table component based on the extended configuration file of the new function and the basic configuration file of the table component.

[0239] 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.

[0240] The configuration file update module is also used to: when the new function type is user operation mode, obtain the implementation code of the new user operation mode according to the configuration information; compile and package the implementation code of the new user operation mode to obtain the implementation configuration data of the new user operation mode; generate 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.

[0241] 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.

[0242] The configuration file update module is also used to: when the new function type is cell editing mode, obtain the implementation code of the new cell editing mode according to the configuration information; compile and package the implementation code of the new cell editing mode to obtain the implementation configuration data of the new cell editing mode; generate 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.

[0243] 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.

[0244] The configuration file update module is also used to: when the new function type is a cell rendering method, obtain the implementation code of the new cell rendering method according to the configuration information; compile and package the implementation code of the new cell rendering method to obtain the implementation configuration data of the new cell rendering method; generate the extended configuration information of the new cell rendering method according to the preset storage path of the new cell rendering method in the table component and the renderer name of the new cell rendering method.

[0245] In some embodiments, the newly added function type includes a 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.

[0246] The configuration file update module is also used to: when the new function type is a data verification type, obtain the implementation code of the new data verification type according to the configuration information; compile and package the implementation code of the new data verification type to obtain the implementation configuration data of the new data verification type; generate extended configuration information of the new data verification type according to the preset storage path of the new data verification type in the table component, and the data verification type name of the new data verification type, or the data verification logic class name.

[0247] 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 data dictionary items of the newly added data dictionary.

[0248] 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; generate the 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.

[0249] 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.

[0250] Each module in the processing device of the table component can be implemented in whole or in part by software, hardware, or 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 the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0251] In some embodiments, a computer device is provided, which may be a table generation system, and its internal structure diagram may be as shown in FIG13 . The computer device includes a processor, a memory, and a network interface connected via a system bus. 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 via a network connection. When the computer program is executed by the processor, a method for processing a table component is implemented.

[0252] Those skilled in the art will understand that the structure shown in FIG13 is merely a block diagram of a portion 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 shown in the figure, or combine certain components, or have a different arrangement of components.

[0253] In some embodiments, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the method steps in the specific embodiment of the above-mentioned table component processing method when executing the computer program.

[0254] 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.

[0255] 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.

[0256] 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.

[0257] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented 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 memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of 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 the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.

[0258] The technical features of the above embodiments can 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.

[0259] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for processing a table component, wherein: 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, wherein: 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, wherein: 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 or 3, wherein: 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 any one of claims 2 to 4, wherein: 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 any one of claims 2 to 5, wherein: 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 any one of claims 2 to 6, wherein: 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, wherein: 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. The method according to claim 8, wherein: The step of determining the configuration file to be written in the table component for the newly added function includes: In the case where a configuration file to be written corresponding to the function type to which the new function belongs is set in the table component, the configuration file to be written of the new function in the table component is determined according to the function type of the new function.

10. The method according to claim 8 or 9, wherein: The method further comprises: In the case that a unified configuration file to be written is set in the table component, the unified configuration file to be written is determined as the configuration file to be written in the table component for the newly added function.

11. The method according to any one of claims 1 to 10, wherein: The step of calling the table component to generate a target table according to the update configuration file includes: Calling a table component engine in the table component to read configuration files corresponding to each of the table functions from an update configuration file of the table component; The table component engine parses each of the configuration files to generate a table model, and generates a target table with basic functions and new functions of the table component based on the table model.

12. A processing device for a table component, the device comprising: 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.

13. The device according to claim 11, wherein: The configuration file updating module is also used for: 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.

14. The device according to claim 13, wherein: 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 configuration file updating module is also used for: 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.

15. The device according to claim 13 or 14, wherein: 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 configuration file updating module is also used for: 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.

16. The device according to any one of claims 13 to 15, wherein: 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 configuration file updating module is also used for: 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.

17. The device according to any one of claims 13 to 16, wherein: 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 configuration file updating module is also used for: 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.

18. The device according to any one of claims 13 to 17, wherein: 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 configuration file updating module is also used for: 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.

19. The device according to any one of claims 14 to 18, wherein: The configuration file updating module is also used for: 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.

20. The device according to claim 19, wherein The subunit for determining the configuration file to be written is specifically used for: when a configuration file to be written corresponding to the function type to which the new function belongs is set in the table component, determining the configuration file to be written of the new function in the table component according to the function type of the new function.

21. The device according to claim 19 or 20, wherein: The configuration file to be written determining subunit is specifically used for: when a unified configuration file to be written is set in the table component, determining the unified configuration file to be written as the configuration file to be written of the new function in the table component.

22. The device according to any one of claims 12 to 21, wherein: The table generation module includes: A configuration file reading unit, used for calling the table component engine in the table component, and reading the configuration files corresponding to each of the table functions from the update configuration file of the table component; The target table generation unit is used to parse each of the configuration files through the table component engine to generate a table A model is used to generate a target table with basic functions and new functions of the table component according to the table model.

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

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

25. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.

Citation Information

Patent Citations

  • Webpage table customization method and device

    CN113095053A

  • Table modification method and device, nonvolatile storage medium and processor

    CN113095055A

  • Webpage table generation method and device and computer readable storage medium

    CN114327434A

  • Method and device for automatically generating Web interface

    CN116483356A

  • Table implementation method and system capable of dynamically configuring, displaying and searching

    CN116627986A

Cited By

  • Configuration hot loading method and device, computer equipment and storage medium

    CN120915659A