CN114968455B - Report generation method and device of application interface and electronic equipment - Google Patents

Report generation method and device of application interface and electronic equipment Download PDF

Info

Publication number
CN114968455B
CN114968455B CN202210476199.XA CN202210476199A CN114968455B CN 114968455 B CN114968455 B CN 114968455B CN 202210476199 A CN202210476199 A CN 202210476199A CN 114968455 B CN114968455 B CN 114968455B
Authority
CN
China
Prior art keywords
report
operation data
file
data
application interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210476199.XA
Other languages
Chinese (zh)
Other versions
CN114968455A (en
Inventor
王思雪
姬超平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202210476199.XA priority Critical patent/CN114968455B/en
Publication of CN114968455A publication Critical patent/CN114968455A/en
Application granted granted Critical
Publication of CN114968455B publication Critical patent/CN114968455B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Abstract

The disclosure provides a report generation method and device of an application interface and electronic equipment, and relates to the technical field of computers, in particular to the technical fields of big data, information flow and the like. The specific implementation scheme is as follows: displaying an application interface; in response to receiving a report acquisition operation for the application interface, acquiring a report file of the application interface, wherein the report file is generated based on a user operation for content of the application interface, the user operation being triggered prior to the report acquisition operation; and outputting the report file.

Description

Report generation method and device of application interface and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to the technical fields of big data, information flow, and the like.
Background
In general, when a user views page contents in an application interface, the user sometimes wants to export the page contents which the user views into a report file so that the user can view at any time.
Currently, users are typically required to perform a single operation multiple times based on each interface of an application to obtain a report file.
Disclosure of Invention
The disclosure provides a report generation method and device of an application interface and electronic equipment.
According to an aspect of the present disclosure, there is provided a report generating method of an application interface, including:
displaying an application interface;
in response to receiving a report acquisition operation for the application interface, acquiring a report file of the application interface, wherein the report file is generated based on a user operation for content of the application interface, the user operation being triggered prior to the report acquisition operation;
and outputting the report file.
According to another aspect of the present disclosure, there is provided a report generating apparatus of an application interface, including:
the output unit is used for displaying an application interface;
an acquisition unit configured to acquire a report file of the application interface in response to receiving a report acquisition operation for the application interface, wherein the report file is generated based on a user operation for content of the application interface, the user operation being triggered before the report acquisition operation;
and the export unit is used for outputting the report file.
According to still another aspect of the present disclosure, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the aspects and methods of any one of the possible implementations described above.
According to yet another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method of the aspects and any possible implementation described above.
According to a further aspect of the present disclosure there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of the aspects and any one of the possible implementations described above.
According to the technical scheme, through the output application interface, the embodiment of the disclosure further can respond to the report acquisition operation of the user based on the output application interface to acquire the report file of the application interface, wherein the report file is generated by using a preset file generation strategy according to the user operation of the user based on the content of the application interface, and the user operation is triggered by the user before the report acquisition operation, so that the report file can be output. Therefore, when a user acquires the report file, the existing report file can be directly exported to the user, the report file is generated in real time in advance when the user operates the content data in the application interface, the report file exporting time is shortened, the report file acquiring time delay is reduced, and the report file processing efficiency and reliability are improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram according to a first embodiment of the present disclosure;
FIG. 2 is a schematic diagram according to a second embodiment of the present disclosure;
FIG. 3 is a schematic diagram according to a third embodiment of the present disclosure;
FIG. 4 is a block diagram of an electronic device for implementing a report generation method of an application interface of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It will be apparent that the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments in this disclosure without inventive faculty, are intended to be within the scope of this disclosure.
It should be noted that, the terminal device in the embodiments of the present disclosure may include, but is not limited to, smart devices such as a mobile phone, a personal digital assistant (Personal Digital Assistant, PDA), a wireless handheld device, and a Tablet Computer (Tablet Computer); the display device may include, but is not limited to, a personal computer, a television, or the like having a display function.
In addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Typically, when a user views the page content of interest in the browsing interface of the application, the user may wish to export the page content of interest as a report file. For example, when a user views interested business content data in a browsing interface, the business content data can be converted into a report file in a PDF format and the like so as to be convenient for subsequent viewing at any time.
At present, in the related art, a user is required to perform an operation of generating a report file based on an application interface, generate a corresponding report file based on an instruction of the generation operation, perform an operation of acquiring the generated report file based on the application interface, and export the generated report file to the user based on the instruction of the acquisition operation.
However, this method requires the user to perform a plurality of operations on the application interface to obtain the report file, and thus has problems of complicated operation procedures and long delay time.
Therefore, it is needed to provide a report generating method of an application interface, which can simplify the flow of report file processing of the application interface, so as to improve the efficiency of exporting report files.
Fig. 1 is a schematic diagram according to a first embodiment of the present disclosure, as shown in fig. 1.
101. And displaying an application interface.
102. In response to receiving a report acquisition operation for the application interface, acquiring a report file of the application interface, wherein the report file is generated based on a user operation for content of the application interface, the user operation being triggered prior to the report acquisition operation.
103. And outputting the report file.
It should be noted that the format types of the report file may include, but are not limited to, PDF format, word format, powerPoint format, various picture formats, various moving picture formats, and other format types. It will be appreciated that the format of the report file may be set by itself according to the actual situation, and this disclosure is not particularly limited.
It should be noted that, the user operation based on the content of the application interface may refer to an operation of specific content data in the application interface, that is, a content operation. The content data may include text, pictures, video, and the like. Content operations may include, but are not limited to, browsing through content data, selecting content data, copying/pasting content data, and the like.
The execution bodies 101 to 103 may be part or all of applications located in the local terminal, or may be functional units such as plug-ins or software development kits (Software Development Kit, SDKs) provided in the applications located in the local terminal, or may be processing engines located in a server on the network side, or may be distributed systems located on the network side, for example, processing engines or distributed systems in a data processing platform on the network side, which is not particularly limited in this embodiment.
It will be appreciated that the application may be a native program (native app) installed on the native terminal, or may also be a web page program (webApp) of a browser on the native terminal, which is not limited in this embodiment.
In this way, through the output application interface according to the embodiment of the present disclosure, further, the report file of the application interface may be obtained in response to the report obtaining operation of the user based on the output application interface, where the report file is generated by using a preset file generating policy according to the user operation of the user based on the content of the application interface, and the user operation is triggered by the user before the report obtaining operation, so that the report file may be output. Therefore, when a user acquires the report file, the existing report file can be directly exported to the user, the report file is generated in real time in advance when the user operates the content data in the application interface, the time for exporting the report file is shortened to a certain extent, the time delay for acquiring the report file is reduced, and the processing efficiency and the reliability of the report file are improved.
Optionally, in a possible implementation of the present embodiment, before 102, the report file may be specifically generated based on a user operation for the content of the application interface.
In a specific implementation procedure of this implementation manner, operation data may be acquired specifically first in response to a user operation for the content of the application interface. And secondly, obtaining state information of the operation data according to the operation data. And finally, generating the report file according to the operation data and the state information of the operation data by using a preset file generation strategy.
Here, the status information is used to characterize whether the operation data has generated a corresponding report file.
In this way, in the implementation manner, the report files of the batch content data can be generated while the user operates the content data of the application interface, so that when the subsequent user acquires the report files, the existing report files are directly exported to the user, and the processing efficiency of the report files is further improved.
In another specific implementation process of the implementation manner, in the process of obtaining the state information of the operation data according to the operation data, a report generation identifier of the operation data may be specifically obtained, where the report generation identifier is used to identify whether the operation data has generated a corresponding report file. Wherein, optionally, the report generating identification may be generated during monitoring of the operational data; or, the report generation identifier is automatically generated in an accompanying way after the operation data is generated, and defaults to a first identifier (namely, a state representing that the report is not generated), and is automatically changed to a second identifier (namely, a state representing that the report is generated) after the operation data is monitored to correspondingly generate the report file. The embodiment can effectively improve the acquisition efficiency of the state information of the operation data.
In this particular implementation, the report generation identification of the operational data includes a report non-generation identification and a report generated identification. Accordingly, the status information of the operation data includes a report non-generated status and a report generated status.
Wherein the report non-generated state may be used to characterize the operational data as being in a state in which no corresponding report file is generated. The report generated status may be used to characterize the status of the operational data in which the corresponding report file has been generated.
Specifically, first, the report generation condition of the operation data can be monitored, and the report generation identification of the operation data can be obtained. Then, an identification may be generated from the report, and status information of the operation data may be obtained.
In one case of the specific implementation process, if the status information of the operation data is a report non-generated status, using the preset file generation policy, performing file generation processing on the operation data to generate the report file.
In another case of the specific implementation, if the status information of the operation data is a report generated status, the operation data in the report generated status may not be processed.
In another embodiment, the status information of the operational data may be obtained by: and searching whether a report file corresponding to the operation data exists in the generated report file set to determine the state information of the operation data. In an alternative embodiment, the generated report file (or the file identifier of the generated report file, which is used to identify the report file) and the corresponding operation data (or the corresponding operation data identifier, which is used to identify the operation data) are stored in a combined manner, and a storage table is established. By inquiring the storage table, whether a report file corresponding to certain operation data exists or not can be obtained, and further, the state information of the operation data is determined. The mode can accurately acquire the state information of the operation data.
Therefore, the state information of the operation data can be obtained through the report generation identification according to the operation data obtained in real time, so that the report file can be conveniently and rapidly generated in batches by directly aiming at the operation data of which the state is not generated, and the efficiency of generating the report file is improved.
In this specific implementation process, first, the operation data may be subjected to classification processing, and operation data after the classification processing may be obtained. And secondly, rendering the operation data subjected to the classification processing by using a preset template to generate a report file corresponding to the operation data. And finally, taking the report file corresponding to the operation data as the report file.
Specifically, the preset template, i.e., the preset page template, may be obtained using a puppeter (puppeter) tool. The pumpeteer tool may be a pumpeteer browser.
For example, the puppeter may obtain a preset page template corresponding to the operation data according to the uniform resource location (uniform resource locator, URL) corresponding to the operation data.
For another example, a Server-Side Rendering (SSR) service may be used to perform Rendering processing on the operation data after the classification processing, so as to generate a report file corresponding to the operation data.
In this way, the report file can be obtained by performing file generation processing on the operation data reporting the non-generated state by using a preset file generation policy. Therefore, more effective and accurate report files can be generated based on the content operation of the application interface by the user, and the accuracy of the generated report files is improved.
In still another specific implementation process of the implementation manner, specific data in the operation data may be obtained, and then the specific data may be subjected to classification processing, so as to obtain classified specific data, so that a preset template may be utilized to perform rendering processing on the classified specific data, so as to generate a target report file corresponding to the specific data, and the target report file corresponding to the specific data is used as the report file.
In this particular implementation, the specified data may include, but is not limited to, all operational data and some operational data.
It will be appreciated that in practical applications, the specified data may be determined according to the actual business requirements. For example, the required specified data for generating the report file may be configured with actual business requirements. Or, the required specified data for generating the report file can be automatically acquired according to the actual service requirement.
In one case of the specific implementation process, classification processing can be performed based on the attribute of the specified data, and further, rendering processing can be performed on the specified data with different attributes by using a preset template, so as to generate a target report file corresponding to the specified data.
For example, generating a data chart based on attribute 1, generating a data chart based on attribute 2, and generating a report file based on a plurality of data charts may be performed.
In another case of the specific implementation process, classification processing can be performed based on the attribute of the specified data, and the classified specified data is subjected to comparison analysis, so that a preset template can be utilized to perform rendering processing on the comparison analysis result to generate a target report file corresponding to the specified data.
For example, a comparison chart may be generated according to data 1 and data 2, a comparison chart may be generated according to data 2 and data 3, and a report may be generated according to a plurality of comparison charts.
It can be understood that the preset template may include elements such as a histogram, a pie chart, a line chart, and the like, so that the specified data may be converted into display forms such as the histogram, the pie chart, the line chart, and the like, respectively.
It will be appreciated that a report may be generated from multiple charts, or a corresponding multiple report may be generated from multiple charts. The present disclosure may not be particularly limited herein.
In this way, the report file can be generated by classifying the specified data in the operation data and then rendering the classified specified data by using a preset template. Therefore, the pertinence of the generated report file can be further improved, and the reliability of the generated report file is improved.
It should be noted that, the report generating method of the application interface of the present embodiment may be implemented by combining a plurality of specific implementation procedures provided in the present implementation manner. The detailed description may refer to the relevant content in the foregoing implementation, and will not be repeated here.
In this embodiment, through the output application interface, further, a report file of the application interface may be obtained in response to a report obtaining operation of a user based on the output application interface, where the report file is generated by using a preset file generating policy according to a user operation of the user based on the content of the application interface, and the user operation is triggered by the user before the report obtaining operation, so that the report file may be output. Therefore, when a user acquires the report file, the existing report file can be directly exported to the user, the report file is generated in real time in advance when the user operates the content data in the application interface, the report file exporting time is shortened, and the processing efficiency and the reliability of the report file are improved.
In addition, by adopting the technical scheme provided by the embodiment, the report files of the batch content data can be generated while the user operates the content data of the application interface, so that when the subsequent user acquires the report files, the existing report files are directly exported to the user, and the processing efficiency of the report files is further improved.
In addition, by adopting the technical scheme provided by the embodiment, the state information of the operation data can be obtained through the report generation identification according to the operation data obtained in real time, so that the report file can be conveniently and rapidly generated in batches by directly aiming at the operation data in the report non-generation state, and the efficiency of generating the report file is improved.
In addition, by adopting the technical scheme provided by the embodiment, the report file can be obtained by performing file generation processing on the operation data in the report non-generated state by utilizing a preset file generation strategy. Therefore, more effective and accurate report files can be generated based on the content operation of the application interface by the user, and the accuracy of the generated report files is improved.
In addition, by adopting the technical scheme provided by the embodiment, the report file can be generated by classifying the specified data in the operation data and then rendering the classified specified data by utilizing a preset template. Therefore, the pertinence of the generated report file can be further improved, and the reliability of the generated report file is improved.
In addition, by adopting the technical scheme provided by the embodiment, the operation of the user can be simplified, so that the use experience of the user is improved.
Fig. 2 is a schematic diagram of a second embodiment of the present disclosure, and in order to better understand a method of reporting documents of an application interface of the present disclosure, the method of the present disclosure will now be described in detail below with reference to fig. 2 and a practical application scenario.
201. And displaying an application interface.
In this embodiment, for example, the application interface may be an application interface of a cloud platform.
202. And responding to the user operation on the content of the application interface, and acquiring operation data.
In this embodiment, the user clicks to open any one page in the application interface, triggers an operation request, for example, a viewing request, obtains content data corresponding to the viewing request after receiving the viewing request, and may store the content data in a preset data table.
203. According to the operation data, state information of the operation data is obtained.
In this embodiment, optionally, a report generation identifier of the operation data may be acquired, where the report generation identifier is used to identify whether the operation data has generated a corresponding report file.
Optionally, whether a report file corresponding to the operation data exists or not can be searched in the generated report file set, so as to determine the state information of the operation data.
204. If the state information of the operation data is the report non-generated state, the operation data is subjected to file generation processing by utilizing a preset file generation strategy so as to generate a report file.
In the present embodiment, the background services of the application program may include a report management service, a report listening service, a report generating service, and the like. It will be appreciated that the listening service may be a listener and the report generating service may be a report generator.
In the present embodiment, the report generation flag of the operation data includes a report non-generation flag and a report generated flag. Accordingly, the status information of the operation data includes a report non-generated status and a report generated status.
Specifically, the monitor may be used to monitor the report generation condition of the operation data first, and obtain the report generation identifier of the operation data. Second, status information of the operation data may be obtained from the report generation flag. If the status information of the operation data is the report non-generated status, the operation data may be transmitted to the post-report generator by calling the report generation interface, and a report file corresponding to the operation data may be generated based on the report generator.
Further, the report generator encrypts the operation data and stores the operation data in the data table after receiving the operation data. For example, a file may be generated to store the operational data. The report generator may also include a listening service. When a newly stored file, i.e., newly received operation data, is monitored, a browser (e.g., puppeter) may be started, the received operation data is decrypted, the ssr service of the browser is utilized to perform rendering processing on the received operation data, a rendering page is generated, and a report file is automatically generated.
It should be noted that, in this embodiment, the operation of using the browser manually at ordinary times may be automatically performed by means of codes. Related operations of the browser may include crawling web pages, populating forms, downloading files, automated testing, and using developer tools, among others.
In addition, after the browser generates the report file, the generated report file may be saved. In particular, the report generator may send the report file to the resource storage server so that it may be subsequently downloaded from the resource storage server.
205. And acquiring a report file of the application interface in response to receiving a report acquisition operation for the application interface.
206. And outputting a report file.
In this embodiment, when the user operates the content data of the application interface, the report files corresponding to the batch content data may be automatically generated according to the status information of the operation data, and the generated report files may be saved, and when the user obtains the report files, the user may directly export the existing report files to the user, thereby shortening the time for processing the report files, and further improving the processing efficiency and reliability of the report files.
In addition, by adopting the technical scheme provided by the embodiment, the operation of the user can be simplified, so that the use experience of the user is improved.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present disclosure is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present disclosure. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all of the preferred embodiments, and that the acts and modules referred to are not necessarily required by the present disclosure.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
Fig. 3 is a schematic diagram according to a third embodiment of the present disclosure, as shown in fig. 3. The report generating apparatus 300 of the application interface of the present embodiment may include a presentation unit 301, an acquisition unit 302, and an output unit 303. The display unit 301 is configured to display an application interface; an obtaining unit 302, configured to obtain, in response to receiving a report obtaining operation for the application interface, a report file of the application interface, where the report file is generated based on a user operation for content of the application interface, the user operation being triggered before the report obtaining operation; and an output unit 303, configured to output the report file.
Note that, part or all of the report generating device of the application interface in this embodiment may be an application located in the local terminal, or may be a functional unit such as a plug-in unit or a software development kit (Software Development Kit, SDK) provided in the application located in the local terminal, or may be a processing engine located in a server on the network side, or may be a distributed system located on the network side, for example, a processing engine or a distributed system in a data processing platform on the network side, which is not limited in this embodiment.
It will be appreciated that the application may be a native program (native app) installed on the native terminal, or may also be a web page program (webApp) of a browser on the native terminal, which is not limited in this embodiment.
Optionally, in one possible implementation manner of this embodiment, the obtaining unit 302 may specifically be configured to obtain operation data in response to a user operation on the content of the application interface, obtain status information of the operation data according to the operation data, and generate the report file according to the operation data and the status information of the operation data by using a preset file generation policy.
Optionally, in one possible implementation manner of this embodiment, the obtaining unit 302 may be specifically further configured to obtain a report generation identifier of the operation data, where the report generation identifier may be used to identify a report generation situation of the operation data, and obtain the status information of the operation data according to the report generation identifier.
Optionally, in one possible implementation manner of this embodiment, the state information of the operation data includes a report non-generated state, where the report non-generated state may be used to indicate that the operation data is in a state where a corresponding non-generated report file is not generated, and the obtaining unit 302 may be further configured to perform, if the state information of the operation data is the report non-generated state, file generation processing on the operation data by using the preset file generation policy, so as to generate the report file.
Optionally, in one possible implementation manner of this embodiment, the obtaining unit 302 may be specifically further configured to obtain specified data in the operation data, perform classification processing on the specified data to obtain classified specified data, perform rendering processing on the classified specified data by using a preset template, so as to generate a target report file corresponding to the specified data, and use the target report file corresponding to the specified data as the report file.
In this embodiment, the display unit displays the application interface, and the acquiring unit may further acquire, in response to receiving a report acquiring operation for the application interface, a report file of the application interface, where the report file is generated based on a user operation for content of the application interface, and the user operation is triggered before the report acquiring operation, so that the output unit may output the report file.
In addition, by adopting the technical scheme provided by the embodiment, the report files of the batch content data can be generated while the user operates the content data of the application interface, so that when the subsequent user acquires the report files, the existing report files are directly exported to the user, and the processing efficiency of the report files is further improved.
In addition, by adopting the technical scheme provided by the embodiment, the state information of the operation data can be obtained through the report generation identification according to the operation data obtained in real time, so that the report file can be conveniently and rapidly generated in batches by directly aiming at the operation data with the report non-generated state, and the efficiency of generating the report file is improved.
In addition, by adopting the technical scheme provided by the embodiment, the report file can be obtained by performing file generation processing on the operation data reporting the un-generated state by utilizing a preset file generation strategy. Therefore, more effective and accurate report files can be generated based on the content operation of the application interface by the user, and the accuracy of the generated report files is improved.
In addition, by adopting the technical scheme provided by the embodiment, the report file can be generated by classifying the specified data in the operation data and then rendering the classified specified data by utilizing a preset template. Therefore, the pertinence of the generated report file can be further improved, and the reliability of the generated report file is improved.
In addition, by adopting the technical scheme provided by the embodiment, the operation of the user can be simplified, so that the use experience of the user is improved.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 4 illustrates a schematic block diagram of an example electronic device 400 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 4, the electronic device 400 includes a computing unit 401 that can perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 402 or a computer program loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 may also be stored. The computing unit 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Various components in electronic device 400 are connected to I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, etc.; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408, such as a magnetic disk, optical disk, etc.; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 401 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the respective methods and processes described above, for example, a report generation method of an application interface. For example, in some embodiments, the report generating method of the application interface may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 400 via the ROM 402 and/or the communication unit 409. When the computer program is loaded into RAM 403 and executed by computing unit 401, one or more steps of the report generating method of the application interface described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the report generating method of the application interface in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (10)

1. A report generation method for an application interface, comprising:
displaying an application interface;
in response to receiving a report acquisition operation for the application interface, acquiring a report file of the application interface, wherein the report file is generated based on a user operation for content of the application interface, the user operation being triggered prior to the report acquisition operation;
outputting the report file; wherein,
generating the report file based on user operations for the content of the application interface, including:
responding to user operation for the content of the application interface, and acquiring operation data;
acquiring state information of the operation data according to the operation data, wherein the state information is used for representing whether the operation data generates a corresponding report file or not;
and generating the report file according to the operation data and the state information of the operation data by using a preset file generation strategy.
2. The method of claim 1, wherein the obtaining status information of the operation data from the operation data comprises:
acquiring a report generation identifier of the operation data; the report generation identifier is used for identifying whether the operation data generates a corresponding report file.
3. The method according to claim 1 or 2, wherein the status information of the operation data includes a report non-generated status, the report non-generated status being used to characterize the operation data in a status in which a corresponding report file is not generated, the generating the report file according to the operation data and the status information of the operation data using a preset file generation policy, including:
and if the state information of the operation data is the report non-generated state, performing file generation processing on the operation data by utilizing the preset file generation strategy so as to generate the report file.
4. The method of claim 3, wherein the performing file generation processing on the operation data to generate the report file using the preset file generation policy includes:
acquiring appointed data in the operation data;
classifying the specified data to obtain classified specified data;
rendering the classified specified data by using a preset template to generate a target report file corresponding to the specified data;
and taking the target report file corresponding to the specified data as the report file.
5. A report generating apparatus of an application interface, comprising:
the display unit is used for displaying the application interface;
an acquisition unit configured to acquire a report file of the application interface in response to receiving a report acquisition operation for the application interface, wherein the report file is generated based on a user operation for content of the application interface, the user operation being triggered before the report acquisition operation;
the output unit is used for outputting the report file; wherein,
the acquisition unit is specifically configured to:
responding to user operation for the content of the application interface, and acquiring operation data;
acquiring state information of the operation data according to the operation data, wherein the state information is used for representing whether the operation data generates a corresponding report file or not; and
and generating the report file according to the operation data and the state information of the operation data by using a preset file generation strategy.
6. The apparatus of claim 5, wherein the acquisition unit is further configured to:
acquiring a report generation identifier of the operation data; the report generation identifier is used for identifying whether the operation data generates a corresponding report file.
7. The apparatus according to claim 5 or 6, wherein the status information of the operation data includes a report non-generated status for characterizing that the operation data is in a status in which a corresponding non-generated report file is not generated, the obtaining unit further configured to:
and if the state information of the operation data is the report non-generated state, performing file generation processing on the operation data by utilizing the preset file generation strategy so as to generate the report file.
8. The apparatus of claim 7, wherein the acquisition unit is further configured to:
acquiring appointed data in the operation data;
classifying the specified data to obtain classified specified data;
rendering the classified specified data by using a preset template to generate a target report file corresponding to the specified data; and
and taking the target report file corresponding to the specified data as the report file.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
10. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-4.
CN202210476199.XA 2022-04-29 2022-04-29 Report generation method and device of application interface and electronic equipment Active CN114968455B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210476199.XA CN114968455B (en) 2022-04-29 2022-04-29 Report generation method and device of application interface and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210476199.XA CN114968455B (en) 2022-04-29 2022-04-29 Report generation method and device of application interface and electronic equipment

Publications (2)

Publication Number Publication Date
CN114968455A CN114968455A (en) 2022-08-30
CN114968455B true CN114968455B (en) 2024-02-27

Family

ID=82979745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210476199.XA Active CN114968455B (en) 2022-04-29 2022-04-29 Report generation method and device of application interface and electronic equipment

Country Status (1)

Country Link
CN (1) CN114968455B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007115082A2 (en) * 2006-03-29 2007-10-11 Campus Crusade For Christ, Inc. Systems and methods of transforming data for web communities and web applications
GB201010390D0 (en) * 2010-05-26 2010-08-04 Content Catalyst Ltd Automated report generation system and method
CN104765747A (en) * 2014-01-06 2015-07-08 腾讯科技(深圳)有限公司 Webpage processing method and device
CN105446948A (en) * 2015-11-13 2016-03-30 武汉鸿图节能技术有限公司 Report automatic generation method and system
CN107408113A (en) * 2015-03-31 2017-11-28 华为技术有限公司 For analyzing the analysis engine and method of pre-generatmg data report
CN108491367A (en) * 2018-02-11 2018-09-04 苏州朗动网络科技有限公司 Method, apparatus, computer equipment and the storage medium that report file generates
CN111177231A (en) * 2019-12-20 2020-05-19 中国建设银行股份有限公司 Report generation method and report generation device
CN111428464A (en) * 2020-03-27 2020-07-17 平安不动产有限公司 Report file generation method and device, computer equipment and storage medium
CN111651966A (en) * 2020-06-04 2020-09-11 航天科工智慧产业发展有限公司 Data report file generation method and device and electronic equipment
CN111985188A (en) * 2020-07-22 2020-11-24 用友网络科技股份有限公司 Data conversion method, device, terminal and storage medium
CN112036123A (en) * 2020-08-31 2020-12-04 北京奇虎鸿腾科技有限公司 PDF (Portable document Format) generation method, device and equipment based on webpage and storage medium
CN112346976A (en) * 2020-11-09 2021-02-09 深圳市安软科技股份有限公司 Interface document generation method, device and system based on webpage and computer equipment
CN113627126A (en) * 2021-08-09 2021-11-09 平安医疗健康管理股份有限公司 Website language-based PDF file generation method, device, equipment and storage medium
CN113963770A (en) * 2021-10-11 2022-01-21 深圳市人民医院 Report file generation method and device, computer equipment and storage medium thereof
CN114357331A (en) * 2021-12-23 2022-04-15 北京百度网讯科技有限公司 Webpage information display method and device, electronic equipment, storage medium and product

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8607138B2 (en) * 1999-05-28 2013-12-10 Microstrategy, Incorporated System and method for OLAP report generation with spreadsheet report within the network user interface

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007115082A2 (en) * 2006-03-29 2007-10-11 Campus Crusade For Christ, Inc. Systems and methods of transforming data for web communities and web applications
GB201010390D0 (en) * 2010-05-26 2010-08-04 Content Catalyst Ltd Automated report generation system and method
CN104765747A (en) * 2014-01-06 2015-07-08 腾讯科技(深圳)有限公司 Webpage processing method and device
CN107408113A (en) * 2015-03-31 2017-11-28 华为技术有限公司 For analyzing the analysis engine and method of pre-generatmg data report
CN105446948A (en) * 2015-11-13 2016-03-30 武汉鸿图节能技术有限公司 Report automatic generation method and system
CN108491367A (en) * 2018-02-11 2018-09-04 苏州朗动网络科技有限公司 Method, apparatus, computer equipment and the storage medium that report file generates
CN111177231A (en) * 2019-12-20 2020-05-19 中国建设银行股份有限公司 Report generation method and report generation device
CN111428464A (en) * 2020-03-27 2020-07-17 平安不动产有限公司 Report file generation method and device, computer equipment and storage medium
CN111651966A (en) * 2020-06-04 2020-09-11 航天科工智慧产业发展有限公司 Data report file generation method and device and electronic equipment
CN111985188A (en) * 2020-07-22 2020-11-24 用友网络科技股份有限公司 Data conversion method, device, terminal and storage medium
CN112036123A (en) * 2020-08-31 2020-12-04 北京奇虎鸿腾科技有限公司 PDF (Portable document Format) generation method, device and equipment based on webpage and storage medium
CN112346976A (en) * 2020-11-09 2021-02-09 深圳市安软科技股份有限公司 Interface document generation method, device and system based on webpage and computer equipment
CN113627126A (en) * 2021-08-09 2021-11-09 平安医疗健康管理股份有限公司 Website language-based PDF file generation method, device, equipment and storage medium
CN113963770A (en) * 2021-10-11 2022-01-21 深圳市人民医院 Report file generation method and device, computer equipment and storage medium thereof
CN114357331A (en) * 2021-12-23 2022-04-15 北京百度网讯科技有限公司 Webpage information display method and device, electronic equipment, storage medium and product

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于LabVIEW的数据访问及报表生成技术;张素娟;王天宝;;成都信息工程学院学报(02);全文 *
基于批量处理构建查收查引报告工作流程;陈伟;苏婉莹;周琴;;现代情报(04);全文 *

Also Published As

Publication number Publication date
CN114968455A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN109684188B (en) Test method and device
CN113808231B (en) Information processing method and device, image rendering method and device, and electronic device
CN112527649A (en) Test case generation method and device
CA3061623C (en) File sending in instant messaging applications
CN109582317B (en) Method and apparatus for debugging hosted applications
CN109413056B (en) Method and apparatus for processing information
CN110689268A (en) Method and device for extracting indexes
CN112818026A (en) Data integration method and device
CN107908662B (en) Method and device for realizing search system
CN108509442B (en) Search method and apparatus, server, and computer-readable storage medium
CN112433713A (en) Application program design graph processing method and device
CN114968455B (en) Report generation method and device of application interface and electronic equipment
CN116776030A (en) Gray release method, device, computer equipment and storage medium
CN115858905A (en) Data processing method and device, electronic equipment and storage medium
CN114239501A (en) Contract generation method, apparatus, device and medium
CN113704486A (en) Map data construction method and device and map data query method and device
CN113779018A (en) Data processing method and device
CN113626301A (en) Method and device for generating test script
CN112579428A (en) Interface testing method and device, electronic equipment and storage medium
CN110858240A (en) Front-end module loading method and device
CN111125501A (en) Method and apparatus for processing information
CN111414566A (en) Method and device for pushing information
CN113590447B (en) Buried point processing method and device
CN113190779B (en) Webpage evaluation method and device
CN114157917B (en) Video editing method and device and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant