A functionally extended PC desktop table component and its uses

By adding multi-condition filtering, date interval filtering and paging display functions to the el-table component of the Elementui framework, the problem that existing components cannot satisfy users' multi-condition filtering and date interval filtering is solved, and the user experience and interaction effect are improved.

CN114371847BActive Publication Date: 2024-09-10CHINA ELECTRONICS CLOUD DIGITAL INTELLIGENCE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210013237.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-06
Publication Date
2024-09-10
Estimated Expiration
2042-01-06

AI Technical Summary

Technical Problem

The existing el-table component in the Elementui framework has multiple functional flaws in the interactive effect. It cannot meet the user's needs for multi-condition filtering of table data, date range filtering, paging display and double-click editing, resulting in poor user experience.

Method used

By improving the functional design of the el-table component, adding input, datepicker, select, radio, checkbox conditions, and adding the filter component, the conditional filtering and data display of the table header are realized, the paging component is automatically introduced, and one-click clearing of filtering conditions and Double-click the edit function to transfer configuration information and operation column events through props attributes.

Benefits of technology

It implements multi-condition filtering, date range filtering, paging display and double-click editing functions for table data, which improves user experience and interaction effects and simplifies the use of components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114371847B
    Figure CN114371847B
Patent Text Reader

Abstract

The present invention belongs to the field of computer software technology, and in particular, relates to a functionally extended PC desktop table component and its use. The table component of the present invention is based on the el-table component of Elementui. By improving the functional design of the existing el-table component, the table component of the present invention expands a variety of usage functions and can be applied to a variety of application scenarios such as conditional screening for each item in the table header, conditional screening of date ranges for data containing dates, and one-click clearing of screening conditions, thereby overcoming the functional defects of the existing el-table component, providing great convenience for the user's use process, improving business processing efficiency, and improving interaction effects and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer software technology, and in particular relates to a functionally extended PC desktop table component and its use. Background Art

[0002] At present, front-end technology is developing rapidly, and a variety of popular front-end frameworks are prevalent (such as Vue.js, React, Angular, etc.). At the same time, the Elementui framework has also been used by more developers in Vue.js project development. With the diverse development of UI frameworks, users are paying more and more attention to the interactive experience of products, and the demand for different interactive scenarios is also increasing.

[0003] At present, the interactive effects of a commonly used el-table component in the Elementui framework are: 1. Display data in a list, but only through the drop-down single selection or multiple selection method to filter the table conditional data; 2. Display data in pages, but it is necessary to introduce the Pagination component (pagination component) separately, and display data in the table separately through the pagination-related event control. However, the above el-table component still contains many functional design defects. For example, its existing functions cannot meet the following application scenarios:

[0004] (1) Perform conditional screening on each item in the table header;

[0005] (2) Perform keyword screening on each data item in the table header;

[0006] (3) Conditional screening of date ranges for data containing dates;

[0007] (4) Each time you reference the table component, you need to separately introduce the paging component and manually adjust the page events;

[0008] (5) Double-click to edit the data in the table.

[0009] (6) Ability to clear all filter conditions with one click.

[0010] The above functional defects have greatly limited the application of el-table components, brought many inconveniences and obstacles to the user's use process, and the user experience is generally poor. Summary of the invention

[0011] In order to overcome the above-mentioned functional defects of the existing el-table component, the present invention provides a solution. By improving the functional design of the el-table component, a functionally extended PC desktop table component is obtained, so that the table component can meet the usage requirements of the above-mentioned specific application scenarios.

[0012] the term:

[0013] Vue.js: It is a progressive framework for building user interfaces. It focuses only on the view layer and adopts a bottom-up incremental development design. Its goal is to achieve responsive data binding and combined view components through the simplest API possible.

[0014] Elementui: A component library based on Vue 2.0 prepared for developers, designers and product managers, providing supporting design resources to help users quickly build their websites.

[0015] API: Application Programming Interface, which is a set of predefined interfaces (such as functions, HTTP interfaces), or refers to the conventions for connecting different components of a software system.

[0016] El-table: A component in the Elementui framework used to display data lists.

[0017] Template: Templates are preset in the component, and the displayed content can be customized through templates.

[0018] Input: Input box component in Elementui.

[0019] Datepicker: Event selector component in Elementui.

[0020] Select: A drop-down multi-select component in Elementui.

[0021] Radio: A radio-select component in Elementui.

[0022] Checkbox: A multi-select component in Elementui.

[0023] AppendChild: Add a node after the last child node of the specified element node.

[0024] Columns: Used to set or retrieve the number of columns and the width of each column of an object.

[0025] props: In the Vue.js front-end framework, the parent component passes data to the child component through the props attribute, and the child component obtains the data through the props option.

[0026] Specifically, the present invention provides a functionally extended PC desktop table component, which is based on the el-table component of Elementui and has the following characteristics:

[0027] (1) The table component contains input, datepicker, select, radio, and checkbox conditions, and the above conditions are input into the table component using the template attribute;

[0028] (2) The table component includes single-select and multiple-select mode selection functions, business filtering function in the table header, adding and deleting functions for display columns in the table header, input function for data within the form, drop-down selection function for data within the form, and date operation function. The above functions are added to the table component in a customized manner through the template slot;

[0029] (3) The header of the table component includes a filter component, and the filter component is added to the header of the table component by appendChild method;

[0030] (4) The table component includes columns, filtering conditions, table operation column events, paging components, and default API solutions. The above functional items are passed to the encapsulated table component through the props attribute.

[0031] Furthermore, the functionally extended PC desktop table component of the present invention includes options, Pagination, columns, defaultParams, and operation defined in the parent component transmitted through the props attribute, wherein:

[0032] The options include request path, operability, and table maximum height information;

[0033] The Pagination contains the number of data items displayed on a single page and page number information;

[0034] The columns contain the field data, type, and basic style information that need to be displayed in the table;

[0035] The defaultParams contains the default table query conditions;

[0036] The operation includes deletion and editing information of the operation column in the table.

[0037] Furthermore, the packaging process of the functionally extended PC desktop table component of the present invention includes the following steps:

[0038] (1) Add the filter component to the header of the table component through the appendchild method;

[0039] (2) Use watch to monitor changes in filter conditions and reissue table data requests;

[0040] (3) Add the pagination component to the encapsulated table component to form the default configuration, and add logical judgment through configuration attributes;

[0041] (4) Use custom columns to loop through and display each table data;

[0042] (5) For multi-condition filtering, a one-click function is provided to clear the filtering conditions and re-display the original default data content;

[0043] (6) By providing a pop-up list with multiple selections, select the table header columns to be displayed to display different data columns in the table.

[0044] Furthermore, the operation process of the functionally extended PC desktop table component of the present invention includes the following steps:

[0045] (1) Single component process

[0046] (a) table component: defines how to reference the current table component and the parameter attributes that need to be passed;

[0047] (b) Parameter attribute settings: defines the data structure of columns, service request API, default parameters of service queries, and paging information;

[0048] (2) Data processing

[0049] (a) Business data processing: Process business data according to specific business requirements, organize the data structure that needs to be displayed based on the field information of the business display;

[0050] (b) Determine whether there is header data display: Determine whether to include different header column data display according to current business needs, and process the display column information of the table;

[0051] (3) Data display process

[0052] (a) If the header data display is included, the header parameters are filtered;

[0053] (b) Display the data filtered by the table header parameters as business data according to the display style requirements;

[0054] (c) If the table header data display is not included, the data is directly displayed as business data according to the display style requirements.

[0055] In addition, the present invention also relates to the use of the above-mentioned function-expanded PC desktop table component in the front-end framework project design.

[0056] In summary, the functionally extended PC desktop table component of the present invention has multiple extended functions and can be applied to the following application scenarios:

[0057] (1) Perform conditional screening on each item in the table header;

[0058] (2) Perform keyword screening on each data item in the table header;

[0059] (3) Conditional screening of date ranges for data containing dates;

[0060] (4) Each time the table component is referenced, the paging component is introduced by default and the paging adjustment page data event is automatically configured;

[0061] (5) Double-click to edit the data in the table.

[0062] (6) One-click clearing of all screening conditions;

[0063] (7) Implement the dynamic addition and deletion function of table header columns.

[0064] The function-expanded PC desktop table component of the present invention overcomes the functional defects of the existing el-table component, provides great convenience for the user's use process, improves business processing efficiency, and improves the interaction effect and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments recorded in the present invention, not all embodiments. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0066] Figure 1The figure is a schematic diagram of the operation flow of the table component on the PC desktop of the present invention. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. The present invention can also be implemented or applied through other different specific implementation methods. The details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.

[0068] At the same time, it should be understood that the protection scope of the present invention is not limited to the specific embodiments described below; it should also be understood that the terms used in the embodiments of the present invention are for describing specific embodiments rather than for limiting the protection scope of the present invention.

[0069] Example 1: A functionally extended PC desktop table component (see Figure 1 ),

[0070] (I) This table component is based on the el-table component of Elementui, which has the following characteristics:

[0071] (1) The table component contains input, datepicker, select, radio, and checkbox conditions, and the above conditions are input into the table component using the template attribute;

[0072] (2) The table component includes single-select and multiple-select mode selection functions, business filtering function in the table header, adding and deleting functions for display columns in the table header, input function for data within the form, drop-down selection function for data within the form, and date operation function. The above functions are added to the table component in a customized manner through the template slot;

[0073] (3) The header of the table component includes a filter component, and the filter component is added to the header of the table component by appendChild method;

[0074] (4) The table component contains options, Pagination, columns, defaultParams, operation, and default API scheme defined in the parent component passed through the props attribute, where:

[0075] The options include request path, operability, and table maximum height information;

[0076] The Pagination contains the number of data items displayed on a single page and page number information;

[0077] The columns contain the field data, type, and basic style information that need to be displayed in the table;

[0078] The defaultParams contains the default table query conditions;

[0079] The operation includes deletion and editing information of the operation column in the table.

[0080] (II) The encapsulation process of this table component includes the following steps:

[0081] (1) Add the filter component to the header of the table component through the appendchild method;

[0082] (2) Use watch to monitor changes in filter conditions and reissue table data requests;

[0083] (3) Add the pagination component to the encapsulated table component to form the default configuration, and add logical judgment through configuration attributes;

[0084] (4) Use custom columns to loop through and display each table data;

[0085] (5) For multi-condition filtering, a one-click function is provided to clear the filtering conditions and re-display the original default data content;

[0086] (6) By providing a pop-up list with multiple selections, select the table header columns to be displayed to display different data columns in the table.

[0087] (III) The operation process of this table component includes the following steps:

[0088] (1) Single component process

[0089] (a) table component: defines how to reference the current table component and the parameter attributes that need to be passed;

[0090] (b) Parameter attribute settings: defines the data structure of columns, service request API, default parameters of service queries, and paging information;

[0091] (2) Data processing

[0092] (a) Business data processing: Process business data according to specific business requirements, organize the data structure that needs to be displayed based on the field information of the business display;

[0093] (b) Determine whether there is header data display: Determine whether to include different header column data display according to current business needs, and process the display column information of the table;

[0094] (3) Data display process

[0095] (a) If the header data display is included, the header parameters are filtered;

[0096] (b) Display the data filtered by the table header parameters as business data according to the display style requirements;

[0097] (c) If the table header data display is not included, the data is directly displayed as business data according to the display style requirements.

[0098] (IV) This table component has multiple extended functions and can be applied to the following application scenarios:

[0099] (1) Perform conditional screening on each item in the table header;

[0100] (2) Perform keyword screening on each data item in the table header;

[0101] (3) Conditional screening of date ranges for data containing dates;

[0102] (4) Each time the table component is referenced, the paging component is introduced by default and the paging adjustment page data event is automatically configured;

[0103] (5) Double-click to edit the data in the table.

[0104] (6) One-click clearing of all screening conditions;

[0105] (7) Implement the dynamic addition and deletion function of table header columns.

[0106] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, replacement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A functionally extended PC desktop table component, characterized in that: The table component is based on the el-table component of Elementui, which has the following characteristics: (1) The table component contains input, datepicker, select, radio and checkbox conditions, which are input into the table component using the template attribute; (2) The table component includes single-select and multiple-select mode selection functions, business filtering function in the table header, adding and deleting functions of display columns in the table header, input function of form internal data, drop-down selection function of form internal data and date operation function. The above functions are added to the table component in a customized manner through the template slot; (3) The header of the table component includes a filter component, and the filter component is added to the header of the table component through the appendChild method; (4) The table component includes columns, filter conditions, table column operation events, paging components, and default API solutions. The above functional items are passed to the encapsulated table component through the props attribute; The operation process of the table component includes the following steps: (1) Single component process (a) table component: defines how to reference the current table component and the parameter attributes that need to be passed; (b) Parameter attribute settings: defines the data structure of columns, business request API, default parameters of business queries and paging information; (2) Data processing process (a) Business data processing: Process business data according to specific business requirements, organize the data structure that needs to be displayed based on the field information of the business display; (b) Determine whether there is header data to display: Determine whether to include different header column data displays based on current business needs, and process the display column information of the table; (3) Data display process (a) If the table header data is displayed, the table header parameters are filtered; (b) Display the data filtered by the table header parameters as business data according to the display style requirements; (c) If the table header data is not displayed, the data will be directly displayed as business data according to the display style requirements.

2. The function-expanded PC desktop table component according to claim 1, characterized in that: The table component contains options, Pagination, columns, defaultParams, and operation defined in the parent component passed through the props attribute, where: The options include request path, operability and table maximum height information; The Pagination contains the number of data items displayed on a single page and the page number information; The columns contain the field data, type and basic style information that need to be displayed in the table; The defaultParams contains the default table query conditions; The operation includes deletion and editing information of the operation column in the table.

3. The function-expanded PC desktop table component according to claim 1, characterized in that: The encapsulation process for the table component includes the following steps: (1) Add the filter component to the header of the table component through the appendchild method; (2) Use watch to monitor changes in filtering conditions and reissue table data requests; (3) Add the pagination component to the encapsulated table component to form the default configuration, and add logical judgment through configuration attributes; (4) Use custom columns to loop through and display each table data; (5) For multi-condition filtering, a one-click function is provided to clear the filtering conditions and redisplay the original default data content; (6) By providing a pop-up list with multiple selections, select the table header columns that need to be displayed to display different data columns in the table.

4. Use of the functionally extended PC desktop table component according to claim 1 or 2 in the front-end framework project design.