Container component generation method of power grid project quality acceptance form

By automatically generating the container components of the grid engineering quality acceptance form, the problem of low manual generation efficiency of traditional methods is solved, and more efficient container component generation is achieved.

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

Patent Information

Application Number
CN202510117912.5
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

The traditional method of generating container components for grid engineering quality acceptance forms requires a lot of manual processing time, resulting in low generation efficiency.

Method used

By obtaining the layout configuration information of the form, building a raster container and dividing raster cells, generating basic container components (such as tables, tabs, and card containers) based on the container type configuration information, and configuring attributes based on the container attribute configuration information to generate the target container components.

Benefits of technology

It realizes the automated processing of form container component generation process, simplifies the generation process, reduces complexity, and improves generation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883265A_ABST
    Figure CN119883265A_ABST
Patent Text Reader

Abstract

The invention relates to a container component generation 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 steps of obtaining layout configuration information of a form; constructing a grid container of the form according to the layout configuration information, and performing grid unit division processing on the grid container to obtain a plurality of grid units to be configured in the grid container; according to the container type configuration information for the grid unit, performing container component generation processing on the grid unit to obtain a basic container component in the grid unit; the basic container assembly comprises at least one of a table container assembly, a label page container assembly and a card container assembly; and according to the container attribute configuration information for the basic container component, performing attribute configuration processing on the basic container component to obtain a target container component of the form. By adopting the method, the generation efficiency of the container component 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 method, device, computer equipment, computer-readable storage medium and computer program product for generating a container component 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 generate container components in the form has become an important research direction.

[0003] Traditional technology usually generates a form container component by manually writing code; however, generating a form container component in this way requires a lot of manual processing time, resulting in low generation efficiency of the form container component. Summary of the invention

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

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

[0006] Get the layout configuration information of the form;

[0007] According to the layout configuration information, a grid container of the form is constructed, and the grid container is divided into grid units to obtain a plurality of grid units to be configured in the grid container;

[0008] According to the container type configuration information for the grid unit, the grid unit is subjected to container component generation processing to obtain a basic container component in the grid unit; the basic container component includes at least one of a table container component, a tab container component and a card container component;

[0009] According to the container attribute configuration information for the basic container component, attribute configuration processing is performed on the basic container component to obtain the target container component of the form; the container attribute configuration information includes at least one of the row and column information of the table container component, the label information of the tab container component and the folding state information of the card container component.

[0010] In one of the embodiments, performing attribute configuration processing on the basic container component according to the container attribute configuration information for the basic container component to obtain the target container component of the form includes:

[0011] In the case where the basic container component is the table container component, acquiring row and column information of the table container component from the container attribute configuration information;

[0012] According to the row and column information of the table container component, attribute configuration processing is performed on the table container component to obtain the target table container component of the form as the target container component.

[0013] In one of the embodiments, performing attribute configuration processing on the basic container component according to the container attribute configuration information for the basic container component to obtain the target container component of the form includes:

[0014] In the case where the basic container component is the tab container component, acquiring label information of the tab container component from the container attribute configuration information;

[0015] According to the label information of the tab container component, attribute configuration processing is performed on the tab container component to obtain a target tab container component of the form as the target container component.

[0016] In one of the embodiments, performing attribute configuration processing on the basic container component according to the container attribute configuration information for the basic container component to obtain the target container component of the form includes:

[0017] When the basic container component is the card container component, acquiring the folding state information of the card container component from the container attribute configuration information;

[0018] According to the folding state information of the card container component, attribute configuration processing is performed on the card container component to obtain the target card container component of the form as the target container component.

[0019] In one embodiment, obtaining the layout configuration information of the form includes:

[0020] Obtaining grid layout parameters for the form;

[0021] Generate grid structure information of the form according to the number of rows and columns in the grid layout parameters;

[0022] Generating width allocation information corresponding to the grid structure information according to the width ratio parameter in the grid layout parameter;

[0023] The grid structure information and the width allocation information are combined and processed to obtain layout configuration information of the form.

[0024] In one of the embodiments, the step of performing container component generation processing on the grid unit according to the container type configuration information for the grid unit to obtain a basic container component in the grid unit includes:

[0025] Displaying a container type selection interface in the grid unit;

[0026] Receiving a container type selection operation triggered in the selection interface;

[0027] Determining the container type configuration information according to the container type selection operation;

[0028] The basic container component is generated in the grid unit according to the container type configuration information.

[0029] In a second aspect, the present application also provides a container component generating device for a power grid project quality acceptance form. The device comprises:

[0030] Information acquisition module, used to obtain the layout configuration information of the form;

[0031] A container construction module, used to construct a grid container of the form according to the layout configuration information, and perform grid unit division processing on the grid container to obtain a plurality of grid units to be configured in the grid container;

[0032] A container generation module, configured to perform container component generation processing on the grid cell according to the container type configuration information for the grid cell, to obtain a basic container component in the grid cell; the basic container component includes at least one of a table container component, a tab container component and a card container component;

[0033] A container configuration module is used to perform attribute configuration processing on the basic container component according to the container attribute configuration information of the basic container component to obtain the target container component of the form; the container attribute configuration information includes at least one of the row and column information of the table container component, the label information of the tab container component and the folding state information of the card container component.

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

[0035] Get the layout configuration information of the form;

[0036] According to the layout configuration information, a grid container of the form is constructed, and the grid container is divided into grid units to obtain a plurality of grid units to be configured in the grid container;

[0037] According to the container type configuration information for the grid unit, the grid unit is subjected to container component generation processing to obtain a basic container component in the grid unit; the basic container component includes at least one of a table container component, a tab container component and a card container component;

[0038] According to the container attribute configuration information for the basic container component, attribute configuration processing is performed on the basic container component to obtain the target container component of the form; the container attribute configuration information includes at least one of the row and column information of the table container component, the label information of the tab container component and the folding state information of the card container component.

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

[0040] Get the layout configuration information of the form;

[0041] According to the layout configuration information, a grid container of the form is constructed, and the grid container is divided into grid units to obtain a plurality of grid units to be configured in the grid container;

[0042] According to the container type configuration information for the grid unit, the grid unit is subjected to container component generation processing to obtain a basic container component in the grid unit; the basic container component includes at least one of a table container component, a tab container component and a card container component;

[0043] According to the container attribute configuration information for the basic container component, attribute configuration processing is performed on the basic container component to obtain the target container component of the form; the container attribute configuration information includes at least one of the row and column information of the table container component, the label information of the tab container component and the folding state information of the card container component.

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

[0045] Get the layout configuration information of the form;

[0046] According to the layout configuration information, a grid container of the form is constructed, and the grid container is divided into grid units to obtain a plurality of grid units to be configured in the grid container;

[0047] According to the container type configuration information for the grid unit, the grid unit is subjected to container component generation processing to obtain a basic container component in the grid unit; the basic container component includes at least one of a table container component, a tab container component and a card container component;

[0048] According to the container attribute configuration information for the basic container component, attribute configuration processing is performed on the basic container component to obtain the target container component of the form; the container attribute configuration information includes at least one of the row and column information of the table container component, the label information of the tab container component and the folding state information of the card container component.

[0049] The container component generation method, device, computer equipment, computer-readable storage medium and computer program product of the above-mentioned power grid project quality acceptance form obtain layout configuration information of the form; construct a grid container of the form according to the layout configuration information, and perform grid unit division processing on the grid container to obtain multiple grid units to be configured in the grid container; according to container type configuration information for the grid unit, perform container component generation processing on the grid unit to obtain a basic container component in the grid unit; the basic container component includes at least one of a table container component, a tab container component and a card container component; according to container attribute configuration information for the basic container component, perform attribute configuration processing on the basic container component to obtain a target container component of the form; the container attribute configuration information includes at least one of row and column information of the table container component, label information of the tab container component and folding state information of the card container component. This solution realizes the automated processing of the form container component generation process by dividing the form container component generation process into four steps: layout configuration, grid division, container generation, and property configuration, which is conducive to simplifying the form container component generation process; at the same time, by configuring different types of basic container components (table container components, tab container components, and card container components) in the grid container and performing property configuration (row and column information, label information, and folding status information) on these basic container components, it is conducive to realizing the configured generation of the form container components; thereby, it is conducive to reducing the complexity of the form container component generation and improving the generation efficiency of the form container components. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0051] Figure 1 A schematic diagram of a flow chart of a method for generating a container component of a power grid project quality acceptance form in one embodiment;

[0052] Figure 2 A schematic diagram of a flow chart of steps for performing attribute configuration processing on a basic container component in one embodiment;

[0053] Figure 3 A schematic flow chart of steps for performing attribute configuration processing on a basic container component in another embodiment;

[0054] Figure 4 A structural block diagram of a container component generating device for a power grid project quality acceptance form in one embodiment;

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

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

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

[0058] In an exemplary embodiment, Figure 1As shown, a method for generating a container component of 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:

[0059] Step S101, obtaining layout configuration information of the form.

[0060] Step S102 : constructing a grid container of the form according to the layout configuration information, and performing grid unit division processing on the grid container to obtain a plurality of grid units to be configured in the grid container.

[0061] Step S103, performing container component generation processing on the grid cell according to the container type configuration information for the grid cell to obtain a basic container component in the grid cell; the basic container component includes at least one of a table container component, a tab container component and a card container component.

[0062] Step S104, performing attribute configuration processing on the basic container component according to the container attribute configuration information for the basic container component to obtain the target container component of the form; the container attribute configuration information includes at least one of the row and column information of the table container component, the label information of the tab container component and the folding state information of the card container component.

[0063] Among them, the power grid project quality acceptance form can be a digital form used for the quality acceptance of power grid infrastructure projects, for example, it can be an electronic form used to record and display various detection indicator data.

[0064] The container component may be a basic building block for carrying and organizing form contents, for example, a grid container, a table container, a tab container or a card container.

[0065] The layout configuration information may be a set of parameters for defining the overall structure of the form, for example, the number of rows and columns of grid cells.

[0066] The grid container may be a layout structure for realizing reasonable typesetting and alignment of form content, for example, it may be a grid layout container with a set number of rows, columns and width ratio.

[0067] The grid unit may be the smallest layout unit in the grid container, for example, an independent area for placing a table container, a tab container or a card container.

[0068] The container type configuration information may be a configuration instruction for specifying the container type to be generated in the grid unit, for example, it may be configuration information for specifying the generation of a table container, a tab container, or a card container.

[0069] The basic container component may be a container with set functions generated in a grid unit, for example, a table container component, a tab container component, and a card container component.

[0070] Among them, the table container component can be a table structure used for data classification, organization and display, for example, it can be a data display container with a set number of rows, columns and header content.

[0071] The tab container component may be a multi-tab structure for organizing and classifying form content, for example, a content display container including a plurality of switchable tabs.

[0072] The card container component may be a content display container with a folding and expanding function, for example, a container that controls the display or hiding of content by clicking a title.

[0073] The container attribute configuration information may be a parameter set for setting specific attributes of a basic container component, such as row and column information of a table container component, label information of a tab container component, and folding state information of a card container component.

[0074] The row and column information may be parameters defining the structure of the table container component, for example, the number of rows and columns of the table.

[0075] The tag information may be a parameter defining the structure of a tab container component, for example, the number of tabs and the title of the tabs.

[0076] The folding state information may be a parameter defining the display state of the card container component, for example, the expanded state or the contracted state of the card content.

[0077] The target container component may be a final container component after property configuration processing, for example, a table container component, a tab container component or a card container component that has completed initialization settings.

[0078] Optionally, the terminal receives form layout configuration information input by the user through a visual interface, the form layout configuration information including the number of rows, number of columns and width ratio parameters of the grid unit; the terminal constructs a grid container of the form according to the form layout configuration information, and performs grid unit division processing on the grid container to obtain multiple grid units to be configured; the terminal receives container type configuration information of the user for each grid unit, and generates a basic container component in the corresponding grid unit according to the container type configuration information, and the basic container component can be a table container component, a tab container component or a card container component; the terminal performs attribute configuration processing on the generated basic container component according to the container attribute configuration information input by the user, including setting the row and column information of the table container component, the label information of the tab container component or the folding state information of the card container component, and finally obtains the target container component of the form.

[0079] For example, the terminal first receives a 2-row 3-column grid layout selected by the user through dragging in the form design interface, and sets the width ratio of each column to 1:2:1; the terminal generates a 2-row 3-column grid container according to the form layout configuration information, forming 6 grid units to be configured; then, the terminal receives the user's container type configuration, configures a table container component in the first grid unit of the first row, configures a tab container component in the second grid unit of the first row, and configures a card container component in the third grid unit of the first row; then, according to the specific attribute parameters input by the user, the terminal sets the table container component to a 3-row 4-column data table, sets the tab container component to contain two tabs of basic information and detailed information, and sets the initial state of the card container component to an expanded state, thereby completing the generation of the target container component of the form.

[0080] In the container component generation method of the above-mentioned power grid project quality acceptance form, the layout configuration information of the form is obtained; according to the layout configuration information, a grid container of the form is constructed, and the grid container is divided into grid units to obtain a plurality of grid units to be configured in the grid container; according to the container type configuration information for the grid unit, the grid unit is subjected to container component generation processing to obtain a basic container component in the grid unit; the basic container component includes at least one of a table container component, a tab container component and a card container component; according to the container attribute configuration information for the basic container component, the basic container component is subjected to attribute configuration processing to obtain a target container component of the form; the container attribute configuration information includes at least one of row and column information of the table container component, label information of the tab container component and folding state information of the card container component. This solution realizes the automated processing of the form container component generation process by dividing the form container component generation process into four steps: layout configuration, grid division, container generation, and property configuration, which is conducive to simplifying the form container component generation process; at the same time, by configuring different types of basic container components (table container components, tab container components, and card container components) in the grid container and performing property configuration (row and column information, label information, and folding status information) on these basic container components, it is conducive to realizing the configured generation of the form container components; thereby, it is conducive to reducing the complexity of the form container component generation and improving the generation efficiency of the form container components.

[0081] In an exemplary embodiment, referring to Figure 2 , according to the container attribute configuration information for the basic container component, perform attribute configuration processing on the basic container component to obtain the target container component of the form, which specifically includes the following contents:

[0082] Step S201, when the basic container component is a table container component, obtaining row and column information of the table container component from the container attribute configuration information;

[0083] Step S202: performing attribute configuration processing on the table container component according to the row and column information of the table container component, and obtaining the target table container component of the form as the target container component.

[0084] The target table container component may be a table container component that has been configured with row and column information, for example, a table container component that has completed initialization settings such as the number of rows, the number of columns, and the content of the header.

[0085] Optionally, when the terminal detects that the basic container component is a table container component, it extracts row and column information of the table container component from the container attribute configuration information, and the row and column information includes the number of rows, the number of columns and the header content of the table; the terminal performs attribute configuration processing on the table container component according to the row and column information of the table container component, including setting the number of rows and columns of the table, configuring the header content, adjusting the alignment of the table, and merging or splitting the table cells as needed, and finally obtains the target table container component of the form, and uses the target table container component as the target container component.

[0086] For example, the terminal obtains the row and column information of the table container component from the container attribute configuration information, and the row and column information specifies that the table has 4 rows and 5 columns, where the first row is the table header, containing five fields: "Serial Number", "Test Item", "Test Data", "Test Result" and "Remarks"; the terminal sets the table container component to a 4-row 5-column structure according to the row and column information of the table container component, configures the header content, sets the table content to be vertically centered, and merges the cells in the "Test Data" column into a large cell for data entry, thereby generating a target table container component for displaying power grid project quality acceptance data.

[0087] The technical solution provided in this embodiment helps to realize the standardized generation of table container components by refining the property configuration process of the table container component into two steps: obtaining row and column information and performing property configuration according to the row and column information. At the same time, by centralizing the row and column information of the table container component in the container property configuration information for management, it helps to simplify the configuration process of the table container component. This helps to reduce the complexity of the table container component configuration and improve the generation efficiency of the target table container component.

[0088] In an exemplary embodiment, referring to Figure 3 , according to the container attribute configuration information for the basic container component, perform attribute configuration processing on the basic container component to obtain the target container component of the form, which specifically includes the following contents:

[0089] Step S301, when the basic container component is a tab container component, obtaining label information of the tab container component from the container attribute configuration information;

[0090] Step S302: performing attribute configuration processing on the tab container component according to the label information of the tab container component, and obtaining the target tab container component of the form as the target container component.

[0091] The target tab container component may be a tab container component configured with tab information, for example, a tab container component that has completed initialization settings such as the number of tabs and the naming of tab titles.

[0092] Optionally, when the terminal detects that the basic container component is a tab container component, the terminal extracts label information of the tab container component from the container property configuration information, and the label information includes the number of tabs, the title names of the tabs, and the display order of the tabs; the terminal performs property configuration processing on the tab container component according to the label information of the tab container component, including creating a specified number of tabs, setting the title of each tab, adjusting the display order of the tabs, and setting the content area for each tab, and finally obtains the target tab container component of the form, and uses the target tab container component as the target container component.

[0093] For example, the terminal obtains the label information of the tab container component from the container attribute configuration information. The label information specifies the creation of three tabs, named "Basic Information", "Test Data" and "Audit Record", and displays them in this order; the terminal creates three tabs and sets corresponding titles based on the label information of the tab container component, sets the "Basic Information" tab as the default display state, reserves a content area in each tab for placing tables or other form components, and ensures smooth switching between tabs, thereby generating a target tab container component for classified display of power grid project quality acceptance information.

[0094] The technical solution provided in this embodiment helps to realize the standardized generation of tab container components by refining the attribute configuration process of the tab container component into two steps: obtaining tag information and configuring attributes according to the tag information. At the same time, by centralizing the tag information of the tab container component in the container attribute configuration information for management, it helps to simplify the configuration process of the tab container component. This helps to reduce the complexity of the configuration of the tab container component and improve the generation efficiency of the target tab container component.

[0095] In an exemplary embodiment, according to the container attribute configuration information for the basic container component, attribute configuration processing is performed on the basic container component to obtain the target container component of the form, which specifically includes the following contents: when the basic container component is a card container component, the folding state information of the card container component is obtained from the container attribute configuration information; according to the folding state information of the card container component, attribute configuration processing is performed on the card container component to obtain the target card container component of the form as the target container component.

[0096] The folding state information may be a configuration parameter for defining the display state of the card container component, for example, it may be configuration information of the expanded state or the contracted state of the card container component.

[0097] The target card container component may be a card container component configured with folding state information, for example, a card container component that has completed initialization settings such as expansion / contraction state settings and title settings.

[0098] Optionally, when the terminal detects that the basic container component is a card container component, the terminal extracts the folding state information of the card container component from the container attribute configuration information, and the folding state information includes the initial expansion / contraction state of the card, the title content of the card, and the display position of the card; the terminal performs attribute configuration processing on the card container component according to the folding state information of the card container component, including setting the initial expansion / contraction state of the card, configuring the title content of the card, adjusting the display position of the card, and setting the content area for the card, and finally obtains the target card container component of the form, and uses the target card container component as the target container component.

[0099] For example, the terminal obtains the folding state information of the card container component from the container attribute configuration information, and the folding state information specifies that the title of the card is "Power Grid Project Quality Inspection Data", the initial state is set to the expanded state, and the display position is set at the top of the form; the terminal creates a card container and sets the title according to the folding state information of the card container component, sets the initial state of the card to expanded to display detailed content, reserves space in the content area of ​​the card for placing tables or other form components, and adds an interactive function that switches the expanded / contracted state by clicking the card title, thereby generating a target card container component for displaying power grid project quality inspection data.

[0100] The technical solution provided in this embodiment is conducive to the standardized generation of card container components by refining the attribute configuration process of the card container component into two standardized steps: obtaining folding state information and configuring attributes according to the folding state information. At the same time, by centralizing the folding state information of the card container component in the container attribute configuration information for management, it is conducive to simplifying the configuration process of the card container component. This is conducive to reducing the complexity of the card container component configuration and improving the generation efficiency of the card container component.

[0101] In an exemplary embodiment, obtaining layout configuration information of a form specifically includes the following contents: obtaining grid layout parameters for the form; generating grid structure information of the form according to the number of rows and columns in the grid layout parameters; generating width allocation information corresponding to the grid structure information according to the width ratio parameters in the grid layout parameters; and combining the grid structure information and the width allocation information to obtain the layout configuration information of the form.

[0102] The grid layout parameters may be configuration parameters for defining the grid structure of the form, such as the number of rows, the number of columns, the width ratio, and other parameters of the grid.

[0103] The grid structure information may be basic layout information of the form generated according to the number of rows and columns in the grid layout parameters, for example, it may be arrangement mode and position information of specific grid units divided in the form.

[0104] The width ratio parameter may be a configuration parameter for defining the width ratio of each grid cell in the form, for example, it may be a relative width value or a percentage value of each grid cell.

[0105] The width allocation information may be specific width setting information generated according to the width ratio parameter, for example, it may be the actual width value or ratio value of each grid unit in the form.

[0106] The layout configuration information may be complete layout setting information of the form, for example, comprehensive layout parameters including grid structure and width allocation.

[0107] Optionally, the terminal first obtains the grid layout parameters of the form from the user input, and the grid layout parameters include information such as the number of rows, the number of columns and the width ratio of the grid; the terminal generates the grid structure information of the form according to the number of rows and the number of columns in the grid layout parameters, and determines the position and arrangement of each grid unit; the terminal calculates and generates the width allocation information corresponding to the grid structure information according to the width ratio parameter in the grid layout parameters, and determines the specific width value of each grid unit; finally, the terminal combines the grid structure information and the width allocation information to generate the form layout configuration information including the complete layout structure and style settings.

[0108] The technical solution provided in this embodiment is conducive to realizing parameterized configuration of form layout and avoiding the complexity of manually writing layout code by splitting the generation process of form layout into four steps: obtaining grid layout parameters, generating grid structure information, generating width allocation information and combination processing. At the same time, by independently generating and combining grid structure information and width allocation information, it is conducive to improving the flexibility and accuracy of layout configuration; thereby, it is conducive to reducing the complexity of form layout configuration and improving the efficiency of form layout configuration.

[0109] In an exemplary embodiment, container component generation processing is performed on the grid cell based on container type configuration information for the grid cell to obtain a basic container component in the grid cell, which specifically includes the following contents: displaying a container type selection interface in the grid cell; receiving a container type selection operation triggered in the selection interface; determining container type configuration information based on the container type selection operation; and generating a basic container component in the grid cell based on the container type configuration information.

[0110] The selection interface may be a user interaction interface for displaying and selecting container types, for example, a visual operation interface including options such as a table container, a tab container, and a card container.

[0111] The container type selection operation may be an interactive behavior of the user selecting a container type in the selection interface, for example, an operation of the user clicking or dragging a specific container type option.

[0112] Optionally, the terminal displays a container type selection interface in a grid unit that includes options such as table containers, tab containers, and card containers, and the selection interface displays the preview effects and basic function descriptions of various containers in a visual manner; the terminal receives a container type selection operation triggered by the user by clicking or dragging in the selection interface, and determines the corresponding container type configuration information based on the user's selection operation; the terminal generates a basic container component of the corresponding type in the grid unit based on the determined container type configuration information, and provides the user with a real-time preview function, supporting the user to make adjustments based on the preview effect.

[0113] The technical solution provided in this embodiment helps to simplify the configuration process of container components by providing a visual container type selection interface in the grid unit and directly converting the user's selection operation into container type configuration information; at the same time, by directly using the container type configuration information to generate the processing method of the basic container component, it helps to improve the generation efficiency of the container component, thereby helping to reduce the complexity of the form design and improve the configuration efficiency of the container component of the form.

[0114] The following is an application example to illustrate the container component generation method of the power grid project quality acceptance form provided in this application. This application example uses the method applied to a terminal as an example.

[0115] In the first step, the terminal receives the form layout parameters input by the user; the form layout parameters include the number of rows and columns of the grid unit;

[0116] In the second step, the terminal generates a corresponding grid container according to the form layout parameters, and divides the grid container into multiple configurable grid units;

[0117] In the third step, the terminal receives the container type configuration instruction of the user for the grid unit, and generates a table container, a tab container or a card container in the corresponding grid unit according to the container type configuration instruction;

[0118] In the fourth step, the terminal initializes the table container, tab container or card container according to the container attribute parameters input by the user to obtain a container component; the container attribute parameters include the number of rows and columns of the table container, the number of labels of the tab container, and the folding state of the card container.

[0119] Specifically:

[0120] About the grid container (grid container component):

[0121] This function allows users to freely customize the layout structure of the form grid, including the number of rows, columns, width ratio, etc., to achieve reasonable layout and alignment of form content.

[0122] The user enters the form design interface, selects the grid component from the component library and drags and drops it to the specified position of the form.

[0123] Add other form components, such as input boxes and buttons, to each cell of the grid to complete the layout design of the form content.

[0124] About the table container (table container component):

[0125] Used to create a table structure within a form, making it easier for users to classify, organize, and display data. It supports basic table operations, such as defining the number of rows, columns, header content, and table style settings.

[0126] About the tab container (tab container component):

[0127] Allow users to create multiple tabs to organize form content, providing clear classification and navigation for different tables or form areas.

[0128] About the card container (card container component):

[0129] Provides a collapsible and expandable table function to organize related form content in cards. Users can control the display or hiding of table content by clicking the card title.

[0130] Set the card title to make the card content clear for users to identify. Define the initial state of the card (expanded or collapsed).

[0131] 1. For container-grid:

[0132] Summary:

[0133] This function allows users to freely customize the layout structure of the form grid, including the number of rows, columns, width ratio, etc., to achieve reasonable layout and alignment of form content.

[0134] Difference Analysis:

[0135] Compared with the traditional manual writing of CSS (Cascading Style Sheets) layout code, this grid function does not require users to have professional front-end development knowledge. Complex grid layouts can be achieved through visual operations or simple parameter settings, greatly improving development efficiency. The traditional way of developing grid layouts may take a lot of time to debug the compatibility of different screen sizes, but this system automatically handles adaptation issues.

[0136] Compared with some simple form design tools that only provide fixed layout templates, this grid function has higher flexibility. Users can freely define the number of rows, columns, width ratio and other parameters of the grid according to actual business needs to achieve truly personalized layout.

[0137] Business process:

[0138] The user enters the form design interface, selects the grid component from the component library and drags and drops it to the specified position of the form.

[0139] Use the visual interface or input parameters to set the grid layout structure, such as the number of rows, columns, width ratio, etc., as well as style attributes such as border style, background color, etc. (optional).

[0140] Add other form components, such as input boxes and buttons, to each cell of the grid to complete the layout design of the form content.

[0141] Preview the display effect of the form on different screen sizes in real time and adjust and optimize it as needed.

[0142] 2. For container-table:

[0143] Summary:

[0144] It is used to create a table structure within a form, making it easier for users to classify, organize, and display data. It supports basic table operations, such as defining the number of rows, columns, header content, and table style settings to meet diverse data display needs.

[0145] Difference Analysis:

[0146] Compared with ordinary text input methods, table components can present batch data more clearly and intuitively, making it easier for users to compare and analyze data. When processing quality acceptance data in power grid infrastructure projects, such as the list display of various test indicators, the table format is much easier to understand and manage than plain text.

[0147] Compared with some simple table plug-ins, this table function has more powerful editing capabilities, supports advanced operations such as merging cells, splitting cells, adjusting table alignment (horizontally and vertically), and can cope with complex data layout requirements. At the same time, the deep integration with the form system enables table data to be linked and uniformly managed with the data of other form components.

[0148] 3. For the container-tab page:

[0149] Summary:

[0150] Allow users to create multiple tabs to organize form content, provide clear classification and navigation for different tables or form areas, improve the operability and readability of the form, and enable users to switch and view information in different parts more conveniently.

[0151] Difference Analysis:

[0152] Compared with piling up a large amount of form content on a single page, the tab function effectively reduces the visual burden of the page, allowing users to focus more on the content of the current tab, improving the efficiency of data entry and viewing. Especially when the form content is large, this classification method makes the form structure clearer and prevents users from getting lost in complex information.

[0153] Business process:

[0154] When designing a form, add a tab component to the form.

[0155] Name each tab so that it accurately reflects the subject or purpose of the tab's content.

[0156] Add required form components, such as tables, input boxes, etc. in each tab to build complete form content.

[0157] Adjust the order of tabs according to user operating habits or business logic to ensure the rationality and smoothness of information display.

[0158] When using a form, users can switch by clicking on the tab title to quickly locate the required information area.

[0159] 4. For container-card:

[0160] Summary:

[0161] Provides a collapsible and expandable table function to organize related form content in cards. Users can control the display or hiding of table content by clicking the card title, saving page space and making the form more concise and orderly. It is especially suitable for form scenarios containing more detailed information or foldable content.

[0162] Difference Analysis:

[0163] Compared with the conventional fixed display form content, the card component increases interactivity and dynamism. Users can selectively view detailed information according to their needs, avoid excessive complexity of page information, and improve the usability of the form. In the quality acceptance of power grid infrastructure projects, for some parts containing detailed test data or remarks, the use of card components can facilitate users to focus on key information or view details in depth without affecting the overall form structure.

[0164] Business process:

[0165] During the form design phase, add a card component to the form and place a table or other related components inside the card.

[0166] Set the title of the card to make the subject of the card content clear for users to identify.

[0167] Define the initial state of the card (expanded or collapsed) and determine the default display mode based on business needs.

[0168] When filling out or viewing a form, users click on the card title to expand or collapse it, and view or hide the table content in the card. When submitting the form, the system automatically processes the submission of the data in the card to ensure that the data is complete and correct.

[0169] The technical solution provided by this application example generates a configurable grid container by receiving form layout parameters, and generates different types of containers (table containers, tab containers or card containers) in the grid cells according to the configuration instructions, which is conducive to realizing flexible configuration of the layout structure of the form component; at the same time, by initializing the attribute parameters of different types of containers (such as the number of rows and columns of the table container, the number of labels of the tab container, and the folding state of the card container), it is conducive to meeting the content display requirements in different scenarios and improving the efficiency of generating form container components.

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

[0171] Based on the same inventive concept, the embodiment of the present application also provides a device for generating a container component of a power grid project quality acceptance form for implementing the method for generating a container component of a 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 device for generating a container component of one or more power grid project quality acceptance forms provided below can be referred to the limitations of the method for generating a container component of a power grid project quality acceptance form above, and will not be repeated here.

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

[0173] Information acquisition module 401, used to acquire layout configuration information of the form;

[0174] The container construction module 402 is used to construct a grid container of the form according to the layout configuration information, and perform grid unit division processing on the grid container to obtain a plurality of grid units to be configured in the grid container;

[0175] The container generation module 403 is used to perform container component generation processing on the grid cell according to the container type configuration information for the grid cell, and obtain a basic container component in the grid cell; the basic container component includes at least one of a table container component, a tab container component and a card container component;

[0176] The container configuration module 404 is used to perform attribute configuration processing on the basic container component according to the container attribute configuration information of the basic container component to obtain the target container component of the form; the container attribute configuration information includes at least one of the row and column information of the table container component, the label information of the tab container component and the folding state information of the card container component.

[0177] In an exemplary embodiment, the container configuration module 404 is also used to obtain row and column information of the table container component from the container attribute configuration information when the basic container component is a table container component; perform attribute configuration processing on the table container component according to the row and column information of the table container component to obtain the target table container component of the form as the target container component.

[0178] In an exemplary embodiment, the container configuration module 404 is also used to obtain the label information of the tab container component from the container attribute configuration information when the basic container component is a tab container component; perform attribute configuration processing on the tab container component according to the label information of the tab container component to obtain the target tab container component of the form as the target container component.

[0179] In an exemplary embodiment, the container configuration module 404 is also used to obtain the folding state information of the card container component from the container attribute configuration information when the basic container component is a card container component; according to the folding state information of the card container component, perform attribute configuration processing on the card container component to obtain the target card container component of the form as the target container component.

[0180] In an exemplary embodiment, the information acquisition module 401 is also used to obtain grid layout parameters for a form; generate grid structure information of the form according to the number of rows and columns in the grid layout parameters; generate width allocation information corresponding to the grid structure information according to the width ratio parameters in the grid layout parameters; and combine the grid structure information and the width allocation information to obtain layout configuration information of the form.

[0181] In an exemplary embodiment, the container generation module 403 is also used to display a container type selection interface in a grid unit; receive a container type selection operation triggered in the selection interface; determine container type configuration information based on the container type selection operation; and generate a basic container component in the grid unit based on the container type configuration information.

[0182] Each module in the container component generating device of the above-mentioned power grid project quality acceptance form can be implemented in whole or in part by software, hardware and their combination. 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.

[0183] 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 container component generation method for 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.

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

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

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

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

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

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

[0190] 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 method for generating a container component of a power grid project quality acceptance form, characterized in that: The method comprises: Get the layout configuration information of the form; According to the layout configuration information, a grid container of the form is constructed, and the grid container is divided into grid units to obtain a plurality of grid units to be configured in the grid container; According to the container type configuration information for the grid unit, the grid unit is subjected to container component generation processing to obtain a basic container component in the grid unit; the basic container component includes at least one of a table container component, a tab container component and a card container component; According to the container attribute configuration information for the basic container component, attribute configuration processing is performed on the basic container component to obtain the target container component of the form; the container attribute configuration information includes at least one of the row and column information of the table container component, the label information of the tab container component and the folding state information of the card container component.

2. The method according to claim 1, characterized in that The step of performing attribute configuration processing on the basic container component according to the container attribute configuration information for the basic container component to obtain the target container component of the form includes: In the case where the basic container component is the table container component, acquiring row and column information of the table container component from the container attribute configuration information; According to the row and column information of the table container component, attribute configuration processing is performed on the table container component to obtain the target table container component of the form as the target container component.

3. The method according to claim 1, characterized in that: The step of performing attribute configuration processing on the basic container component according to the container attribute configuration information for the basic container component to obtain the target container component of the form includes: In the case where the basic container component is the tab container component, acquiring label information of the tab container component from the container attribute configuration information; According to the label information of the tab container component, attribute configuration processing is performed on the tab container component to obtain a target tab container component of the form as the target container component.

4. The method according to claim 1, characterized in that: The step of performing attribute configuration processing on the basic container component according to the container attribute configuration information for the basic container component to obtain the target container component of the form includes: When the basic container component is the card container component, acquiring the folding state information of the card container component from the container attribute configuration information; According to the folding state information of the card container component, attribute configuration processing is performed on the card container component to obtain the target card container component of the form as the target container component.

5. The method according to claim 1, characterized in that The obtaining of the layout configuration information of the form includes: Obtaining grid layout parameters for the form; Generate grid structure information of the form according to the number of rows and columns in the grid layout parameters; Generating width allocation information corresponding to the grid structure information according to the width ratio parameter in the grid layout parameter; The grid structure information and the width allocation information are combined and processed to obtain layout configuration information of the form.

6. The method according to any one of claims 1 to 5, characterized in that The step of performing container component generation processing on the grid unit according to the container type configuration information for the grid unit to obtain a basic container component in the grid unit includes: Displaying a container type selection interface in the grid unit; Receiving a container type selection operation triggered in the selection interface; Determining the container type configuration information according to the container type selection operation; The basic container component is generated in the grid unit according to the container type configuration information.

7. A container component generating device for a power grid project quality acceptance form, characterized in that: The device comprises: Information acquisition module, used to obtain the layout configuration information of the form; A container construction module, used to construct a grid container of the form according to the layout configuration information, and perform grid unit division processing on the grid container to obtain a plurality of grid units to be configured in the grid container; A container generation module, configured to perform container component generation processing on the grid cell according to the container type configuration information for the grid cell, to obtain a basic container component in the grid cell; the basic container component includes at least one of a table container component, a tab container component and a card container component; A container configuration module is used to perform attribute configuration processing on the basic container component according to the container attribute configuration information of the basic container component to obtain the target container component of the form; the container attribute configuration information includes at least one of the row and column information of the table container component, the label information of the tab container component and the folding state information of the card container 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.