CN114489586A - Progress indication method and device, electronic equipment and computer readable storage medium - Google Patents

Progress indication method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114489586A
CN114489586A CN202210086790.4A CN202210086790A CN114489586A CN 114489586 A CN114489586 A CN 114489586A CN 202210086790 A CN202210086790 A CN 202210086790A CN 114489586 A CN114489586 A CN 114489586A
Authority
CN
China
Prior art keywords
node
nodes
current node
state
real
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.)
Pending
Application number
CN202210086790.4A
Other languages
Chinese (zh)
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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202210086790.4A priority Critical patent/CN114489586A/en
Publication of CN114489586A publication Critical patent/CN114489586A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application is applicable to the field of software development, and provides a progress indication method and device, electronic equipment and a computer-readable storage medium. The method comprises the following steps: acquiring all nodes contained in a flow and a view corresponding to each node in all the nodes; splicing all the nodes into an initial progress bar; acquiring real-time progress information of a process, wherein the real-time progress information comprises nodes reached by the process; updating the state of the view corresponding to the current node in the initial progress bar according to the real-time progress information of the process; and setting the state of the node before the current node as an activated state. The technical scheme provided by the application can clearly show which step the things progress to, and the states are shown, so that the abundant details of the event progress are provided, and good experience is brought to the user.

Description

Progress indication method and device, electronic equipment and computer readable storage medium
Technical Field
The present application belongs to the field of software development, and in particular, to a progress indication method, apparatus, electronic device, and computer-readable storage medium.
Background
Each event has a process from beginning to end, and the process can be displayed in a progress bar or progress node mode if the process is changed into a digital display. With the appearance of the digital view, the progress of the current things can be displayed in a computer or mobile phone screen in a digital mode. At present, a progress indication method is generally performed in a progress bar mode, namely, a user is informed of the currently reached progress by a numerical value between 0 and 100, and the progress indication method has the advantages of simplicity and intuition. However, in some scenarios, the manner in which the progress is indicated using only numerical values does not fully represent the details of the progress of the event.
Disclosure of Invention
The embodiment of the application provides a progress indication method, a progress indication device, electronic equipment and a computer readable storage medium, so as to indicate rich details of event progress.
In a first aspect, an embodiment of the present application provides a progress indication method, where the method includes:
acquiring all nodes contained in a flow and a view corresponding to each node in all the nodes;
splicing all the nodes into an initial progress bar;
acquiring real-time progress information of the process, wherein the real-time progress information comprises nodes reached by the process;
updating the state of the view corresponding to the current node in the initial progress bar according to the real-time progress information of the process;
and setting the state of the node before the current node as an activated state.
In a second aspect, an embodiment of the present application provides a progress indicating device, including:
the first acquisition module is used for acquiring all nodes included in a process and a view corresponding to each node in all the nodes;
the splicing module is used for splicing all the nodes into an initial progress bar;
a second obtaining module, configured to obtain real-time progress information of the process, where the real-time progress information includes a node reached by the process;
the updating module is used for updating the state of the view corresponding to the current node in the initial progress bar according to the real-time progress information of the process;
and the setting module is used for setting the state of the node before the current node as an activated state.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the method of the foregoing technical solution of the first aspect is implemented.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including: the computer readable storage medium stores a computer program which, when executed by a processor, performs the method steps of the first aspect described above.
In a fifth aspect, embodiments of the present application provide a computer program product, which, when run on an electronic device, causes the electronic device to perform the method steps of the first aspect.
According to the technical scheme, the state of the view corresponding to the current node in the initial progress bar is updated according to the real-time progress information of the process by acquiring all nodes included in the process, the view corresponding to each node in all the nodes and the real-time progress information of the process. Different from the prior art that the progress is indicated by simple numerical values, in the technical scheme of the application, the progress is indicated by the current states of the nodes and the corresponding views thereof, so that the step to which the event progresses can be clearly indicated, and the state is indicated, so that rich details of the progress of the event are provided, and good experience is brought to a user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a progress indication method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a progress indication method according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a node and its corresponding view provided by an embodiment of the present application;
fig. 4a is a schematic diagram of an initial progress bar of a process including 7 nodes according to an embodiment of the present application;
FIG. 4b is a diagram of an initial progress bar of a process including 7 nodes according to another embodiment of the present application;
fig. 5 is a schematic state change diagram of five nodes included in an automobile diagnosis process, which is provided by the embodiment of the present application and exemplified by the process;
fig. 6 is a schematic structural diagram of a progress indicating device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
At present, a progress bar is generally adopted in a progress indicating method, namely, a value between 0 and 100 is used for informing a user of the currently reached progress, and the progress indicating method has the advantages of simplicity and intuition. However, in some scenarios, such as diagnosis of an automobile engine, the whole process needs to go through five steps, such as hot car (raising water temperature), idle speed detection, steady test, full-open test and report making, each step is performed for a different time, and the manner of merely using a numerical value to indicate progress does not completely represent the details of the progress of such events, so that the user experience is not good.
In view of the above problems in the prior art, the present application provides a progress indication method, apparatus, electronic device and storage medium to indicate rich details of event progress.
Fig. 1 shows a progress indication method provided in the embodiment of the present application, which mainly includes steps S101 to S105, and the description is as follows:
step S101: and acquiring all nodes contained in the flow and a view corresponding to each node in all the nodes.
In the embodiment of the application, one node in the flow represents a certain step in an event corresponding to the flow, the view corresponding to each node includes a plurality of controls, some of the controls are geometric figures, some of the controls are texts, and the controls, whether the controls are geometric figures or texts, can have color attributes, that is, the colors of the controls.
Step S102: and splicing all the nodes contained in the flow into an initial progress bar.
In the embodiment of the present application, each node in all nodes included in the flow has a corresponding state in addition to the color attribute mentioned in the above embodiment, and the initial progress bar spliced by all nodes included in the flow means that all nodes included in the flow are in an initial state or an inactive state.
Step S103: and acquiring real-time progress information of the process, wherein the real-time progress information comprises nodes reached by the process.
Relative to the process progress displayed on the interface, the real-time progress information of the process belongs to background information, and the real-time progress information mainly comprises a node reached by the process, namely a step to which an event corresponding to the process is developed.
Step S104: and updating the state of the view corresponding to the current node in the initial progress bar according to the real-time progress information of the process.
When the fact that the flow reaches the current node is known according to the real-time progress information of the flow, the state of the view corresponding to the current node in the initial progress bar is updated, for example, the current node is activated, the corresponding view is updated to other colors, and the like.
Step S105: and setting the state of the node before the current node as an activated state.
In the embodiment of the present application, the current node is the node currently reached by the process, and the node that the process has already passed before the current node is the node. The state of the node before the current node is set to the active state, which is also a view indicating to the user that the flow has gone through the node before the current node, and the active state may be a view in which the views of the nodes are all different from the initial state, e.g., the view is set to white from gray when the node is in the inactive state.
As can be seen from the above technical solution illustrated in fig. 1, by acquiring all nodes included in the flow and views corresponding to each node in all nodes and acquiring real-time progress information of the flow, the state of the view corresponding to the current node in the initial progress bar is updated according to the real-time progress information of the flow. Different from the prior art that the progress is indicated by simple numerical values, in the technical scheme of the application, the progress is indicated by the current states of the nodes and the corresponding views thereof, so that the step to which the event progresses can be clearly indicated, and the state is indicated, so that rich details of the progress of the event are provided, and good experience is brought to a user.
Fig. 2 shows a progress indication method according to another embodiment of the present application, which mainly includes steps S201 to S206, and the following description is given:
step S201: and calling the node view construction interface.
The node view building interface is an interface provided externally and is used for building a node view of a process.
Step S202: and storing all nodes contained in the flow and the views corresponding to each node in all the nodes into a view container.
In the embodiment of the application, the view container is a view set which can store views corresponding to all nodes included in the flow, and when the view container is arranged on the interface, all views of the view set can be displayed on the interface. For example, if a flow includes 7 nodes, the view container may store views corresponding to each node of the 7 nodes. The view corresponding to the node comprises a plurality of controls, and the controls can be geometric figures or texts. As shown in fig. 3, which is a View corresponding to a node provided in the embodiment of the present application, one node mainly includes 4 views, namely View1 (shown by View1 in the figure), View2 (shown by View2 in the figure), View3 (shown by View3 in the figure), and View 4 (shown by TextView in the figure). As can be seen from the view example of fig. 3, a view corresponding to a node mainly includes a node body, two straight lines connecting front and rear nodes of the node, and a text corresponding to the node, where the node body may be a geometric figure such as a circle, and the text corresponding to the node may be abstract node names such as "start point", "node 1", "node 2", and the like, or may also be names of specific steps, for example, in an automobile diagnosis process, the text corresponding to the node may be names of specific steps such as "hot car", "idle speed detection", "steady state test", and the like. According to the method and the device, the interface can be constructed by calling the node view, parameters such as a context environment, a view container and a node view list are transmitted to the interface, and all nodes in a certain process and views corresponding to all nodes in all the nodes are stored in the view container.
It should be noted that the view container of the present application is created in advance, in other words, the method of the above embodiment of the present application further includes: creating a view container; the method comprises the steps of presetting attributes of views corresponding to each node in all nodes contained in a flow and storing the attributes of the views to a view container, wherein the attributes of the views corresponding to the nodes mainly comprise color attributes of the views, such as gray, white, green and other colors; the different states of a node correspond to different colors of the view of the node.
Step S203: and splicing all the nodes contained in the flow into an initial progress bar.
Specifically, the view container of the view corresponding to each node in all nodes of the stored process in step S202 may be obtained, then all the nodes may be arranged and connected according to the preset arrangement order according to the sequence in which each node in all the nodes is stored in the view container, and finally, all the nodes may be initialized to the inactive state. As previously mentioned, the node correspondence view has a color attribute, and thus, initializing all nodes to an inactive state may be in an initialization phase, where all nodes are set to gray to indicate that the nodes are in an inactive state or inactive; the node is inactive indicating that the process has not yet progressed to the node. As for the preset arrangement sequence, the preset arrangement sequence includes a horizontal arrangement sequence or a vertical arrangement sequence, and specifically may be set according to a ratio of a horizontal size to a vertical size of a page on which the nodes are displayed last, or according to a specific application scenario. For example, if the horizontal size is significantly larger than the vertical size, the preset arrangement order may be a horizontal arrangement order, that is, a horizontal order in which each node in all the nodes is stored in the view container, and conversely, if the horizontal size is significantly smaller than the vertical size, the preset arrangement order may be a vertical arrangement order in which each node in all the nodes is stored in the view container. As shown in fig. 4a, it is a schematic diagram of an initial progress bar including a certain flow of 7 nodes, whose preset arrangement order is a horizontal arrangement order, and fig. 4b is a schematic diagram of an initial progress bar including a certain flow of 7 nodes, whose preset arrangement order is a vertical arrangement order.
Step S204: and acquiring real-time progress information of the process, wherein the real-time progress information comprises nodes reached by the process.
Relative to the process progress displayed on the interface, the real-time progress information of the process belongs to background information, and the real-time progress information mainly comprises a node reached by the process, namely a step to which an event corresponding to the process is developed.
Step S205: and updating the state of the view corresponding to the current node in the initial progress bar according to the real-time progress information of the process.
As an embodiment of the present application, according to the real-time progress information of the process, updating the state of the view corresponding to the current node in the initial progress bar may be: according to the real-time progress information of the process, if the process reaches the current node, calling a node interface, and transmitting the identifier of the current node to the node interface; and updating the state of the view corresponding to the current node in the initial progress bar according to the identification of the current node.
As described above, the view corresponding to a node includes the node Ni body, two straight lines connecting the front and rear nodes of the node Ni, and the text corresponding to the node Ni. According to the identifier of the current node in the above embodiment, the updating the state of the view corresponding to the current node in the initial progress bar may be: activating the current node body and the text corresponding to the current node into flashing; judging whether the current node is the last node of the process or not according to the identifier of the current node; if the current node is the last node of the process, activating two straight lines connecting the front node and the rear node of the current node to be white; and if the current node is not the last node of the process, setting a straight line connecting a node before the current node as grey, and activating a straight line connecting a node after the current node as white. In the above embodiment, activating the text corresponding to the current node body and the current node to flash may be: triggering a preset timer to start timing; and when the timing period of the timer is reached, alternately updating the text corresponding to the current node body and the current node between the first color and the second color. For example, the first color is gray, the second color is green, when the first timing period of the timer arrives, the text corresponding to the current node body and the current node changes from gray to green, and when the second timing period of the timer arrives, the text changes from green to gray, … …, the state is in a flashing state. Fig. 5 illustrates the vehicle diagnostic process, and shows the state changes of five nodes included in the process.
Step S206: and setting the state of the node before the current node as an activated state.
In the embodiment of the present application, the current node is the node currently reached by the process, and the node that the process has already passed before the current node is the node. The state of the node before the current node is set to the active state, which is also a view indicating to the user that the flow has gone through the node before the current node, and the active state may be a view in which the views of the nodes are all different from the initial state, e.g., the view is set to white from gray when the node is in the inactive state.
As can be seen from the above-mentioned progress indication method illustrated in fig. 2, by acquiring all nodes included in the flow and the view corresponding to each node in all nodes and acquiring the real-time progress information of the flow, the state of the view corresponding to the current node in the initial progress bar is updated according to the real-time progress information of the flow. Different from the prior art that the progress is indicated by simple numerical values, in the technical scheme of the application, the progress is indicated by the current states of the nodes and the corresponding views thereof, so that the step to which the event progresses can be clearly indicated, and the state is indicated, so that rich details of the progress of the event are provided, and good experience is brought to a user.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Corresponding to the progress indication method shown in fig. 1, fig. 6 shows a progress indication apparatus provided in an embodiment of the present application, which may include a first obtaining module 601, a splicing module 602, a second obtaining module 603, an updating module 604, and a setting module 605, and the detailed description is as follows:
a first obtaining module 601, configured to obtain all nodes included in a flow and a view corresponding to each node in all nodes;
a splicing module 602, configured to splice all nodes into an initial progress bar;
a second obtaining module 603, configured to obtain real-time progress information of a process, where the real-time progress information includes a node reached by the process;
an updating module 604, configured to update a state of a view corresponding to a current node in the initial progress bar according to the real-time progress information of the process;
a setting module 605, configured to set the state of the node before the current node to an active state.
Optionally, the first obtaining module 601 illustrated in fig. 6 may include a calling unit and a saving unit, where:
the calling unit is used for calling a node view construction interface;
and the storage unit is used for storing all nodes contained in the process and views corresponding to each node in all the nodes into the view container.
Optionally, the splicing module 602 illustrated in fig. 6 may include a view container acquiring unit, an arranging unit, and an initializing unit, wherein:
a view container acquiring unit for acquiring a view container;
the arrangement unit is used for arranging and connecting all the nodes according to a preset arrangement sequence according to the sequence of storing each node in the view container in all the nodes;
and the initialization unit is used for initializing all the nodes to be in an inactivated state.
Optionally, the update module 604 illustrated in fig. 6 may include a node interface calling unit and a status update unit, where:
the node interface calling unit is used for calling the node interface and transmitting the identifier of the current node to the node interface if the flow reaches the current node according to the real-time progress information of the flow;
and the state updating unit is used for updating the state of the view corresponding to the current node in the initial progress bar according to the identifier of the current node.
Optionally, the view corresponding to each node in the above example includes a node Ni body, two straight lines connecting front and rear nodes of Ni, and a text corresponding to node Ni, and the state updating unit may include a flashing activating unit, a determining unit, a first color activating unit, and a second color activating unit, where:
the flicker activation unit is used for activating the current node body and the text corresponding to the current node into flicker;
the judging unit is used for judging whether the current node is the last node of the process or not according to the identifier of the current node;
the first color activation unit is used for activating two straight lines connecting the front node and the rear node of the current node into white if the current node is the last node of the process;
and the second color activation unit is used for setting a straight line connecting a node before the current node as gray and activating a straight line connecting a node after the current node as white if the current node is not the last node of the flow.
Optionally, the flicker activation unit of the above example may include a trigger unit and an alternate update unit, wherein:
the trigger unit is used for triggering a preset timer to start timing;
and the alternate updating unit is used for alternately updating the text corresponding to the current node body and the current node between the first color and the second color when the timing period of the timer is up.
Optionally, the apparatus of the above example may further include a creating module and a presetting module, where:
a creation module for creating a view container;
and the presetting module is used for presetting the attribute of the view corresponding to each node in all the nodes contained in the process and storing the attribute to the view container.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device D10 of the embodiment includes: at least one processor D100 (only one is shown in fig. 7), a memory D101, and a computer program D102 stored in the memory D101 and operable on the at least one processor D100, wherein the processor D100, when executing the computer program D102, implements the steps in any of the above method embodiments, that is, obtains all nodes included in a flow and a view corresponding to each node in all nodes; splicing all the nodes into an initial progress bar; acquiring real-time progress information of a process, wherein the real-time progress information comprises nodes reached by the process; updating the state of the view corresponding to the current node in the initial progress bar according to the real-time progress information of the process; and setting the state of the node before the current node as an activated state.
Optionally, all the nodes included in the above example obtaining process and the view corresponding to each node in all the nodes may be: calling a node view to construct an interface; and storing all nodes contained in the flow and the views corresponding to each node in all the nodes into a view container.
Optionally, the example of splicing all the nodes into the initial progress bar may be: acquiring a view container; arranging and connecting all the nodes according to a preset arrangement sequence according to the sequence of storing each node in the view container in all the nodes; all nodes are initialized to an inactive state.
Optionally, according to the real-time progress information of the process in the above example, the updating the state of the view corresponding to the current node in the initial progress bar may be: according to the real-time progress information of the process, if the process reaches the current node, calling a node interface, and transmitting the identifier of the current node to the node interface; and updating the state of the view corresponding to the current node in the initial progress bar according to the identification of the current node.
Optionally, the view corresponding to each node in the above example includes a node Ni body, two straight lines connecting nodes before and after Ni, and a text corresponding to the node Ni, and according to the identifier of the current node, updating the state of the view corresponding to the current node in the initial progress bar may be: activating the current node body and the text corresponding to the current node into flashing; judging whether the current node is the last node of the process or not according to the identifier of the current node; if the current node is the last node of the process, activating two straight lines connecting the front node and the rear node of the current node to be white; and if the current node is not the last node of the process, setting a straight line connecting a node before the current node as grey, and activating a straight line connecting a node after the current node as white.
Optionally, the activating the text corresponding to the current node ontology and the current node as flashing in the above example may be: triggering a preset timer to start timing; and when the timing period of the timer is reached, alternately updating the text corresponding to the current node body and the current node between the first color and the second color.
Optionally, the apparatus of the above example may further include: creating a view container; and presetting the attribute of the view corresponding to each node in all the nodes contained in the flow and storing the attribute to a view container.
Those skilled in the art will appreciate that fig. 7 is merely an example of the electronic device D10 and does not constitute a limitation of the electronic device D10, and may include more or fewer components than those shown, or some components in combination, or different components, such as input output devices, network access devices, etc. Processor D100 may be a Central Processing Unit (CPU), and Processor D100 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The storage D101 may be an internal storage unit of the electronic device D10 in some embodiments, such as a hard disk or a memory of the electronic device D10. In other embodiments, the memory D101 may also be an external storage device of the electronic device D10, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device D10. Further, the memory D101 may also include both an internal storage unit and an external storage device of the electronic device D10. The memory D101 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer programs. The memory D101 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments may be implemented.
Embodiments of the present application provide a computer program product, which when executed on an electronic device, enables the electronic device to implement the steps in the above method embodiments.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present application, and they should be construed as being included in the present application.

Claims (10)

1. A progress indication method, the method comprising:
acquiring all nodes contained in a flow and a view corresponding to each node in all the nodes;
splicing all the nodes into an initial progress bar;
acquiring real-time progress information of the process, wherein the real-time progress information comprises nodes reached by the process;
updating the state of the view corresponding to the current node in the initial progress bar according to the real-time progress information of the process;
and setting the state of the node before the current node as an activated state.
2. The method according to claim 1, wherein the obtaining all nodes included in the flow and the view corresponding to each node in all nodes comprises:
calling a node view to construct an interface;
and storing all nodes contained in the flow and the views corresponding to each node in all the nodes into a view container.
3. The method of claim 2, wherein said splicing all nodes into an initial progress bar comprises:
acquiring the view container;
arranging and connecting all the nodes according to a preset arrangement sequence according to the sequence of storing each node in the view container in all the nodes;
initializing all nodes to an inactive state.
4. The method of claim 1, wherein the updating the state of the view corresponding to the current node in the initial progress bar according to the real-time progress information of the process comprises:
according to the real-time progress information of the process, if the process reaches the current node, calling a node interface, and transmitting the identifier of the current node to the node interface;
and updating the state of the view corresponding to the current node in the initial progress bar according to the identifier of the current node.
5. The method of claim 4, wherein the view corresponding to each node comprises a node NiBody, connecting said NiTwo straight lines of front and rear nodes and the node NiThe updating the state of the view corresponding to the current node in the initial progress bar according to the identifier of the current node, which includes:
activating the current node body and the text corresponding to the current node into flashing;
judging whether the current node is the last node of the process or not according to the identifier of the current node;
if the current node is the last node of the process, activating two straight lines connecting the front node and the rear node of the current node to be white;
and if the current node is not the last node of the process, setting a straight line connecting a node before the current node as grey, and activating a straight line connecting a node after the current node as white.
6. The method of claim 5, wherein activating the text corresponding to the current node ontology and the current node as blinking comprises:
triggering a preset timer to start timing;
and when the timing period of the timer is reached, alternately updating the texts corresponding to the current node body and the current node between a first color and a second color.
7. The method according to any one of claims 1 to 5, further comprising:
creating a view container;
and presetting the attribute of the view corresponding to each node in all the nodes contained in the flow and storing the attribute to the view container.
8. A progress indicating device, the device comprising:
the first acquisition module is used for acquiring all nodes included in a process and a view corresponding to each node in all the nodes;
the splicing module is used for splicing all the nodes into an initial progress bar;
a second obtaining module, configured to obtain real-time progress information of the process, where the real-time progress information includes a node reached by the process;
the updating module is used for updating the state of the view corresponding to the current node in the initial progress bar according to the real-time progress information of the process;
and the setting module is used for setting the state of the node before the current node as an activated state.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202210086790.4A 2022-01-25 2022-01-25 Progress indication method and device, electronic equipment and computer readable storage medium Pending CN114489586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210086790.4A CN114489586A (en) 2022-01-25 2022-01-25 Progress indication method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210086790.4A CN114489586A (en) 2022-01-25 2022-01-25 Progress indication method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114489586A true CN114489586A (en) 2022-05-13

Family

ID=81474747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210086790.4A Pending CN114489586A (en) 2022-01-25 2022-01-25 Progress indication method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114489586A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114876591A (en) * 2022-06-20 2022-08-09 华能山东石岛湾核电有限公司 Steam turbine warm-up auxiliary system and method
CN117829862A (en) * 2024-03-04 2024-04-05 贵州联广科技股份有限公司 Interconnection-based data source tracing method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850568A (en) * 2014-02-19 2015-08-19 珠海金山办公软件有限公司 Method and system for controlling display content of presentation file
CN106383704A (en) * 2016-08-31 2017-02-08 腾讯科技(深圳)有限公司 Progress bar data processing method and apparatus
CN106484432A (en) * 2016-11-01 2017-03-08 武汉斗鱼网络科技有限公司 A kind of progress bar method for customizing, device and progress bar
US20210019136A1 (en) * 2019-07-19 2021-01-21 EMC IP Holding Company LLC Method, device, and computer program product for updating software
WO2021022433A1 (en) * 2019-08-05 2021-02-11 宇龙计算机通信科技(深圳)有限公司 Application monitoring method and apparatus, and storage medium and electronic device
CN113902411A (en) * 2021-10-11 2022-01-07 国网河北省电力有限公司衡水供电分公司 Project time progress display method and device, terminal and storage medium
CN113946394A (en) * 2021-10-13 2022-01-18 上海淇玥信息技术有限公司 Method and device for displaying task flow running result in real time and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850568A (en) * 2014-02-19 2015-08-19 珠海金山办公软件有限公司 Method and system for controlling display content of presentation file
CN106383704A (en) * 2016-08-31 2017-02-08 腾讯科技(深圳)有限公司 Progress bar data processing method and apparatus
CN106484432A (en) * 2016-11-01 2017-03-08 武汉斗鱼网络科技有限公司 A kind of progress bar method for customizing, device and progress bar
US20210019136A1 (en) * 2019-07-19 2021-01-21 EMC IP Holding Company LLC Method, device, and computer program product for updating software
WO2021022433A1 (en) * 2019-08-05 2021-02-11 宇龙计算机通信科技(深圳)有限公司 Application monitoring method and apparatus, and storage medium and electronic device
CN113902411A (en) * 2021-10-11 2022-01-07 国网河北省电力有限公司衡水供电分公司 Project time progress display method and device, terminal and storage medium
CN113946394A (en) * 2021-10-13 2022-01-18 上海淇玥信息技术有限公司 Method and device for displaying task flow running result in real time and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114876591A (en) * 2022-06-20 2022-08-09 华能山东石岛湾核电有限公司 Steam turbine warm-up auxiliary system and method
CN114876591B (en) * 2022-06-20 2024-01-23 华能山东石岛湾核电有限公司 Auxiliary system and method for steam turbine warm-up
CN117829862A (en) * 2024-03-04 2024-04-05 贵州联广科技股份有限公司 Interconnection-based data source tracing method and system

Similar Documents

Publication Publication Date Title
CN114489586A (en) Progress indication method and device, electronic equipment and computer readable storage medium
CN105554547B (en) The method and system of display screen adaptive configuration
CN104699502B (en) A kind of method and terminal that application is recommended
CN108701044B (en) Interface switching method, system, equipment and computer readable storage medium
CN107317853B (en) Method, device and system for displaying dynamic effect of message popup window
CN105446755A (en) Method and device for rapidly loading Activity data for Android system
CN111813095A (en) Vehicle diagnosis method, device and medium
CN112034819B (en) Vehicle diagnosis method, vehicle diagnosis device and diagnosis equipment
CN111198705A (en) Memory backup method and device for preventing ECU from being swiped up, storage medium and electronic equipment
CN107678744A (en) Application controls pattern customizing method, device and computer-readable recording medium
CN105992278B (en) A kind of flow control methods and mobile terminal
CN116578066A (en) Vehicle diagnosis method, device, equipment and medium
CN109254644B (en) Electric quantity display control method, device, terminal and computer readable storage medium
CN104063277A (en) Information processing method and electronic equipment
CN116149941A (en) Monitoring method and device of server component, server and storage medium
CN115774837A (en) Signal verification method, device, equipment, medium, program product and vehicle
CN113946394A (en) Method and device for displaying task flow running result in real time and electronic equipment
CN115220922A (en) Vehicle application program running method and device and vehicle
CN113542333A (en) Method for monitoring vehicle signals
CN103024537B (en) Intelligent television method for early warning and system
CN114610003B (en) Vehicle diagnosis method, device, equipment and medium
CN106970891B (en) Method, device and system for interaction between microprocessor and peripheral
CN107608697A (en) Application program discharging method, device and readable storage medium storing program for executing
KR100396680B1 (en) Method for diagnosing of digital TV
CN112291556B (en) Color temperature debugging method and device, terminal equipment and readable storage medium

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