Component configuration method for power grid project quality acceptance form

Through standardized component type selection and automatic generation of initial components, and perform attribute configuration and data correlation processing, the problem of low component configuration efficiency in power grid engineering quality acceptance form in traditional technology is solved, and more efficient and accurate component configuration is achieved.

CN119883264APending Publication Date: 2025-04-25CHINA SOUTHERN POWER GRID BIG DATA SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510117900.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In traditional technology, the component configuration efficiency of the power grid engineering quality acceptance form is low and requires a lot of manual processing time.

Method used

Provide a component configuration method for the grid engineering quality acceptance form, which can improve component configuration efficiency by obtaining component type selection information, generating initial components, performing attribute configuration processing, and establishing data association relationships between components.

Benefits of technology

Through standardized component type selection and automatic generation of initial components, the tedious operation of manually creating components is reduced, the efficiency of component creation is improved, and the accuracy and efficiency of form component configuration is improved by accurately defining component functions and establishing data associations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883264A_ABST
    Figure CN119883264A_ABST
Patent Text Reader

Abstract

The invention relates to a component configuration method and device for a power grid project quality acceptance form, computer equipment, a computer readable storage medium and a computer program product, and can be applied to the technical field of computers. The method comprises the following steps: acquiring component type selection information of a form; the component type comprises at least one of a data input component type, a numerical statistics component type and a data selection component type; according to the component type, generating an initial component of the form; according to the component attribute configuration information for the initial component, performing attribute configuration processing on the initial component to obtain a basic component of the form; the component attribute configuration information comprises at least one of data type configuration information, numerical value interval configuration information and data verification configuration information; and according to a data association relationship between the basic component and other components in the form, performing data association processing on the basic component and the other components to obtain a target component of the form. By adopting the method, the component configuration efficiency of the form can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a component configuration method, device, computer equipment, computer-readable storage medium and computer program product of a power grid project quality acceptance form. Background Art

[0002] With the digital transformation of the quality acceptance of power grid infrastructure projects, higher requirements are put forward for acceptance forms. In order to improve the efficiency and standardization of acceptance, it is necessary to establish a flexible and changeable form design system. Therefore, how to efficiently configure the components of the form has become an important research direction.

[0003] Traditional technology usually configures form components by manually writing codes; however, configuring form components in this way requires a lot of manual processing time, resulting in low efficiency of form component configuration. Summary of the invention

[0004] Based on this, it is necessary to provide a component configuration method, device, computer equipment, computer-readable storage medium and computer program product for a power grid project quality acceptance form that can improve the component configuration efficiency of the form in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for configuring components of a power grid project quality acceptance form. The method comprises:

[0006] Acquire component type selection information of the form; the component type selection information includes component type; the component type includes at least one of a data input component type, a numerical statistics component type and a data selection component type;

[0007] According to the component type, generating an initial component of the form;

[0008] According to the component attribute configuration information for the initial component, attribute configuration processing is performed on the initial component to obtain the basic component of the form; the component attribute configuration information includes at least one of data type configuration information, value interval configuration information and data validation configuration information;

[0009] According to the data association relationship between the basic component and other components in the form, data association processing is performed on the basic component and the other components to obtain the target component of the form; the other components represent the components in the form except the basic component.

[0010] In one embodiment, generating the initial component of the form according to the component type includes:

[0011] In the case where the component type is the data input component type, generating a data input component of the form as the initial component;

[0012] In the case where the component type is the numerical statistics component type, generating a numerical statistics component of the form as the initial component;

[0013] In case the component type is the data selection component type, a data selection component of the form is generated as the initial component.

[0014] In one embodiment, performing attribute configuration processing on the initial component according to the component attribute configuration information for the initial component to obtain the basic component of the form includes:

[0015] Determining the input data type of the initial component according to the data type configuration information in the component attribute configuration information;

[0016] Determining the input value interval of the initial component according to the value interval configuration information in the component attribute configuration information;

[0017] Determining a data verification condition of the initial component according to the data verification configuration information in the component attribute configuration information;

[0018] According to the input data type, the input numerical range and the data verification condition, attribute configuration processing is performed on the initial component to obtain the basic component.

[0019] In one embodiment, performing data association processing on the basic component and the other components in the form according to the data association relationship between the basic component and the other components to obtain the target component of the form includes:

[0020] According to the data association relationship, identifying, from the other components, an associated component that has a data association with the basic component;

[0021] Data association processing is performed on the basic component and the associated component to obtain the target component.

[0022] In one embodiment, before obtaining the component type selection information of the form, the method further includes:

[0023] Obtain business data for power grid project quality acceptance;

[0024] Determine the data type information corresponding to the business data of the power grid project quality acceptance;

[0025] The component type is determined according to the data type information.

[0026] In one embodiment, obtaining component type selection information of the form includes:

[0027] receiving a component type selection instruction for the form;

[0028] According to the component type selection instruction, the component type is selected from the preset component types of the form;

[0029] The component type selection information is generated according to the component type.

[0030] In a second aspect, the present application also provides a component configuration device for a power grid project quality acceptance form. The device includes:

[0031] An information acquisition module, used to acquire component type selection information of a form; the component type selection information includes a component type; the component type includes at least one of a data input component type, a numerical statistics component type, and a data selection component type;

[0032] A component generation module, used to generate an initial component of the form according to the component type;

[0033] A component processing module, configured to perform attribute configuration processing on the initial component according to component attribute configuration information for the initial component, so as to obtain a basic component of the form; the component attribute configuration information includes at least one of data type configuration information, value interval configuration information and data validation configuration information;

[0034] A component association module is used to perform data association processing on the basic component and other components in the form according to the data association relationship between the basic component and other components in the form to obtain the target component of the form; the other components represent the components in the form except the basic component.

[0035] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0036] Acquire component type selection information of the form; the component type selection information includes component type; the component type includes at least one of a data input component type, a numerical statistics component type and a data selection component type;

[0037] According to the component type, generating an initial component of the form;

[0038] According to the component attribute configuration information for the initial component, attribute configuration processing is performed on the initial component to obtain the basic component of the form; the component attribute configuration information includes at least one of data type configuration information, value interval configuration information and data validation configuration information;

[0039] According to the data association relationship between the basic component and other components in the form, data association processing is performed on the basic component and the other components to obtain the target component of the form; the other components represent the components in the form except the basic component.

[0040] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0041] Acquire component type selection information of the form; the component type selection information includes component type; the component type includes at least one of a data input component type, a numerical statistics component type and a data selection component type;

[0042] According to the component type, generating an initial component of the form;

[0043] According to the component attribute configuration information for the initial component, attribute configuration processing is performed on the initial component to obtain the basic component of the form; the component attribute configuration information includes at least one of data type configuration information, value interval configuration information and data validation configuration information;

[0044] According to the data association relationship between the basic component and other components in the form, data association processing is performed on the basic component and the other components to obtain the target component of the form; the other components represent the components in the form except the basic component.

[0045] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0046] Acquire component type selection information of the form; the component type selection information includes component type; the component type includes at least one of a data input component type, a numerical statistics component type and a data selection component type;

[0047] According to the component type, generating an initial component of the form;

[0048] According to the component attribute configuration information for the initial component, attribute configuration processing is performed on the initial component to obtain the basic component of the form; the component attribute configuration information includes at least one of data type configuration information, value interval configuration information and data validation configuration information;

[0049] According to the data association relationship between the basic component and other components in the form, data association processing is performed on the basic component and the other components to obtain the target component of the form; the other components represent the components in the form except the basic component.

[0050] The component configuration method, device, computer equipment, computer-readable storage medium and computer program product of the above-mentioned power grid project quality acceptance form obtain component type selection information of the form; the component type selection information includes component type; the component type includes at least one of data input component type, numerical statistics component type and data selection component type; according to the component type, the initial component of the form is generated; according to the component attribute configuration information for the initial component, the initial component is attribute configured to obtain the basic component of the form; the component attribute configuration information includes at least one of data type configuration information, numerical interval configuration information and data verification configuration information; according to the data association relationship between the basic component and other components in the form, the basic component and the other components are data associated to obtain the target component of the form; the other components represent the components in the form other than the basic component. This solution achieves standardized selection of component types by presetting component types (including data input component types, numerical statistics component types, and data selection component types), and avoids the tedious operation of manually creating components by automatically generating initial components, which is conducive to improving the efficiency of component creation; it achieves precise definition of component functions through component property configuration (including data type configuration, numerical interval configuration, and data validation configuration), and realizes interoperability of component data by establishing data association relationships between components, which is conducive to improving the accuracy of component configuration of the form and improving the efficiency of component configuration of the form. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0052] Figure 1 A schematic diagram of a flow chart of a component configuration method of a power grid project quality acceptance form in one embodiment;

[0053] Figure 2 A flowchart of steps for generating an initial component in one embodiment;

[0054] Figure 3 A schematic flow chart of the steps of performing attribute configuration processing on an initial component in one embodiment;

[0055] Figure 4 A structural block diagram of a component configuration device of a power grid project quality acceptance form in one embodiment;

[0056] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

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

[0058] 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, and the collection, use and processing of relevant data must comply with relevant regulations.

[0059] In an exemplary embodiment, Figure 1 As shown, a component configuration method for a power grid project quality acceptance form is provided. This embodiment uses the method applied to a terminal as an example for illustration; it can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be but is not limited to various personal computers, laptops, smart phones, tablet computers, etc.; the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. In this embodiment, the method includes the following steps:

[0060] Step S101, obtaining component type selection information of the form; the component type selection information includes component type; the component type includes at least one of a data input component type, a numerical statistics component type and a data selection component type.

[0061] Step S102: Generate an initial component of the form according to the component type.

[0062] Step S103, performing attribute configuration processing on the initial component according to the component attribute configuration information for the initial component to obtain the basic component of the form; the component attribute configuration information includes at least one of data type configuration information, value interval configuration information and data validation configuration information.

[0063] Step S104, according to the data association relationship between the basic component and other components in the form, data association processing is performed on the basic component and other components to obtain the target component of the form; other components refer to components in the form except the basic component.

[0064] Among them, the power grid project quality acceptance form can be a digital form used for the quality acceptance of power grid infrastructure projects.

[0065] The component type selection information may be relevant information of the form component type selected by the user, for example, it may be selection information of a single-line entry component, a counter component, or a selection component.

[0066] Among them, the data input component type can be a component type used to input data, for example, it can be a single-line entry component used to input short text content such as numbers and dates.

[0067] The numerical statistics component type may be a component type used for counting numerical values, for example, a counter component used for recording the number of clicks of an operation or event.

[0068] The data selection component type may be a component type used to select data, for example, a single-select component (for example, used to select one of two options, qualified and unqualified) or a multiple-select component.

[0069] The initial component may be a component that is initially generated according to the component type and has no configured attributes, for example, it may be a blank single-line entry component or a counter component that has just been created.

[0070] The component attribute configuration information may be configuration parameters for setting specific attributes of the component, for example, parameters for setting data types, value ranges, and verification rules.

[0071] The data type configuration information may be information for setting the data type received by the component, for example, configuration information such as text type and numeric type.

[0072] The value interval configuration information may be information for setting a component value range, for example, it may be count upper limit setting information for a counter component.

[0073] The data validation configuration information may be information for setting component data validation rules, such as date format validation, number format validation, and other rule information.

[0074] The basic component may be a component that has completed attribute configuration, for example, a component that has set a data type, a value range, and a verification rule.

[0075] The data association relationship may be a data interaction relationship between different components in a form, for example, a data transfer, linkage, etc. relationship between components.

[0076] The target component may be a final component after data association processing is completed, for example, a component that has established data associations with other components, for example, a basic component after data associations with other components have been established.

[0077] Optionally, the terminal receives component type selection information of a form input by a user through a graphical interface, wherein the component type selection information of the form includes a data input component type, a numerical statistics component type, and a data selection component type. The terminal generates an initial component of the form according to the component type selection information of the form, and assigns a unique identifier to the initial component of the form. Then, the terminal receives component attribute configuration information for the initial component of the form input by the user, wherein the component attribute configuration information includes data type configuration information, numerical interval configuration information, and data validation configuration information. The terminal performs attribute configuration processing on the initial component of the form according to the component attribute configuration information to obtain the basic component of the form. Next, the terminal establishes a data association relationship between the basic component of the form and other components in the form according to the unique identifier of the basic component of the form, performs data association processing on the basic component of the form and other components in the form, and obtains the target component of the form.

[0078] In the component configuration method of the above-mentioned power grid project quality acceptance form, component type selection information of the form is obtained; the component type selection information includes component type; the component type includes at least one of data input component type, numerical statistics component type and data selection component type; according to the component type, the initial component of the form is generated; according to the component attribute configuration information for the initial component, the initial component is attribute configured to obtain the basic component of the form; the component attribute configuration information includes at least one of data type configuration information, numerical interval configuration information and data verification configuration information; according to the data association relationship between the basic component and other components in the form, the basic component and other components are data associated to obtain the target component of the form; other components represent components in the form other than the basic component. This solution achieves standardized selection of component types by presetting component types (including data input component types, numerical statistics component types, and data selection component types), and avoids the tedious operation of manually creating components by automatically generating initial components, which is conducive to improving the efficiency of component creation; it achieves precise definition of component functions through component property configuration (including data type configuration, numerical interval configuration, and data validation configuration), and realizes interoperability of component data by establishing data association relationships between components, which is conducive to improving the accuracy of component configuration of the form and improving the efficiency of component configuration of the form.

[0079] In an exemplary embodiment, referring to Figure 2 , based on the component type, generate the initial components of the form, including the following:

[0080] Step S201, when the component type is a data input component type, generating a form data input component as an initial component;

[0081] Step S202, when the component type is a numerical statistics component type, generating a numerical statistics component of the form as an initial component;

[0082] Step S203, when the component type is a data selection component type, a data selection component of the form is generated as an initial component.

[0083] Among them, the data input component can be a component for inputting single-line text information, for example, it can be a single-line entry component for inputting short text content such as name, number, date, etc., and supports text editing operations such as copying, pasting, deleting, and moving the cursor.

[0084] Among them, the numerical statistics component can be a component used to record the number of operation or event clicks, for example, it can be a counter component used to count the number of qualified times of a certain detection item, the number of execution times of a certain operation, etc., and supports setting the initial value and the upper limit of the count.

[0085] The data selection component may be a component for selecting from preset options, for example, a radio component having two mutually exclusive options, qualified and unqualified, and after selection, other options are automatically unselected.

[0086] Optionally, after receiving the component type selected by the user through the graphical interface, the terminal generates a corresponding initial component according to the different component types: when the component type is a data input component type, the terminal generates a single-line entry component that supports text editing operations as the initial component of the form; when the component type is a numerical statistics component type, the terminal generates a counter component with a counting function as the initial component of the form; when the component type is a data selection component type, the terminal generates a selection component containing preset options as the initial component of the form.

[0087] For example, when the user selects the data input component type, the terminal generates a single-line entry component that supports text editing operations such as copying, pasting, deleting, and moving the cursor as the initial component of the form; when the user selects the numerical statistics component type, a counter component with an initial value of 0 and supporting the setting of an upper count limit is generated as the initial component of the form; when the user selects the data selection component type, a selection component containing two mutually exclusive options, qualified and unqualified, is generated as the initial component of the form. After selecting one of the options, the other option is automatically unselected.

[0088] The technical solution provided in this embodiment, by establishing a clear correspondence between component types (data input component types, numerical statistics component types and data selection component types) and corresponding initial components (data input components, numerical statistics components and data selection components), is conducive to standardization of the component generation process, avoids mismatching between component types and initial components, and is conducive to improving the accuracy of initial component generation.

[0089] In an exemplary embodiment, referring to Figure 3 , according to the component attribute configuration information for the initial component, the attribute configuration processing is performed on the initial component to obtain the basic components of the form, which specifically include the following contents:

[0090] Step S301, determining the input data type of the initial component according to the data type configuration information in the component attribute configuration information;

[0091] Step S302, determining the input value interval of the initial component according to the value interval configuration information in the component attribute configuration information;

[0092] Step S303, determining the data verification condition of the initial component according to the data verification configuration information in the component attribute configuration information;

[0093] Step S304, performing attribute configuration processing on the initial component according to the input data type, input value range and data verification condition to obtain the basic component.

[0094] The input data type may be the type of data received by the component, for example, a text type (used to input a name, number, etc.), a date type (used to input a date), or a number type (used to input a count value).

[0095] The input value interval may be the range of values ​​allowed to be input by the component, for example, the upper limit value of a counter component (used to limit the maximum value of the count) or the date range of a date component (used to limit the range of date selection).

[0096] Among them, the data validation condition can be a rule used to verify whether the input data meets the requirements, such as date format validation (verifying whether the format of the input date meets the preset date format), number format validation (verifying whether the input is a valid number) or required field validation (verifying whether the data has been entered).

[0097] Optionally, the terminal first receives component property configuration information input by the user through a graphical interface, and determines the input data type of the initial component according to the data type configuration information in the component property configuration information, including text type, date type or number type; then, according to the value interval configuration information in the component property configuration information, determines the input value interval of the initial component, including the count upper limit value of the counter component or the date range of the date component; then, according to the data validation configuration information in the component property configuration information, determines the data validation condition of the initial component, including date format validation, number format validation or required item validation; finally, the terminal performs property configuration processing on the initial component according to the determined input data type, input value interval and data validation condition to obtain the basic component of the form.

[0098] The technical solution provided in this embodiment, by performing triple attribute configuration processing of data type configuration, value interval configuration and data validation configuration on the initial component, is conducive to achieving standardization of component attribute configuration and avoiding arbitrariness and uncertainty in the attribute configuration process; by processing the input data type, input value interval and data validation condition as unified configuration parameters, it is conducive to ensuring the integrity of component attribute configuration, thereby facilitating improving the configuration accuracy of the form component.

[0099] In an exemplary embodiment, according to the data association relationship between the basic component and other components in the form, data association processing is performed on the basic component and other components to obtain the target component of the form, which specifically includes the following contents: according to the data association relationship, the associated component that has data association with the basic component is identified from other components; the basic component and the associated component are data associated to obtain the target component.

[0100] The data association relationship may be the data interaction and dependency relationship between different components in the form.

[0101] Among them, the associated components can be other components that have data interaction or data dependence with the basic components, for example, they can be verification components that need to use the input values ​​of the basic components for data verification, or statistical components that need to perform statistical calculations based on the values ​​of the basic components.

[0102] Among them, the target component can be a component with complete functions after data association processing, for example, it can be an input component that not only includes data input function but also establishes data verification association with verification component, or it can be a counter component that not only includes counting function but also establishes data statistical association with statistical component.

[0103] Optionally, the terminal first traverses and searches among other components in the form according to the data association relationship between the basic component and other components in the form by using the unique identifier of the basic component to identify the associated components that have data interaction or data dependency with the basic component; then the terminal establishes a data association mapping between the basic component and the associated components, binds the output data of the basic component with the input parameters of the associated component, or associates the processing results of the associated component with the display content of the basic component, and finally obtains the target component with complete data interaction function.

[0104] For example, when the terminal processes a data input component (as a basic component), it first identifies the verification component (as an associated component) that needs to use the component's input value for data verification through the data input component's unique identifier; then the terminal establishes an associated mapping between the input value of the data input component and the verification rule of the verification component, so that after the user enters data in the data input component, the verification component can automatically verify the format of the input data, and finally obtains a target component with dual input and verification functions.

[0105] The technical solution provided in this embodiment is conducive to achieving accurate association and data interaction between form components by identifying the data association relationship between the basic component and other components in the form, and identifying the associated components with data association from other components; by performing data association processing on the basic component and the associated component, it is conducive to establishing data dependency and interaction mechanism between components; thereby, it is conducive to ensuring the accuracy of data association and data interaction between form components.

[0106] In an exemplary embodiment, before obtaining the component type selection information of the form, it also includes the following contents: obtaining the business data of the power grid project quality acceptance; determining the data type information corresponding to the business data of the power grid project quality acceptance; and determining the component type according to the data type information.

[0107] Among them, the business data of power grid project quality acceptance can be various types of information that need to be collected, recorded and processed during the power grid project quality acceptance process, such as project name, acceptance order number, acceptance result (qualified / unqualified), number of qualified times of test items and other data related to the power grid project quality acceptance.

[0108] Among them, the data type information can be a type identifier used to describe the attribute characteristics of business data, for example, it can be a data type identifier of text type (used to describe the project name, acceptance form number, etc.), numeric type (used to describe the number of qualified times of the inspection item, etc.) or selection type (used to describe the acceptance results, etc.).

[0109] Optionally, the terminal first obtains business data of the power grid project quality acceptance from the power grid project quality acceptance system, including data such as project name, acceptance order number, number of qualified times of inspection items, acceptance results, etc.; then the terminal analyzes the characteristics of each data according to the obtained business data of the power grid project quality acceptance, and determines the data type information corresponding to these business data, including text type, numeric type or selection type; finally, the terminal selects a suitable component type for each type of data according to the determined data type information, such as selecting a single-line entry component for text type data, selecting a counter component for numeric type data, and selecting a selection type component for selection type data.

[0110] The technical solution provided in this embodiment is conducive to automatic matching of business data with component types by first obtaining the business data of the quality acceptance of the power grid project and determining its corresponding data type information before obtaining the component type selection information, thereby avoiding errors caused by manual selection of component types; by automatically determining the component type according to the data type information, it is conducive to ensuring the accuracy of component type selection; thereby, it is conducive to improving the intelligence level and standardization of form design.

[0111] In an exemplary embodiment, obtaining component type selection information of a form specifically includes the following contents: receiving a component type selection instruction for the form; selecting a component type from preset component types of the form according to the component type selection instruction; and generating component type selection information according to the component type.

[0112] Among them, the component type selection instruction can be an instruction command issued by the user for the component type selection operation during the form design process. For example, it can be an operation instruction triggered when the user selects a single-line entry component, a counter component or a selection component by clicking, dragging, etc.

[0113] The preset component type may be a set of selectable form component types predefined in the system, for example, a set of component types including a single-line entry component, a counter component, and a selection component.

[0114] The component type selection information may be information generated according to a component type selection instruction of a user and used to identify the selected component type.

[0115] Optionally, the terminal first displays a component type selection area on the form design interface. When receiving a component type selection instruction from the user for the form, the terminal parses the operation type and target location of the component type selection instruction; then the terminal selects a corresponding component type from the preset component types of the form (including single-line entry components, counter components, and selection components) according to the component type selection instruction; finally, the terminal generates component type selection information including component type identification, component location information, and component basic properties based on the selected component type.

[0116] The technical solution provided in this embodiment is conducive to achieving standardization of form component type selection by receiving component type selection instructions for the form and selecting a component type from preset component types; by generating component type selection information based on the selected component type, it is conducive to establishing a unified component type selection mechanism; thereby, it is conducive to improving the efficiency of the initial component configuration of the form.

[0117] The following is an application example to illustrate the component configuration method of the power grid project quality acceptance form provided by this application. This application example uses the method applied to the terminal as an example, and the main steps include:

[0118] In the first step, the terminal receives a component type selection instruction input by the user, and the component types include a single-line entry component, a counter component, and a selection component.

[0119] In the second step, the terminal generates a corresponding basic component instance according to the component type selection instruction and assigns a unique identifier to the basic component instance.

[0120] In the third step, the terminal receives the component attribute configuration parameters input by the user, and initializes the basic component instance according to the component attribute configuration parameters, wherein the component attribute configuration parameters include data type, value range and verification rule.

[0121] In the fourth step, the terminal establishes a data association relationship between components based on the unique identifier of the basic component instance to obtain the configured basic component.

[0122] Specifically:

[0123] About basic component types:

[0124] Provide a text input box to facilitate users to enter single-line text information, such as names, numbers, dates and other short text contents. Support text input operations to ensure the accuracy and validity of the input content.

[0125] It is used to record the number of clicks on a certain operation or event. It can be applied to voting, counting and other aspects in business scenarios such as quality acceptance of power grid infrastructure projects.

[0126] There are two mutually exclusive options: qualified and unqualified, and the user can only choose one.

[0127] About component property configuration:

[0128] The initial value of the counter can be set to 0 or set according to actual conditions.

[0129] You can set a count upper limit based on business needs to prevent count anomalies.

[0130] After selection, other options are automatically unchecked to ensure the certainty of the results.

[0131] 1. For single-line entry basic components:

[0132] Summary:

[0133] Provides a text input box to facilitate users to enter single-line text information, such as names, numbers, dates and other short text contents. It supports text input operations, ensures the accuracy and validity of the input content, and meets the basic needs for single-line text data collection in the form.

[0134] Difference Analysis:

[0135] Compared with the multi-line input component, the single-line input component focuses more on concise short text input and is suitable for scenarios where only one line of content needs to be entered, such as a person's name, number, etc. The size and style of its input box are more in line with the habit of short text input, reducing the possibility of user misoperation. At the same time, it is more efficient in data storage and processing because there is no need to process special characters such as line breaks in multi-line text.

[0136] Compared with some complex text editing boxes, the single-line input component is concise and clear, avoiding too many unnecessary function buttons and operation options, reducing the user's learning cost, and users can quickly get started with input operations. In the quality acceptance of power grid infrastructure projects, for the entry of some simple project names, acceptance order numbers and other information, the single-line input component can provide a fast and direct input method.

[0137] Business process:

[0138] The user finds the location of the single-line entry component in the form, clicks the component to give it focus, and prepares to enter data.

[0139] Text content is entered through the keyboard, and text editing operations are supported, such as copy, paste, delete, move the cursor (arrow keys), etc.

[0140] During the input process, the system displays the input content in real time, and the user can check and confirm it at any time. If a maximum length limit is set, when the input content reaches or exceeds the limit, the system will give a prompt message to prevent the user from continuing to input or allow the user to choose whether to truncate the input content (according to specific business rules).

[0141] After completing the input, the user can switch the focus by pressing a button or clicking other components, or directly submit the form. The system will perform format verification on the input content (if verification rules are configured), such as date format, number format, etc. After the verification passes, the data will be stored in the database field associated with the form.

[0142] 2. For the counter basic component:

[0143] Summary:

[0144] It is used to record the number of clicks on a certain operation or event. It can be applied to voting, counting and other aspects in business scenarios such as quality acceptance of power grid infrastructure projects. For example, it can count the number of qualified times of a certain inspection item, the number of execution times of a certain operation, etc., provide basic data support for business data analysis, and display accurate counting results in real time.

[0145] Difference Analysis:

[0146] Compared with other data recording methods, the counter is specially used for simple counting functions. The operation is simple and intuitive. Users do not need to manually enter the counting value. The counting operation can be completed by just clicking, which reduces the possibility of human error and improves the accuracy and efficiency of counting. In scenarios where the frequency of a certain event needs to be quickly counted, such as the number of repeated inspections of a certain construction link during the quality acceptance process, the counter can provide an instant and convenient counting method.

[0147] Compared with some complex statistical systems, this counter is more lightweight, focusing on basic counting functions, and is easy to integrate into the form system without adding too much system burden. At the same time, it can be associated with other components and data of the form, making it convenient to conduct comprehensive analysis of the counting results together with other related information, providing a more comprehensive data basis for business decision-making.

[0148] 3. For the radio-option basic component:

[0149] Summary:

[0150] Provide a single-select function for form content, so that users can only choose one answer or option from multiple options. This is suitable for situations where choices are made among a limited number of mutually exclusive options, such as selecting the project quality grade (qualified / unqualified), etc., to ensure that users make a clear and unique choice in the form, thereby improving the accuracy and consistency of the data.

[0151] Difference Analysis:

[0152] Compared with the multi-option component, the single-option component strictly limits users to only one option, avoiding data confusion caused by ambiguous choices or multiple choices. In the quality acceptance of power grid infrastructure projects, for some clear yes-no judgments or only choices, such as whether the acceptance result is passed or not, the single-option component can accurately convey the user's intention and make the data more certain.

[0153] Compared with simple drop-down box selection (which can also realize radio selection in some cases), radio options are presented in a more intuitive radio button group. Users can directly select without clicking the drop-down arrow to expand the list, which is more convenient to operate, especially in scenarios with a small number of options and high visibility requirements, which can improve the efficiency and experience of user selection. At the same time, the radio option component is easier to integrate with other components in form design and data processing, ensuring clear data logic of the entire form.

[0154] 4. For multi-option basic components:

[0155] Summary:

[0156] Allowing users to select multiple options in the form is suitable for situations where there are multiple possible choices that are not mutually exclusive, such as selecting multiple hobbies, projects involving multiple construction units, etc. It provides a flexible selection method to meet users' needs for simultaneous selection of multiple options in complex business scenarios, ensuring that the selected options can accurately reflect the user's intentions.

[0157] Difference Analysis:

[0158] Complementary to the single-option component, the multi-option component solves the problem of needing to select multiple items, broadens the user's range of choices, and is more adaptable to diverse business needs. In power grid infrastructure projects, for some situations involving multiple aspects or multiple participants, such as a project that may involve multiple construction teams or multiple construction technology options, the multi-option component can comprehensively record the user's selection information to avoid information omissions.

[0159] Compared with the simple text input method to list multiple options (which may lead to inconsistent formats, complex data processing and other issues), multiple options are clearly presented in the form of checkbox groups, and the user operation is simple and intuitive. Just click the corresponding checkbox to select or deselect. At the same time, the system can effectively manage the data of multiple options, including storing the combination of selected options, performing data validation (such as setting rules such as the minimum number of selected items and the maximum number of selected items), and associating data with other form components to ensure the accuracy and completeness of the data.

[0160] Business process:

[0161] When designing a form, add a multi-option component and add the option content one by one, such as various interests and hobbies, construction unit names, etc.

[0162] When users encounter multiple-choice components when filling out a form, they can click the checkboxes one by one to select or deselect them. The order of the options can be adjusted according to business needs to facilitate user viewing and operation. If the select all and deselect all functions are provided, users can quickly select or deselect all options by clicking the corresponding button (optional operation).

[0163] According to business rules, the system performs mandatory verification on multiple options (if set as mandatory), checking whether the number of options selected by the user meets the requirements of the minimum number of options and the maximum number of options. If not, a prompt message is given to require the user to reselect.

[0164] When the user submits a form, the system stores the multiple option values ​​selected by the user in a specific data structure (such as an array) in the database, which together with other data in the form constitutes a complete form record for subsequent data query, statistical analysis, and data interaction with other business systems. For example, when counting the distribution of construction units participating in a project, multiple option data can be easily obtained from the database for analysis.

[0165] 5. For the drop-down option basic component:

[0166] Summary:

[0167] Provides a drop-down list box where users can select an option from predefined enumeration content. The options in the drop-down list are specified by the user when designing the form. It is suitable for scenarios where users need to choose from a limited number of fixed options, such as selecting project types, acceptance criteria, etc. It provides users with a clear and standardized selection method, avoids users from entering incorrect or non-standard content, and improves data accuracy and consistency.

[0168] Difference Analysis:

[0169] Compared with manual text input, the drop-down box option reduces the possibility of user input errors by providing a predefined list of options, ensuring that the content selected by the user meets business specifications. In the quality acceptance of power grid infrastructure projects, for some standard acceptance clauses, project categories and other selections, the drop-down box can ensure the accuracy and uniformity of the selected content, facilitating subsequent data statistics and analysis.

[0170] Compared to radio button groups (which may take up a large screen space when there are many options), drop-down boxes can accommodate more options within a limited screen space, and only display the currently selected option in the initial state, saving page space and making the form layout more compact. At the same time, the drop-down box is easy to expand and collapse, and the user experience is good, especially for situations where there are many options but they do not change frequently, such as various acceptance specification options in the standard.

[0171] Business process:

[0172] During the form design phase, add a drop-down box option component and configure its option content, which can be enumeration values ​​obtained from the database or manually entered by the user.

[0173] The technical solution provided by this application example is conducive to the standardized configuration of basic components through preset component types (single-line entry components, counter components and selection components) and standardized attribute configuration parameters (data types, value ranges and verification rules); at the same time, by assigning unique identifiers to component instances and establishing data association relationships between components, it is conducive to ensuring the uniqueness and association of component data, thereby improving the efficiency and accuracy of the component configuration of the form.

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

[0175] Based on the same inventive concept, the embodiment of the present application also provides a component configuration device for a power grid project quality acceptance form for implementing the component configuration method of the power grid project quality acceptance form involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the component configuration device for one or more power grid project quality acceptance forms provided below can refer to the limitations of the component configuration method for the power grid project quality acceptance form above, and will not be repeated here.

[0176] In an exemplary embodiment, Figure 4 As shown, a component configuration device for a power grid project quality acceptance form is provided. The component configuration device 400 for the power grid project quality acceptance form may include:

[0177] The information acquisition module 401 is used to acquire component type selection information of the form; the component type selection information includes the component type; the component type includes at least one of a data input component type, a numerical statistics component type and a data selection component type;

[0178] The component generation module 402 is used to generate the initial component of the form according to the component type;

[0179] The component processing module 403 is used to perform attribute configuration processing on the initial component according to the component attribute configuration information for the initial component to obtain the basic component of the form; the component attribute configuration information includes at least one of data type configuration information, value interval configuration information and data validation configuration information;

[0180] The component association module 404 is used to perform data association processing on the basic component and other components in the form according to the data association relationship between the basic component and other components in the form to obtain the target component of the form; other components refer to the components in the form except the basic component.

[0181] In an exemplary embodiment, the component generation module 402 is also used to generate a data input component of a form as an initial component when the component type is a data input component type; to generate a numerical statistics component of a form as an initial component when the component type is a numerical statistics component type; and to generate a data selection component of a form as an initial component when the component type is a data selection component type.

[0182] In an exemplary embodiment, the component processing module 403 is also used to determine the input data type of the initial component according to the data type configuration information in the component attribute configuration information; determine the input numerical range of the initial component according to the numerical range configuration information in the component attribute configuration information; determine the data verification condition of the initial component according to the data verification configuration information in the component attribute configuration information; perform attribute configuration processing on the initial component according to the input data type, input numerical range and data verification condition to obtain a basic component.

[0183] In an exemplary embodiment, the component association module 404 is further used to identify associated components that have data association with the basic component from other components according to the data association relationship; perform data association processing on the basic component and the associated component to obtain the target component.

[0184] In an exemplary embodiment, the device 400 also includes: a type determination module, which is used to obtain business data of power grid project quality acceptance; determine the data type information corresponding to the business data of power grid project quality acceptance; and determine the component type according to the data type information.

[0185] In an exemplary embodiment, the information acquisition module 401 is also used to receive a component type selection instruction for a form; select a component type from preset component types of the form according to the component type selection instruction; and generate component type selection information according to the component type.

[0186] Each module in the component configuration device of the above-mentioned power grid project quality acceptance form can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0187] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 5As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a component configuration method of a power grid project quality acceptance form is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

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

[0189] In an exemplary embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0190] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0191] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

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

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

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

Claims

1. A component configuration method for a power grid project quality acceptance form, characterized in that: The method comprises: Acquire component type selection information of the form; the component type selection information includes component type; the component type includes at least one of a data input component type, a numerical statistics component type and a data selection component type; According to the component type, generating an initial component of the form; According to the component attribute configuration information for the initial component, attribute configuration processing is performed on the initial component to obtain the basic component of the form; the component attribute configuration information includes at least one of data type configuration information, value interval configuration information and data validation configuration information; According to the data association relationship between the basic component and other components in the form, data association processing is performed on the basic component and the other components to obtain the target component of the form; the other components represent the components in the form except the basic component.

2. The method according to claim 1, characterized in that Generating the initial component of the form according to the component type includes: In the case where the component type is the data input component type, generating a data input component of the form as the initial component; In the case where the component type is the numerical statistics component type, generating a numerical statistics component of the form as the initial component; In case the component type is the data selection component type, a data selection component of the form is generated as the initial component.

3. The method according to claim 1, characterized in that The step of performing attribute configuration processing on the initial component according to the component attribute configuration information for the initial component to obtain the basic component of the form includes: Determining the input data type of the initial component according to the data type configuration information in the component attribute configuration information; Determining the input value interval of the initial component according to the value interval configuration information in the component attribute configuration information; Determining a data verification condition of the initial component according to the data verification configuration information in the component attribute configuration information; According to the input data type, the input numerical range and the data verification condition, attribute configuration processing is performed on the initial component to obtain the basic component.

4. The method according to claim 1, characterized in that The step of performing data association processing on the basic component and the other components according to the data association relationship between the basic component and the other components in the form to obtain the target component of the form includes: According to the data association relationship, identifying, from the other components, an associated component that has a data association with the basic component; Data association processing is performed on the basic component and the associated component to obtain the target component.

5. The method according to claim 1, characterized in that: Before obtaining the component type selection information of the form, it also includes: Obtain business data for power grid project quality acceptance; Determine the data type information corresponding to the business data of the power grid project quality acceptance; The component type is determined according to the data type information.

6. The method according to any one of claims 1 to 5, characterized in that The obtaining of the component type selection information of the form includes: Receiving a component type selection instruction for the form; According to the component type selection instruction, the component type is selected from the preset component types of the form; The component type selection information is generated according to the component type.

7. A component configuration device for a power grid project quality acceptance form, characterized in that: The device comprises: An information acquisition module, used to acquire component type selection information of a form; the component type selection information includes a component type; the component type includes at least one of a data input component type, a numerical statistics component type, and a data selection component type; A component generation module, used to generate an initial component of the form according to the component type; A component processing module, configured to perform attribute configuration processing on the initial component according to component attribute configuration information for the initial component, so as to obtain a basic component of the form; the component attribute configuration information includes at least one of data type configuration information, value interval configuration information and data validation configuration information; A component association module is used to perform data association processing on the basic component and other components in the form according to the data association relationship between the basic component and other components in the form to obtain the target component of the form; the other components represent the components in the form except the basic component.

8. 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 6 are implemented.

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

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