Display method, device, apparatus and storage medium for command execution result

By receiving and processing command execution results in the OMC management system, command matching and data priority sorting are solved, the problem of messy data display of command results is realized, priority display of important commands is improved, user experience is improved and development costs are reduced.

CN114968441BActive Publication Date: 2025-07-25DATANG MOBILE COMM EQUIP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110215251.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-25
Publication Date
2025-07-25
Estimated Expiration
2041-02-25

AI Technical Summary

Technical Problem

In the existing OMC management system, the data display of command execution results is disordered, which makes it difficult to find important data and poor user experience.

Method used

By receiving result information, command matching and data processing are performed, including priority sorting and format optimization, the priority display of important command results is achieved.

Benefits of technology

It improves the readability of command execution results, improves user experience, reduces development costs, and implements priority display of important commands without changing server code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114968441B_ABST
    Figure CN114968441B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a method, device, apparatus, and storage medium for displaying command execution results. By receiving the result information obtained from the execution, matching the command for the result information to obtain a command that matches the result information, and generating the data to be displayed for the command, where the data to be displayed includes the result information, performing data processing on the data to be displayed based on the command, the data processing includes priority sorting, and displaying the data to be displayed after data processing, which realizes the priority display of important command results, can improve the readability of the display of command execution results, and enhance the user experience.
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, apparatus and storage medium for displaying command execution results. Background Art

[0002] With the development of the Internet, browser pages have evolved from simple data display to dynamic interaction, and the resulting issue is the improvement of user experience.

[0003] The existing OMC (Operations & Maintenance Center) management system uses the Input.TextArea component in the Ant Design tool to present the command execution result data. However, due to the concurrent execution of commands in the background, the command result data is usually displayed in a disorderly manner in the text box, and it is difficult to find important data when there is too much data. Summary of the invention

[0004] The embodiments of the present application provide a method, device, apparatus and storage medium for displaying command execution results, so as to solve the defects of the prior art that data display is disorderly and difficult to search, and realize the priority display of the execution results of important commands.

[0005] In a first aspect, an embodiment of the present application provides a method for displaying command execution results, including:

[0006] Receive the result information obtained from the execution;

[0007] Performing command matching on the result information to obtain a command matching the result information, and generating data to be displayed of the command, wherein the data to be displayed includes the result information;

[0008] Based on the command, data processing is performed on the data to be displayed, wherein the data processing includes priority sorting;

[0009] Display the data to be displayed after data processing.

[0010] Optionally, according to a method for displaying command execution results of an embodiment of the present application, the data processing further includes format optimization;

[0011] The step of processing the data to be displayed based on the command includes:

[0012] Based on the command, determine the data type of the result information and the data priority of the data to be displayed;

[0013] If the data type is a table type, format optimization is performed on the result information to obtain the data to be displayed with optimized format, and based on the data priority, priority sorting is performed on the data to be displayed with optimized format;

[0014] Otherwise, based on the data priority, priority sorting is performed on the data to be displayed.

[0015] Optionally, according to the display method of the command execution result of an embodiment of the present application, the performing format optimization on the result information includes:

[0016] Based on the line break markers in the result information, perform line splitting on the result information to obtain at least one line of data;

[0017] Based on the column separation markers in each line of data, perform column splitting on each line of data to obtain at least one cell of data in each line of data;

[0018] Based on the widths of the column cell data, perform format optimization on the result information.

[0019] Optionally, according to the display method of the command execution result of an embodiment of the present application, the performing priority sorting on the data to be displayed based on the data priority includes:

[0020] Place the data to be displayed at the end of the priority queue corresponding to the data priority;

[0021] Merge the priority queues according to the order of decreasing priority.

[0022] Optionally, according to the display method of the command execution result of an embodiment of the present application, the displaying the data to be displayed after data processing includes:

[0023] Based on the data height of the data to be displayed, and the area height and scroll bar position of the display area, select the data to be rendered from the data to be displayed, where the data to be rendered is part of the data to be displayed required for display in the display area;

[0024] Render the data to be rendered and display it in the display area.

[0025] Optionally, according to the display method of the command execution result of an embodiment of the present application, the selecting the data to be rendered from the data to be displayed based on the data height of the data to be displayed, and the area height and scroll bar position of the display area includes:

[0026] Detect the scroll bar position;

[0027] If the position of the scroll bar is at the bottom of the area, the data at the very end of the data to be displayed is selected as the data to be rendered based on the height of the area.

[0028] If the position of the scroll bar changes, the data to be rendered is selected from the data to be displayed based on the data height of the data to be displayed, the height of the display area, and the position of the scroll bar.

[0029] Optionally, in the method for displaying the execution result of a command according to an embodiment of the present application, the maximum height of the data to be rendered is greater than the height of the area.

[0030] Optionally, in the method for displaying the execution result of a command according to an embodiment of the present application, the rendering the data to be rendered and displaying it in the display area includes:

[0031] Render the data to be rendered to obtain display information;

[0032] Unify the fonts of the display information, and display the display information with unified fonts in the display area.

[0033] In a second aspect, an embodiment of the present application further provides a device for displaying the execution result of a command, including a memory, a transceiver, and a processor:

[0034] The memory is used to store computer programs; the transceiver is used to send and receive data under the control of the processor; the processor is used to read the computer programs in the memory and perform the following operations:

[0035] Receive the result information obtained from the execution;

[0036] Perform command matching on the result information to obtain a command that matches the result information, and generate the data to be displayed for the command, where the data to be displayed includes the result information;

[0037] Based on the command, perform data processing on the data to be displayed, where the data processing includes priority sorting;

[0038] Display the data to be displayed after data processing.

[0039] Optionally, in the device for displaying the execution result of a command according to an embodiment of the present application, the data processing further includes format optimization;

[0040] The performing data processing on the data to be displayed based on the command includes:

[0041] Based on the command, determine the data type of the result information and the data priority of the data to be displayed;

[0042] If the data type is a table type, format optimization is performed on the result information to obtain the data to be displayed with optimized format, and based on the data priority, priority sorting is performed on the data to be displayed with optimized format;

[0043] Otherwise, based on the data priority, priority sorting is performed on the data to be displayed.

[0044] Optionally, for the display device of the command execution result according to an embodiment of the present application, the performing format optimization on the result information includes:

[0045] Based on the line break markers in the result information, perform line splitting on the result information to obtain at least one line of data;

[0046] Based on the column separation markers in each line of data, perform column splitting on each line of data to obtain at least one cell of data in each line of data;

[0047] Based on the widths of the column cell data, perform format optimization on the result information.

[0048] Optionally, for the display device of the command execution result according to an embodiment of the present application, the performing priority sorting on the data to be displayed based on the data priority includes:

[0049] Place the data to be displayed at the end of the priority queue corresponding to the data priority;

[0050] Merge each priority queue according to the order of decreasing priority.

[0051] Optionally, for the display device of the command execution result according to an embodiment of the present application, the displaying the data to be displayed after data processing includes:

[0052] Based on the data height of the data to be displayed, and the area height and scroll bar position of the display area, select the data to be rendered from the data to be displayed, where the data to be rendered is a part of the data to be displayed required for display in the display area;

[0053] Render the data to be rendered and display it in the display area.

[0054] Optionally, for the display device of the command execution result according to an embodiment of the present application, the selecting the data to be rendered from the data to be displayed based on the data height of the data to be displayed, and the area height and scroll bar position of the display area includes:

[0055] Detect the scroll bar position;

[0056] If the position of the scroll bar is at the bottom of the area, the data at the very end of the data to be displayed is selected as the data to be rendered based on the height of the area.

[0057] If the position of the scroll bar changes, the data to be rendered is selected from the data to be displayed based on the data height of the data to be displayed, the height of the display area, and the position of the scroll bar.

[0058] Optionally, in the display device for the command execution result according to an embodiment of the present application, the maximum height of the data to be rendered is greater than the height of the area.

[0059] Optionally, in the display device for the command execution result according to an embodiment of the present application, the rendering of the data to be rendered and the display in the display area include:

[0060] Render the data to be rendered to obtain display information;

[0061] Unify the fonts of the display information, and display the display information with unified fonts in the display area.

[0062] In a third aspect, an embodiment of the present application further provides a display device for command execution results, including:

[0063] A receiving unit, configured to receive the result information obtained by the execution;

[0064] A matching unit, configured to perform command matching on the result information to obtain a command that matches the result information, and generate the data to be displayed for the command, where the data to be displayed includes the result information;

[0065] A processing unit, configured to perform data processing on the data to be displayed based on the command, where the data processing includes priority sorting;

[0066] A display unit, configured to display the data to be displayed after data processing.

[0067] In a fourth aspect, an embodiment of the present application further provides a processor-readable storage medium, characterized in that the processor-readable storage medium stores a computer program, and the computer program is used to cause the processor to execute the steps of the display method for command execution results described in the first aspect above.

[0068] The display method, device, device, and storage medium for command execution results provided by the embodiments of the present application achieve the priority display of important command results by performing command matching on the result information to obtain the data to be displayed for the command and performing priority sorting on the data to be displayed based on the command, which can improve the readability of the display of command execution results and enhance the user experience. Description of the Drawings

[0069] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.

[0070] Figure 1 is a schematic flowchart of a method for displaying the command execution result provided by an embodiment of the present application;

[0071] Figure 2 is a schematic flowchart of a data processing method for data to be displayed provided by an embodiment of the present application;

[0072] Figure 3 is a schematic flowchart of a method for displaying data to be displayed provided by an embodiment of the present application;

[0073] Figure 4 is a schematic structural diagram of a device for displaying the command execution result provided by an embodiment of the present application;

[0074] Figure 5 is a schematic structural diagram of a device for displaying the command execution result provided by an embodiment of the present application. Specific embodiments

[0075] In the embodiments of the present application, the term "and / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0076] In the embodiments of the present application, the term "a plurality of" refers to two or more, and other quantifiers are similar.

[0077] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.

[0078] The current OMC management system uses the Input.TextArea component in the Antd tool to present the execution result data of commands. The main defect of the existing solution is that the data display is chaotic and disorderly, and it is very difficult to find important data when there is too much data. Each embodiment of the present application discloses a method for displaying command execution results. Without modifying the server-side code and with low-cost modification of the front-end code, it realizes the priority display of important command results, improves the readability of real-time data, and enhances the user experience.

[0079] Figure 1 FIG. 4 is a schematic flowchart of the method for displaying command execution results provided by the embodiments of the present application. As Figure 1 shown, the execution subject of the method for displaying command execution results can be the OMC management system or other Web sides used to implement the function of displaying command execution results. The following takes the OMC management system as an example for illustration. The method includes:

[0080] Step 110: Receive the result information obtained from the execution.

[0081] Specifically, after the server executes the command, it will return the result information obtained from the corresponding command execution to the OMC management system for the OMC management system to display. The result information obtained from the execution here may include the result of the command execution, such as whether the command execution is successful, and may also include the information obtained from the command execution, such as the data obtained after the command is successfully executed, or the failure reason analyzed after the command execution fails, etc. The embodiments of the present application do not make specific limitations on this.

[0082] Step 120: Perform command matching on the result information to obtain the command that matches the result information, and generate the data to be displayed for the command. The data to be displayed includes the result information.

[0083] Specifically, since the received result information is all obtained from the command execution, on the OMC management system side, the command actually corresponding to the result information can also be inferred based on the received result information, which can be specifically realized by performing command matching on the result information. The command matching referred to here may be to match the received result information with the results expected to be generated by each pre-set candidate command, so as to determine the command actually corresponding to the result information, that is, the command that matches the result information.

[0084] After obtaining the command that matches the result information, the data to be displayed for the command can be generated. Here, the data to be displayed for the command is the data related to the command that needs to be displayed on the OMC management system, which may include the command itself and the result information that matches it, and may also include related information such as the friendly name of the network element, the type of the network element, the command issuance time, and the message return time. The embodiments of the present application do not make specific limitations on this.

[0085] Optionally, when performing command matching, the OMC management system may input the result information into the command model for command matching, so as to obtain the command and its related information that match the result information output by the command model. The command model referred to here may be built-in in the OMC management system or pre-constructed according to requirements.

[0086] Step 130: Based on the command, perform data processing on the data to be displayed, and the data processing includes priority sorting.

[0087] Specifically, considering the situation of parallel command sending, the OMC management system usually receives simultaneously or successively within a short period of time the result information returned based on multiple commands. Since the multiple received result information is chaotic and disorderly, it is extremely difficult for users to quickly locate the information they need to understand when reading the information. To address this issue, the embodiments of the present application set corresponding priorities for each command. After obtaining the data to be displayed, it is possible to sort the data to be displayed based on the priority of the command corresponding to the data to be displayed, so that the data to be displayed corresponding to the command with a higher priority can be displayed first, and the data to be displayed corresponding to the command with a lower priority can be displayed at a later position, facilitating users to quickly locate the information they need to understand. Here, the evaluation criteria for the priority of the command can be preset by the system according to the importance of the command or user-defined.

[0088] Step 140: Display the data to be displayed after data processing.

[0089] Specifically, after completing the data processing based on the command, the data to be displayed after data processing can be displayed.

[0090] The method provided by the embodiments of the present application obtains the data to be displayed of the command by performing command matching on the result information, sorts the data to be displayed based on the command by priority, realizes the priority display of important command results, can improve the readability of the display of command execution results, and enhance the user experience. In addition, this method can be implemented only by modifying the front-end code and does not require modifying the server-side code, improving the development efficiency and greatly reducing the development cost.

[0091] Based on any of the above embodiments, the data processing further includes format optimization.

[0092] Specifically, considering that the result information returned based on different commands may present different formats, especially when the result information returned by some commands contains tabular data, direct display may cause problems such as misaligned lines, seriously affecting readability. Therefore, based on the command itself, it can be determined whether the data to be displayed corresponding to it has a need for format optimization, and targeted format optimization can be performed on the data to be displayed that requires format optimization. For example, based on the command itself, it can be determined whether there is tabular data in the data to be displayed that requires format optimization, and format optimization can be performed on the data to be displayed that contains tabular data. The format optimization referred to here is format regularization.

[0093] Based on any of the above embodiments, Figure 2 is a schematic flowchart of the data processing method for the data to be displayed provided by the embodiment of the present application, as Figure 2 shown, step 130 includes:

[0094] Based on the command, determine the data type of the result information and the data priority of the data to be displayed;

[0095] If the data type is a table type, optimize the format of the result information to obtain the data to be displayed with optimized format, and perform priority sorting on the data to be displayed with optimized format based on the data priority;

[0096] Otherwise, perform priority sorting on the data to be displayed based on the data priority.

[0097] Specifically, when performing data processing, it is first necessary to determine the data type of the result information corresponding to the command, and determine the data priority of the data to be displayed. Here, the data type of the result information returned by each command, as well as the data priority of each command itself, are preset. The data type can be a table type or a non-table type, and the data priority can be one of multiple preset candidate levels. For example, the data type of the result information corresponding to the ACT NRCELL (cell deactivation) command is a non-table type, and the corresponding data priority is important. The data type of the result information corresponding to the LST NRADJCELL (query neighboring cell) command is a table type, and the corresponding data priority is secondary.

[0098] If the data type is a table type, the result information in the data to be displayed can be first optimized in format to obtain the result information with optimized format, and the result information with optimized format is used to replace the original result information to obtain the data to be displayed with optimized format. After that, perform priority sorting on the data to be displayed according to the determined data priority;

[0099] Otherwise, that is, the data type of the result information is not a table type, then the data to be displayed can be directly sorted according to the determined data priority.

[0100] Based on any of the above embodiments, format optimization is performed on the result information, including:

[0101] Based on the line break markers in the result information, the result information is line-segmented to obtain at least one line of data;

[0102] Based on the column separation markers in each line of data, each line of data is column-segmented to obtain at least one cell of data in each line of data;

[0103] Based on the widths of the cell data in each column, format optimization is performed on the result information.

[0104] Specifically, the line break marker is a marker in the result information used to indicate the end of a line in the table, and the column separation marker is a marker in each line of data used to indicate that the subsequent part here is another cell in the table. First, according to the line break markers in the result information, the result information can be line-segmented, thereby obtaining one line of data or multiple lines of data. Each line of data contains one line of data in the table. The number of segmented lines of data is determined by the number of line break markers. For example, when there is only one line break marker in the result information, the final result information is segmented into two lines of data.

[0105] Next, according to the column separation markers in each line of data, each line of data can be further column-segmented to segment each line of data into one cell of data or multiple cells of data. Similarly, the number of segmented cells is determined by the number of column separation markers.

[0106] At this time, the result information is segmented into cell data distributed in each row and each column. However, since the number of bytes occupied by the cell data in each row under the same column may be inconsistent, the widths of the cell data in each row under the same column will vary accordingly. This causes the problem of misalignment of the cell data in this column, and it is difficult to see the corresponding relationship during display, resulting in poor readability. For example, the second cell data in the second row is directly below the fourth cell data in the first row, while the second cell data in the second row corresponds to the second cell data in the first row.

[0107] Therefore, it is also necessary to adjust the widths of all the cell data in this column to be the same according to the widths of the cell data in each row under the same column. Further, the maximum width of the cell data in a column can be directly used as the target width for adjusting the cell data in this column. For example, for the cell data in the third column, its maximum width is the width of the cell data in the third column of the fourth row, that is, 24 bytes. Then, the widths of the remaining cell data in the third column can be adjusted to 24 bytes. Specifically, when adjusting the width of the cell data, the cell data to be adjusted can be padded with spaces to ensure that the width after padding reaches the target width.

[0108] After adjusting the widths of the cell data in each column, the widths of the cell data in each cell under each column are kept consistent, and the result information with optimized format is obtained. It should be noted that the widths of the cell data between different columns can be the same or different.

[0109] The method provided by the embodiment of the present application obtains the cell data in each column by performing row splitting and column splitting on the result information, and optimizes the format of the result information according to the widths of the cell data in each column, so as to obtain the result information with optimized format, improving the readability of the result information.

[0110] Based on any of the above embodiments, the data to be displayed is sorted according to the data priority, including:

[0111] Placing the data to be displayed at the end of the priority queue corresponding to the data priority;

[0112] Merging each priority queue according to the order from high to low priority.

[0113] Specifically, each data priority corresponds to a priority queue, and each priority queue is used to store the data to be displayed corresponding to the priority. After determining the data priority of the data to be displayed, the data to be displayed can be placed at the end of the priority queue corresponding to the data priority. For example, if the data priority of the data to be displayed is high, the data to be displayed is placed at the end of the high-priority queue, so as to be stored in the high-priority queue.

[0114] After completing the placement of the data to be displayed, each priority queue can be merged according to the order from high to low priority. Specifically, the priority queues can be arranged according to the order from high to low priority, and on this basis, the end of the higher-level priority queue is connected to the head of the lower-level priority queue, and the merging of each priority queue is realized in the form of connecting the head and the tail. For example, if the data priorities include three priorities: high, medium, and low, first connect the head of the medium-priority queue to the end of the high-priority queue, and then connect the head of the low-priority queue to the end of the high-priority queue.

[0115] The method provided by the embodiment of the present application realizes the priority display of the data to be displayed with high priority and the delayed display of the data to be displayed with low priority by storing the data to be displayed into the corresponding queues according to the data priorities respectively and merging each priority queue in turn, which is convenient for finding important data and improves the user experience.

[0116] Currently, after the OMC management system obtains the required result information, it directly performs data rendering, which is an operation of refreshing the page locally in the browser. When the data volume is large or the data reception frequency is too high, the above operation directly causes the browser to freeze or become unresponsive, resulting in a very poor user experience. Although this problem can be alleviated by throttling, that is, rendering data periodically, for example, rendering once every 500 ms, the above operation cannot completely solve the problem. When the number of commands exceeds ten thousand, there will still be freezing or unresponsiveness problems in the later stage of execution, which cannot meet the requirements of the OMC management system. In view of this, the embodiments of the present application provide a display method.

[0117] Based on any of the above embodiments, step 140 includes:

[0118] Select the data to be rendered from the data to be displayed based on the data height of the data to be displayed, the area height of the display area, and the scroll bar position. The data to be rendered is part of the data to be displayed required for display within the display area;

[0119] Render the data to be rendered and display it within the display area.

[0120] Specifically, considering that whether directly rendering newly arrived data or performing a rendering operation every once in a while, there will still be freezing or unresponsiveness problems when the data volume is large. The embodiments of the present application start from another perspective, not focusing on newly arrived data, but on the data that the user expects to view, and rendering the data that the user expects to view as the data to be rendered.

[0121] Here, the display area is the area on the browser interface used to display the data to be displayed, such as a text box. Since there is usually a large amount of data to be displayed and the display area cannot display all the data to be displayed, it is necessary to scroll the scroll bar to display other data to be displayed that are not fully shown. On this basis, the embodiments of the present application can locate the data that the user expects to view from the data to be displayed as the data to be rendered according to the data height of the data to be displayed, the area height of the display area, and the scroll bar position. The data to be rendered here is part of the data to be displayed that needs to be displayed within the display area according to the indication of the scroll bar position dragged by the user.

[0122] Further, the positioning of the data to be rendered can be achieved through the following steps: First, according to the position of the scroll bar, determine the central position of the data to be rendered that the user expects to view in the data to be displayed. Then, determine the target width of the data to be rendered based on the height of the display area, and expand within the data to be displayed with the central position of the data to be rendered as the reference until the width of the data to be rendered reaches the target width. The target width here can be equal to the height of the area, or 1.5 times the height of the area, twice the height of the area, etc. When the target width is greater than the height of the area, there is a margin for the rendered data compared to the height of the area, which helps to improve the visual experience when the user drags the scroll bar.

[0123] On this basis, only the data to be rendered can be rendered, and the rendered data can be displayed within the display area.

[0124] The method provided by the embodiments of the present application avoids directly rendering all the data to be displayed by only rendering the part of the data to be displayed that can be displayed within the height of the current display area. When the data volume is large or the data reception frequency is too high, problems such as browser freezing or unresponsiveness will occur, further improving the user experience.

[0125] Based on any of the above embodiments, Figure 3 is a schematic flowchart of the method for displaying the data to be displayed provided by the embodiments of the present application. As Figure 3 shown, in step 140, based on the data height of the data to be displayed, as well as the height of the display area and the position of the scroll bar, the data to be rendered is selected from the data to be displayed, including:

[0126] Detect the position of the scroll bar;

[0127] If the position of the scroll bar is at the bottom of the area, then based on the height of the area, select the data at the very end of the data to be displayed as the data to be rendered;

[0128] If the position of the scroll bar is not at the bottom of the area and the position of the scroll bar changes, then based on the data height of the data to be displayed, as well as the height of the display area and the position of the scroll bar, select the data to be rendered from the data to be displayed.

[0129] Specifically, first detect the position of the scroll bar:

[0130] If the position of the scroll bar is at the bottom of the display area, that is, the user defaults to view the latest data. At this time, regardless of whether the position of the scroll bar changes, the data with a height equal to the height of the area can be directly intercepted from the very end of the data to be displayed, and this data is used as the data to be rendered, which can improve the determination efficiency of the data to be rendered and avoid unnecessary resource waste.

[0131] If the position of the scroll bar is not at the bottom of the display area, determine whether the position of the scroll bar has changed. If it has changed, the data to be rendered can be selected from the data to be displayed according to the data height of the data to be displayed, the area height of the display area, and the position of the scroll bar.

[0132] If the position of the scroll bar is not at the bottom of the area and the position of the scroll bar has not changed, it is considered that the user is manually searching for data, and no data rendering is performed.

[0133] Based on any of the above embodiments, the maximum height of the data to be rendered is greater than the area height.

[0134] Specifically, the maximum height of the data to be rendered can be greater than the area height. At this time, there is a margin in the rendered data compared to the area height. The rendered data not only fills the entire display area but also has front and back margins outside the display area. When the scroll bar is scrolled, even if the data to be rendered in the new round is not updated in time, the front and back margins outside the display area obtained from the previous rendering can be directly displayed, which helps to improve the visual experience when the user drags the scroll bar.

[0135] Based on any of the above embodiments, as Figure 3 shown, in step 140, rendering the data to be rendered and displaying it in the display area includes:

[0136] Render the data to be rendered to obtain display information;

[0137] Unify the fonts of the display information, and display the display information with unified fonts in the display area.

[0138] Specifically, after rendering, the fonts of the obtained display information can also be unified to avoid display misalignment problems caused when the default font of individual browsers is a proportional font.

[0139] Based on any of the above embodiments, the embodiments of the present application compare the existing solution with the method for displaying the execution result of the command provided by the embodiments of the present application:

[0140] The existing OMC system uses the Input.TextArea component in the Antd tool to present the execution result data of commands, and its display result is as follows:

[0141]

[0142]

[0143] It can be seen that the result information of the LST NRADJCELL command is tabular data, with serious line misalignment and loss of readability. Moreover, the important command ACT NRCELL is not preferentially displayed.

[0144] The display result of the command execution result display method provided by the embodiments of the present application is as follows:

[0145]

[0146] It can be seen that although the ACT NRCELL command is executed later than the LST NRADJCELL command, the relevant information of the important command ACT NRCELL is successfully displayed preferentially and ranked at the forefront. Moreover, the result information of the LST NRADJCELL command has completed format optimization, and its table data can be viewed intuitively.

[0147] Based on any of the above embodiments, Figure 4 is a schematic structural diagram of a display device for command execution results provided by the embodiments of the present application. As Figure 4 shown, the display device for command execution results includes a memory 420, a transceiver 400, and a processor 410:

[0148] The memory 420 is used to store computer programs; the transceiver 400 is used to receive and send data under the control of the processor; the processor 410 is used to read the computer programs in the memory and perform the following operations:

[0149] Receive the result information obtained by the execution;

[0150] Perform command matching on the result information to obtain the command that matches the result information, and generate the data to be displayed of the command. The data to be displayed includes the result information;

[0151] Based on the command, perform data processing on the data to be displayed. The data processing includes priority sorting;

[0152] Display the data to be displayed after data processing.

[0153] Among them, the transceiver 400 is used to receive and send data under the control of the processor 410.

[0154] Among them, in Figure 4Among them, the bus architecture may include any number of interconnected buses and bridges, specifically, various circuits of one or more processors represented by the processor 410 and the memory represented by the memory 420 are linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, and thus will not be further described herein. The bus interface provides an interface. The transceiver 400 may be a plurality of components, that is, including a transmitter and a receiver, and provides a unit for communicating with various other devices on a transmission medium, and these transmission mediums include wireless channels, wired channels, optical fiber cables and other transmission mediums. For different user devices, the user interface 430 may also be an interface capable of externally connecting or internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, etc.

[0155] The processor 410 is responsible for managing the bus architecture and general processing, and the memory 420 may store data used by the processor 410 when executing operations.

[0156] Optionally, the processor 410 may be a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a CPLD (Complex Programmable Logic Device), and the processor 410 may also adopt a multi-core architecture.

[0157] The processor 410 is used to execute any of the methods provided in the embodiments of the present application according to the obtained executable instructions by calling the computer program stored in the memory 420. The processor 410 and the memory 420 may also be physically separated.

[0158] It should be noted here that the above device provided in the embodiments of the present application can implement all the method steps implemented in the above method embodiments, and can achieve the same technical effects. The same parts and beneficial effects as those in the method embodiments will not be specifically described in this embodiment.

[0159] Optionally, a display device for the execution result of a command according to another embodiment of the present application processes the data to be displayed based on the command, including:

[0160] Based on the command, determine the data type of the result information and the data priority of the data to be displayed;

[0161] If the data type is a table type, format optimization is performed on the result information to obtain the data to be displayed with optimized format, and based on the data priority, the data to be displayed with optimized format is sorted by priority;

[0162] Otherwise, based on the data priority, the data to be displayed is sorted by priority.

[0163] Optionally, for the display device of the command execution result according to another embodiment of the present application, format optimization of the result information includes:

[0164] Based on the line break markers in the result information, the result information is line-segmented to obtain at least one line of data;

[0165] Based on the column break markers in each line of data, each line of data is column-segmented to obtain at least one cell of data in each line of data;

[0166] Based on the widths of the column cell data, format optimization of the result information is performed.

[0167] Optionally, for the display device of the command execution result according to another embodiment of the present application, sorting the data to be displayed based on the data priority includes:

[0168] Place the data to be displayed at the end of the priority queue corresponding to the data priority;

[0169] Merge each priority queue according to the order from high to low priority.

[0170] Optionally, for the display device of the command execution result according to another embodiment of the present application, displaying the data to be displayed after data processing includes:

[0171] Based on the data height of the data to be displayed, as well as the area height and scroll bar position of the display area, the data to be rendered is selected from the data to be displayed, and the data to be rendered is the part of the data to be displayed required for display within the display area;

[0172] Render the data to be rendered and display it within the display area.

[0173] Optionally, for the display device of the command execution result according to another embodiment of the present application, selecting the data to be rendered from the data to be displayed based on the data height of the data to be displayed, as well as the area height and scroll bar position of the display area includes:

[0174] Detect the scroll bar position;

[0175] If the scroll bar position is at the bottom of the area, the data at the very end of the data to be displayed is selected as the data to be rendered based on the area height;

[0176] If the position of the scroll bar changes, the data to be rendered is selected from the data to be displayed based on the data height of the data to be displayed, the area height of the display area, and the position of the scroll bar.

[0177] Optionally, for the display device of the command execution result according to another embodiment of the present application, the maximum height of the data to be rendered is greater than the area height.

[0178] Optionally, for the display device of the command execution result according to another embodiment of the present application, rendering the data to be rendered and displaying it in the display area includes:

[0179] Rendering the data to be rendered to obtain display information;

[0180] Unifying the fonts of the display information and displaying the display information with unified fonts in the display area.

[0181] Based on any of the above embodiments, Figure 5 is a schematic structural diagram of the display device for the command execution result provided by the embodiment of the present application. As Figure 5 shown, the display device for the command execution result includes a receiving unit 510, a matching unit 520, a processing unit 530, and a display unit 540;

[0182] Among them, the receiving unit 510 is used to receive the result information obtained by the execution;

[0183] The matching unit 520 is used to perform command matching on the result information to obtain a command that matches the result information, and generate the data to be displayed of the command. The data to be displayed includes the result information;

[0184] The processing unit 530 is used to perform data processing on the data to be displayed based on the command. The data processing includes priority sorting;

[0185] The display unit 540 is used to display the data to be displayed after data processing.

[0186] It should be noted here that the above device provided by the embodiment of the present application can implement all the method steps implemented by the above method embodiment, and can achieve the same technical effect. The same parts and beneficial effects as those in the method embodiment will not be specifically described in this embodiment.

[0187] Based on any of the above embodiments, the data processing further includes format optimization. The processing unit 530 is used to:

[0188] Based on the command, determine the data type of the result information and the data priority of the data to be displayed;

[0189] If the data type is a table type, format optimization is performed on the result information to obtain the data to be displayed after format optimization, and based on the data priority, the data to be displayed after format optimization is sorted by priority;

[0190] Otherwise, based on the data priority, the data to be displayed is sorted by priority.

[0191] It should be noted here that the above-mentioned device provided in the embodiments of the present application can implement all the method steps implemented in the above-mentioned method embodiments, and can achieve the same technical effects. Therefore, the same parts and beneficial effects in this embodiment as those in the method embodiments will not be specifically described herein.

[0192] Based on any of the above embodiments, in the processing unit 530, the format optimization subunit is used for:

[0193] Based on the line break markers in the result information, the result information is line-segmented to obtain at least one line of data;

[0194] Based on the column break markers in each line of data, each line of data is column-segmented to obtain at least one cell of data in each line of data;

[0195] Based on the widths of the cell data in each column, format optimization is performed on the result information.

[0196] It should be noted here that the above-mentioned device provided in the embodiments of the present application can implement all the method steps implemented in the above-mentioned method embodiments, and can achieve the same technical effects. Therefore, the same parts and beneficial effects in this embodiment as those in the method embodiments will not be specifically described herein.

[0197] Based on any of the above embodiments, in the processing unit 530, the priority sorting subunit is used for:

[0198] Place the data to be displayed at the end of the priority queue corresponding to the data priority;

[0199] Merge each priority queue according to the order from high to low priority.

[0200] It should be noted here that the above-mentioned device provided in the embodiments of the present application can implement all the method steps implemented in the above-mentioned method embodiments, and can achieve the same technical effects. Therefore, the same parts and beneficial effects in this embodiment as those in the method embodiments will not be specifically described herein.

[0201] Based on any of the above embodiments, the display unit 540 is used for:

[0202] Select the data to be rendered from the data to be displayed based on the data height of the data to be displayed, the area height of the display area, and the scroll bar position. The data to be rendered is part of the data to be displayed required for display within the display area;

[0203] Render the data to be rendered and display it within the display area.

[0204] It should be noted here that the above device provided by the embodiments of the present application can implement all the method steps implemented by the above method embodiments, and can achieve the same technical effects. The same parts and beneficial effects as those in the method embodiments in this embodiment will not be specifically described herein.

[0205] Based on any of the above embodiments, in the display unit 540, the selection subunit is used for:

[0206] Detect the scroll bar position;

[0207] If the scroll bar position is at the bottom of the area, select the data at the very end of the data to be displayed as the data to be rendered based on the area height;

[0208] If the scroll bar position changes, select the data to be rendered from the data to be displayed based on the data height of the data to be displayed, the area height of the display area, and the scroll bar position.

[0209] It should be noted here that the above device provided by the embodiments of the present application can implement all the method steps implemented by the above method embodiments, and can achieve the same technical effects. The same parts and beneficial effects as those in the method embodiments in this embodiment will not be specifically described herein.

[0210] Based on any of the above embodiments, the maximum height of the data to be rendered is greater than the area height.

[0211] It should be noted here that the above device provided by the embodiments of the present application can implement all the method steps implemented by the above method embodiments, and can achieve the same technical effects. The same parts and beneficial effects as those in the method embodiments in this embodiment will not be specifically described herein.

[0212] Based on any of the above embodiments, in the display unit 540, the display subunit is used for:

[0213] Render the data to be rendered to obtain display information;

[0214] Unify the fonts of the display information, and display the display information with unified fonts within the display area.

[0215] It should be noted here that the above device provided by the embodiments of the present application can implement all the method steps implemented by the above method embodiments and can achieve the same technical effects. Therefore, the same parts and beneficial effects as those in the method embodiments will not be specifically described herein.

[0216] It should be noted that the division of units in the embodiments of the present application is illustrative, only a logical function division, and there may be other division methods in actual implementation. In addition, in each embodiment of the present application, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0217] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program codes.

[0218] On the other hand, the embodiments of the present application also provide a processor-readable storage medium, where the processor-readable storage medium stores a computer program, and the computer program is used to cause the processor to execute the methods provided in the above embodiments, including:

[0219] Receiving the result information obtained by the execution;

[0220] Performing command matching on the result information to obtain a command that matches the result information, and generating data to be displayed for the command, where the data to be displayed includes the result information;

[0221] Based on the command, performing data processing on the data to be displayed, where the data processing includes priority sorting;

[0222] Displaying the data to be displayed after the data processing.

[0223] The processor-readable storage medium can be any available medium or data storage device accessible by the processor, including but not limited to magnetic memory (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical memory (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor memory (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drives (SSD)), etc.

[0224] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory and optical memory, etc.) containing computer-usable program code.

[0225] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer-executable instructions. These computer-executable instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0226] These processor-executable instructions can also be stored in a processor-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the processor-readable memory generate a manufactured article including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0227] These processor-executable instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are performed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0228] Obviously, those skilled in the art can make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to include these modifications and variations.

Claims

1. A method for displaying the execution result of a command, characterized in that Including: Receiving the result information obtained from the execution; Performing command matching on the result information to obtain a command that matches the result information, and generating data to be displayed for the command, where the data to be displayed includes the result information; Based on the importance level of the command, performing data processing on the data to be displayed, where the data processing includes priority sorting; the performing data processing on the data to be displayed based on the importance level of the command includes: determining the data priority of the data to be displayed based on the importance level of the command; placing the data to be displayed at the end of the priority queue corresponding to the data priority; merging each priority queue according to the order from high to low priority; where the end of the high-priority queue is connected to the head of the medium-priority queue, and the head of the low-priority queue is connected to the end of the medium-priority queue; Displaying the data to be displayed after data processing.

2. The method for displaying the execution result of the command according to claim 1, wherein Before performing data processing on the data to be displayed, the method further includes: If the data type is a table type, optimizing the format of the result information to obtain the data to be displayed with optimized format.

3. The method for displaying the command execution result according to claim 2, wherein The optimizing the format of the result information includes: Performing row splitting on the result information based on the line break marker in the result information to obtain at least one row of data; Performing column splitting on each row of data based on the column break marker in each row of data to obtain at least one cell of data in each row of data; Optimizing the format of the result information based on the widths of the column cell data.

4. The method for displaying the execution result of an order according to any one of claims 1 to 3, characterized in that The displaying the data to be displayed after data processing includes: Selecting the data to be rendered from the data to be displayed based on the data height of the data to be displayed, the area height of the display area, and the scroll bar position, where the data to be rendered is part of the data to be displayed required for display in the display area; Rendering the data to be rendered and displaying it in the display area.

5. The method for displaying the command execution result according to claim 4, wherein The selecting the data to be rendered from the data to be displayed based on the data height of the data to be displayed, the area height of the display area, and the scroll bar position includes: Detecting the scroll bar position; If the scroll bar position is at the bottom of the area, selecting the data at the very end of the data to be displayed as the data to be rendered based on the area height; If the scroll bar position changes, selecting the data to be rendered from the data to be displayed based on the data height of the data to be displayed, the area height of the display area, and the scroll bar position.

6. The method for displaying the execution result of an order according to claim 4, characterized in that, The maximum height of the data to be rendered is greater than the area height.

7. The method for displaying the execution result of an order according to claim 4, wherein The rendering the data to be rendered and displaying it in the display area includes: Rendering the data to be rendered to obtain display information; Unifying the fonts of the display information and displaying the display information with unified fonts in the display area.

8. A display device for command execution results, including a memory, a transceiver, and a processor: A memory for storing a computer program; The transceiver is used for transceiving data under the control of the processor; The processor is used for reading the computer program in the memory and performing the following operations: Receiving the result information obtained from the execution; Perform command matching on the result information to obtain a command that matches the result information, and generate display data for the command, where the display data includes the result information; Based on the importance level of the command, perform data processing on the display data, where the data processing includes priority sorting; the performing data processing on the display data based on the importance level of the command includes: determining the data priority of the display data based on the importance level of the command; placing the display data at the end of the priority queue corresponding to the data priority; merging each priority queue according to the order of decreasing priority; where the end of the high-priority queue is connected to the head of the medium-priority queue, and the head of the low-priority queue is connected to the end of the medium-priority queue; Display the display data after data processing.

9. The display device for the command execution result according to claim 8, wherein The data processing is also used for: If the data type is a table type, optimize the format of the result information to obtain the display data with optimized format.

10. The display device for the command execution result according to claim 9, characterized in that The optimizing the format of the result information includes: Based on the line break markers in the result information, perform line splitting on the result information to obtain at least one line of data; Based on the column splitting markers in each line of data, perform column splitting on each line of data to obtain at least one cell of data in each line of data; Based on the widths of the cell data in each column, optimize the format of the result information.

11. The display device for the command execution result according to any one of claims 8 to 10, characterized in that The displaying the display data after data processing includes: Based on the data height of the display data, as well as the area height of the display area and the scroll bar position, select the data to be rendered from the display data, where the data to be rendered is a part of the display data required to be displayed in the display area; Render the data to be rendered and display it in the display area.

12. The display device for the command execution result according to claim 11, wherein The selecting the data to be rendered from the display data based on the data height of the display data, as well as the area height of the display area and the scroll bar position includes: Detect the scroll bar position; If the scroll bar position is at the bottom of the area, select the last data of the display data based on the area height as the data to be rendered; If the scroll bar position changes, select the data to be rendered from the display data based on the data height of the display data, as well as the area height of the display area and the scroll bar position.

13. The display device for the command execution result according to claim 11, characterized in that The maximum height of the data to be rendered is greater than the area height.

14. The display device for the command execution result according to claim 11, wherein The rendering the data to be rendered and displaying it in the display area includes: Render the data to be rendered to obtain display information; Unify the fonts of the display information, and display the display information with unified fonts in the display area.

15. A display device for command execution results, characterized in that, Includes: A receiving unit for receiving the result information obtained from the execution; A matching unit for performing command matching on the result information to obtain a command that matches the result information, and generating display data for the command, where the display data includes the result information; A processing unit, configured to perform data processing on the data to be displayed based on the importance level of the command, where the data processing includes priority sorting; performing data processing on the data to be displayed based on the importance level of the command includes: determining the data priority of the data to be displayed based on the importance level of the command; placing the data to be displayed at the end of the priority queue corresponding to the data priority; merging each priority queue according to the order of decreasing priority; wherein the end of the high-priority queue is connected to the head of the medium-priority queue, and the head of the low-priority queue is connected to the end of the medium-priority queue; A display unit, configured to display the data to be displayed after data processing.

16. A processor-readable storage medium, characterized in that, The processor-readable storage medium stores a computer program, and the computer program is used to cause the processor to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data rendering method and device

    CN106570142A

  • Information processing method and electronic equipment

    CN108536499A