Table rendering method, device, equipment and medium
By dynamically adjusting the number of columns in an online table to accommodate the entity specifications and attributes of different product categories, the problem of low efficiency in managing multiple tables is solved, and centralized management and efficient processing of entity information are achieved.
Patent Information
- Application Number
- CN202411765977.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2044-12-03
AI Technical Summary
In existing technologies, different categories of entities have different specifications and attributes, which leads to the need to set up different tables for each category, resulting in a large number of tables and low management efficiency.
By dynamically adjusting the number of columns in an online table, obtaining the specification attribute identifier based on the entity category identifier, and inserting necessary dynamic columns to centrally manage all entity information, the flexibility of dynamic columns can be achieved.
It improves the efficiency of processing entity information, simplifies management processes, avoids creating separate tables for each product category, and improves table rendering efficiency.
Smart Images

Figure CN119830877B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of data processing, and particularly relates to a table rendering method and device, equipment and medium. BACKGROUND
[0002] In daily production and life, it is common to manage the inventory of entities, and in the inventory management, it is a common means to manage the entities by Stock Keeping Unit (SKU). The SKU usually includes multiple specification attributes of the corresponding entity, such as color, size, weight, and the like.
[0003] In the related art, the entities are managed based on tables. Since the attribute information corresponding to different product categories is inconsistent, a table corresponding to each product category is separately set, and different product categories are managed based on different tables.
[0004] However, with the increase of entity categories, setting different tables for different entity categories will result in a large number of tables, and the related processing of information of different entity categories based on multiple different tables will result in low efficiency of processing entity information. SUMMARY
[0005] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a table rendering method, device, equipment and medium.
[0006] The present disclosure provides a table rendering method, which comprises the following steps: in response to monitoring that a user inputs a target entity category identifier in an entity category column of an online table, acquiring at least one first entity specification attribute identifier corresponding to the target entity category identifier; comparing whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than a first column number of a current dynamic column in the online table;
[0007] In response to being greater than the first column number, calculating a first difference value between the number of attributes corresponding to the at least one first entity specification attribute identifier and the first column number;
[0008] Inserting a dynamic column corresponding to the first difference value in the online table to obtain an updated current dynamic column;
[0009] Rendering the at least one first entity specification attribute identifier in the row corresponding to the target entity category identifier and the corresponding updated current dynamic column.
[0010] The embodiment of the present disclosure further provides a rendering device of a table, the device comprising: an acquisition module configured to acquire at least one first entity specification attribute identifier corresponding to a target entity category identifier in response to monitoring that a user inputs the target entity category identifier in an entity category column of an online table; a comparison module configured to compare whether a number of attributes corresponding to the at least one first entity specification attribute identifier is greater than a first column number of a current dynamic column in the online table; and a rendering processing module configured to calculate a first difference value between the number of attributes corresponding to the at least one first entity specification attribute identifier and the first column number in response to the number of attributes being greater than the first column number, insert a dynamic column corresponding to the first difference value in the online table to obtain an updated current dynamic column, and render the at least one first entity specification attribute identifier in a row corresponding to the target entity category identifier and the updated current dynamic column.
[0011] The embodiment of the present disclosure further provides an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; and the processor is configured to read the executable instructions from the memory and execute the instructions to implement the rendering method of the table provided by the embodiment of the present disclosure.
[0012] The embodiment of the present disclosure further provides a computer-readable storage medium, the storage medium storing a computer program, the computer program being used to execute the rendering method of the table provided by the embodiment of the present disclosure.
[0013] The embodiment of the present disclosure further provides a computer program product comprising a computer program, the computer program being used to execute the rendering method of the table provided by the embodiment of the present disclosure when executed by a processor.
[0014] The embodiment of the present disclosure provides the following advantages compared with the prior art: the rendering method of the table provided by the embodiment of the present disclosure comprises the following steps: in response to monitoring that a user inputs a target entity category identifier in an entity category column of an online table, acquiring at least one first entity specification attribute identifier corresponding to the target entity category identifier; comparing whether a number of attributes corresponding to the at least one first entity specification attribute identifier is greater than a first column number of a current dynamic column in the online table; and in response to the number of attributes being greater than the first column number, calculating a first difference value between the number of attributes corresponding to the at least one first entity specification attribute identifier and the first column number; inserting a dynamic column corresponding to the first difference value in the online table to obtain an updated current dynamic column; and rendering the at least one first entity specification attribute identifier in a row corresponding to the target entity category identifier and the updated current dynamic column. In the technical solution, all related information of entity categories is managed in an online table in the form of dynamic columns, and the processing efficiency of entity information is improved. BRIEF DESCRIPTION OF DRAWINGS
[0015] The above and other features, aspects and advantages of the present disclosure will become more apparent after a reading of the following detailed description together with the accompanying drawings. Like reference numerals used in the accompanying drawings and description refer to the same or similar elements throughout. It should be understood that the drawings are not necessarily to scale, with emphasis being placed upon illustrating the principles of the disclosure.
[0016] Figure 1 A table diagram for managing entity category information in the prior art;
[0017] Figure 2 An online table diagram for managing entity category information provided by an embodiment of the present disclosure;
[0018] Figure 3 A flow diagram of a rendering method of a table provided by an embodiment of the present disclosure;
[0019] Figure 4 A diagram of an entity category selection interface provided by an embodiment of the present disclosure;
[0020] Figure 5 Another online table diagram for managing entity category information provided by an embodiment of the present disclosure;
[0021] Figure 6 A structural diagram of a rendering device of a table provided by an embodiment of the present disclosure;
[0022] Figure 7 A structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] Embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings. While several embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be construed as being limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and fully convey the scope of the present disclosure to those skilled in the art. It should be understood that the drawings and embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure.
[0024] It should be understood that the various steps of the method embodiments of the present disclosure can be performed in different orders and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0025] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0026] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0027] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0028] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0029] As mentioned above, in existing technologies, the specification attributes corresponding to different product categories are different. For example, referring to... Figure 1 For the entity "Tripropylene Pipe", it includes specifications such as "model" and "color". Therefore, for the inventory management of "Tripropylene Pipe", a table 1 is set up, and the table header of table 1 includes "model" and "color". For the entity "Table", it includes specifications such as "size", "color" and "material". Since the specifications of the two entities are not exactly the same, a table 2 is set up for "Table", and the table header of table 2 includes "size", "color" and "material".
[0030] Managing different categories of entities using different tables results in a large number of tables, leading to low table rendering efficiency. For example, in scenarios where all entities need to be managed, each table needs to be opened individually, resulting in low management efficiency.
[0031] To address the aforementioned technical issues, this disclosure proposes a solution for processing entity information based on online tables. The specification and attribute information of entities of different categories can be displayed in the same online table. Thus, in scenarios where all entities are processed, only the online table needs to be viewed, thereby improving the rendering efficiency of the table.
[0032] That is, in the embodiments of this disclosure, the above-described Figure 1 Based on the scenario shown, such as Figure 2As shown, for the entity "three-propylene polypropylene pipe", the specification attributes such as "model" and "color" can be displayed in the first row in the online table, and for the entity "table", the specification attributes "size", "color" and "material" can be displayed in the second row in the online table, so that even for different categories of entities with different specification attributes, management can be performed in the same online table.
[0033] The method will be described below in conjunction with specific embodiments.
[0034] Figure 3 A flowchart of a rendering method of a table provided by an embodiment of the present disclosure is shown, which can be executed by a rendering device of the table. The device can be implemented by software and / or hardware, and can be integrated in an electronic device. As shown, Figure 3 The method includes the following steps.
[0035] In step 301, at least one first entity specification attribute identifier corresponding to the target entity category identifier is obtained in response to monitoring that the user inputs the target entity category identifier in the entity category column of the online table.
[0036] It should be noted that the column of the online table in the embodiment of the present disclosure at least includes an entity category column part, wherein each row cell in the entity category column is used to display an entity category identifier, and displaying the entity category identifier can include displaying the name of the entity category, the number of the entity category, or any information that identifies the entity category.
[0037] In an embodiment of the present disclosure, whether the user inputs the target entity category identifier in the entity category column of the online table is monitored, wherein the way of inputting the target entity category identifier is different in different application scenarios, and examples are as follows:
[0038] In some possible examples, the category input operation of the user in the entity category column is obtained, and the input operation is different in different scenarios, for example, if it is detected that the user performs a click operation on any cell in the entity category column, the category input operation is obtained.
[0039] In response to obtaining the category input operation of the user in the entity category column, an entity category selection interface is displayed, wherein the entity category selection interface is used to display candidate entity category identifiers to be selected, and the candidate entity category identifiers to be selected at least include one.
[0040] In the embodiment, the way of displaying the candidate entity category identifiers to be selected by the entity category selection interface can be set according to the needs of the scene, for example, as shown in Figure 4As shown, the candidate entity category identifiers to be selected can be displayed in the form of a pull-down menu, where the candidate entity category identifiers to be selected are category names of corresponding entity categories, including "three propylene pipe", "tie", "pipe block", "pipe cap", "bridge", and the like. In this embodiment, in response to obtaining the selection operation of the user on the target entity category identifier in the candidate entity category identifiers, the input target entity category identifier is monitored.
[0041] Further, in response to monitoring that the user inputs the target entity category identifier in the entity category column of the online form, at least one first entity specification attribute identifier corresponding to the target entity category identifier is obtained. As mentioned above, the entity specification attribute is related to the corresponding entity category, for example, when the entity category is "table", the corresponding specification attribute can include "size", "color", and "material", and the like. The entity specification attribute identifier can include the entity specification attribute name, specification attribute code, or any information that can indicate the specification attribute of the entity category.
[0042] In step 302, whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than the first column number of the current dynamic column in the online form is compared.
[0043] After obtaining the at least one first entity specification attribute identifier, whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than the first column number of the current dynamic column in the online form is compared, where the first column number can be 0, for example, when the online form does not have any stored information related to the entity category, the corresponding first column number can be 0.
[0044] It should be understood that in the embodiments of the present disclosure, the dynamic column in the online form is used as the carrier for rendering the entity specification attribute identifier of the entity category, the table header where the dynamic column is located does not correspond to a specific entity specification attribute identifier, the table header where the dynamic column is located can not display any information, or the table header where the dynamic column is located can display some high-level indication information, for example, continuing to refer to Figure 2 The table header where the dynamic column is located can display "entity specification attribute 1", "entity specification attribute 2", "entity specification attribute 3", and the like high-level indication information.
[0045] In this embodiment, whether the current dynamic column is sufficient for displaying the first entity specification attribute identifier is determined by comparing whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than the first column number of the current dynamic column in the online form.
[0046] In step 303, in response to being greater than the first column number, a first difference value between the number of attributes corresponding to the at least one first entity specification attribute identifier and the first column number is calculated.
[0047] Step 304: Insert a dynamic column corresponding to the first difference into the online table to obtain the updated current dynamic column.
[0048] Step 305: Render at least one first entity specification attribute identifier in the row containing the target entity category identifier and the corresponding updated current dynamic column.
[0049] In one embodiment of this disclosure, if the number of attributes corresponding to at least one first entity specification attribute identifier is greater than the number of first columns, it indicates that the current dynamic columns are insufficient to display the first entity specification attribute identifier. Therefore, in this embodiment, a first difference between the number of attributes corresponding to at least one first entity specification attribute identifier and the number of first columns is calculated. A dynamic column corresponding to the first difference is inserted into the online table to obtain an updated current dynamic column. The column can be inserted after the last column of the current dynamic column or after any other column of the current dynamic column; the insertion position can be set as needed. After inserting the dynamic column, the updated current dynamic column is obtained. Then, at least one first entity specification attribute identifier is rendered in the row corresponding to the target entity category identifier and the corresponding updated current dynamic column.
[0050] In this embodiment, at least one target dynamic column matching the number of attributes can be determined in the updated current dynamic column. Then, at least one first entity specification attribute identifier is rendered in at least one cell corresponding to the row containing the target entity category identifier and at least one target dynamic column, wherein at least one cell corresponding to the target dynamic column corresponds one-to-one with at least one first entity specification attribute identifier. Continuing with... Figure 2 Based on the scenario shown, such as Figure 5 As shown, if the target entity category is identified as "pipe cap", the first entity specification attribute identifier includes "model", "pipe cap shape", "material" and "pressure rating". The current dynamic column includes three columns: "entity specification attribute 1", "entity specification attribute 2" and "entity specification attribute 3", which is insufficient to display the four first entity specification attribute identifiers. Therefore, in this embodiment, a new dynamic column "entity specification attribute 4" is added after "entity specification attribute 1", "entity specification attribute 2" and "entity specification attribute 3". "Model", "pipe cap shape", "material" and "pressure rating" are rendered in the dynamic columns corresponding to "entity specification attribute 1", "entity specification attribute 2", "entity specification attribute 3" and "entity specification attribute 4" in the row where "pipe cap" is located. Similarly, in this embodiment, the attribute values of "model", "pipe cap shape", "material" and "pressure rating" can also be obtained and displayed in the corresponding cells.
[0051] In one embodiment of the present disclosure, when the number of attributes corresponding to the at least one first entity specification attribute identifier is no more than the first column number, it indicates that the current dynamic column is sufficient for displaying the first entity specification attribute identifier. Thus, in this embodiment, the at least one first entity specification attribute identifier is rendered in the row where the target entity category identifier is located and the corresponding current dynamic column.
[0052] In some possible implementations, the at least one target dynamic column matching the number of attributes is determined in the corresponding current dynamic column. That is, the first column number of the current dynamic column can be the same as the number of attributes corresponding to the first entity specification attribute identifier, in which case all the current dynamic columns are determined as target columns. Alternatively, the first column number of the current dynamic column can be less than the number of attributes corresponding to the first entity specification attribute identifier, in which case the at least one target dynamic column matching the number of attributes is selected from the current dynamic column. For example, the first column of the current dynamic column can be taken as a starting column, and the next continuous attribute number of dynamic columns can be selected as target dynamic columns. Alternatively, the attribute number of dynamic columns can be randomly selected from the current dynamic column as target dynamic columns.
[0053] Further, the at least one first entity specification attribute identifier is rendered in at least one cell corresponding to the row where the target entity category identifier is located and the at least one target dynamic column, where the at least one cell corresponding to the target dynamic column corresponds to the at least one first entity specification attribute identifier in one-to-one correspondence.
[0054] That is, continuing to refer to Figure 2 If the target entity category identifier is "table", the first entity specification attribute identifiers such as "size", "color" and "material" are displayed in the dynamic columns corresponding to "entity specification attribute 1", "entity specification attribute 2" and "entity specification attribute 3".
[0055] In one embodiment of the present disclosure, after rendering the first entity specification attribute identifier, the attribute value corresponding to the first entity specification attribute identifier can also be rendered in the corresponding cell. For example, the specific size value "1.5*1.3" is rendered in the "size" cell. In this embodiment, the attribute value of the target entity specification attribute input by the user can be rendered in the target cell where the target entity specification attribute is located. In other possible implementations, other ways can also be used to obtain the attribute value. For example, the user identifier of the corresponding user can be read, the entity category identifier corresponding to the user identifier can be queried according to a preset correspondence, and the entity specification attribute and attribute value corresponding to the entity category identifier can be determined.
[0056] Thus, in the embodiment, the complexity problem of traditional multi-table management is solved, all related information of entity categories is concentrated in an online table, the management process is simplified, and dynamic columns of the online table can be dynamically rendered according to entity specification attributes. The dynamic adjustment capability enables the online table to flexibly adapt to the management requirements of entity specification attributes of different entity categories without creating separate tables for each entity category.
[0057] In actual execution, in order to further improve the rendering efficiency of the table, a fixed column can also be set in the online table, the header corresponding to the fixed column displays entity specification attribute identifiers common to a large number of entity categories, for example, can include “belonging brand”, “product name” and the like. Thus, in the embodiment, when obtaining the attribute values of the entity specification attributes in the dynamic column, the attribute values of the entity specification attributes corresponding to the fixed column can also be obtained, and the corresponding attribute values are rendered in the cells corresponding to the fixed column. In order to facilitate distinction, the dynamic column and the fixed column can also be displayed respectively by different display parameters, wherein the display parameters include but are not limited to one or more of header fill color, font size, cell fill color and the like.
[0058] In actual execution, in order to ensure the reliability of the management of related information of entity categories, the entity specification attribute identifier can be set to an uneditable state to avoid tampering.
[0059] In actual execution, in addition to the input of the target entity category identifier in the entity category column of the online table in the above-mentioned embodiment, the target entity category identifier can also be deleted in the entity category column of the online table, that is, the user's deletion operation of the target entity category identifier in the entity category column of the online table is monitored. In this case, all information in the row where the target entity category identifier is located can be directly deleted, and it can also be identified whether all entity specification attribute identifiers rendered in each dynamic column corresponding to at least one first entity specification attribute identifier corresponding to the target entity category identifier only contain the corresponding first entity specification attribute identifier. If there is a first entity specification attribute identifier, the corresponding dynamic column of the online table is deleted to achieve the simplification of the online table.
[0060] For example, continuing with the scenario shown in Figure 5 If the user's deletion operation of “cap” in the entity category column of the online table is monitored, since only the entity specification attribute identifier corresponding to “cap” is rendered in the dynamic column corresponding to “entity specification attribute 4”, the dynamic column where “entity specification attribute 4” is located is deleted.
[0061] In summary, the rendering method of the table in the embodiment of the disclosure, in response to monitoring that the user inputs a target entity category identifier in the entity category column of the online table, at least one first entity specification attribute identifier corresponding to the target entity category identifier is acquired, whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than the first column number of the current dynamic column in the online table is compared, and then, in response to being greater than the first column number, a first difference value between the number of attributes corresponding to the at least one first entity specification attribute identifier and the first column number is calculated; a dynamic column corresponding to the first difference value is inserted in the online table to obtain an updated current dynamic column; and the at least one first entity specification attribute identifier is rendered in the row where the target entity category identifier is located and the corresponding updated current dynamic column. In the technical solution, the related information of all entity categories is managed in the form of a dynamic column in an online table, and the processing efficiency of entity information is improved.
[0062] Based on the above embodiment, in different application scenarios, the way of acquiring at least one first entity specification attribute identifier corresponding to the target entity category identifier is different, for example as follows:
[0063] In some possible embodiments, the online table is communicatively connected with a preset entity information management database through a preset communication interface, the preset entity information management database is used to store the correspondence between the entity category identifier and the corresponding entity specification attribute identifier in real time, the preset entity information management database can be understood as an online database specially used to store all entity categories and the corresponding entity specification attributes, so that in the embodiment, the preset communication interface can be called to query the preset entity information management database to acquire at least one first entity specification attribute identifier corresponding to the target entity category identifier, and the preset entity information management database includes the correspondence between the entity category identifier and the entity specification attribute identifier.
[0064] In the embodiment, all first entity specification attribute identifiers corresponding to the target entity category identifier in the preset entity information management database are traversed, so that the comprehensiveness and reliability of the acquired first entity specification attribute identifier are ensured.
[0065] In some possible embodiments, the at least one first entity specification attribute identifier stored in the preset entity information management database can also change, since the online table is communicatively connected with the preset entity information management database through the preset communication interface, the online table can also synchronize the change, so that the timeliness of the related data in the online table is ensured. Such synchronization cannot be achieved in the prior art.
[0066] In the embodiment, in response to obtaining an update operation of at least one first entity specification attribute identifier corresponding to the target entity category identifier in the preset entity information management database, at least one second entity specification attribute identifier updated is obtained, the at least one second entity specification attribute identifier is not completely the same as the at least one first entity specification attribute identifier, and then the at least one first entity specification attribute identifier is updated and rendered as the at least one second entity specification attribute identifier in the row where the target entity category identifier is located and the corresponding current dynamic column.
[0067] Before the at least one first entity specification attribute identifier is updated and rendered as the at least one second entity specification attribute identifier in the row where the target entity category identifier is located and the corresponding current dynamic column, whether the number of attributes corresponding to the at least one second entity specification attribute identifier is greater than a second column number of the current dynamic column in the online table is compared, in response to being greater than the second column number, a second difference value between the number of attributes corresponding to the at least one second entity specification attribute identifier and the second column number is calculated, and a dynamic column corresponding to the second difference value is inserted in the online table. In order to ensure that there are enough dynamic columns to render the second entity specification attribute identifier.
[0068] Since the first entity specification attribute identifier may contain a repeated part of the second entity specification attribute identifier in the actual rendering process, in order to improve the rendering efficiency, in some possible embodiments, different first entity specification attribute identifiers in the first entity specification attribute identifier and the second entity specification attribute identifier are determined, the different first entity specification attribute identifiers are updated to the corresponding second entity specification attribute, and if there are still remaining unrendered second entity specification attribute identifiers, the unrendered second entity specification attribute identifiers are rendered in the remaining dynamic columns.
[0069] Of course, in the embodiments of the disclosure, attribute values corresponding to the second entity specification attribute identifier are also obtained, and the attribute values are rendered in the cell where the second entity specification attribute identifier is located, wherein the second entity specification attribute identifier can be set as non-editable, and the corresponding attribute value can be set as editable, wherein the second entity specification attribute identifier and the attribute value corresponding to the second entity specification attribute identifier can be displayed in different colors, so as to facilitate the user to intuitively know that the second entity specification attribute identifier is non-editable and the attribute value corresponding to the second entity specification attribute identifier is editable.
[0070] In another embodiment of the disclosure, at least one first entity specification attribute identifier corresponding to the target entity category identifier can be input by a relevant management personnel.
[0071] In summary, the rendering method of the table according to the embodiments of the present disclosure connects the data of the entity category stored in the preset entity information management database with the online table, ensures the synchronization of the related data rendered in the online table and the data stored in the preset entity information management database, and improves the reliability of the related data in the online table.
[0072] To implement the above embodiments, the present disclosure further provides a table rendering device.
[0073] Figure 6 A structural schematic diagram of a table rendering device according to an embodiment of the present disclosure is provided. The device can be implemented by software and / or hardware, and can be integrated in an electronic device. As shown in the figure, the device comprises an acquisition module 610, a comparison module 620, and a rendering processing module 630. Figure 6
[0074] The acquisition module 610 is configured to acquire at least one first entity specification attribute identifier corresponding to the target entity category identifier in response to monitoring that a user inputs a target entity category identifier in the entity category column of the online table.
[0075] The comparison module 620 is configured to compare whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than the first column number of the current dynamic column in the online table.
[0076] The rendering processing module 630 is configured to render the at least one first entity specification attribute identifier in the row where the target entity category identifier is located and the corresponding current dynamic column in response to the number not being greater than the first column number.
[0077] In some embodiments, the rendering processing module 630 is configured to:
[0078] determine at least one target dynamic column matching the number of attributes in the corresponding current dynamic column;
[0079] render the at least one first entity specification attribute identifier in at least one cell corresponding to the row where the target entity category identifier is located and the at least one target dynamic column, wherein the at least one cell corresponding to the target dynamic column corresponds to the at least one first entity specification attribute identifier one by one.
[0080] In some embodiments, the rendering processing module 630 is further configured to:
[0081] render the attribute value of the target entity specification attribute in the target cell where the target entity specification attribute is located in response to receiving the attribute value of the target entity specification attribute input by the user.
[0082] In some embodiments, the device further comprises a first dynamic column management module configured to:
[0083] after comparing whether a quantity of attributes corresponding to the at least one first entity specification attribute identifier is greater than a first column number of the current dynamic column in the online table, in response to being greater than the first column number, calculating a first difference value between the quantity of attributes corresponding to the at least one first entity specification attribute identifier and the first column number;
[0084] inserting a dynamic column corresponding to the first difference value in the online table to obtain an updated current dynamic column;
[0085] rendering the at least one first entity specification attribute identifier in a row where the target entity category identifier is located and the corresponding updated current dynamic column.
[0086] In some embodiments, the obtaining module 610 is configured to:
[0087] querying a preset entity information management database through a preset communication interface to obtain at least one first entity specification attribute identifier corresponding to the target entity category identifier, wherein
[0088] The preset entity information management database comprises a corresponding relationship between an entity category identifier and an entity specification attribute identifier.
[0089] In some embodiments, the rendering processing module 630 is further configured to:
[0090] in response to obtaining an update operation of the at least one first entity specification attribute identifier corresponding to the target entity category identifier in the preset entity information management database, obtaining at least one second entity specification attribute identifier updated,
[0091] The at least one second entity specification attribute identifier is not completely the same as the at least one first entity specification attribute identifier.
[0092] updating and rendering the at least one first entity specification attribute identifier as the at least one second entity specification attribute identifier in a row where the target entity category identifier is located and the corresponding current dynamic column.
[0093] In some embodiments, the second dynamic column management module is further configured to:
[0094] in response to obtaining a category input operation of a user in the entity category column, displaying an entity category selection interface, wherein the entity category selection interface is configured to display a candidate entity category identifier to be selected;
[0095] in response to obtaining a selection operation of the user on a target entity category identifier in the candidate entity category identifier, monitoring that the target entity category identifier is input.
[0096] The table rendering apparatus provided in the embodiments of the present disclosure can perform the table rendering method provided in any of the embodiments of the present disclosure, and has the corresponding function modules and beneficial effects of the execution method.
[0097] To achieve the above-mentioned embodiments, the present disclosure further provides a computer program product comprising computer programs / instructions which, when executed by a processor, implement the rendering method of the table in the above-mentioned embodiments.
[0098] Figure 7 A structural schematic diagram of an electronic device provided by the embodiments of the present disclosure.
[0099] The following will be specifically described with reference to Figure 7 which shows a structural schematic diagram of an electronic device 700 suitable for implementing the embodiments of the present disclosure. The electronic device 700 in the embodiments of the present disclosure can include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet Personal Computer), a PMP (Portable Multimedia Player), a vehicle terminal (such as a vehicle navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and use range of the embodiments of the present disclosure.
[0100] As shown in Figure 7 , the electronic device 700 can include a processor (such as a central processor, a graphics processor, etc.) 701 which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 702 or programs loaded from a storage 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0101] Generally, the following devices can be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, and the like; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, and the like; a storage 708 including, for example, a magnetic tape, a hard disk, and the like; and a communication device 709. The communication device 709 can allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 with various devices is shown, but it should be understood that it is not required to implement or have all the devices shown. More or less devices can be alternatively implemented or provided.
[0102] In particular, the processes described above with reference to the flowcharts can be implemented as a computer software program in accordance with embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for carrying out the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication device 709, or installed from the memory 708, or installed from the ROM 702. When the computer program is executed by the processor 701, the above-mentioned functions defined in the rendering method of the table of embodiments of the present disclosure are performed.
[0103] It should be noted that the computer-readable medium described above in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium may, for example, be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium can include a data signal propagated in a baseband or as a carrier wave in a propagated data signal, in which the computer-readable program code is carried. Such a propagated data signal can take many forms, including but not limited to, an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium that is not a computer-readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained in the computer-readable medium can be transmitted by any suitable medium, including but not limited to, wire, cable, RF (radio frequency), or the like, or any suitable combination thereof.
[0104] In some embodiments, the client, server, can communicate using any known or future developed network protocols, such as the HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any current or future developed network.
[0105] The computer-readable medium described above can be included in the electronic device described above; or can exist independently of the electronic device.
[0106] The computer-readable medium described above carries one or more programs, which, when executed by the electronic device, cause the electronic device to:
[0107] In response to monitoring that a user inputs a target entity category identifier in the entity category column of the online table, at least one first entity specification attribute identifier corresponding to the target entity category identifier is obtained, whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than the first column number of the current dynamic column in the online table is compared, and then, in response to being greater than the first column number, a first difference value between the number of attributes corresponding to the at least one first entity specification attribute identifier and the first column number is calculated; a dynamic column corresponding to the first difference value is inserted in the online table to obtain an updated current dynamic column; and the at least one first entity specification attribute identifier is rendered in the row where the target entity category identifier is located and the corresponding updated current dynamic column. In the technical solution, the related information of all entity categories is managed in a dynamic column manner in one online table, and the processing efficiency of entity information is improved.
[0108] Computer program code for carrying out operations of the present disclosure can be written in any of one or more programming languages or combinations of languages including object or visual programming languages specifically, assembly language, C, C++, Java, Visual Basic, or the like. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network ("LAN") or a wide area network ("WAN"), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, application specific circuitry, or field programmable gate array ("FPGA") or other hardware can execute the program code.
[0109] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the flow diagrams or block diagrams can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations thereof, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or combinations of hardware and software.
[0110] The units described in the embodiments of the present disclosure can be implemented by software, or by hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself.
[0111] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, non-limiting examples of exemplary types of hardware logic components that can be used include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SOCs), complex programmable logic devices (CPLDs), etc.
[0112] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include a lined- up electrical connection, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. The foregoing description of a preferred embodiment and associated description of the technical principles utilized are merely exemplary. It should be understood that the scope of the disclosure is not limited to the specific combinations of technical features described above, but rather encompasses other technical solutions formed by any combination of the technical features described above or equivalent features, without departing from the concept of the disclosure. For example, technical solutions formed by replacing the above features with technical features having similar functions disclosed in the disclosure (but not limited to) can be included.
[0113] Furthermore, while operations are depicted in a particular, sequential order, this should not be understood as requiring or implying that the operations are performed in the order depicted or in sequential order, and that all operations be performed. In certain circumstances, multitasking and parallel processing can be advantageous. Likewise, while specific implementations are discussed, these should not be understood to suggest or require that the scope of the disclosure be limited to these specific implementations. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable sub-combination.
[0114] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
1. A method for rendering a table, characterized in that, Includes the following steps: In response to detecting that a user enters a target entity category identifier in the entity category column of an online form, at least one first entity specification attribute identifier corresponding to the target entity category identifier is obtained, wherein each entity category identifier in the online form is displayed in the corresponding cell of the entity category column; Compare whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than the number of the first column of the current dynamic column in the online table; In response to a number greater than the first column number, calculate a first difference between the number of attributes corresponding to the at least one first entity specification attribute identifier and the first column number; Insert a dynamic column corresponding to the first difference into the online table to obtain the updated current dynamic column, wherein the header of the dynamic column in the online table does not correspond to any entity specification attribute identifier; Identify at least one target dynamic column in the updated current dynamic columns that matches the number of said attributes; In at least one cell corresponding to the row containing the target entity category identifier and the at least one target dynamic column, the at least one first entity specification attribute identifier is rendered, wherein the at least one cell corresponding to the target dynamic column corresponds one-to-one with the at least one first entity specification attribute identifier.
2. The method as described in claim 1, characterized in that, Also includes: In response to receiving the attribute value of the target entity specification attribute input by the user, the attribute value is rendered in the target cell where the target entity specification attribute is located.
3. The method as described in claim 1, characterized in that, After comparing whether the number of attributes corresponding to the at least one first entity specification attribute identifier is greater than the number of the first column of the current dynamic column in the online table, the method further includes: In response to a number not greater than the number in the first column, render the at least one first entity specification attribute identifier in the row where the target entity category identifier is located and the corresponding current dynamic column.
4. The method according to any one of claims 1-3, characterized in that, The step of obtaining at least one first entity specification attribute identifier corresponding to the target entity category identifier includes: The system invokes a preset communication interface to query a preset entity information management database, obtaining at least one first entity specification attribute identifier corresponding to the target entity category identifier. The preset entity information management database includes the correspondence between entity category identifiers and entity specification attribute identifiers.
5. The method as described in claim 4, characterized in that, Also includes: In response to an update operation that obtains at least one first entity specification attribute identifier corresponding to the target entity category identifier in the preset entity information management database, at least one updated second entity specification attribute identifier is obtained, wherein, The at least one second entity specification attribute identifier is not exactly the same as the at least one first entity specification attribute identifier; In the row where the target entity category identifier is located and the corresponding current dynamic column, the at least one first entity specification attribute identifier is updated and rendered to the at least one second entity specification attribute identifier.
6. The method as described in claim 5, characterized in that, Before updating and rendering the at least one first entity specification attribute identifier to the at least one second entity specification attribute identifier in the row and corresponding current dynamic column where the target entity category identifier is located, the method further includes: Compare whether the number of attributes corresponding to the at least one second entity specification attribute identifier is greater than the number of the second column of the current dynamic column in the online table; In response to a number greater than the number of the second column, a second difference between the number of attributes corresponding to the at least one second entity specification attribute identifier and the number of the second column is calculated; Insert a dynamic column corresponding to the second difference into the online table.
7. The method according to any one of claims 1-3, characterized in that, Before detecting that a user has entered a target entity category identifier in the entity category column of an online form, the method further includes: In response to receiving a user's category input operation in the entity category column, an entity category selection interface is displayed, wherein the entity category selection interface is used to display the identifiers of the candidate entity categories to be selected; In response to the user's selection of the target entity category identifier from the candidate entity category identifiers, the system detects the input of the target entity category identifier.
8. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the table rendering method according to any one of claims 1-7.
9. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the method for rendering the table according to any one of claims 1-7.
Citation Information
Patent Citations
Table column adjusting method and device, storage medium and terminal equipment
CN112989776A
Form extension method and device, computer equipment and storage medium
CN114297552A