Data display method and device, electronic equipment and storage medium

文档序号:7617 发布日期:2021-09-17 浏览:26次 中文

1. A method for displaying data, comprising:

displaying a target page comprising time selection operation information, wherein the time selection operation information comprises a first selection operation area corresponding to a plurality of target times and a second selection operation area corresponding to detailed time, and the first selection operation area displays corresponding target time and an update object of the target time; the second selection operation area displays any target time in the target times;

if an updating instruction triggered based on any updating object is detected, updating the target time displayed in the target selection operation area based on the unit updating duration corresponding to the target selection operation area, and updating the target time displayed in the second selection operation area based on the updated target time displayed in the target selection operation area; the unit updating duration corresponding to the target selection operation area is the duration of the target time corresponding to the target selection operation area; the target selection operation area is a first selection operation area corresponding to the updating instruction;

and responding to a data display instruction, and displaying target data corresponding to the currently displayed target time in the second selection operation area on the target page.

2. The data presentation method of claim 1, wherein after said updating the target time presented in the second selection manipulation area based on the updated target time presented in the target selection manipulation area, the method further comprises:

if a second time selection instruction triggered based on the second selection operation area is detected, displaying detailed time selection information on the target page, wherein the detailed time selection information comprises detailed time in a default unit selection duration;

if a third time selection instruction triggered based on the detailed time is detected, determining a first selected time in the detailed time based on the default unit selection duration, and displaying the first selected time in the detailed time according to a preset format;

and responding to a first time selection confirmation instruction, updating the target time displayed in the second selection operation area based on the first selected time, and hiding the detailed time selection information.

3. The data presentation method according to claim 2, wherein the detailed time selection information further comprises switching operation information corresponding to at least one non-default unit selection duration; the method further comprises the following steps:

and if a switching instruction triggered by the switching operation information corresponding to any non-default unit selection duration is detected, updating the detailed time in the default unit selection duration to the detailed time in the non-default unit selection duration corresponding to the switching instruction.

4. The data presentation method according to claim 3, wherein after the updating the detailed time at the default unit selection duration to the detailed time at the non-default unit selection duration corresponding to the switching instruction, the method further comprises:

if a fourth time selection instruction triggered based on the detailed time is detected, determining second selected time in the detailed time based on non-default unit selection duration corresponding to the switching instruction, and displaying the second selected time in the detailed time according to the preset format;

and responding to a second time selection confirmation instruction, updating the target time displayed in the second selection operation area based on the second selected time, and hiding the detailed time selection information.

5. The data presentation method of claim 2, wherein after said determining a first selected time of said detailed times based on said default unit selection duration, said method further comprises:

updating the target time displayed in the second selection operation area based on the first selected time;

the responding to a first time selection confirmation instruction, updating the target time displayed in the second selection operation area based on the first selected time, and hiding the detailed time selection information comprises:

hiding the detailed time selection information in response to the first time selection confirmation instruction.

6. The data presentation method of claim 2, wherein the default unit selection duration is the same as a unit update duration corresponding to the target selection operation region.

7. A data presentation device, comprising:

the target page display module is configured to execute display of a target page including time selection operation information, wherein the time selection operation information includes a first selection operation area corresponding to a plurality of target times and a second selection operation area corresponding to detailed time, and the first selection operation area displays corresponding target time and an update object of the target time; the second selection operation area displays any target time in the target times;

a first target time updating module configured to execute, if an update instruction triggered based on any update object is detected, updating the target time shown in the target selection operation area based on a unit update duration corresponding to the target selection operation area, and updating the target time shown in the second selection operation area based on the updated target time shown in the target selection operation area; the unit updating duration corresponding to the target selection operation area is the duration of the target time corresponding to the target selection operation area;

and the target data presentation module is configured to execute presentation of target data corresponding to the currently presented target time in the second selection operation area on the target page in response to a data presentation instruction.

8. An electronic device, comprising:

a processor;

a memory for storing the processor-executable instructions;

wherein the processor is configured to execute the instructions to implement the data presentation method of any one of claims 1 to 6.

9. A computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the data presentation method of any one of claims 1 to 6.

10. A computer program product comprising computer instructions, wherein the computer instructions, when executed by a processor, implement the data presentation method of any one of claims 1 to 6.

Background

With the spread of computer technology and office automation, a large amount of data is often presented in the form of electronic data. When some users look over data, the users often make lateral comparison from different time dimensions according to requirements, and correspondingly, the data need to be displayed from different time dimensions.

In the related art, data presentation is often performed from different dimensions by means of a combination of a plurality of initial target time options and a time selector. However, in the related art, the multiple initial target time options are often used as multiple screening options of one screening control, so that the multiple screening options in the screening control need to be switched back and forth in the process of selecting corresponding time dimensions by combining the multiple initial target time options, and the multiple initial target time options are often fixed, so that when the multiple initial target time options do not meet the requirements, the time selector still needs to search for and select the multiple initial target time options. Therefore, the problems of complex and tedious interaction operation, low efficiency and the like exist in the data display process of the related technology.

Disclosure of Invention

The present disclosure provides a data display method, an apparatus, an electronic device and a storage medium, so as to at least solve the problems of complicated interactive operation, low efficiency and the like in the related art. The technical scheme of the disclosure is as follows:

according to a first aspect of the embodiments of the present disclosure, there is provided a data display method, including:

displaying a target page comprising time selection operation information, wherein the time selection operation information comprises a first selection operation area corresponding to a plurality of target times and a second selection operation area corresponding to detailed time, and the first selection operation area displays corresponding target time and an update object of the target time; the second selection operation area displays any target time in the target times;

if an updating instruction triggered based on any updating object is detected, updating the target time displayed in the target selection operation area based on the unit updating duration corresponding to the target selection operation area, and updating the target time displayed in the second selection operation area based on the updated target time displayed in the target selection operation area; the unit updating duration corresponding to the target selection operation area is the duration of the target time corresponding to the target selection operation area; the target selection operation area is a first selection operation area corresponding to the updating instruction;

and responding to a data display instruction, and displaying target data corresponding to the currently displayed target time in the second selection operation area on the target page.

Optionally, after the updating the target time shown in the second selection operation area based on the updated target time shown in the target selection operation area, the method further includes:

if a second time selection instruction triggered based on the second selection operation area is detected, displaying detailed time selection information on the target page, wherein the detailed time selection information comprises detailed time in a default unit selection duration;

if a third time selection instruction triggered based on the detailed time is detected, determining a first selected time in the detailed time based on the default unit selection duration, and displaying the first selected time in the detailed time according to a preset format;

and responding to a first time selection confirmation instruction, updating the target time displayed in the second selection operation area based on the first selected time, and hiding the detailed time selection information.

Optionally, the detailed time selection information further includes switching operation information corresponding to at least one non-default unit selection duration; the method further comprises the following steps:

and if a switching instruction triggered by the switching operation information corresponding to any non-default unit selection duration is detected, updating the detailed time in the default unit selection duration to the detailed time in the non-default unit selection duration corresponding to the switching instruction.

Optionally, after the updating the detailed time in the default unit selection duration to the detailed time in the non-default unit selection duration corresponding to the switching instruction, the method further includes:

if a fourth time selection instruction triggered based on the detailed time is detected, determining second selected time in the detailed time based on non-default unit selection duration corresponding to the switching instruction, and displaying the second selected time in the detailed time according to the preset format;

and responding to a second time selection confirmation instruction, updating the target time displayed in the second selection operation area based on the second selected time, and hiding the detailed time selection information.

Optionally, after the determining the first selected time of the detailed times based on the default unit selection duration, the method further includes:

updating the target time displayed in the second selection operation area based on the first selected time;

the responding to a first time selection confirmation instruction, updating the target time displayed in the second selection operation area based on the first selected time, and hiding the detailed time selection information comprises:

hiding the detailed time selection information in response to the first time selection confirmation instruction.

Optionally, the default unit selection duration is the same as the unit update duration corresponding to the target selection operation area.

Optionally, when the default unit selection duration is a unit duration corresponding to the detailed time, the third time selection instruction includes a first selection sub-instruction and a second selection sub-instruction; the determining a first selected time of the detailed times based on the default unit selection duration comprises:

and taking a time period corresponding to a first time corresponding to the first selection sub-instruction and a second time corresponding to the second selection sub-instruction as the first selected time.

Optionally, before the displaying the target page including the time selection operation information, the method further includes:

responding to a page loading instruction, and displaying a target page comprising time selection operation information in an initial state, wherein the time selection operation information in the initial state comprises a plurality of first selection operation areas corresponding to initial target time and second selection operation areas corresponding to detailed time, and the first selection operation areas corresponding to the initial state are displayed with corresponding initial target time; the current time is displayed in a second selection operation area corresponding to the initial state;

and if a first time selection instruction triggered based on the first selection operation area is detected, executing the target page including the time selection operation information.

Optionally, the displaying the target page including the time selection operation information includes:

adding an updating object in a first selection operation area corresponding to the first time selection instruction;

and updating the target time displayed in the second selection operation area based on the initial target time corresponding to the first selection operation area.

Optionally, the update object includes an increment update object and a decrement update object; if an update instruction triggered based on any update object is detected, updating the target time displayed in the target selection operation area based on the unit update duration corresponding to the target selection operation area comprises:

if an updating instruction triggered based on the incremental updating object is detected, incrementally updating the target time displayed in the target selection operation area based on the unit updating duration corresponding to the target selection operation area;

or the like, or, alternatively,

and if an updating instruction triggered by the descending updating object is detected, descending and updating the target time displayed in the target selection operation area based on the unit updating duration corresponding to the target selection operation area.

Optionally, the update object includes a sliding object and a sliding bar having a plurality of sliding nodes, where the plurality of sliding nodes correspond to a plurality of time information, the sliding object is located at a target sliding node in the plurality of sliding nodes in an initial state, the time information corresponding to the target sliding node is an initial target time corresponding to the target selection operation area, and a time difference between two adjacent sliding nodes in the plurality of sliding nodes is equal to a unit update duration corresponding to the target selection operation area;

if an update instruction triggered based on any update object is detected, updating the target time displayed in the target selection operation area based on the unit update duration corresponding to the target selection operation area comprises:

if the sliding operation of the sliding object on the sliding strip is detected to be finished, determining time information corresponding to a sliding node where the sliding object is located;

and updating the target time displayed in the target selection operation area based on the time information corresponding to the sliding node where the sliding object is located.

According to a second aspect of the embodiments of the present disclosure, there is provided a data presentation apparatus, including:

the target page display module is configured to execute display of a target page including time selection operation information, wherein the time selection operation information includes a first selection operation area corresponding to a plurality of target times and a second selection operation area corresponding to detailed time, and the first selection operation area displays corresponding target time and an update object of the target time; the second selection operation area displays any target time in the target times;

a first target time updating module configured to execute, if an update instruction triggered based on any update object is detected, updating the target time shown in the target selection operation area based on a unit update duration corresponding to the target selection operation area, and updating the target time shown in the second selection operation area based on the updated target time shown in the target selection operation area; the unit updating duration corresponding to the target selection operation area is the duration of the target time corresponding to the target selection operation area; the target selection operation area is a first selection operation area corresponding to the updating instruction;

and the target data presentation module is configured to execute presentation of target data corresponding to the currently presented target time in the second selection operation area on the target page in response to a data presentation instruction.

Optionally, the apparatus further comprises:

a detailed time selection information presentation module configured to, after the target time presented in the second selection operation area is updated based on the updated target time presented in the target selection operation area, present detailed time selection information on the target page if a second time selection instruction triggered based on the second selection operation area is detected, where the detailed time selection information includes a detailed time in a default unit selection duration;

the first selected time display module is configured to execute, if a third time selection instruction triggered based on the detailed time is detected, determining a first selected time in the detailed time based on the default unit selection duration, and displaying the first selected time in the detailed time according to a preset format;

and the second target time updating module is configured to execute a selection confirmation instruction responding to the first time, update the target time displayed in the second selection operation area based on the first selected time, and hide the detailed time selection information.

Optionally, the detailed time selection information further includes switching operation information corresponding to at least one non-default unit selection duration; the device further comprises:

and the unit selection duration updating module is configured to execute a switching instruction triggered by switching operation information corresponding to any non-default unit selection duration if the switching instruction is detected, and update the detailed time in the default unit selection duration to the detailed time in the non-default unit selection duration corresponding to the switching instruction.

Optionally, the apparatus further comprises:

a second selected time display module, configured to execute, after the detailed time in the default unit selection duration is updated to be in the detailed time in the non-default unit selection duration corresponding to the switching instruction, if a fourth time selection instruction triggered based on the detailed time is detected, determine a second selected time in the detailed time based on the non-default unit selection duration corresponding to the switching instruction, and display the second selected time in the detailed time according to the preset format;

and the third target time updating module is configured to execute a second time selection confirmation instruction, update the target time displayed in the second selection operation area based on the second selected time, and hide the detailed time selection information.

Optionally, the apparatus further comprises:

a fourth target time updating module configured to perform updating the target time shown in the second selection operation region based on a first selected time in the detailed time after the determination of the first selected time based on the default unit selection duration;

the second target time update module is further configured to perform hiding the detailed time selection information in response to the first time selection confirmation instruction.

Optionally, the default unit selection duration is the same as the unit update duration corresponding to the target selection operation area.

Optionally, when the default unit selection duration is a unit duration corresponding to the detailed time, the third time selection instruction includes a first selection sub-instruction and a second selection sub-instruction; the second target time update module includes:

a first selected time determining unit configured to execute a time period corresponding to a first time corresponding to the first selecting sub-instruction and a second time corresponding to the second selecting sub-instruction as the first selected time.

Optionally, the apparatus further comprises:

an initial target page display module, configured to perform, before the target page including the time selection operation information is displayed, in response to a page loading instruction, displaying a target page including time selection operation information in an initial state, where the time selection operation information in the initial state includes a plurality of first selection operation areas corresponding to initial target times and a second selection operation area corresponding to detailed times, and the first selection operation area corresponding to the initial state shows corresponding initial target times; the current time is displayed in a second selection operation area corresponding to the initial state;

the target page display module is further configured to execute the display of the target page including the time selection operation information if a first time selection instruction triggered based on the first selection operation area is detected.

Optionally, the target page display module includes:

an update object adding unit configured to add an update object in a first selection operation area corresponding to the first time selection instruction;

and the first target time updating unit is configured to update the target time shown in the second selection operation area based on the initial target time corresponding to the first selection operation area.

Optionally, the update object includes an increment update object and a decrement update object; the first target time update module includes:

a second target time updating unit configured to execute incremental updating of the target time shown in the target selection operation area based on the unit updating duration corresponding to the target selection operation area if an updating instruction triggered based on the incremental updating object is detected;

or the like, or, alternatively,

and the third target time updating unit is configured to execute decremental updating of the target time shown in the target selection operation area based on the unit updating duration corresponding to the target selection operation area if the updating instruction triggered based on the decremental updating object is detected.

Optionally, the update object includes a sliding object and a sliding bar having a plurality of sliding nodes, where the plurality of sliding nodes correspond to a plurality of time information, the sliding object is located at a target sliding node in the plurality of sliding nodes in an initial state, the time information corresponding to the target sliding node is an initial target time corresponding to the target selection operation area, and a time difference between two adjacent sliding nodes in the plurality of sliding nodes is equal to a unit update duration corresponding to the target selection operation area;

the first target time update module includes:

the time information determining unit is configured to execute the step of determining the time information corresponding to the sliding node where the sliding object is located if the sliding operation of the sliding object on the sliding strip is detected to be finished;

and the fourth target time updating unit is configured to update the target time shown in the target selection operation area based on the time information corresponding to the sliding node where the sliding object is located.

According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of any of the first aspects above.

According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of the first aspects of the embodiments of the present disclosure.

According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of any one of the first aspects of the embodiments of the present disclosure.

The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:

by setting a plurality of first selection operation areas corresponding to different target times and a plurality of second selection operation areas corresponding to detailed times in the time selection operation information, the selection of various different initial target times can be conveniently and intuitively and quickly carried out by combining the plurality of first selection operation areas, and the convenience of interaction is greatly improved; and the first selection operation area displays the corresponding target time and the update object of the target time, so that the target time corresponding to a plurality of first selection operation areas can be updated, selection dimension options of the target time for displaying data are increased, the data display requirements of users on different time dimensions can be met more comprehensively, and the operation efficiency in the data display process can be effectively improved.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.

FIG. 1 is a flow chart illustrating a method of data presentation in accordance with an exemplary embodiment;

FIG. 2 is a diagram illustrating time selection operation information in an initial state, according to an exemplary embodiment;

FIG. 3 is a diagram illustrating time selection operation information after a first time selection instruction is triggered based on any one of the first selection operation regions, according to an example embodiment;

FIG. 4 is a diagram illustrating another example of time-selective operation information after triggering a first time-selective instruction based on any one of the first selection operation regions, according to an illustrative embodiment;

FIG. 5 is a schematic diagram illustrating another time selection operation information according to an example embodiment;

FIG. 6 is a flow diagram illustrating another data presentation method in accordance with an exemplary embodiment;

FIG. 7 is a schematic diagram illustrating another time selection operation information in accordance with an illustrative embodiment;

FIG. 8 is a schematic diagram illustrating another time selection operation information in accordance with an illustrative embodiment;

FIG. 9 is a block diagram of a data presentation device, according to an exemplary embodiment;

FIG. 10 is a block diagram illustrating an electronic device for data presentation in accordance with an exemplary embodiment.

Detailed Description

In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are information and data authorized by the user or sufficiently authorized by each party.

Fig. 1 is a flowchart illustrating a data presentation method according to an exemplary embodiment, where as shown in fig. 1, the data presentation method may be used in a terminal device, and specifically, may include the following steps.

In step S101, a target page including time selection operation information is displayed.

In a specific embodiment, the target page may be a page for presenting data to be viewed (i.e., data that needs to be viewed). Specifically, the data to be viewed may be different according to different requirements of the actual application. In practical applications, since the data to be viewed may be often displayed from multiple time dimensions, correspondingly, the target page may include time selection operation information for selecting the time dimension corresponding to the data to be viewed. In a specific embodiment, the time selection operation information may include a first selection operation area of a plurality of target times and a second selection operation area of a detailed time. In a specific embodiment, the first selection operation area displays a corresponding target time and an update object of the target time; the second selection operation area is displayed with any one of the target time.

In an alternative embodiment, the target page including the time selection operation information may be displayed in response to a page load instruction.

In another optional embodiment, before displaying the target page including the time selection operation information, the method may further include:

and displaying a target page including time selection operation information of an initial state in response to the page loading instruction.

And if a first time selection instruction triggered based on the first selection operation area is detected, executing and displaying a target page comprising time selection operation information.

In a specific embodiment, the time selection operation information in the initial state may include a first selection operation area corresponding to a plurality of initial target times and a second selection operation area corresponding to a detailed time, and specifically, the first selection operation area corresponding to the initial state shows the corresponding initial target time; accordingly, in the initial state, the first selection operation area may be used to update the target time shown in the second selection operation area according to the corresponding initial target time. Specifically, the current time is displayed in the second selection operation area corresponding to the initial state;

in a specific embodiment, the initial target time may be a preset time, and specifically, a plurality of first selection operation areas corresponding to different initial target times may be set in combination with a data screening dimension commonly used in an actual application.

In a specific embodiment, as shown in fig. 2, fig. 2 is a schematic diagram illustrating time selection operation information in an initial state according to an exemplary embodiment; specifically, assuming that the first selection operation region is a button control, the second selection operation region is a time selector, and the current time is 2021-11-15, correspondingly, the time selector 201 displays the current time, wherein the button controls "yesterday", "last week" and "last month" display the initial target times "yesterday", "last week" and "last month" corresponding to each other.

In the embodiment, the plurality of first selection operation areas corresponding to different initial target times and the second selection operation areas corresponding to detailed times are set in the time selection operation information in the initial state, so that the selection of the plurality of different initial target times can be conveniently carried out by combining the plurality of first selection operation areas intuitively and quickly in a follow-up manner, and the convenience of interaction is greatly improved.

In a specific embodiment, the displaying the target page including the time selection operation information may include:

adding an updating object in a first selection operation area corresponding to the first time selection instruction;

and updating the target time displayed in the second selection operation area based on the initial target time corresponding to the first selection operation area.

In a specific embodiment, the first time selection instruction may be triggered by clicking a certain first selection operation area, and the like. Specifically, the corresponding first time selection instruction may be triggered by clicking the plurality of first selection operation areas, respectively, so as to trigger display of a target page including time selection operation information.

In a specific embodiment, the update object is configured to update the target time shown in the first selection operation area according to a unit update duration corresponding to the corresponding first selection operation area. In a specific embodiment, the unit update duration corresponding to the first selection operation region may be a duration of a target time corresponding to the first selection operation region.

In an alternative embodiment, updating the object may include incrementing the update object and decrementing the update object. Specifically, the incremental update object may be configured to incrementally update the target time shown in the first selection operation area according to the unit update duration corresponding to the first selection operation area, that is, the unit update duration is increased for the target time shown in the first selection operation area every time the update instruction is triggered based on the incremental update object. Specifically, the decrement update object may be configured to decrement and update the target time shown in the first selection operation area according to the unit update duration corresponding to the first selection operation area, that is, each time an update instruction is triggered based on the decrement update object, the target time shown in the first selection operation area is decreased by the unit update duration.

In a specific embodiment, taking the scenario corresponding to fig. 2 as an example, as shown in fig. 3, fig. 3 is a schematic diagram illustrating time selection operation information after a first time selection instruction is triggered based on any first selection operation area according to an exemplary embodiment. Specifically, fig. 3(a) may be a schematic diagram of time selection operation information after detecting that the first time selection instruction is triggered based on the button control "yesterday", specifically, the first time selection instruction may be triggered once by clicking the button control "yesterday" in fig. 2, and accordingly, in conjunction with fig. 3(a), the update objects 301 and 302 may be added to the button control "yesterday" (first selection operation region); meanwhile, the target time shown in the second selection operation area is updated based on yesterday of 2021-11-15, i.e., 2021-11-14, corresponding to the first selection operation area. Specifically, fig. 3(b) may be a schematic diagram of time selection operation information after detecting that a first time selection instruction is triggered based on the "last week" of the button control, specifically, a first time selection instruction may be triggered once by clicking the "last week" of the button control in fig. 2, and accordingly, as shown in fig. 3(b), the update objects 301 and 302 may be added in the "last week" (first selection operation area) of the button control; meanwhile, the target time shown in the second selection operation region is updated based on the initial target time (the last week of 2021-11-15, i.e., 2021-11-08 to 2021-11-14) corresponding to the first selection operation region. Specifically, fig. 3(c) may be a schematic diagram of time selection operation information after detecting that a first time selection instruction is triggered based on the button control "last month", specifically, a first time selection instruction may be triggered once by clicking the button control "last month" in fig. 2, and correspondingly, as shown in fig. 3(c), the update objects 301 and 302 may be added in the button control "last month" (first selection operation area); meanwhile, the target time shown in the second selection operation area is updated based on the initial target time (the previous month of 2021-11-15, i.e., 2021-10-15 to 2021-11-14) corresponding to the first selection operation area. Specifically, after the corresponding first time selection instructions are triggered based on the plurality of first selection operation regions, the target page including the time selection operation information may be displayed, and specifically, the target time displayed in the second selection operation region may be updated correspondingly along with the sequence of the triggering of the first time selection instructions corresponding to the plurality of first selection operation regions.

In another optional embodiment, the update object may include a sliding object and a sliding bar having a plurality of sliding nodes, where the plurality of sliding nodes correspond to the plurality of time information, the sliding object is located at a target sliding node in the plurality of sliding nodes in an initial state, the time information corresponding to the target sliding node may be an initial target time corresponding to the first selection operation area, and a time difference between two adjacent sliding nodes in the plurality of sliding nodes is equal to a unit update duration corresponding to the first selection operation area.

In a specific embodiment, taking the scenario corresponding to fig. 2 as an example, as shown in fig. 4, fig. 4 is another schematic diagram of time selection operation information after a first time selection instruction is triggered based on any first selection operation area, according to an exemplary embodiment. Specifically, a first time selection instruction may be triggered by clicking the button control "last month" in fig. 2, and accordingly, as shown in fig. 4, an update object may be added to the button control "last month" (first selection operation area): sliding object 401, sliding bar 402, target sliding node 403, and other sliding nodes 404; meanwhile, the target time shown in the second selection operation area is updated based on the initial target time (the previous month of 2021-11-15, i.e., 2021-10-15 to 2021-11-14) corresponding to the first selection operation area.

In the above embodiment, after the first time selection instruction is triggered based on the target first selection operation region, the target time displayed in the second selection operation region can be quickly updated by combining the first selection operation region, and meanwhile, the update object is added in the first selection operation region, so that the target time corresponding to a plurality of first selection operation regions can be updated, selection dimension options of the target time for displaying data are increased, and then, the data display requirements of users on different time dimensions can be more comprehensively met, and the operation efficiency in the data display process can also be effectively improved.

In step S103, if an update instruction triggered based on any one of the update objects is detected, the target time shown in the target selection operation area is updated based on the unit update duration corresponding to the target selection operation area, and the target time shown in the second selection operation area is updated based on the updated target time shown in the target selection operation area.

In a specific embodiment, the update instruction may be triggered by clicking an update object, and the first selection operation area corresponding to the update instruction may be a target selection operation area. In an optional embodiment, in a case that the update object is an incremental update object, if the update instruction triggered based on any update object is detected, updating the target time shown in the target selection operation area based on the unit update duration corresponding to the target selection operation area may include: if an updating instruction triggered based on the incremental updating object is detected, incrementally updating the target time displayed in the target selection operation area based on the unit updating duration corresponding to the target selection operation area;

in an optional embodiment, in a case that the update object is a decreasing update object, if the update instruction triggered based on any update object is detected, updating the target time shown in the target selection operation area based on the unit update duration corresponding to the target selection operation area may include: and if an updating instruction triggered by the descending updating object is detected, descending and updating the target time displayed in the target selection operation area based on the unit updating duration corresponding to the target selection operation area.

In a specific embodiment, as shown in FIG. 3, it is assumed that 301 is a decreasing update object and 302 is an increasing update object. Optionally, assuming that an update instruction is triggered by clicking an incremental update object 302 corresponding to "last week", as shown in fig. 5, fig. 5 is a schematic diagram of another time selection operation information according to an exemplary embodiment, specifically, the unit update duration corresponding to the target selection operation area may be based on: one week, the next week (2021-11-15 to 2021-11-21) with the target time shown in the update target selection operation region is 2021-11-08 to 2021-11-14: 46 weeks (week 46 of 2021, based on the week in which the start time is), and the target time shown in the updated second selection operation region is 2021-11-15 to 2021-11-21 based on the updated target time shown in the target selection operation region.

In an alternative embodiment, in the case that the cursor is located in the area of the update object, the time relationship between the current target time and the target time after the update object is clicked may be displayed so as to prompt the user of the purpose of the update object. For example, in fig. 3(a), when the cursor decrements the area where the update object 301 is located, the time relationship between the current target time and the target time after the update object is clicked is "the previous day".

In addition, it should be noted that the target time shown in the target selection operation area is the same time as the target time shown in the second selection operation area, but may correspond to two expressions, for example, the following week of 2021-11-08 to 2021-11-14 described above: week 46 corresponds to the same time periods from 2021-11-15 to 2021-11-21.

In the above embodiment, the incremental updating object and the decremental updating object are combined to realize incremental or decremental updating of the target time corresponding to the plurality of first selection operation areas, so that selection dimension options of the target time for displaying data are increased, the data display requirements of users on different time dimensions can be more comprehensively met, and the operation efficiency in the data display process can be effectively improved.

In an optional embodiment, in a case that the update object is a sliding object and a sliding bar having a plurality of sliding nodes, if the update instruction triggered based on any one of the update objects is detected, updating the target time shown in the target selection operation area based on the unit update duration corresponding to the target selection operation area may include:

if the sliding operation of the sliding object on the sliding strip is detected to be finished, determining time information corresponding to a sliding node where the sliding object is located; and updating the target time displayed in the target selection operation area based on the time information corresponding to the sliding node where the sliding object is located.

In an alternative embodiment, as shown in fig. 4, it is assumed that time information corresponding to a plurality of sliding nodes sequentially increases by one month from left to right (one month is a unit update duration corresponding to the first selection operation area), optionally, it is assumed that a sliding node where a sliding object is located when the sliding operation is finished is a second node from left to right, time information corresponding to a target sliding node is 2021-10-15 to 2021-11-14, and correspondingly, the time information corresponding to the second node may be 2021-09-15 to 2021-10-14.

In the above embodiment, the target time corresponding to the plurality of first selection operation areas can be updated incrementally or degressively by combining the sliding object and the sliding bar with the plurality of sliding nodes, so that selection dimension options of the target time for displaying data are increased, the data display requirements of users on different time dimensions can be met more comprehensively, and the operation efficiency in the data display process can be effectively improved.

In step S105, in response to the data presentation instruction, the target data corresponding to the target time currently presented in the second selection operation area is presented on the target page.

In a specific embodiment, the target page may further include a touch area for triggering the data presentation instruction, and optionally, the touch area may be a control. Specifically, after the data presentation instruction is triggered, the target data corresponding to the currently presented target time in the second selection operation area may be presented on the target page in response to the data presentation instruction. Correspondingly, the target data may be data corresponding to the currently displayed target time in the data to be viewed.

In addition, it should be noted that, in practical applications, if the user needs to check the data corresponding to the current day or multiple initial target times, the data display instruction may also be triggered after the target time currently displayed in the second selection operation area is the current day or multiple initial target times.

According to the technical scheme provided by the embodiment of the specification, the specification can conveniently, intuitively and quickly combine a plurality of first selection operation areas to select various different initial target times by setting the plurality of first selection operation areas corresponding to different target times and the second selection operation area corresponding to detailed time in the time selection operation information, so that the convenience of interaction is greatly improved; and the first selection operation area displays the corresponding target time and the update object of the target time, so that the target time corresponding to a plurality of first selection operation areas can be updated, selection dimension options of the target time for displaying data are increased, the data display requirements of users on different time dimensions can be met more comprehensively, and the operation efficiency in the data display process can be effectively improved.

In an optional embodiment, as shown in fig. 6, after updating the target time shown in the second selection operation area based on the updated target time shown in the target selection operation area, the method may further include:

in step S107, if a second time selection instruction triggered based on the second selection operation area is detected, detailed time selection information is displayed on the target page.

In practical application, at least one unit selection duration may be preset, and specifically, the unit selection duration may be duration information selected by a single operation. Specifically, the term "day", week, month, etc. may be used.

In a specific embodiment, the detailed time selection information may include a detailed time at a default unit selection duration; in an alternative embodiment, the default unit selection duration may be a unit selection duration that is pre-specified; the detailed time may be different according to different actual application requirements, for example, the detailed time may be date information of a month in which the target time shown in the second selection operation area is located, or may be month information of a year in which the target time shown in the second selection operation area is located.

In another alternative embodiment, the default unit selection time length is the same as the unit update time length corresponding to the target selection operation area.

In the above embodiment, the default unit selection duration is set to be the same as the unit update duration corresponding to the target selection operation area, and the detailed time can be selected according to the unit duration of the time selected by the user before, so that the operation habit of the user can be better met, and the operation efficiency is further improved.

In step S109, if a third time selection instruction triggered based on the detailed time is detected, a first selected time in the detailed time is determined based on the default unit selection duration, and the first selected time is displayed in the detailed time according to a preset format.

In a specific embodiment, the third time selection instruction may be triggered by clicking a selection area corresponding to a certain time or a certain period of time in the detailed time. In a specific embodiment, the preset format may be a preset highlighting format, and the user may conveniently and intuitively grasp the selected time information by displaying the first selected time in the detailed time according to the preset format.

In an optional embodiment, when the default unit selection duration is a unit duration corresponding to the detailed time, the third time selection instruction includes a first selection sub-instruction and a second selection sub-instruction; accordingly, the determining a first selected time of the detailed times based on the default unit selection time period includes:

and taking a time period corresponding to a first time corresponding to the first selection sub-instruction and a second time corresponding to the second selection sub-instruction as a first selected time.

In a specific embodiment, the trigger time of the first selection sub-instruction is different from the trigger time of the second selection sub-instruction, e.g. the trigger time of the first selection sub-instruction is earlier than the trigger time of the second selection sub-instruction. Specifically, the unit duration corresponding to the detailed time may be a duration corresponding to the minimum selectable time, for example, the detailed time is a date, and correspondingly, the unit duration is one day.

In the above embodiment, when the default unit selection duration is the unit duration corresponding to the detailed time, the selection instruction can be triggered twice, so that the selection of a period of time is realized, the time selection operation is simplified, and the time selection efficiency is greatly improved.

In a specific embodiment, assuming that yesterday is exhibited in the second selection operation region, a second time selection instruction is triggered by clicking the second selection operation region, as shown in fig. 7, and fig. 7 is a schematic diagram illustrating another time selection operation information according to an exemplary embodiment; specifically, as shown in fig. 7, the detailed time may include detailed date information of the month and the next month of the target time displayed in the second selection operation area, and the default unit selection duration is one day, that is, the first selected time is selected by day. Optionally, the 2021-11-8 and the 2021-11-24 may be clicked in sequence, the 2021-11-8 to the 2021-11-24 are used as the first selected time, and the first selected time is displayed according to a preset format, for example, a manner of highlighting the head and tail dates, or the first selected time may be displayed in a manner of highlighting the whole first selected time.

In another alternative embodiment, in conjunction with the scenario of fig. 5, assuming that in the scenario of fig. 5, a second time selection instruction is triggered by clicking a second selection operation area, as shown in fig. 8, fig. 8 is a schematic diagram illustrating another time selection operation information according to an exemplary embodiment; specifically, as shown in fig. 8, the detailed time may include detailed date information of a month in which the target time is displayed in the second selection operation area, and the default unit selection duration is one week, that is, the first selected time is selected by week. Optionally, a third time selection instruction may be triggered by clicking a region of a week date in the detailed time, for example, clicking a region of a 46 week corresponding date, the third time selection instruction may be triggered, 2021-11-14 and 2021-11-20 are used as the first selected time, and the first selected time is displayed according to a preset format, for example, in a manner of highlighting the whole first selected time.

In step S111, in response to the first time selection confirmation instruction, the target time displayed in the second selection operation area is updated based on the first selected time, and the detailed time selection information is hidden.

In an optional embodiment, the first time selection confirmation instruction may be triggered by clicking an area other than the area where the detailed time is located in the target page, and accordingly, the target time displayed in the second selection operation area may be updated based on the first selected time, and detailed time selection information may be hidden.

In the above embodiment, in the process of selecting the time dimension corresponding to the data by combining the detailed time operation information, the detailed time can be selected by combining the default unit selection duration, so that the operation convenience and the operation efficiency of detailed time selection can be greatly improved.

In an optional embodiment, the detailed time selection information further includes at least one switching operation information corresponding to a non-default unit selection duration; the method further comprises the following steps:

and if a switching instruction triggered by the switching operation information corresponding to any non-default unit selection duration is detected, updating the detailed time in the default unit selection duration to the detailed time in the non-default unit selection duration corresponding to the switching instruction.

In a specific embodiment, the at least one non-default unit selection duration may be a unit selection duration other than the default unit duration in the at least one preset unit selection duration. In a specific embodiment, as shown in fig. 7, in a case that the default unit duration is one day, the at least one non-default unit selection duration may include one week and one month, and correspondingly, 701 may be switching operation information corresponding to the at least one non-default unit selection duration.

In the above embodiment, by setting the switching operation information corresponding to at least one non-default unit selection duration in the detailed time selection information, switching of detailed time in multiple unit selection durations can be facilitated, and convenience in detailed time selection can be further improved.

In an alternative embodiment, after determining the first selected time of the detailed times based on the default unit selection duration, the method may further include:

updating the target time displayed in the second selection operation area based on the first selected time;

correspondingly, the foregoing updating the target time shown in the second selection operation area based on the first selected time in response to the first time selection confirmation instruction may include:

responsive to a first time selection confirmation instruction, the detailed time selection information is hidden.

In the above embodiment, after the first selected time in the detailed time is determined based on the default unit selection duration, the target time displayed in the second selection operation area is updated directly based on the first selected time, so that the target time displayed in the second selection operation area can be updated in real time.

In an optional embodiment, after updating the detailed time in the default unit selection duration to the detailed time in the non-default unit selection duration corresponding to the switching instruction, the method may further include: if a fourth time selection instruction triggered based on the detailed time is detected, determining second selected time in the detailed time based on the non-default unit selection duration corresponding to the switching instruction, and displaying the second selected time in the detailed time according to a preset format; and responding to the second time selection confirmation instruction, updating the target time displayed in the second selection operation area based on the second selected time, and hiding the detailed time selection information.

In this embodiment of the present specification, specific details of the step related to time selection performed in combination with the non-default unit selection time length may be referred to the above specific details of the step related to time selection performed in the default unit selection time length, and are not described herein again.

In the above embodiment, in the process of selecting the time dimension corresponding to the data by combining the detailed time operation information, the detailed time can be selected by combining the unit selection duration after switching, so that the user requirements can be better met, and the operation convenience of time selection is improved.

FIG. 9 is a block diagram illustrating a data presentation device according to an example embodiment. Referring to fig. 9, the apparatus includes:

a target page display module 910 configured to perform displaying a target page including time selection operation information, where the time selection operation information includes a first selection operation area corresponding to a plurality of target times and a second selection operation area corresponding to detailed times, and the first selection operation area shows an update object of the corresponding target time and target time; any target time in the plurality of target times is displayed in the second selection operation area;

a first target time updating module 920, configured to execute, if an update instruction triggered based on any update object is detected, updating the target time shown in the target selection operation area based on the unit update duration corresponding to the target selection operation area, and updating the target time shown in the second selection operation area based on the updated target time shown in the target selection operation area; the unit updating duration corresponding to the target selection operation area is the duration of the target time corresponding to the target selection operation area; the target selection operation area is a first selection operation area corresponding to the updating instruction;

and a target data presentation module 930 configured to perform presentation of target data corresponding to the target time currently presented in the second selection operation region on the target page in response to the data presentation instruction.

Optionally, the apparatus further comprises:

the detailed time selection information display module is configured to execute that after the target time displayed in the second selection operation area is updated based on the updated target time displayed in the target selection operation area, if a second time selection instruction triggered based on the second selection operation area is detected, detailed time selection information is displayed on a target page, wherein the detailed time selection information comprises detailed time in a default unit selection duration;

the first selected time display module is configured to execute, if a third time selection instruction triggered based on the detailed time is detected, determining first selected time in the detailed time based on the default unit selection duration, and displaying the first selected time in the detailed time according to a preset format;

and the second target time updating module is configured to execute a selection confirmation instruction responding to the first time, update the target time displayed in the second selection operation area based on the first selected time and hide detailed time selection information.

Optionally, the detailed time selection information further includes switching operation information corresponding to at least one non-default unit selection duration; the above-mentioned device still includes:

and the unit selection duration updating module is configured to execute a switching instruction triggered based on the switching operation information corresponding to any non-default unit selection duration, and update the detailed time in the default unit selection duration to the detailed time in the non-default unit selection duration corresponding to the switching instruction.

Optionally, the apparatus further comprises:

the second selected time display module is configured to execute the steps of updating the detailed time in the default unit selection duration to the detailed time in the non-default unit selection duration corresponding to the switching instruction, if a fourth time selection instruction triggered based on the detailed time is detected, determining a second selected time in the detailed time based on the non-default unit selection duration corresponding to the switching instruction, and displaying the second selected time in the detailed time according to a preset format;

and the third target time updating module is configured to execute a response to the second time selection confirmation instruction, update the target time displayed in the second selection operation area based on the second selected time, and hide detailed time selection information.

Optionally, the apparatus further comprises:

a fourth target time updating module configured to perform updating of the target time shown in the second selection operation region based on the first selected time after determining the first selected time in the detailed time based on the default unit selection duration;

the second target time update module is further configured to perform hiding the detailed time selection information in response to the first time selection confirmation instruction.

Optionally, the default unit selection duration is the same as the unit update duration corresponding to the target selection operation area.

Optionally, when the default unit selection duration is the unit duration corresponding to the detailed time, the third time selection instruction includes a first selection sub-instruction and a second selection sub-instruction; the second target time update module includes:

and the first selected time determining unit is configured to execute a time period corresponding to a first time corresponding to the first selection sub-instruction and a second time corresponding to the second selection sub-instruction as the first selected time.

Optionally, the apparatus further comprises:

the initial target page display module is configured to respond to a page loading instruction before a target page including time selection operation information is displayed, and display the target page including the time selection operation information in an initial state, wherein the time selection operation information in the initial state includes a plurality of first selection operation areas corresponding to initial target time and second selection operation areas corresponding to detailed time, and the first selection operation areas corresponding to the initial state show corresponding initial target time; the current time is displayed in a second selection operation area corresponding to the initial state;

the target page display module 910 is further configured to execute, if a first time selection instruction triggered based on the first selection operation area is detected, to display a target page including time selection operation information.

Optionally, the target page display module 910 includes:

an update object adding unit configured to perform addition of an update object in a first selection operation area corresponding to the first time selection instruction;

and the first target time updating unit is configured to update the target time shown in the second selection operation area based on the initial target time corresponding to the first selection operation area.

Optionally, the update object includes an increment update object and a decrement update object; the first target time update module 920 includes:

a second target time updating unit configured to execute incremental updating of the target time shown in the target selection operation area based on the unit updating duration corresponding to the target selection operation area if the updating instruction triggered based on the incremental updating object is detected;

or the like, or, alternatively,

and the third target time updating unit is configured to execute decrementing and updating the target time shown in the target selection operation area based on the unit updating duration corresponding to the target selection operation area if the updating instruction triggered based on the decrementing updating object is detected.

Optionally, the update object includes a sliding object and a sliding bar having a plurality of sliding nodes, the plurality of sliding nodes correspond to a plurality of time information, the sliding object is located at a target sliding node in the plurality of sliding nodes in an initial state, the time information corresponding to the target sliding node is an initial target time corresponding to the target selection operation area, and a time difference between two adjacent sliding nodes in the plurality of sliding nodes is equal to a unit update duration corresponding to the target selection operation area;

the first target time update module 920 includes:

the time information determining unit is configured to execute the step of determining the time information corresponding to the sliding node where the sliding object is located if the sliding operation of the sliding object on the sliding strip is detected to be finished;

and the fourth target time updating unit is configured to update the target time shown in the target selection operation area based on the time information corresponding to the sliding node where the sliding object is located.

With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Fig. 10 is a block diagram illustrating an electronic device for data presentation, which may be a terminal, according to an exemplary embodiment, and an internal structure thereof may be as shown in fig. 10. The electronic device comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a data presentation method. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the electronic equipment, an external keyboard, a touch pad or a mouse and the like.

Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and does not constitute a limitation on the electronic devices to which the disclosed aspects apply, as a particular electronic device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.

In an exemplary embodiment, there is also provided an electronic device including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the data presentation method as in the embodiments of the present disclosure.

In an exemplary embodiment, there is also provided a computer-readable storage medium, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a data presentation method in the embodiments of the present disclosure.

In an exemplary embodiment, a computer program product containing instructions is also provided, which when run on a computer, causes the computer to perform the data presentation method in the embodiments of the present disclosure.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种航运及贸易数据的高频产品关键词及词组展示系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!