Report display method and device, computer device and storage medium
By receiving target data packets and generating data display sub-images adapted to the terminal screen, the problem of low data report display efficiency on mobile terminals is solved, achieving more efficient data report display and interaction.
Patent Information
- Application Number
- CN202211001102.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-19
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2042-08-19
AI Technical Summary
In existing technologies, shrinking data reports and fully transferring them to mobile terminals for viewing results in a lot of redundant data and makes it difficult to quickly conduct business collaboration based on data reports. This also leads to low efficiency in displaying data reports on mobile terminals.
By receiving target data packets, generating data display sub-images according to display mode parameters, and combining them into report images based on the display mode, the images are adapted to the terminal screen for display, selectively displaying specific data and omitting redundant data.
It improves the efficiency of displaying data reports on the terminal, makes the report data better adapt to the terminal display screen, reduces redundant data display, and enhances the flexibility of interaction.
Smart Images

Figure CN115357647B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a report display method, apparatus, computer device, and storage medium. Background Technology
[0002] With the development of computer technology, people increasingly need to display or view various data reports on different types of terminals, such as displaying PC-based ERP reports on mobile terminals, so as to quickly and conveniently view data reports in real time.
[0003] In existing technologies, data reports are scaled down and then fully ported to mobile terminals for viewing, resulting in a lot of redundant data. In addition, due to the limitations of device screen size, business collaboration based on data reports cannot be carried out quickly, making the display of data reports on mobile terminals inefficient. Summary of the Invention
[0004] Therefore, it is necessary to provide a report display method, device, computer equipment, computer-readable storage medium, and computer program product to address the aforementioned technical problems, thereby improving the efficiency of terminal data report display.
[0005] A report display method, applied to a terminal, includes:
[0006] Receive the target data packet, which includes the data to be displayed and display mode parameters. The data to be displayed includes at least two sets of sub-data to be displayed.
[0007] Determine the display mode of the data to be displayed based on the display mode parameters;
[0008] Generate data display sub-images based on the display mode and the sub-data set to be displayed;
[0009] Based on the display mode, the data display sub-images are combined to generate the report image corresponding to the target data package, and then displayed.
[0010] In one embodiment, each sub-data set to be displayed includes column data corresponding to the report; generating a data display sub-image based on the display mode and the sub-data set to be displayed includes:
[0011] When the display mode is landscape mode, a corresponding data display sub-image is generated based on each sub-data set to be displayed;
[0012] Based on the display mode, the sub-data display items are combined to generate the report image corresponding to the target data package, and then displayed, including:
[0013] The various data display sub-images are arranged horizontally and stitched together to generate a report image.
[0014] In one embodiment, each sub-data set to be displayed includes column data corresponding to the report; generating a data display sub-image based on the display mode and the sub-data set to be displayed includes:
[0015] When the display mode is vertical, the target sub-data set is determined from the sub-data set to be displayed;
[0016] Obtain a preset number of other sub-data sets to be displayed from the sub-data set to be displayed to obtain the sub-data set to be merged;
[0017] The target sub-data set is fused with the sub-data set to be fused to obtain the data display sub-image;
[0018] Return to the step of obtaining a preset number of other sub-data sets to be displayed from the sub-data set to be displayed to obtain the sub-data set to be merged, until all the sub-data sets to be displayed in the sub-data set to be displayed are merged to obtain the corresponding data display sub-images;
[0019] Based on the aforementioned display mode, the data display sub-images are combined to generate a report image corresponding to the target data package, which is then displayed, including:
[0020] The various data display sub-images are arranged vertically and stitched together to generate a report image.
[0021] In one embodiment, after combining data display sub-images based on the display mode to generate a report image corresponding to the target data package and displaying it, the method further includes:
[0022] Retrieve command to manipulate report images;
[0023] When the report image operation command is an add command, the cache data packet is retrieved, and the steps to determine the display mode of the data to be displayed based on the display mode parameters are returned. The cache data packet is automatically backed up in the cache when the terminal receives the target data packet.
[0024] When the report image operation command is a delete command, the report image corresponding to the delete command will be deleted;
[0025] When the report image operation command is a move command, the report image corresponding to the move command is moved to the target position on the terminal screen based on the move command.
[0026] A report data processing method, applied to a server, includes:
[0027] Obtain data reports;
[0028] Read the configuration parameters of the data report, including display mode parameters and data dimension parameters;
[0029] The data to be displayed in the data report is obtained based on the data dimension parameters. The data to be displayed includes at least two sub-data sets to be displayed.
[0030] Create a target data package based on the data to be displayed and the display mode parameters;
[0031] The target data packet is sent to the terminal, and the target data packet is used to generate the corresponding report image and display it.
[0032] In one embodiment, before reading the configuration parameters of the data report, the method further includes:
[0033] Obtain the number of columns to be displayed in the data report, and determine the data dimension parameters according to the required number of columns;
[0034] When the number of columns to be displayed exceeds the preset threshold, set the display mode parameter to vertical display parameter;
[0035] When the number of columns to be displayed is less than or equal to the preset threshold, set the display mode parameter to horizontal display parameter;
[0036] Configuration parameters are obtained based on data dimension parameters and display mode parameters.
[0037] In one embodiment, obtaining the data to be displayed in the data report based on data dimension parameters includes:
[0038] Determine the number of columns containing the data to be displayed in the data report based on the data dimension parameters;
[0039] Read the corresponding column data from the database based on the column number where the data is located;
[0040] Generate a set of sub-data to be displayed by arranging column data belonging to the same column in the data report in a preset order;
[0041] The data to be displayed is obtained by combining the sub-data sets to be displayed.
[0042] A report display device, applied to a terminal, the device comprising:
[0043] The data acquisition module is used to receive target data packets, which include data to be displayed and display mode parameters. The data to be displayed includes at least two sets of sub-data to be displayed.
[0044] The display mode determination module is used to determine the display mode of the data to be displayed based on the display mode parameters.
[0045] The data display sub-image generation module is used to generate data display sub-images based on the display mode and the set of sub-data to be displayed.
[0046] The report image generation module is used to combine data display sub-images based on the display mode to generate report images corresponding to the target data package, and then display them.
[0047] A report data processing device, applied to a server, the device includes:
[0048] The report retrieval module is used to retrieve data reports;
[0049] The configuration parameter acquisition module is used to read the configuration parameters of the data report, including display mode parameters and data dimension parameters.
[0050] The data to be displayed module is used to obtain the data to be displayed in the data report according to the data dimension parameters. The data to be displayed includes at least two sub-data sets to be displayed.
[0051] The target data packet generation module is used to create target data packets based on the data to be displayed and display mode parameters;
[0052] The data sending module is used to send the target data packet to the terminal, and the terminal generates and displays the corresponding report image based on the target data packet.
[0053] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program performing the following steps:
[0054] Receive the target data packet, which includes the data to be displayed and display mode parameters. The data to be displayed includes at least two sets of sub-data to be displayed.
[0055] Determine the display mode of the data to be displayed based on the display mode parameters;
[0056] Generate data display sub-images based on the display mode and the sub-data set to be displayed;
[0057] Based on the display mode, the data display sub-images are combined to generate the report image corresponding to the target data package, and then displayed.
[0058] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program performing the following steps:
[0059] Obtain data reports;
[0060] Read the configuration parameters of the data report, including display mode parameters and data dimension parameters;
[0061] The data to be displayed in the data report is obtained based on the data dimension parameters. The data to be displayed includes at least two sub-data sets to be displayed.
[0062] Create a target data package based on the data to be displayed and the display mode parameters;
[0063] The target data packet is sent to the terminal, and the target data packet is used to generate the corresponding report image and display it.
[0064] A computer-readable storage medium having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0065] Receive the target data packet, which includes the data to be displayed and display mode parameters. The data to be displayed includes at least two sets of sub-data to be displayed.
[0066] Determine the display mode of the data to be displayed based on the display mode parameters;
[0067] Generate data display sub-images based on the display mode and the sub-data to be displayed;
[0068] Based on the display mode, the data display sub-images are combined to generate the report image corresponding to the target data package, and then displayed.
[0069] A computer-readable storage medium having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0070] Obtain data reports;
[0071] Read the configuration parameters of the data report, including display mode parameters and data dimension parameters;
[0072] The data to be displayed in the data report is obtained based on the data dimension parameters. The data to be displayed includes at least two sub-data sets to be displayed.
[0073] Create a target data package based on the data to be displayed and the display mode parameters;
[0074] The target data packet is sent to the terminal, and the target data packet is used to generate the corresponding report image and display it.
[0075] The aforementioned report display method, apparatus, computer equipment, and storage medium receive a target data packet, wherein the target data packet includes data to be displayed and display mode parameters, and the data to be displayed includes at least two sets of sub-data to be displayed; then, the display mode of the data to be displayed is determined according to the display mode parameters; data display sub-images are generated according to the display mode and the sets of sub-data to be displayed; finally, the data display sub-images are combined based on the display mode to generate a report image corresponding to the target data packet, and then displayed. In this way, by acquiring the target data packet sent by the server, generating corresponding data display sub-images from each set of sub-data to be displayed in the target data packet according to the display mode parameters, and then combining the data display sub-images in a specific layout according to the display mode parameters to generate the corresponding report image, the display of the specifically formatted report image can better adapt to the terminal display screen to display the report data compared to traditional reports, and selectively displays only preset specific data in the table, omitting the display of redundant data, thereby effectively improving the efficiency of terminal data report display. Attached Figure Description
[0076] Figure 1 This is an application environment diagram of the report display method in one embodiment;
[0077] Figure 2 This is a flowchart illustrating a report display method in one embodiment;
[0078] Figure 3 This is a flowchart illustrating the process of generating report images in one embodiment;
[0079] Figure 4 This is a flowchart illustrating the process of generating report images in one embodiment;
[0080] Figure 5 This is a flowchart illustrating the process of handling image operation instructions in one embodiment;
[0081] Figure 6 This is a flowchart illustrating a report data processing method in one embodiment;
[0082] Figure 7 This is a schematic diagram of the process for generating configuration parameters in one embodiment;
[0083] Figure 8 This is a flowchart illustrating the process of determining the data to be displayed in one embodiment;
[0084] Figure 9 This is a block diagram of the report display device in one embodiment;
[0085] Figure 10 This is a block diagram of the report data processing device in one embodiment;
[0086] Figure 11 This is an internal structural diagram of a computer device in one embodiment;
[0087] Figure 12 This is an internal structural diagram of a computer device in one embodiment;
[0088] Figure 13 This is a schematic diagram illustrating the vertical display of report images in one embodiment;
[0089] Figure 14 This is a schematic diagram illustrating the horizontal display of report images in one embodiment;
[0090] Figure 15 This is a flowchart illustrating the report data processing and report display process in one embodiment. Detailed Implementation
[0091] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0092] The report display method provided in this application can be applied to, for example... Figure 1 The application environment shown. For example... Figure 1 As shown, the application environment includes terminal 102 and server 104. Server 104 acquires data reports, reads the configuration parameters of the data reports, determines the data to be displayed in the data reports based on the configuration parameters, creates a target data packet based on the data to be displayed and the display mode parameters, and then sends the target data packet to terminal 102. After receiving the target data packet, terminal 102 determines the display mode of the data to be displayed based on the display mode parameters of the data packet, generates a data display sub-image based on the display mode and the set of sub-data to be displayed, and finally generates the corresponding report image based on the display mode and the data display sub-image, and displays it. Terminal 102 communicates with server 104 through a network. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, smart cameras, and portable wearable devices. Server 104 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0093] This application's embodiments can be applied to various Enterprise Resource Planning (ERP) systems that include reporting functions, including but not limited to manufacturing management systems, supply chain systems, human resources systems, financial systems, tax systems, and auditing systems. For example, server 104 can be the back-end server of the ERP system, and terminal 102 accesses reports in the ERP system through communication with server 104.
[0094] In one embodiment, such as Figure 2 As shown, a report display method is provided, which can be applied to... Figure 1 Taking computer device 102 as an example, the following steps are included:
[0095] Step S202: Receive the target data packet. The target data packet includes the data to be displayed and the display mode parameters. The data to be displayed includes at least two sets of sub-data to be displayed.
[0096] Among them, the data to be displayed is the data that needs to be displayed in the data report corresponding to the target data packet, the display mode parameter is used to indicate the display template of the data to be displayed, the sub-data set to be displayed is the column data that needs to be displayed in the data report, the data to be displayed in the same column is a sub-data set to be displayed, and the data to be displayed in the same column is arranged in a preset order to form a sub-data set to be displayed.
[0097] Step S204: Determine the display mode of the data to be displayed based on the display mode parameters.
[0098] The display mode parameter is used to identify how the data to be displayed is displayed, i.e., the display mode. The display mode includes the specific layout and display format of the data in each dimension of the table, such as the number of characters, size, color, and font.
[0099] Specifically, the computer device reads the display mode parameters of the target data packet and calls the corresponding display template based on the display mode parameters.
[0100] Step S206: Generate a data display sub-image based on the display mode and the sub-data set to be displayed.
[0101] Among them, the data display sub-image is a report image used to display the corresponding sub-data set to be displayed.
[0102] Specifically, after the computer device obtains the display mode, it acquires each sub-data in the sub-data set to be displayed, and then arranges the sub-data in the sub-data set to be displayed according to the display template to generate data display sub-images. Different data display sub-images are generated under different display modes.
[0103] Step S208: Based on the display mode, combine the data display sub-images to generate the report image corresponding to the target data package, and then display it.
[0104] Among them, report images are a type of report in which the data to be displayed is presented in the form of images, which has better adaptability to mobile terminal screens compared to traditional reports.
[0105] Specifically, the computer device obtains the display mode through the aforementioned steps. When the display mode is a horizontal display mode, the sub-data in the sub-data set to be displayed in the target data packet is arranged in a preset order, and then a report image corresponding to the sub-data set to be displayed is generated, i.e., a data display sub-image. Then, the data display sub-images corresponding to each sub-data set in the data to be displayed are combined and arranged according to the layout format corresponding to the display mode to generate a report image of the entire data to be displayed, and displayed on the terminal screen.
[0106] The aforementioned report display method involves receiving a target data packet, which includes data to be displayed and display mode parameters. The data to be displayed includes at least two sets of sub-data to be displayed. The display mode for the data to be displayed is then determined based on the display mode parameters. Data display sub-images are generated based on the display mode and the sets of sub-data to be displayed. Finally, the data display sub-images are combined based on the display mode to generate a report image corresponding to the target data packet, which is then displayed. This method, by acquiring the target data packet sent from the server, generating corresponding data display sub-images from each set of sub-data to be displayed in the target data packet according to the display mode parameters, and then combining these sub-images in a specific layout according to the display mode parameters to generate a corresponding report image, allows for a more adaptive display of the report image compared to traditional reports. Furthermore, it selectively displays only pre-defined specific data from the table, omitting redundant data, thereby effectively improving the efficiency of displaying data reports on the terminal.
[0107] In one embodiment, such as Figure 3 As shown, each sub-data set to be displayed includes the column data corresponding to the report; data display sub-images are generated based on the display mode and the sub-data set to be displayed; the data display sub-images are combined based on the display mode to generate the report image corresponding to the target data package, and then displayed, including:
[0108] Step S302: When the display mode is horizontal display mode, generate corresponding data display sub-images based on each sub-data set to be displayed.
[0109] In this system, each set of sub-data to be displayed corresponds to the data in the same column of the data report. The horizontal display mode is a method of displaying data by generating sub-images for each set of sub-data to be displayed, and then arranging the sub-images horizontally to generate a horizontally displayed report image.
[0110] Specifically, when the computer device obtains that the display mode is a landscape display mode, it retrieves the sub-data from each set of sub-data to be displayed and generates each displayable sub-image according to a preset arrangement order. For example, it retrieves each sub-data from a set of sub-data to be displayed in the order of the sub-data, arranges each sub-data vertically from top to bottom, and then generates a sub-image. This process is performed on the sub-data in each set of sub-data to be displayed to generate multiple sub-images.
[0111] Step S304: Arrange and stitch the various data display sub-images horizontally to generate a report image.
[0112] Specifically, the computer device arranges the various data display sub-images generated in the above steps horizontally according to a pre-set horizontal arrangement order, ultimately generating the report image corresponding to the target data package. Furthermore, the horizontally arranged report image or the various data display sub-images can be dragged and dropped to rearrange their order; for example, the order of the images can be changed by dragging and dropping them. Figure 14 Drag and drop the "Tax Included Amount" and "Tax Excluded Amount" sub-images to swap their positions. You can also delete report images or individual data display sub-images from the display screen, for example... Figure 14 As shown, you can delete images by clicking the delete symbol in the upper right corner of each sub-image.
[0113] In this embodiment, the computer device obtains the display mode determined in the aforementioned steps, arranges the sub-data to be displayed in the data to be displayed according to the display mode to generate corresponding data display sub-images, and then arranges the data display sub-images horizontally according to the display mode to generate report images. The arrangement order is preset according to the display mode, so that the data to be displayed can determine a specific arrangement method according to the determined display mode to generate report images. This allows the data to be displayed in the data report to be better combined with the screen size of the terminal for data viewing and display, thereby improving the data display efficiency of the data report.
[0114] In one embodiment, such as Figure 4 As shown, each sub-data set to be displayed includes the column data corresponding to the report; data display sub-images are generated based on the display mode and the sub-data set to be displayed; the data display sub-images are combined based on the display mode to generate the report image corresponding to the target data package, and then displayed, including:
[0115] Step S402: When the display mode is vertical display mode, determine the target sub-data set from the sub-data set to be displayed.
[0116] In this system, each sub-data set to be displayed corresponds to the data in the same column of the data report. The vertical display mode is a method of displaying data by merging the dimensions of each sub-data set to be displayed to obtain a merged dimension, arranging all merged dimensions vertically, filling the corresponding data of each dimension in the sub-data set to be displayed into the corresponding merged dimension to generate a data display sub-image, and then arranging the sub-images vertically to generate a vertical display report image.
[0117] Specifically, the computer device determines the target sub-data set from the sub-data set to be displayed according to preset rules, wherein the preset rules are to default to selecting a certain sub-data set from the data to be displayed as the target sub-data set.
[0118] Table 1
[0119] Tax-inclusive amount Exclusive of tax motherboard 299 188 Memory 399 288 CPU 499 388 monitor 599 488
[0120] For example, as shown in Table 1 above, the data in the first column of the data table is category data. To facilitate viewing the first and third columns of the data report on mobile terminals, the default rule is set to the first sub-data to be displayed in the data to be displayed as the target sub-data (i.e., the item column). When the server reads the data to be displayed in the data table, it is set by default to read the data column by column from left to right, reading the first column first and then the third column. When reading the data in each column, it is set to read the data to be displayed sequentially from top to bottom (i.e., reading the motherboard, memory, CPU, and monitor sequentially). All the data to be displayed read in the data table are used to create a JSON (JavaScript Object Notation) data packet in the order of reading the data. That is, the data in the first column to be displayed from the left of the data report is taken as the current set of sub-data to be displayed. The data read in that column are taken from top to bottom as the first sub-data, the second sub-data, and so on in the current set of sub-data to be displayed. Then, the first set of sub-data to be displayed is taken as the target sub-data set.
[0121] Step S404: Obtain a preset number of other sub-data sets to be displayed from the sub-data set to be displayed to obtain the sub-data set to be merged.
[0122] Among them, the other sub-data sets to be displayed are the sub-data sets to be displayed other than the target sub-data set.
[0123] Specifically, the computer device determines the set of sub-data to be merged sequentially from other sets of sub-data to be displayed in a preset order.
[0124] For example, as shown in Table 1 above, let the three columns of data in Table 1 be the sub-data sets to be displayed. The first column from the left (item column) is determined as the target sub-data set. Then, the second column (tax-inclusive amount) and the third column (tax-exclusive amount) are other sub-data sets to be displayed. Then, in order from left to right, the sub-data sets to be merged are determined from the other sub-data sets to be displayed. That is, first, the second column (tax-inclusive amount) is taken as the sub-data set to be merged, and the data in the first column (item column) is merged with the data in the second column (tax-inclusive amount). Then, the third column (tax-exclusive amount) is taken as the sub-data set to be merged, and the data in the first column (item column) is merged with the data in the third column (tax-exclusive amount).
[0125] Step S406: Merge the target sub-data set with the sub-data set to be merged to obtain the data display sub-image.
[0126] Specifically, the computer device sequentially merges the first sub-data of the sub-data set to be merged with each sub-data of the target sub-data set to obtain the fusion dimension, and then fills the corresponding table data into the corresponding fusion dimension to obtain the data display sub-images corresponding to the current target sub-data set and the current sub-data set to be merged.
[0127] For example, as shown in Table 1 above, assuming the first column (item column) is determined as the current target sub-data set, and the second column (tax-inclusive amount) is the current sub-data set to be merged, the specific merging process is as follows: merge the data "tax-inclusive amount" in the first row of the second column with the data "motherboard" in the first row of the first column, and fill in the data corresponding to "motherboard" and "tax-inclusive amount" to obtain "motherboard|tax-inclusive amount: 299". Then merge the data "tax-inclusive amount" in the first row of the second column with the data "memory" in the second row of the first column, and fill in the data corresponding to "memory" and "tax-inclusive amount" to obtain "memory|tax-inclusive amount: 399", and so on, to obtain the data display sub-images corresponding to the current target sub-data set and the current sub-data set to be merged, such as... Figure 13 As shown.
[0128] Step S408: Return to the step of obtaining a preset number of other sub-data sets to be displayed from the sub-data set to be displayed to obtain the sub-data set to be merged, until all the sub-data sets to be displayed in the sub-data set to be displayed are merged to obtain the corresponding data display sub-images.
[0129] Step S410: Arrange and stitch the various data display sub-images vertically to generate a report image.
[0130] Specifically, the computer device vertically arranges and stitches together the various data display sub-images generated in the above steps, finally generating the entire report image corresponding to the displayed data, such as... Figure 13 As shown.
[0131] In this embodiment, the computer device obtains the display mode determined in the aforementioned steps, arranges the sub-data to be displayed in the data to be displayed according to the display mode to generate corresponding data display sub-images, and then arranges the data display sub-images vertically according to the display mode to generate report images. The arrangement order is preset according to the display mode, so that the data to be displayed can determine a specific arrangement method according to the determined display mode to generate report images. This allows the data to be displayed in the data report to be better combined with the screen size of the terminal for data viewing and display, thereby improving the data display efficiency of the data report.
[0132] In one embodiment, such as Figure 5 As shown, after combining the data display sub-images based on the display mode to generate the report image corresponding to the target data package and displaying it, it also includes:
[0133] Step S502: Obtain the report image operation instructions.
[0134] Specifically, the computer device receives instructions to manipulate report images, including instructions to add or delete report images, as well as to drag, reposition, adjust font color and size of report images.
[0135] Step S504: When the report image operation instruction is an add instruction, obtain the cache data packet and return to the step of determining the display mode of the data to be displayed based on the display mode parameters. The cache data packet is automatically backed up in the cache when the terminal receives the target data packet.
[0136] Specifically, when the computer device receives a report image operation instruction that is an add instruction, it reads the target data packet from the cache and parses it. The cache data packet is the target data packet that the terminal synchronously backs up in the cache when it receives the target data packet from the server.
[0137] Step S506: When the report image operation command is a delete command, delete the report image corresponding to the delete command.
[0138] Specifically, when the computer device receives a report image operation instruction that is a delete instruction, the specified report image or data display sub-image will be deleted from the current terminal display screen. It can also delete multiple report images or data display sub-images in batches, but the target data packet in the cache is still retained.
[0139] Step S508: When the report image operation instruction is a move instruction, the report image corresponding to the move instruction is moved to the target position on the terminal screen based on the move instruction.
[0140] Specifically, when the report image operation instruction obtained by the computer device is a move instruction, the specified image report or data display sub-image is dragged from its current position on the terminal screen to a target specified position on the screen, for example, dragging a... Figure 14 The data display shows a sub-image where the "Amount Including Tax" and "Amount Excluding Tax" sub-images can be dragged to swap their positions.
[0141] In this embodiment, report images are manipulated by acquiring report image operation instructions. When an add instruction is acquired, the computer device reads the corresponding target data packet from the cache, then returns to the step of determining the display mode of the data to be displayed based on the display mode parameters, parses the data packet to generate the corresponding report image, thereby completing the addition of the report image. When the report image operation instruction is a delete instruction, the corresponding report image is deleted. When the report image operation instruction is a move instruction, the corresponding report image is moved to the target position on the terminal screen, realizing flexible operation of displaying report images on the terminal and improving the flexibility of interaction.
[0142] In one embodiment, such as Figure 6 As shown, the report data processing method is applied to... Figure 1 Taking computer device 104 as an example, the following steps are included:
[0143] Step S602: Obtain the data report.
[0144] Among them, data reports are tables containing data, such as mobile reports in ERP software.
[0145] Step S604: Read the configuration parameters of the data report. The configuration parameters include display mode parameters and data dimension parameters.
[0146] The display mode parameter is used to identify how the data report is displayed on the terminal, including the layout, font, size, color, etc. The data dimension parameter is used to identify the position of the column or row of the data to be displayed in the data report, and is used to determine the data to be displayed in the data report.
[0147] Step S606: Obtain the data to be displayed in the data report according to the data dimension parameters. The data to be displayed includes at least two sub-data sets to be displayed.
[0148] Specifically, the computer device determines the rows and columns of data that need to be displayed on the terminal in the data report based on the data dimension parameters, and then reads the data in these rows and columns from the database. Alternatively, the data can be provided through a reporting service, which is the actual report data. The read data is used as the data to be displayed. The data package to be displayed includes at least two sets of sub-data to be displayed.
[0149] Step S608: Create a target data packet based on the data to be displayed and the display mode parameters.
[0150] Specifically, the computer device creates a JSON data packet, and then creates an array list based on the sub-data sets to be displayed in the data to be displayed, in sequential order, according to the sub-data in each set. For example, the first array list in the JSON data packet is created based on the first sub-data set to be displayed, and the first sub-data in the first sub-data set is used as the first element of the first array list, and so on, to complete the creation of the first array in the data packet; the second array list in the JSON data packet is created based on the second sub-data set to be displayed, and the first sub-data in the second sub-data set is used as the first element of the second array list, and so on, to complete the creation of the second array; thus, the creation of the array list of the data to be displayed in the entire target data packet is completed. A display mode parameter identifier is also created in the data packet according to the display mode parameter, thereby completing the creation of the entire target data packet.
[0151] Step S610: Send the target data packet to the terminal. The target data packet is used to generate the corresponding report image and display it.
[0152] The above-described report data processing method involves acquiring a data report and reading its configuration parameters. Then, based on the data dimension parameters, it obtains the data to be displayed in the data report. This data includes at least two sub-data sets. Each sub-data set is sequentially organized into an array list of data packets, thus completing the creation of the entire target data packet. The created target data packet is then sent to the terminal, which parses it to generate the corresponding report image. By setting different display mode parameters to identify the display method of the data to be displayed, the display of the data report's data becomes more adaptable to the terminal screen, improving the efficiency of report data display.
[0153] In one embodiment, such as Figure 7 As shown, before reading the configuration parameters of the data report, the following steps are also included:
[0154] Step S702: Obtain the number of columns to be displayed in the data report, and determine the data dimension parameters according to the number of columns to be displayed.
[0155] Step S704: When the number of columns to be displayed is greater than the preset threshold, set the display mode parameter to the vertical display parameter.
[0156] Specifically, the computer device determines the layout of the data to be displayed based on the number of columns involved. When there are many columns to be displayed, too many horizontally displayed columns are not conducive to the display on the terminal screen. Therefore, when the number of columns to be displayed exceeds a preset threshold, a vertical display method is used to display the data, and the display mode parameter is set to the vertical display parameter. The preset threshold can be set to a default value based on human experience, or the computer device can automatically determine a suitable preset threshold based on the terminal model, screen size, and font.
[0157] Step S706: When the number of columns to be displayed is less than or equal to the preset threshold, set the display mode parameter to the horizontal display parameter.
[0158] Specifically, the computer device reads the number of columns in the data to be displayed. When the number of columns to be displayed is less than or equal to a preset threshold, it generates a corresponding report image for each sub-data set to be displayed. Then, it arranges these report images horizontally in a preset order to generate a report image for the entire data to be displayed. Figure 14 As shown.
[0159] Step S708: Obtain configuration parameters based on data dimension parameters and display mode parameters.
[0160] Specifically, the computer device combines data dimension parameters with display mode parameters to obtain configuration parameters.
[0161] In this embodiment, the number of columns to be displayed in the data report is obtained, and the number of columns to be displayed is compared with a preset threshold. Then, the parameter category of the display mode parameter is determined based on the comparison result. If the number of columns to be displayed is greater than the preset threshold, the display mode parameter is set to a vertical display parameter. If the number of columns to be displayed is less than or equal to the preset threshold, the display mode parameter is set to a horizontal display parameter. This avoids the problem that setting a fixed value results in too many horizontally displayed columns, which is limited by the display width of the terminal screen, leading to small font size, crowded layout, and unclear display of report images. This improves the reliability of the data displayed in the report images.
[0162] In one embodiment, such as Figure 8 As shown, the data to be displayed in the data report is obtained based on the data dimension parameters, including:
[0163] Step S802: Determine the number of columns containing the data to be displayed in the data report based on the data dimension parameters.
[0164] The data dimension parameter is used to identify the position of the column containing the data to be displayed in the data report.
[0165] Specifically, the computer equipment determines the column containing all the data to be displayed based on the position of the column containing the data to be displayed in the data report, and then determines the number of columns containing the data.
[0166] Step S804: Read the corresponding column data from the database according to the column number where the data is located.
[0167] Step S806: Generate a set of sub-data to be displayed by arranging the column data belonging to the same column in the data report in a preset order.
[0168] Specifically, the computer device reads the column data of the same column in the data report sequentially from top to bottom, from the first row to the last row. The read data is then used to generate an array list. Specifically, the first row of data read is used as the first element of the array list, the second row of data is used as the second element of the array list, and so on, thus completing the creation of the entire array list. This array list is then used as a sub-data set to be displayed, thereby completing the creation of all sub-data sets to be displayed.
[0169] Step S808: Combine the sub-data sets to be displayed to obtain the data to be displayed.
[0170] Specifically, the computer device combines all the sub-data sets to be displayed determined in step S806 in a preset order to obtain the data to be displayed. For example, it combines all the sub-data sets to be displayed according to the column numbers corresponding to the sub-data sets to be displayed in the order from left to right of the data report.
[0171] In this embodiment, the number of columns containing the data to be displayed in the data report is determined based on the data dimension parameters. The corresponding column data is then read from the database based on the column number. The column data belonging to the same column in the data report are then arranged in a preset order to generate a set of sub-data to be displayed. Finally, the sub-data sets are combined to obtain the data to be displayed. This ensures that all data to be displayed is created in a certain order, reducing the error rate of reading data in subsequent steps and improving the efficiency of reading the data to be displayed.
[0172] This application also provides an application scenario in which the above-described report display method is applied. Specifically, the report display method is applied in this scenario as follows:
[0173] The server retrieves the data report and reads its configuration parameters, including display mode and data dimension parameters. The display mode is set to either horizontal or vertical display. Based on the data dimension parameters, the server determines the data to be displayed on the terminal. It then reads the data from the same column of the data to be displayed sequentially from top to bottom, row by row, generating an array list. Specifically, the first row of data read is used as the first element of the array list, the second row as the second element, and so on, until the entire array list is created. This array list is then used as a sub-data set to be displayed, and all sub-data sets to be displayed are created. Each sub-data set is then sequentially used to create an array list of data packets, completing the creation of the entire target data packet. Finally, the created target data packet is sent to the terminal.
[0174] After receiving the target data packet, the terminal parses the packet and reads the display mode parameters. Based on these parameters, the display mode of the data to be displayed in the target data packet is determined. The computer device reads the number of columns in the data to be displayed. When the number of columns to be displayed is less than or equal to a preset threshold of 5 columns, a corresponding report image is generated for each sub-data set to be displayed. These report images are then arranged horizontally in a preset order to generate a horizontal report image of the entire data to be displayed. When the number of columns to be displayed exceeds the preset threshold of 5 columns, the data to be displayed is displayed vertically. The display mode parameters are set to vertical display parameters. In vertical display mode, the terminal determines the target subset of data from the sub-data sets to be displayed. The process involves obtaining a preset number of other sub-data sets to be displayed from the set of sub-data sets to be displayed, resulting in a set of sub-data sets to be merged. The computer then sequentially merges the first sub-data from the set of sub-data sets to be merged with each sub-data from the target set to obtain a fusion dimension. The corresponding table data is then filled into the corresponding fusion dimension to obtain the data display sub-images corresponding to the current target set and the current set of sub-data sets to be merged. This process is repeated until all sub-data sets to be displayed are merged, resulting in the corresponding data display sub-images. These data display sub-images are then vertically arranged and stitched together to generate a vertical report image, such as... Figure 13 , Figure 14 and Figure 15 As shown.
[0175] In this embodiment, a data report is acquired and its configuration parameters are read. Then, the data to be displayed in the data report is obtained according to the data dimension parameters. The data to be displayed includes at least two sub-data sets to be displayed. Each sub-data set to be displayed is sequentially used to create an array list of data packets, thereby completing the creation of the entire target data packet. The created target data packet is then sent to the terminal, which parses the target data packet. After receiving the target data packet, the terminal determines the display mode of the data to be displayed according to the display mode parameters. Data display sub-images are generated based on the display mode and the sub-data sets to be displayed. Finally, the data display sub-images are combined based on the display mode to generate the report image corresponding to the target data packet, and then displayed. In this way, by acquiring the target data packet sent by the server, and then generating corresponding data display sub-images from each set of sub-data to be displayed in the target data packet according to the display mode parameters, and then generating corresponding report images by performing specific layout combinations of the data display sub-images according to the display mode parameters, the display of report images with specific layouts can better adapt to the terminal display screen to display report data compared to traditional reports, and selectively display only the preset specific data in the table, omitting the display of redundant data, thereby effectively improving the efficiency of terminal display of data reports.
[0176] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0177] In one embodiment, such as Figure 9 As shown, a report display device is provided. This device can be a software module, a hardware module, or a combination of both, integrated into a computer device. Specifically, the device includes: a data acquisition module 902, a display mode determination module 904, a data display sub-image generation module 906, and a report image generation module 908, wherein:
[0178] Data acquisition module 902 is used to receive target data packets, which include data to be displayed and display mode parameters. The data to be displayed includes at least two sets of sub-data to be displayed.
[0179] The display mode determination module 904 is used to determine the display mode of the data to be displayed based on the display mode parameters.
[0180] The data display sub-image generation module 906 is used to generate data display sub-images based on the display mode and the set of sub-data to be displayed.
[0181] The report image generation module 908 is used to combine data display sub-images based on the display mode to generate report images corresponding to the target data package, and then display them.
[0182] In one embodiment, the data display sub-image generation module 906 is further configured to generate a corresponding data display sub-image based on each sub-data set to be displayed when the display mode is a horizontal display mode.
[0183] The report image generation module 908 is also used to horizontally arrange and stitch together various data display sub-images to generate report images.
[0184] In one embodiment, the data display sub-image generation module 906 is further configured to, when the display mode is a vertical display mode, determine a target sub-data set from the sub-data set to be displayed; obtain a preset number of other sub-data sets to be displayed from the sub-data set to be displayed to obtain a sub-data set to be merged; merge the target sub-data set with the sub-data set to be merged to obtain a data display sub-image; return to the step of obtaining a preset number of other sub-data sets to be displayed from the sub-data set to be displayed to obtain a sub-data set to be merged, until all sub-data sets to be displayed in the sub-data set to be displayed are merged to obtain the corresponding data display sub-images;
[0185] The report image generation module 908 is also used to vertically arrange and stitch together various data display sub-images to generate a report image.
[0186] In one embodiment, the report image generation module 908 is further configured to acquire report image operation instructions; when the report image operation instruction is an add instruction, it acquires a cache data packet and returns to the step of determining the display mode of the data to be displayed based on the display mode parameters. The cache data packet is automatically backed up in the cache when the terminal receives the target data packet; when the report image operation instruction is a delete instruction, it deletes the report image corresponding to the delete instruction; when the report image operation instruction is a move instruction, it moves the report image corresponding to the move instruction to the target position on the terminal screen based on the move instruction.
[0187] The aforementioned report display device receives a target data packet, which includes data to be displayed and display mode parameters. The data to be displayed includes at least two sets of sub-data to be displayed. It then determines the display mode for the data to be displayed based on the display mode parameters. Based on the display mode and the sets of sub-data to be displayed, it generates data display sub-images. Finally, based on the display mode, it combines the data display sub-images to generate a report image corresponding to the target data packet and displays it. In this way, by acquiring the target data packet sent by the server, generating corresponding data display sub-images from each set of sub-data to be displayed in the target data packet according to the display mode parameters, and then combining the data display sub-images in a specific layout according to the display mode parameters to generate the corresponding report image, the display of the specifically formatted report image can better adapt to the terminal display screen to display the report data compared to traditional reports. Furthermore, it selectively displays only preset specific data in the table, omitting redundant data, thereby effectively improving the efficiency of terminal data report display.
[0188] For specific limitations regarding the report display device, please refer to the limitations on the report display method above, which will not be repeated here. Each module in the aforementioned report display device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0189] In one embodiment, such as Figure 10 As shown, a report data processing device is provided. This device can be a software module, a hardware module, or a combination of both, integrated into a computer device. Specifically, the device includes: a report acquisition module 1002, a configuration parameter acquisition module 1004, a data to be displayed acquisition module 1006, a target data packet generation module 1008, and a data sending module 1010, wherein:
[0190] Report acquisition module 1002 is used to acquire data reports;
[0191] The configuration parameter acquisition module 1004 is used to read the configuration parameters of the data report, including display mode parameters and data dimension parameters.
[0192] The data acquisition module 1006 is used to acquire the data to be displayed in the data report according to the data dimension parameters. The data to be displayed includes at least two sub-data sets to be displayed.
[0193] The target data packet generation module 1008 is used to create a target data packet based on the data to be displayed and the display mode parameters.
[0194] The data sending module 1010 is used to send the target data packet to the terminal, and the terminal generates a corresponding report image based on the target data packet and displays it.
[0195] In one embodiment, the configuration parameter acquisition module 1004 is further configured to acquire the number of columns to be displayed in the data report, determine the data dimension parameters according to the number of columns to be displayed, set the display mode parameter to a vertical display parameter when the number of columns to be displayed is greater than a preset threshold, set the display mode parameter to a horizontal display parameter when the number of columns to be displayed is less than or equal to the preset threshold, and obtain the configuration parameters based on the data dimension parameters and the display mode parameters.
[0196] In one embodiment, the data acquisition module 1006 is further configured to determine the number of columns containing the data to be displayed in the data report based on the data dimension parameters; read the corresponding column data from the database based on the number of columns containing the data; generate a set of sub-data to be displayed by arranging the column data belonging to the same column in the data report in a preset order; and combine the sub-data to be displayed to obtain the data to be displayed.
[0197] The aforementioned report data processing device acquires a data report and reads its configuration parameters. It then obtains the data to be displayed based on the data dimension parameters. This data includes at least two sub-data sets. Each sub-data set is sequentially organized into an array list of data packets, thus completing the creation of the entire target data packet. The created target data packet is then sent to the terminal, which parses it to generate the corresponding report image. By setting different display mode parameters to identify the display method of the data to be displayed, the display of the data report's data becomes more adaptable to the terminal screen, improving the efficiency of report data display.
[0198] Specific limitations regarding the report data processing device can be found in the limitations of the report data processing method described above, and will not be repeated here. Each module in the aforementioned report data processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0199] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 12As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data for data reports. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements a report data processing method.
[0200] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 11 As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a report display method. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad located on the computer device's casing, or an external keyboard, touchpad, or mouse.
[0201] Those skilled in the art will understand that Figure 11 and Figure 12 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0202] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0203] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0204] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the computer device to perform the steps in the above method embodiments.
[0205] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0206] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0207] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A report display method, applied to a terminal, characterized in that, The method includes: Receive a target data packet, the target data packet including data to be displayed and display mode parameters, the data to be displayed including at least two sets of sub-data to be displayed; The display mode of the data to be displayed is determined according to the display mode parameters; Generate a data display sub-image based on the display mode and the sub-data set to be displayed; Based on the aforementioned display mode, the data display sub-images are combined to generate a report image corresponding to the target data package, which is then displayed. Each set of sub-data to be displayed includes column data corresponding to the report; the step of generating a data display sub-image based on the display mode and the set of sub-data to be displayed includes: when the display mode is a horizontal display mode, generating a corresponding data display sub-image based on each set of sub-data to be displayed; The step of combining the data display sub-images based on the display mode to generate a report image corresponding to the target data package and then displaying it includes: horizontally arranging and splicing the various data display sub-images to generate the report image; The step of generating data display sub-images based on the display mode and the set of sub-data to be displayed further includes: when the display mode is a vertical display mode, determining a target sub-data set from the set of sub-data to be displayed; obtaining a preset number of other sub-data sets to be displayed from the set of sub-data to be displayed to obtain a set of sub-data to be merged; merging the target sub-data set with the set of sub-data to be merged to obtain a data display sub-image; returning to the step of obtaining a preset number of other sub-data sets to be displayed from the set of sub-data to be displayed to obtain a set of sub-data to be merged, until all sub-data sets to be displayed in the set of sub-data to be displayed are merged to obtain the corresponding data display sub-images; The step of combining the data display sub-images based on the display mode to generate a report image corresponding to the target data package and then displaying it further includes: vertically arranging and splicing the various data display sub-images to generate the report image.
2. The method according to claim 1, characterized in that, The method further includes: The first sub-data of the sub-data set to be fused is sequentially fused with each sub-data of the target sub-data set to obtain the fusion dimension. Then, the corresponding table data is filled into the corresponding fusion dimension to obtain the data display sub-images corresponding to the current target sub-data set and the current sub-data set to be fused.
3. The method according to claim 1, characterized in that, After combining the data display sub-images based on the display mode to generate the report image corresponding to the target data package and displaying it, the method further includes: Retrieve command to manipulate report images; When the report image operation instruction is an add instruction, the cache data packet is obtained, and the step of determining the display mode of the data to be displayed according to the display mode parameter is returned. The cache data packet is automatically backed up in the cache when the terminal receives the target data packet. When the report image operation command is a delete command, the report image corresponding to the delete command will be deleted; When the report image operation instruction is a move instruction, the report image corresponding to the move instruction is moved to the target position on the terminal screen based on the move instruction.
4. A report data processing method, applied to a server, characterized in that, The method includes: Obtain data reports; Read the configuration parameters of the data report, including display mode parameters and data dimension parameters; The data to be displayed in the data report is obtained based on the data dimension parameters, and the data to be displayed includes at least two sub-data sets to be displayed. Create a target data package based on the data to be displayed and the display mode parameters; The target data packet is sent to the terminal, and the terminal executes the report display method as described in claim 1 to generate and display a report image corresponding to the target data packet.
5. The method according to claim 4, characterized in that, Before reading the configuration parameters of the data report, the method further includes: Obtain the number of columns to be displayed in the data report, and determine the data dimension parameters based on the number of columns to be displayed; When the number of columns to be displayed exceeds a preset threshold, the display mode parameter is set to vertical display parameter; When the number of columns to be displayed is less than or equal to a preset threshold, the display mode parameter is set to a horizontal display parameter; The configuration parameters are obtained based on the data dimension parameters and the display mode parameters.
6. The method according to claim 4, characterized in that, The step of obtaining the data to be displayed in the data report based on the data dimension parameters includes: The number of columns containing the data to be displayed in the data report is determined based on the data dimension parameters. Read the corresponding column data from the database based on the column number where the data is located; The column data belonging to the same column in the data report are arranged in a preset order to generate a set of sub-data to be displayed; The data to be displayed is obtained by combining the sub-data sets to be displayed.
7. A report display device, applied to a terminal, characterized in that, The device includes: The data acquisition module is used to receive a target data packet, the target data packet including data to be displayed and display mode parameters, the data to be displayed including at least two sets of sub-data to be displayed; A display mode determination module is used to determine the display mode of the data to be displayed based on the display mode parameters. The data display sub-image generation module is used to generate data display sub-images based on the display mode and the set of sub-data to be displayed; it is also used to generate corresponding data display sub-images for each set of sub-data to be displayed when the display mode is a horizontal display mode; and it is also used to determine a target sub-data set from the set of sub-data to be displayed when the display mode is a vertical display mode; obtain a preset number of other sub-data sets to be displayed from the set of sub-data to be displayed to obtain a set of sub-data to be merged; merge the target sub-data set with the set of sub-data to be merged to obtain a data display sub-image; and return to the step of obtaining a preset number of other sub-data sets to be displayed from the set of sub-data to be displayed to obtain a set of sub-data to be merged, until all the sub-data sets to be displayed in the set of sub-data to be displayed are merged to obtain the corresponding data display sub-images. The report image generation module is used to combine the data display sub-images based on the display mode to generate a report image corresponding to the target data package, and then display it; it is also used to arrange and stitch the various data display sub-images horizontally to generate the report image; and it is also used to arrange and stitch the various data display sub-images vertically to generate the report image.
8. A report data processing device, applied to a server, characterized in that, The device includes: The report retrieval module is used to retrieve data reports; The configuration parameter acquisition module is used to read the configuration parameters of the data report, including display mode parameters and data dimension parameters; The data to be displayed acquisition module is used to acquire the data to be displayed in the data report according to the data dimension parameters. The data to be displayed includes at least two sub-data sets to be displayed. The target data packet generation module is used to create a target data packet based on the data to be displayed and the display mode parameters. The data sending module is used to send the target data packet to the terminal, and the terminal executes the report display method as described in claim 1 to generate a report image corresponding to the target data packet and display it.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 3 or claims 4 to 6.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 3 or claims 4 to 6.
11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 3 or claims 4 to 6.
Citation Information
Patent Citations
Presentation picture generation method, layout generation method and data processing server
CN108959303A
Page content display method and device, electronic equipment and storage medium
CN111259287A