Task creation method and device and electronic equipment

By generating a task creation interface that matches the type of electronic device, users can select and analyze graphic elements on a single interface, solving the cumbersome problem of the task creation process and improving convenience and flexibility.

CN120353357APending Publication Date: 2025-07-22CSC FINANCIAL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510358121.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-25
Publication Date
2025-07-22

AI Technical Summary

Technical Problem

In the prior art, the task creation process is cumbersome and requires interaction on multiple interfaces, resulting in poor convenience.

Method used

Generate a task creation interface that matches the electronic device type. The interface contains multiple candidate items and graphic elements. Each element represents a specified time period. The user determines the task time and content by selecting the graphic elements and performing traversal analysis.

Benefits of technology

It realizes the quick and convenient determination of task time and content on a single interface, improves the convenience and flexibility of task creation, and simplifies user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120353357A_ABST
    Figure CN120353357A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a task creating method and device and electronic equipment, and relates to the technical field of data processing.The task creating method comprises the steps that a task creating interface matched with the equipment type of the electronic equipment is generated based on the equipment type of the electronic equipment in response to a task creating instruction, in response to a specified operation for the task creation interface, setting the state of the graphic element indicated by the specified operation as a selected state, extracting time object information of the graphic element in the selected state, and generating a target time array containing the extracted time object information, performing traversal analysis on each piece of time object information in the target time array to obtain target task time, determining target task content based on the candidate items corresponding to the graphic elements in the selected state, and associating the target task content with the target task time to complete task creation. Therefore, the scheme can improve the convenience of task creation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and particularly to a task creation method, apparatus, and electronic device. Background Art

[0002] During the process of task creation, the time of the task can be set. Specifically, a time selector can be used to set the task time, and the task creation can be applicable to meeting scenarios, teaching scenarios, etc. In the related art, when setting the time of a task, the hour is set first, then the minute is set, and subsequently, the content of the task needs to be created. Therefore, multiple interactions on multiple interfaces are required to achieve task creation. It can be seen that this process is relatively cumbersome, and the convenience of task creation is poor.

[0003] Currently, there is an urgent need for a task creation method to improve the convenience of task creation. Summary of the Invention

[0004] The purpose of the embodiments of the present invention is to provide a task creation method, apparatus, and electronic device to improve the convenience of task creation. The specific technical solutions are as follows:

[0005] In a first aspect, the embodiments of the present invention provide a task creation method applied to an electronic device. The method includes:

[0006] In response to a task creation instruction, based on the device type of the electronic device, a task creation interface matching the device type of the electronic device is generated and displayed on the electronic device. Among them, the task creation interface includes: a plurality of candidate items related to the task and a plurality of graphic elements with a predetermined shape corresponding to each candidate item respectively. The candidate items at least include candidate locations. Each graphic element among the multiple graphic elements corresponding to each candidate item represents a time period within the target time range to which the current time belongs and having a specified time granularity, and each graphic element has time object information for representing the start time point and end time point of the time period represented by the graphic element. The target time range is a time range formed by at least one target time period, and each target time period corresponds to at least two graphic elements. The time ranges represented by the at least two graphic elements corresponding to each target time period are all within the time range represented by the target time period.

[0007] In response to a specified operation on the task creation interface, the state of the graphic element indicated by the specified operation is set to the selected state. Among them, the specified operation is an operation that can be responded to by the graphic elements in the generated task creation interface.

[0008] Extract the time object information of the graphic elements in the selected state, and generate a target time array containing the extracted time object information;

[0009] Traverse and analyze each time object information in the target time array to obtain the target task time; wherein, the traversal analysis includes: the time point representing the earliest time and the time point representing the latest time obtained by traversing from the target time array;

[0010] Based on the candidate items corresponding to the graphic elements in the selected state, determine the target task content, and associate the target task content with the target task time to complete task creation.

[0011] In a second aspect, an embodiment of the present invention provides a task creation device, which is applied to an electronic device. The device includes:

[0012] A generation module, configured to, in response to a task creation instruction, generate a task creation interface matching the device type of the electronic device based on the device type of the electronic device, and display the task creation interface on the electronic device; wherein, the task creation interface includes: a plurality of task-related candidate items and a plurality of graphic elements with a predetermined shape corresponding to each candidate item respectively. The candidate items at least include candidate locations; each graphic element in the plurality of graphic elements corresponding to each candidate item represents a time period within the target time range to which the current time belongs and having a specified time granularity, and each graphic element has time object information for representing the start time point and end time point of the time period represented by the graphic element; the target time range is a time range formed by at least one target time period, and each target time period corresponds to at least two graphic elements, and the time ranges represented by the at least two graphic elements corresponding to each target time period are all within the time range represented by the target time period;

[0013] A setting module, configured to, in response to a specified operation on the task creation interface, set the state of the graphic element indicated by the specified operation to the selected state; wherein, the specified operation is an operation that can be responded to by the graphic elements in the generated task creation interface;

[0014] An extraction module, configured to extract the time object information of the graphic elements in the selected state, and generate a target time array containing the extracted time object information;

[0015] A traversal and analysis module, configured to traverse and analyze each time object information in the target time array to obtain the target task time; wherein, the traversal analysis includes: the time point representing the earliest time and the time point representing the latest time obtained by traversing from the target time array;

[0016] A determination module, configured to determine target task content based on candidate items corresponding to the selected graphical elements, and associate the target task content with a target task time to complete task creation.

[0017] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus;

[0018] The memory is used to store a computer program;

[0019] The processor, when executing the program stored on the memory, implements any of the above task creation methods.

[0020] Beneficial effects of the embodiments of the present invention:

[0021] The task creation method provided by the embodiments of the present invention can create a task creation interface that matches the device type of the electronic device. The task creation interface includes: a plurality of candidate items and a plurality of graphical elements with a predetermined shape corresponding to each candidate item, and each graphical element represents a time period of a specified granularity. The task creation interface is displayed on the electronic device. Subsequently, the user can interact with the task creation interface (select graphical elements and determine target task content), thereby quickly and conveniently determining the task time and task content to complete task creation. Compared with the related art, in the process of task creation in the present invention, there is no need to interact on multiple interfaces, and only interaction on the task creation interface is required, improving the convenience of task creation; and when the user operates on the task creation interface, in the form of selecting graphical elements, the user can first select the graphical element representing the start time point of the task, or first select the graphical element representing the end time point of the task. Subsequently, the time object information of the graphical elements selected by the user can be extracted and traversed and analyzed, so as to finally determine the task time, and there are not too many restrictions on the user's operation, improving the flexibility of task creation.

[0022] Of course, when implementing any product or method of the present invention, it is not necessarily required to achieve all the above advantages at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other embodiments based on these drawings.

[0024] Figure 1Schematic flowchart of a task creation method provided by an embodiment of the present invention;

[0025] Figure 2(a) is a schematic diagram of a graphic element provided by an embodiment of the present invention;

[0026] Figure 2(b) is a schematic diagram of another graphic element provided by an embodiment of the present invention;

[0027] Figure 3 Schematic flowchart of traversing and analyzing each time object information in a target time array provided by an embodiment of the present invention;

[0028] Figure 4(a) is a schematic diagram of a task creation interface matching the PC device type provided by an embodiment of the present invention;

[0029] Figure 4(b) is a schematic diagram of selecting a time grid on a task creation interface matching the PC device type provided by an embodiment of the present invention;

[0030] Figure 4(c) is a schematic diagram of another task creation interface matching the PC device type provided by an embodiment of the present invention;

[0031] Figure 4(d) is a schematic flowchart of determining the target task time on a task creation interface matching the PC device type provided by an embodiment of the present invention;

[0032] Figure 5(a) is a schematic diagram of a task creation interface matching the mobile device type provided by an embodiment of the present invention;

[0033] Figure 5(b) is a schematic diagram of another task creation interface matching the mobile device type provided by an embodiment of the present invention;

[0034] Figure 5(c) is a schematic flowchart of determining the target task time on a task creation interface matching the mobile device type provided by an embodiment of the present invention;

[0035] Figure 6 Schematic structural diagram of a task creation device provided by an embodiment of the present invention;

[0036] Figure 7 Schematic structural diagram of an electronic device provided by an embodiment of the present invention. Detailed implementation manners

[0037] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art based on the present invention belong to the scope of protection of the present invention.

[0038] To better understand this solution, the related technologies are introduced below:

[0039] During the process of task creation, a time selector can be used to set the task time. The specific form of the time selector can be a numeric input box, which can be displayed on the time selection interface. The user can interact with the numeric input box on the time selection interface. The user can first set the hour and then the minute to create the task time. Subsequently, the user also needs to set the task content on other interfaces. Therefore, the user needs to interact on at least 2 interfaces to create a task. It can be seen that the process of task creation is relatively cumbersome and the convenience of task creation is poor.

[0040] In addition, some time selectors use 1 minute as the minimum time unit, which will result in more time spent on time selection and has little practical significance. Users tend to set the task time as an integer time, and integer time is also more convenient to remember.

[0041] Based on the problems introduced above, embodiments of the present invention provide a task creation method, apparatus, and electronic device.

[0042] The task creation method provided by the embodiments of the present invention is introduced below.

[0043] Among them, the task creation method can be applied to various task creation scenarios. For example, a meeting scenario (a scenario for creating a meeting task), a teaching scenario (a scenario for creating a classroom selection task), etc. Embodiments of the present invention do not make specific limitations on this. In addition, the task creation method can be applied to various types of electronic devices, and the electronic device is configured with a display, such as a laptop, a desktop computer, a mobile phone, etc.; in addition, the execution subject of the task creation method can also be a client in the electronic device (a client for task creation), and the execution subject can also be a functional module in the client, such as a functional module in a meeting management system or a teaching management system; of course, the execution subject can also be a web end with a task creation function in the electronic device. Embodiments of the present invention do not make specific limitations on this.

[0044] Among them, a task creation method, applied to an electronic device, the method includes:

[0045] In response to a task creation instruction, based on the device type of the electronic device, a task creation interface matching the device type of the electronic device is generated and displayed on the electronic device; wherein, the task creation interface includes: a plurality of task-related candidate items and a plurality of graphic elements with a predetermined shape corresponding to each candidate item respectively, and the candidate items at least include candidate locations; each graphic element among the plurality of graphic elements corresponding to each candidate item represents a time period within a target time range to which the current time belongs and having a specified time granularity, and each graphic element has time object information for representing the start time point and end time point of the time period represented by the graphic element; the target time range is a time range formed by at least one target time period, and each target time period corresponds to at least two graphic elements, and the time ranges represented by the at least two graphic elements corresponding to each target time period are all within the time range represented by the target time period;

[0046] In response to a specified operation on the task creation interface, the state of the graphic element indicated by the specified operation is set to the selected state; wherein, the specified operation is an operation that can be responded to by the graphic elements in the generated task creation interface;

[0047] Extract the time object information of the graphic elements in the selected state and generate a target time array containing the extracted time object information;

[0048] Traverse and analyze each time object information in the target time array to obtain the target task time; wherein, the traversal analysis includes: the time point representing the earliest time and the time point representing the latest time traversed from the target time array;

[0049] Based on the candidate item corresponding to the graphic element in the selected state, determine the target task content and associate the target task content with the target task time to complete task creation.

[0050] The task creation method provided by the embodiment of the present invention can create a task creation interface that matches the device type of the electronic device. The task creation interface includes: a plurality of candidate items and a plurality of graphic elements with a predetermined shape corresponding to each candidate item, and each graphic element represents a time period of a specified granularity, and the task creation interface is displayed on the electronic device. Subsequently, the user can interact with the task creation interface (select graphic elements and determine the target task content), so as to quickly and conveniently determine the task time and task content, and complete the task creation. Compared with the related art, in the process of task creation in the present invention, there is no need to interact on multiple interfaces, and only interact on the task creation interface, which improves the convenience of task creation; and when the user operates on the task creation interface, in the form of selecting graphic elements, the user can first select the graphic element representing the start time point of the task, or first select the graphic element representing the end time point of the task. Subsequently, the time object information of the graphic elements selected by the user can be extracted and traversed and analyzed, so as to finally determine the task time. There are not too many restrictions on the user's operation, which improves the flexibility of task creation. In addition, in the process of determining the task time, a visual task creation interface is used instead of a cumbersome digital input box, which can simplify the operation of the user to create a task, improve the user experience, and also improve the convenience of task creation.

[0051] The following introduces a task creation method provided by the embodiment of the present invention with reference to the accompanying drawings.

[0052] As Figure 1 shown, a task creation method provided by the embodiment of the present invention is applied to an electronic device. The method includes:

[0053] S101, in response to a task creation instruction, generate a task creation interface that matches the device type of the electronic device based on the device type of the electronic device, and display the task creation interface on the electronic device;

[0054] Among them, the task creation interface includes: a plurality of candidate items related to the task and a plurality of graphic elements with a predetermined shape corresponding to each candidate item. The candidate items at least include candidate locations; each graphic element in the plurality of graphic elements corresponding to each candidate item represents a time period with a specified time granularity within the target time range to which the current time belongs, and each graphic element has time object information for representing the start time point and the end time point of the time period represented by the graphic element; the target time range is a time range formed by at least one target time period, and each target time period corresponds to at least two graphic elements, and the time ranges represented by the at least two graphic elements corresponding to each target time period are all within the time range represented by the target time period;

[0055] Among them, the device type of the electronic device may include a personal computer (PC) device type or a mobile device type. The embodiments of the present invention do not make specific limitations in this regard. Then, based on the PC device type, a task creation interface matching the PC device type can be generated, and this task creation interface can be considered as an interface that conforms to the user's operation habits for the PC device. Based on the mobile device type, a task creation interface matching the mobile device type can be generated, and this task creation interface can be considered as an interface that conforms to the user's operation habits for the mobile device. For the sake of clear layout, the content of the task creation interface matching the device type of the electronic device will be introduced in subsequent embodiments and will not be elaborated here.

[0056] It can be understood that the user can click on the button regarding task creation on the electronic device, so that the electronic device can respond to the task creation instruction and generate a task creation interface matching the device type of the electronic device based on the device type of the electronic device. It should be emphasized that the task creation interface may include multiple task-related candidate items. Among them, the candidate items may be related to the scenario, and the candidate items may at least include candidate locations, and the candidate locations are also related to the scenario. Exemplarily, in a meeting scenario, the candidate location may be the location of the meeting room, specifically, Meeting Room No. 1, Meeting Room No. 2, etc.; in the creation scenario of a classroom selection task, the candidate location may be the location of the classroom, specifically, Classroom No. 1, Classroom No. 2, etc. Of course, the candidate items may also include the task type. For example, in a meeting scenario, the task type may be a learning and discussion meeting, a work report meeting, etc. The embodiments of the present invention do not make specific limitations in this regard.

[0057] In addition, the task creation interface further includes a plurality of graphic elements with a predetermined shape corresponding to each candidate item. The predetermined shape of the graphic element can be a circle or a square, and the embodiments of the present invention do not make specific limitations in this regard. Each graphic element represents a time period with a specified time granularity within the target time range to which the current time belongs. The target time range is a time range formed by at least one target time period, and each target time period corresponds to at least two graphic elements. The time ranges represented by the at least two graphic elements corresponding to each target time period are all within the time range represented by the target time period. Among them, the target time period can be 1 hour or other time periods. Since each target time period corresponds to at least two graphic elements, the time range represented by the target time period is larger than the time range represented by one graphic element. The target time range is a time range formed by at least one target time period. Then, within the target time range, there can be multiple graphic elements, and the time ranges represented by the graphic elements are all within the time range represented by the target time period. In addition, the target time range can be specifically set by the user. For example, the target time range can be one day, two days, or one week. The specified time granularity can also be set by the user or by the administrator of the task creation interface, and the embodiments of the present invention do not make specific limitations in this regard. In addition, the embodiments of the present invention do not set any selection restrictions on the specified time granularity (the smallest time unit) of the graphic element, and the selection of the specified time granularity of the graphic element has flexibility. For example, the specified time granularity of the graphic element can be 15 minutes. One hour can be composed of 4 graphic elements, and one day can be composed of 96 graphic elements. Of course, the specified time granularity of the graphic element can also be 30 minutes, 1 hour, etc., and the embodiments of the present invention do not make specific limitations in this regard. Exemplarily, each graphic element represents a 15-minute time period within two days to which the current time belongs. In addition, each graphic element has time object information for indicating the start time point and the end time point of the time period represented by the graphic element. The difference between the end time point and the start time point in the time object information can be regarded as the specified time granularity. The start time point and the end time point can also be collectively referred to as a date object or a time object, and the embodiments of the present invention do not make specific limitations in this regard. Exemplarily, the graphic element 1 has a specified time granularity of 15 minutes, the start time point in the time object information of the graphic element 1 is 8:00, and the end time point is 8:15. In addition, the time object information can also be referred to as time attribute information, and the embodiments of the present invention do not make specific limitations in this regard.

[0058] In addition, the task creation interface in the present invention can be developed based on technologies such as HTML5 (HyperText Markup Language 5), CSS3 (Cascading Style Sheets), and JavaScript (a Java scripting language). Among them, HTML5 is used for page setting and optimization; CSS3 is used to control the visual performance of graphic elements such as layout, color, font, and animation, and can also be used to set graphic elements based on the canvas; JavaScript is used for interaction (mouse / touch screen) and judgment logic processing, without relying on other front-end frameworks. Of course, any method in the related technologies can be used as the way to generate the task creation interface in the embodiments of the present invention, and the embodiments of the present invention do not make specific limitations in this regard. In addition, the device type of the electronic device can be judged by using the user agent navigator.userAgent protocol, and the embodiments of the present invention do not make specific limitations in this regard.

[0059] For the convenience of understanding, the graphic elements will be introduced below with reference to the accompanying drawings, as shown in FIGS. 2(a) and 2(b):

[0060] The graphic element 210 in FIG. 2(a) is a rectangle, and the specified granularity of each rectangular graphic element 210 is 15 minutes. The 4 graphic elements in FIG. 2(a) can be considered as 1 hour. The graphic element 220 in FIG. 2(b) is a square, and the specified granularity of each square graphic element 220 is 15 minutes. The 4 graphic elements in FIG. 2(b) can be considered as 1 hour.

[0061] S102. In response to a specified operation on the task creation interface, set the state of the graphic element indicated by the specified operation to the selected state;

[0062] Wherein, the specified operation is an operation that can be responded to by the graphic elements in the generated task creation interface;

[0063] It can be understood that the specified operation can also be regarded as an operation of selecting graphic elements in the task creation interface. In response to the specified operation, the graphic elements indicated by the specified operation can be set to the selected state. Exemplarily, a selection identifier can be set for the graphic elements indicated by the specified operation, so that the state of the graphic elements indicated by the specified operation is the selected state. It can also be to set the state of the graphic elements indicated by the specified operation to true, so that the state of the graphic elements indicated by the specified operation is the selected state. Also, the color of the graphic elements in the selected state can be deepened, so that the user can more clearly view the graphic elements in the selected state on the task creation interface. For the sake of clear layout, the content of the specified operation on the task creation interface matching the device type of the electronic device will be introduced in the subsequent embodiments and will not be elaborated here.

[0064] S103, extract the time object information of the graphic elements in the selected state, and generate a target time array containing the extracted time object information;

[0065] It can be understood that the start time point and end time point of the time period represented by the graphic elements in the selected state can be extracted, and the extracted start time point and end time point can be input into an array to obtain a target time array. It can also be based on the extracted start time point and end time point to directly construct a target time array containing the extracted time object information. The embodiments of the present invention do not make specific limitations on this; Exemplarily, the start time point in the time object information of the graphic element 1 in the selected state is 8:00, and the end time point is 8:15. The start time point in the time object information of the graphic element 2 in the selected state is 8:15, and the end time point is 8:30. The start time point and end time point of the time periods represented by the graphic element 1 and the graphic element 2 can be extracted, so as to generate a target time array.

[0066] S104, traverse and analyze each time object information in the target time array to obtain the target task time;

[0067] Among them, the traversal analysis includes: the time point representing the earliest time and the time point representing the latest time obtained by traversing from the target time array;

[0068] It can be understood that each time object information in the target time array can be traversed and analyzed to traverse the time point representing the earliest time and the time point representing the latest time from the target time array. The time point representing the earliest time is used as the start time point of the target task time, and the time point representing the latest time is used as the end time point of the target task time to obtain the target task time. Exemplarily, there are 4 time points in the target time array, which are 8:00, 8:15, 8:15, and 8:30 respectively. Then, the target task time can be determined as 8:00 - 8:30.

[0069] For the sake of clear layout, the specific content of traversing and analyzing each time object information in the target time array will be introduced in other embodiments and will not be elaborated here.

[0070] S105. Based on the candidate items corresponding to the selected graphical elements, determine the target task content and associate the target task content with the target task time to complete task creation.

[0071] It can be understood that the target task content can be the task content related to the candidate items corresponding to the selected graphical elements. Of course, the target task content can also be manually edited by the user, and the embodiments of the present invention do not make specific limitations in this regard; Exemplarily, the candidate item corresponding to the selected graphical element is Conference Room 1, and the target task content can be having a meeting in Conference Room 1; the candidate item corresponding to the selected graphical element is Classroom 1, and the target task content can be having a class in Classroom 1.

[0072] Moreover, after determining the target task content, the target task content can be associated with the target task time to complete task creation; Exemplarily, the target task content is having a meeting in Conference Room 1, and the target task time is 8:00 - 9:00. The target task content can be associated with the target task time to complete task creation.

[0073] The task creation method provided by the embodiment of the present invention can create a task creation interface that matches the device type of the electronic device. The task creation interface includes: a plurality of candidate items and a plurality of graphic elements with a predetermined shape corresponding to each candidate item, and each graphic element represents a time period of a specified granularity. The task creation interface is displayed on the electronic device, and subsequently, the user can interact with the task creation interface (select graphic elements and determine the target task content), so as to quickly and conveniently determine the task time and task content, and complete the task creation. Compared with the related art, in the process of task creation in the present invention, there is no need to interact on multiple interfaces, and only interaction on the task creation interface is required, which improves the convenience of task creation; and when the user operates on the task creation interface, in the form of selecting graphic elements, the user can first select the graphic element representing the start time point of the task, or first select the graphic element representing the end time point of the task. Subsequently, the time object information of the graphic elements selected by the user can be extracted and traversed and analyzed, so as to finally determine the task time, and there are not too many restrictions on the user's operation, which improves the flexibility of task creation. In addition, in the process of task creation, a visual task creation interface is used to replace the cumbersome digital input box, which can simplify the operation of the user to create a task, improve the user experience, and also improve the convenience of task creation.

[0074] Optionally, in another embodiment, as Figure 3 shown: traversing and analyzing each time object information in the target time array to obtain the target task time includes:

[0075] S301, traverse each time object information in the target time array. Whenever a time object information is traversed, if the time object information is the first traversed information, then the start time point and the end time point in the time object information are respectively used as the current standby start time point and the current standby end time point;

[0076] It can be understood that when traversing each time object information in the target time array, whenever a time object information is traversed, it can be determined whether the time object information is the first traversed information, that is, whether there is a current backup start time point and a current backup end time point. If so, it is determined that the time object information is not the first traversed information. Otherwise, it can be determined that the time object information is the first traversed information, and the start time point and end time point in the time object information are respectively used as the current backup start time point and the current backup end time point. Exemplarily, when traversing to time object information 1 and determining that time object information 1 is the first traversed information, then the start time point 8:00 and the end time point 8:15 in time object information 1 can be respectively used as the current backup start time point and the current backup end time point.

[0077] S302. In the case where the time object information is not the first traversed information, if the start time point in the time object information is earlier than the current backup start time point, then the start time point in the time object information is used as the current backup start time point, and if the end time point in the time object information is later than the current backup end time point, then the end time point in the time object information is used as the current backup end time point.

[0078] It can be understood that if the time object information is not the first traversed information, the start time point in the time object information can be judged against the current backup start time point, and the end time point in the time object information can be judged against the current backup end time point. If the start time point in the time object information is earlier than the current backup start time point, then the start time point in the time object information is used as the current backup start time point. Otherwise, the current backup start time point is not adjusted. Similarly, if the end time point in the time object information is later than the current backup end time point, then the end time point in the time object information is used as the current backup end time point. Otherwise, the current backup end time point is not adjusted. Exemplarily, the start time point in the traversed time object information 2 is 8:15, the end time point is 8:30, the current backup start time point is 8:00, and the current backup end time point is 8:15. Since the start time point in time object information 2 is not earlier than the current backup start time point, the current backup start time point is not adjusted. And since the end time point in time object information 2 is later than the current backup end time point, the end time point in time object information 2 is used as the current backup end time point. Then, the current backup start time point is 8:00 and the current backup end time point is 8:30.

[0079] S303. In response to the completion of traversing the time object information in the target time array, determine the target task time based on the current alternate start time point and the current alternate end time point.

[0080] It can be understood that after the traversal of the time object information in the target time array is completed, the current alternate start time point can be determined as the start time point of the target task time, and the current alternate end time point can be determined as the end time point of the target task time, thus obtaining the target task time. Exemplarily, if the current alternate start time is 8:00 and the current alternate end time is 10:00, then it can be determined that the time period represented by the target task time is 8:00 - 10:00.

[0081] For ease of understanding, the above process of traversal and analysis can also be introduced exemplarily in combination with an array:

[0082] In one implementation, the target array contains 10 pieces of time object information, namely Tb1 - Tb10. Tb1 = [Tbs1, Tbe1], where Tbs1 is the start time point of the time object information Tb1, and Tbe1 is the end time point of the time object information Tb1. The current alternate start time point and the current alternate end time point can also be represented in the form of an array, Tu = [Ts, Te], where Tu can be expressed as the final time series time_ultimate_array, Ts is the current alternate start time point, and Te is the current alternate end time point. Then, the 10 pieces of time object information in the target array can be traversed and analyzed. First, traverse and analyze Tb1. Since Tb1 is the time object information traversed for the first time, Tbs1 can be used as the current alternate start point, that is, Ts, and Tbe1 can be used as the current alternate end point, that is, Te. Subsequently, traverse and analyze Tb2. Tb2 = [Tbs2, Tbe2]. Determine and compare Tbs2 with Ts. If Tbs2 is less than Ts, then determine Tbs2 as the current alternate start point. Or, if Tbe2 is greater than Te, then determine Tbe2 as the current alternate end point. And so on, until the traversal of the 10 pieces of time object information in the target array is completed, and the current alternate start time point and the current alternate end time point are used as the target task time.

[0083] In another implementation, the embodiment of the present invention also provides another traversal and analysis method, which is introduced exemplarily as follows:

[0084] The target array contains 10 time object information, namely Tb1 - Tb10, where Tb1 = [Tbs1, Tbe1], Tbs1 is the start time point of the time object information Tb1, and Tbe1 is the end time point of the time object information Tb1. Extract the start time points (Tbs1 - Tbs10) of Tb1 - Tb10 to form the minimum time series time_min_array, and extract the end time points (Tbe1 - Tbe10) of Tb1 - Tb10 to form the maximum time series time_max_array. Traverse and analyze the minimum time series time_min_array, traverse and analyze from the minimum time series time_min_array to obtain the time point representing the earliest time, and traverse and analyze the maximum time series time_max_array, traverse and analyze from the maximum time series to obtain the time point representing the latest time, and determine the target task time based on the time point representing the earliest time and the time point representing the latest time. Moreover, in this implementation manner, the specific manner of traversing and analyzing can be the binary method, or other traversing and analyzing methods, and the embodiments of the present invention do not make specific limitations on this.

[0085] In another implementation manner, if the number of graphic elements indicated by the specified operation is 1, the time object information of the selected graphic element can be extracted, and the start time point and the end time point in the time object information of the selected graphic element can be directly used as the target task time. In this implementation manner, there is no need to generate a target time array, nor is it necessary to traverse the target time array, so that the target task time can be directly obtained, and the embodiments of the present invention do not make specific limitations on this.

[0086] It can be seen that the embodiments of the present invention can traverse the time object information in the target time array to determine the target task time, so that when the user operates on the task creation interface, the user can first select the graphic element representing the start time point of the task, or first select the graphic element representing the end time point of the task. When the user selects graphic elements on the task creation interface, the user can select graphic elements sequentially from left to right, or sequentially from right to left. There are not too many restrictions on the user's operations, which improves the user experience and also improves the flexibility of task creation.

[0087] Optionally, in another embodiment, after determining the target task content based on the candidate items corresponding to the selected graphic element and before associating the target task content with the target task time, the method further includes steps A1 - A2:

[0088] Step A1: Output a first prompt message containing the target task content and the target task time to the electronic device; wherein, the first prompt message is used to prompt the user to determine whether the target task content and the target task time are incorrect;

[0089] Step A2: In response to the determination message for the first prompt message, trigger the step of associating the target task content with the target task time.

[0090] It can be understood that for Step A1, after determining the target task content, a first prompt message carrying the determined target task content and target task time can be output to the electronic device, so that the user can determine whether the target task content and target task time are incorrect on the electronic device. The user can determine the target task content and target task time to ensure that the created target task content and target task time are accurate.

[0091] It can be understood that for Step A2, when the user determines that the target task content and target task time are accurate, the electronic device can be used to send a determination message for the first prompt message, thereby triggering the step of associating the target task content with the target task time to associate the target task content and target task time determined by the user.

[0092] In one implementation, if the user determines that there is a problem with either the target task content or the target task time, the electronic device can be used to send a prompt message indicating the problem and trigger the step of displaying the task creation interface on the electronic device, so that the user can reset the task content and task time.

[0093] It can be seen that in the embodiment of the present invention, after determining the target task content, a first prompt message containing the target task content and the target task time can be output to the electronic device for the user to determine. After responding to the determination message for the first prompt message, the target task content can be associated with the target task time, thereby ensuring that the associated target task content and target task time are accurate and error-free, thus improving the accuracy of task creation.

[0094] Optionally, in another embodiment, after determining the target task content based on the candidate item corresponding to the graphic element in the selected state and before associating the target task content with the target task time, the method further includes Steps B1 - B2:

[0095] Step B1: In response to meeting the approval trigger condition, send the target task content and the target task time to the approval device; wherein, the approval device is the device used by the user who can approve the target task content and the target task time;

[0096] Step B2, in response to receiving the information indicating approval returned by the approval device, trigger the step of associating the target task content with the target task time;

[0097] Wherein, the approval trigger condition includes at least one of the following conditions:

[0098] The task creation instruction is an instruction for creating a task to be approved, the target task content is the content to be approved preset in advance, and the target task time is the time to be approved preset in advance.

[0099] It can be understood that for step B1, in this embodiment, the task creation instruction can be an instruction for creating a task to be approved, the determined target task content can be the content to be approved, and the determined target task time can be the time to be approved. When any of the above conditions is met, it can be considered that the approval trigger condition is met. At this time, the target task content and the target task time can be sent to the approval device, and the approval device can be a device used by a user who can approve the target task content and the target task time; for example, when creating a meeting reservation task, it is necessary for administrator 1 to approve the meeting time. Then, the task content and the task time of the meeting reservation task can be sent to the PC device of administrator 1. Of course, the approval trigger condition can also include other conditions, and the embodiments of the present invention do not make specific limitations thereto.

[0100] It can be understood that for step B2, after receiving the information indicating approval returned by the approval device, it can be considered that the target task content and the target task time are approved. At this time, the step of associating the target task content with the target task time can be triggered to complete the task creation.

[0101] It can be seen that when the approval trigger condition is met, the target task content and the target task time can be sent to the approval device. When receiving the information indicating approval returned by the approval device, the step of associating the target task content with the target task time can be triggered, so as to ensure that the target task content and the target task time to be approved can both be approved. After the approval, it can be considered that the task creation is completed, thus ensuring the accuracy of the task creation.

[0102] Optionally, in another embodiment, generating a task creation interface matching the device type of the electronic device includes step C1:

[0103] Step C1, when the device type of the electronic device is a personal computer (PC) device type, generate a task creation interface that matches the PC device type; wherein, the task creation interface that matches the PC device type is an interface that can respond to area selection operations.

[0104] Correspondingly, setting the state of the graphic element indicated by the specified operation to the selected state in response to the specified operation on the task creation interface includes Step D1:

[0105] Step D1, in response to the area selection operation on the task creation interface, set the state of the graphic elements in the area indicated by the area selection operation to the selected state.

[0106] It can be understood that for Step C1, in this embodiment, when the device type of the electronic device is the PC device type, a task creation interface that matches the PC device type can be generated; considering that on a PC device, users are more accustomed to using a mouse for operations, so the task creation interface that matches the PC device type is also more in line with the operation habits of users on a PC device; for example, when selecting multiple graphic elements, the operation habit of users can be to use the mouse to click and generate an area by dragging the mouse, and multiple graphic elements to be selected are located in this area; among them, the above-introduced operation of using the mouse to click and generate an area by dragging the mouse can also be called an area selection operation, and the task creation interface that matches the PC device type can be an interface that can respond to the area selection operation. Users can select graphic elements on the task creation interface that matches the PC device type through the area selection operation. Also, the above-introduced area selection operation can also be an operation where the user clicks the left mouse button and drags the mouse to select multiple graphic elements. The embodiments of the present invention do not make specific limitations on this. In addition, controlling the mouse to perform actions can also include Mouse down, Mouse up, and Mouse Move. The embodiments of the present invention do not make specific limitations on this.

[0107] It can be understood that for step D1, in response to the user's area selection operation on the task creation interface, the graphic elements in the area indicated by the area selection operation can be considered as the graphic elements selected by the user. Therefore, the status of the graphic elements in the area indicated by the area selection operation can be set to the selected status. Exemplarily, the user performs an area selection operation on the task creation interface, and there are 3 graphic elements in the area selection operation. Therefore, the status of these 3 graphic elements can be set to the selected status. Of course, the task creation interface matching the PC device type can also respond to a click operation. Exemplarily, when the user selects a graphic element, the user can also click on a graphic element with the mouse. The embodiments of the present invention do not make specific limitations on this.

[0108] To better understand the relevant content about the task creation interface matching the PC device type, the following is introduced in conjunction with the accompanying drawings, as shown in FIGS. 4(a), 4(b), 4(c), and 4(d):

[0109] In Figures 4(a)-4(d) the predetermined shape of the graphic elements is square, and the graphic elements can also be called time squares. For the convenience of description, in the introduction of Figures 4(a)-4(d) the graphic elements will be collectively referred to as time squares. Each time square represents a time period of 15 minutes. Figures 4(a)-4(c) The task creation interfaces 410 in

[0110] FIG. 4(a) is a schematic diagram of the task creation interface 410 matching the PC device type. In FIG. 4(a), each time square represents a time period of 15 minutes. Time 1 and Time 2 can be considered as the target time periods introduced in the above embodiments. Time 1 - Time N can be considered as the target time range introduced in the above embodiments, also known as the time axis. There are 4 time squares in each target time period, and the target time period is 1 hour. The candidate item list can include Candidate Item 1, Candidate Item 2... Candidate Item N. An event 1 is set for Candidate Item 2 in the time period represented by Time 2. The user can view the content of event 1 by hovering the mouse over event 1.

[0111] Figure 4(b) is a schematic diagram of selecting time squares on the task creation interface 410 matching the PC device type. In this figure, the time range is 8:00 - 11:00. The area indicated by the area selection operation (the dotted area) contains 12 time squares. The 12 time squares can be set to the selected state. After traversing and analyzing, it can be determined that the current standby start time point Xmin is 8:00, and the current standby end time point Xmax is 10:00. Thus, the target task time can be determined to be 8:00 - 10:00. It should be emphasized that the area indicated by the area selection operation does not include the entire area of the 12 time squares, but as long as the area indicated by the area selection operation contains a part of any time square, it can be considered that the area indicated by the area selection operation includes this time square.

[0112] Figure 4(c) is a schematic diagram of another task creation interface 410 matching the PC device type. This task creation interface 410 is an interface for a meeting scenario. The candidate item can be the meeting room name, which can include the First Meeting Room. The time range is 9:00 - 15:00. Among the multiple time squares corresponding to the First Meeting Room, 22 time squares in the area indicated by the area selection operation are selected, and the represented time range is 9:30 - 14:00.

[0113] Figure 4(d) is a schematic flowchart of determining the target task time on the task creation interface matching the PC device type, including the following steps:

[0114] S401, generate a Date - type array of time object information for each time square in the task creation interface;

[0115] Among them, the Date - type array can be considered as an array containing time object information, or an array containing date object information. The embodiments of the present invention do not make specific limitations on this.

[0116] It can be understood that a Date - type array of time object information for each time square in the task creation interface can be generated. This Date - type array can represent the start time point Tbs and the end time point Tbe in the time object information of this time square, as well as the state of this time square. Among them, the state of the time square can be a selected state, an optional state, or a non - selectable state, etc.

[0117] S402, in response to the area selection operation on the task creation interface, based on the Date - type array of the time squares in the area indicated by the area selection operation, determine the time point representing the earliest time and the time point representing the latest time, and obtain the target task time;

[0118] It can be understood that the status of the Date type array of the time squares in the area indicated by the area selection operation is in a selected state. The user can perform an area selection operation on the task creation interface, so as to determine the Date type array of the time squares in the area indicated by the area selection operation, and determine the time point representing the earliest time and the time point representing the latest time from the determined Date type array to obtain the target task time;

[0119] S403, in response to a task re-selection instruction for the task creation interface, clear the target task time;

[0120] It can be understood that when the user selects a task re-selection instruction on the task creation interface, the target task time can be cleared so that the user can re-select the target task time.

[0121] It can be seen that the embodiments of the present invention can provide a task creation interface that matches the PC device type, thus being more in line with the user's operation habits on the PC device and improving the user experience; and, the task creation interface that matches the PC device type can support the selection of multiple graphic elements and the display of task content, and task creation can be achieved by interacting on the task creation interface, thereby improving the convenience of task creation.

[0122] Optionally, in another embodiment, based on the device type of the electronic device, generating a task creation interface that matches the device type of the electronic device includes step E1:

[0123] Step E1, when the device type of the electronic device is a mobile device type, generate a task creation interface that matches the mobile device type; wherein, the task creation interface that matches the mobile device type is an interface that can respond to click operations;

[0124] Correspondingly, the setting the status of the graphic element indicated by the specified operation to a selected state in response to the specified operation for the task creation interface includes step F1:

[0125] Step F1, in response to a click operation on the task creation interface, set the status of the graphic element indicated by the click operation to a selected state.

[0126] It can be understood that for step E1, in the case where the device type of the electronic device is a mobile device type, a task creation interface matching the mobile device type can be generated. Considering that users are more accustomed to direct click operations on mobile devices, the task creation interface matching the mobile device type also better conforms to the operation habits of users on mobile devices. Exemplarily, when selecting multiple graphic elements, the operation habit of users can be a click operation to select multiple graphic elements. Among them, the task creation interface matching the mobile device type can be an interface that can respond to click operations. Through click operations, users can select graphic elements on the task creation interface matching the mobile device type.

[0127] It can be understood that for step F1, in response to a click operation on the task creation interface, the graphic element indicated by the click operation can be considered as the graphic element selected by the user. Therefore, the state of the graphic element indicated by the click operation can be set to the selected state. Exemplarily, the user performs a click operation on the task creation interface, and the click operation indicates 3 graphic elements. Therefore, the states of these 3 graphic elements can be set to the selected state. Additionally, during the process of selecting graphic elements, the user can also click on only two graphic elements, and the graphic elements between the two graphic elements can all be set to the selected state. The embodiments of the present invention do not make specific limitations on this.

[0128] Of course, the task creation interface matching the mobile device type can also respond to area selection operations. The embodiments of the present invention do not make specific limitations on this.

[0129] To better understand the relevant content regarding the task creation interface matching the mobile device type, the following will be introduced with reference to the accompanying drawings, as shown in FIGS. 5(a), 5(b), and 5(c):

[0130] In Figures 5(a)-5(c) the predetermined shape of the graphic element is a square, and the graphic element can also be referred to as a time grid. For the convenience of description, in the introduction of Figures 5(a)-5(c) the graphic elements will be collectively referred to as time grids, and the time period represented by each time grid is 15 minutes; when the user clicks on any item, the content of the item can be viewed. Figures 5(a)-5(b) The task creation interface 510 in

[0131] Figure 5(a) is a schematic diagram of a task creation interface 510 matching the mobile device type. Time 1 and Time 2 can be regarded as the target time periods introduced in the above embodiments. Time 1 - Time N can be regarded as the target time range introduced in the above embodiments, and can also be called a time axis. There are 4 time squares in each target time period. The target time period is 1 hour. The candidate item list can include Candidate Item 1, Candidate Item 2... Candidate Item N.

[0132] Figure 5(b) is a schematic diagram of another task creation interface 510 matching the mobile device type. This task creation interface 510 is an interface for a meeting scenario. The candidate items can be meeting room names, including Meeting Room 7712 and Meeting Room 7713. Among the multiple time squares corresponding to Meeting Room 7712, 22 time squares are in a selected state, representing a time range of 8:00 - 14:00. Among them, the time period from 11:30 to 13:00 is an unavailable time period, and the time squares in this time period are all in an unavailable state. The time squares in Meeting Room 7713 are all in an unselected state.

[0133] Figure 5(c) is a schematic diagram of the process for determining the target task time on the task creation interface matching the mobile device type, including the following steps:

[0134] S501, generate a Date-type array of the time object information of each time square in the task creation interface;

[0135] It can be understood that a Date-type array of the time object information of each time square in the task creation interface can be generated. This Date-type array can represent the start time point Tbs and the end time point Tbe in the time object information of this time square, as well as the state of this time square. Among them, the state of the time square can be a selected state, an optional state, an unavailable state, etc.

[0136] S502, in response to a click operation on the task creation interface, traverse and analyze the Date-type array of the time square indicated by the click operation to obtain the target task time;

[0137] It can be understood that the states of the Date-type array of the time square indicated by the click operation are all in a selected state. The user can perform a click operation on the task creation interface, thereby determining the Date-type array of the time square indicated by the click operation, and traversing and analyzing the determined Date-type array to obtain the target task time; and, the specific process of traversing and analyzing can refer to the above embodiments and will not be elaborated here.

[0138] S503, in response to a task re-selection instruction on the task creation interface, clear the target task time;

[0139] It can be understood that when the user selects the task re-selection instruction on the task creation interface, the target task time can be cleared so that the user can re-select the target task time.

[0140] It can be seen that the embodiments of the present invention can provide a task creation interface that matches the type of mobile device, thus better conforming to the user's operation habits on the mobile device and improving the user experience; in addition, the task creation interface that matches the type of mobile device can support the selection of multiple graphic elements and the display of task content, and the task creation can be achieved by interacting on the task creation interface, thereby improving the convenience of task creation.

[0141] Optionally, in another embodiment, after generating a task creation interface that matches the type of the electronic device based on the type of the electronic device, before displaying the task creation interface on the electronic device, the following steps G1-G2 are further included:

[0142] Step G1, obtaining the time stamp of the current time;

[0143] Step G2, setting the status of the graphic elements in the task creation interface whose time stamps representing time points earlier than the current time to an unselectable state, and triggering the step of displaying the task creation interface on the electronic device.

[0144] It can be understood that for step G1, the time stamp of the current time can be obtained through the get Time command line. Of course, other methods can also be used to obtain the time stamp of the current time, and the embodiments of the present invention do not make specific limitations on this.

[0145] It can be understood that for step G2, the unselectable state can also be referred to as the false state; since it is unreasonable that the selected task time is earlier than the current time, the start time point in the time object information of each graphic element can be compared with the time stamp of the current time. If the start time point in the time object information of any graphic element is earlier than the time stamp of the current time, the status of the graphic element is set to the unselectable state, so as to ensure that there is no time point earlier than the current time in the selected task time, thereby triggering the step of displaying the task creation interface on the electronic device. Exemplarily, the time represented by the time stamp of the current time is 8:00, the start time point of graphic element 1 is 7:30, the start time point of graphic element 2 is 8:00, and the start time point of graphic element 3 is 8:30. Then, the status of graphic element 1 can be set to the unselectable state.

[0146] It can be seen that the embodiment of the present invention can, based on the time stamp of the current time, set the state of the graphical element in the task creation interface whose time stamp represents a time point earlier than the current time to an unselectable state, thereby ensuring that there is no time point earlier than the current time in the selected task time and guaranteeing the accuracy of determining the task time.

[0147] Optionally, in another embodiment, after setting the state of the graphical element indicated by the specified operation to a selected state in response to the specified operation on the task creation interface and before extracting the time object information of the graphical element in the selected state, the following steps H1 - H3 are further included:

[0148] Step H1, detecting whether the graphical element in the selected state meets a predetermined error correction condition; wherein, the meeting of the predetermined error correction condition includes: the time object information of any graphical element in the selected state is abnormal time object information, and the abnormal time object information includes: time points in non - task execution time periods.

[0149] Step H2, if it is met, outputting a second prompt message to the electronic device; wherein, the second prompt message is used to describe that the time object information of the graphical element in the selected state is abnormal to prompt the user to adjust the graphical element in the selected state.

[0150] Step H3, in response to detecting an adjustment instruction for the graphical element in the selected state, returning to the step of detecting whether the graphical element in the selected state meets the predetermined error correction condition, and if it is not met, triggering the step of extracting the time object information of the graphical element in the selected state.

[0151] It can be understood that for step H1, after setting the state of the graphical element indicated by the specified operation to a selected state, it is possible to detect whether the graphical element in the selected state meets the predetermined error correction condition, that is, to detect whether the time object information of the graphical element in the selected state is abnormal time object information. The abnormal time object information can include time points in non - task execution time periods, such as: time points during lunch breaks and late at night, etc.; of course, the predetermined error correction condition can also include other conditions, such as: error correction conditions related to candidate items. Exemplarily, in a meeting scenario, the candidate items are meeting rooms 1 - 10, and among the multiple graphical elements corresponding to meeting rooms 1 - 10, there are graphical elements in the selected state.

[0152] It can be understood that for step H2, if a predetermined error correction condition is met, a second prompt message can be output. The second prompt message is used to describe that there is an abnormality in the time object information of the selected graphical element, so that the user can view the second prompt message on the display of the electronic device, thereby adjusting the time object information of the selected graphical element. The electronic device can detect an adjustment instruction for the selected graphical element. Exemplarily, it is detected that the end time point in the time object information of graphical element 3 is 24:00, which is a time point in a non-task execution time period. Therefore, it can be considered that the predetermined error correction condition is met. At this time, a second prompt message can be output.

[0153] In addition, in another implementation manner, if the condition is not met, the step of extracting the time object information of the selected graphical element can be directly triggered. The embodiments of the present invention do not make specific limitations on this.

[0154] It can be understood that for step H3, in response to detecting an adjustment instruction for the selected graphical element, the step of detecting whether the selected graphical element meets the predetermined error correction condition can be returned, and re-detect whether the adjusted selected graphical element meets the predetermined error correction condition. If not, the step of extracting the time object information of the selected graphical element can be directly triggered.

[0155] It can be seen that in the embodiments of the present invention, after the state of the graphical element indicated by the specified operation is set to the selected state in response to the specified operation on the task creation interface, it can be detected whether the selected graphical element meets the predetermined error correction condition. If it meets, a second prompt message can be output to prompt the user to adjust the selected graphical element. In response to detecting an adjustment instruction for the selected graphical element, re-detect whether the selected graphical element meets the predetermined error correction condition. If not, trigger the step of extracting the time object information of the selected graphical element to ensure that there are no errors in the selected graphical element and improve the accuracy of task creation.

[0156] Based on the above method embodiments, as Figure 6 shown, the embodiments of the present invention further provide a task creation device, which is applied to an electronic device. The device includes:

[0157] A generation module 610, configured to generate a task creation interface that matches the device type of the electronic device in response to a task creation instruction, and display the task creation interface on the electronic device; wherein, the task creation interface includes: a plurality of task-related candidate items and a plurality of graphic elements with a predetermined shape corresponding to each candidate item respectively, and the candidate items at least include candidate locations; each graphic element in the plurality of graphic elements corresponding to each candidate item represents a time period within a target time range to which the current time belongs and having a specified time granularity, and each graphic element has time object information for representing the start time point and end time point of the time period represented by the graphic element; the target time range is a time range formed by at least one target time period, and each target time period corresponds to at least two graphic elements, and the time ranges represented by the at least two graphic elements corresponding to each target time period are all within the time range represented by the target time period;

[0158] A setting module 620, configured to set the state of the graphic element indicated by the specified operation to a selected state in response to a specified operation on the task creation interface; wherein, the specified operation is an operation that can be responded to by the graphic elements in the generated task creation interface;

[0159] An extraction module 630, configured to extract the time object information of the graphic element in the selected state and generate a target time array containing the extracted time object information;

[0160] A traversal and analysis module 640, configured to perform traversal and analysis on each time object information in the target time array to obtain a target task time; wherein, the traversal and analysis includes: the time point representing the earliest time and the time point representing the latest time traversed from the target time array;

[0161] A determination module 650, configured to determine a target task content based on the candidate item corresponding to the graphic element in the selected state, and associate the target task content with the target task time to complete task creation.

[0162] Optionally, the traversal and analysis module is specifically configured to:

[0163] Traverse each time object information in the target time array. Whenever a time object information is traversed, if the time object information is the first traversed information, then the start time point and end time point in the time object information are respectively used as the current standby start time point and the current standby end time point;

[0164] When the time object information is not the first piece of information traversed, if the start time point in the time object information is earlier than the current standby start time point, the start time point in the time object information is used as the current standby start time point, and if the end time point in the time object information is later than the current standby end time point, the end time point in the time object information is used as the current standby end time point;

[0165] In response to finishing traversing the time object information in the target time array, based on the current standby start time point and the current standby end time point, determine the target task time.

[0166] Optionally, the device further includes:

[0167] A first output module, configured to output a first prompt message including the target task content and the target task time to the electronic device after determining the target task content based on the candidate items corresponding to the selected graphical elements and before associating the target task content with the target task time; wherein, the first prompt message is used to prompt the user to determine whether the target task content and the target task time are incorrect;

[0168] A first trigger module, configured to trigger the step of associating the target task content with the target task time in response to the determination information for the first prompt message.

[0169] Optionally, the device further includes:

[0170] A sending module, configured to send the target task content and the target task time to an approval device in response to meeting an approval trigger condition after determining the target task content based on the candidate items corresponding to the selected graphical elements and before associating the target task content with the target task time; wherein, the approval device is a device used by a user who can approve the target task content and the target task time;

[0171] A second trigger module, configured to trigger the step of associating the target task content with the target task time in response to receiving information indicating approval returned by the approval device;

[0172] Wherein, the approval trigger condition includes at least one of the following conditions:

[0173] The task creation instruction is an instruction for creating a task to be approved, the target task content is the content to be approved set in advance, and the target task time is the time to be approved set in advance.

[0174] Optionally, the generation module includes:

[0175] A first generation sub-module, configured to generate a task creation interface that matches the PC device type when the device type of the electronic device is a personal computer (PC) device type; wherein, the task creation interface that matches the PC device type is an interface capable of responding to a region selection operation.

[0176] The setting includes:

[0177] A first setting sub-module, configured to set the state of the graphic elements in the region indicated by the region selection operation to the selected state in response to the region selection operation on the task creation interface.

[0178] Optionally, the generation module includes:

[0179] A second generation sub-module, configured to generate a task creation interface that matches the mobile device type when the device type of the electronic device is a mobile device type; wherein, the task creation interface that matches the mobile device type is an interface capable of responding to a click operation.

[0180] The setting includes:

[0181] A second setting sub-module, configured to set the state of the graphic element indicated by the click operation to the selected state in response to the click operation on the task creation interface.

[0182] Optionally, the device further includes:

[0183] An acquisition module, configured to acquire a time stamp of the current time after generating a task creation interface that matches the device type of the electronic device based on the device type of the electronic device and before displaying the task creation interface on the electronic device.

[0184] A third trigger module, configured to set the state of the graphic elements with time stamps in the task creation interface that represent time points earlier than the current time to the non-selectable state, and trigger the step of displaying the task creation interface on the electronic device.

[0185] Optionally, the device further includes:

[0186] A detection module, configured to, after setting the status of the graphical element indicated by the specified operation to the selected status in response to a specified operation on the task creation interface and before extracting the time object information of the graphical element in the selected status, detect whether the graphical element in the selected status meets a predetermined error correction condition; wherein, the meeting of the predetermined error correction condition includes: the time object information of any graphical element in the selected status is abnormal time object information, and the abnormal time object information includes: time points in non-task execution time periods.

[0187] A second output module, configured to, if the condition is met, output a second prompt message to the electronic device; wherein, the second prompt message is used to describe that the time object information of the graphical element in the selected status is abnormal, so as to prompt the user to adjust the graphical element in the selected status.

[0188] A fourth trigger module, configured to, in response to detecting an adjustment instruction for the graphical element in the selected status, return to the step of detecting whether the graphical element in the selected status meets the predetermined error correction condition, and if not, trigger the step of extracting the time object information of the graphical element in the selected status.

[0189] An embodiment of the present invention further provides an electronic device, as Figure 7 shown, including a processor 701, a communication interface 702, a memory 703, and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704.

[0190] The memory 703 is used to store a computer program;

[0191] The processor 701, when executing the program stored on the memory 703, implements any of the above task creation methods.

[0192] The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0193] The communication interface is used for communication between the above electronic device and other devices.

[0194] The memory may include a Random Access Memory (RAM), or may also include a Non-Volatile Memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0195] The aforementioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0196] In another embodiment provided by the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned any task creation method is implemented.

[0197] In another embodiment provided by the present invention, there is also provided a computer program product containing instructions, when it runs on a computer, it causes the computer to execute any task creation method in the above embodiments.

[0198] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present invention are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

[0199] It should be noted that in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including", or any other variation thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also other elements that are not explicitly listed, or elements that are inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article, or device that includes the element.

[0200] Each embodiment in this specification is described in a related manner. For the same or similar parts between the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment.

[0201] The above are only the preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention are all included within the protection scope of the present invention.

Claims

1. A task creation method, characterized in that, Applied to an electronic device, the method includes: In response to a task creation instruction, based on the device type of the electronic device, generate a task creation interface that matches the device type of the electronic device, and display the task creation interface on the electronic device; wherein, the task creation interface includes: a plurality of task-related candidate items and a plurality of graphic elements with a predetermined shape corresponding to each candidate item respectively, and the candidate items at least include candidate locations; each graphic element among the plurality of graphic elements corresponding to each candidate item represents a time period within the target time range to which the current time belongs and having a specified time granularity, and each graphic element has time object information for representing the start time point and end time point of the time period represented by the graphic element; the target time range is a time range formed by at least one target time period, and each target time period corresponds to at least two graphic elements, and the time ranges represented by the at least two graphic elements corresponding to each target time period are all within the time range represented by the target time period; In response to a specified operation on the task creation interface, set the status of the graphic element indicated by the specified operation to a selected status; wherein, the specified operation is an operation that can be responded to by the graphic elements in the generated task creation interface; Extract the time object information of the graphic element in the selected status, and generate a target time array containing the extracted time object information; Traverse and analyze each time object information in the target time array to obtain a target task time; wherein, the traversal and analysis include: the time point representing the earliest time and the time point representing the latest time traversed from the target time array; Based on the candidate item corresponding to the graphic element in the selected status, determine the target task content, and associate the target task content with the target task time to complete task creation.

2. The method according to claim 1, wherein The traversing and analyzing each time object information in the target time array to obtain a target task time includes: Traverse each time object information in the target time array. Whenever a time object information is traversed, in the case where the time object information is the first traversed information, the start time point and end time point in the time object information are respectively used as the current standby start time point and the current standby end time point; In the case where the time object information is not the first traversed information, if the start time point in the time object information is earlier than the current standby start time point, the start time point in the time object information is used as the current standby start time point, and if the end time point in the time object information is later than the current standby end time point, the end time point in the time object information is used as the current standby end time point; In response to the completion of traversing the time object information in the target time array, determine the target task time based on the current standby start time point and the current standby end time point.

3. The method according to claim 1 or 2, characterized in that, After determining the target task content based on the candidate items corresponding to the graphical elements in the selected state, and before associating the target task content with the target task time, the method further includes: Outputting first prompt information including the target task content and the target task time to the electronic device; wherein, the first prompt information is used to prompt the user to determine whether the target task content and the target task time are incorrect; In response to the determination information for the first prompt information, triggering the step of associating the target task content with the target task time.

4. The method according to claim 1 or 2, characterized in that, After determining the target task content based on the candidate items corresponding to the graphical elements in the selected state, and before associating the target task content with the target task time, the method further includes: In response to meeting the approval trigger condition, sending the target task content and the target task time to the approval device; wherein, the approval device is a device used by a user who can approve the target task content and the target task time; In response to receiving the information indicating approval returned by the approval device, triggering the step of associating the target task content with the target task time; Wherein, the approval trigger condition includes at least one of the following conditions: The task creation instruction is an instruction for creating a task to be approved, the target task content is pre-set content to be approved, and the target task time is pre-set time to be approved.

5. The method according to claim 1 or 2, characterized in that, Generating a task creation interface that matches the device type of the electronic device includes: When the device type of the electronic device is a personal computer (PC) device type, generating a task creation interface that matches the PC device type; wherein, the task creation interface that matches the PC device type is an interface that can respond to area selection operations; Responding to a specified operation on the task creation interface and setting the state of the graphical element indicated by the specified operation to the selected state includes: In response to an area selection operation on the task creation interface, setting the state of the graphical element in the area indicated by the area selection operation to the selected state.

6. The method according to claim 1 or 2, characterized in that, Generating a task creation interface that matches the device type of the electronic device includes: When the device type of the electronic device is a mobile device type, generating a task creation interface that matches the mobile device type; wherein, the task creation interface that matches the mobile device type is an interface that can respond to click operations; Responding to a specified operation on the task creation interface and setting the state of the graphical element indicated by the specified operation to the selected state includes: In response to a click operation on the task creation interface, setting the state of the graphical element indicated by the click operation to the selected state.

7. The method according to claim 1 or 2, characterized in that, After generating a task creation interface that matches the device type of the electronic device based on the device type of the electronic device, before displaying the task creation interface on the electronic device, it further includes: Obtain the timestamp of the current time; Set the status of the graphical elements in the task creation interface whose represented time points are earlier than the timestamp of the current time to a non-selectable state, and trigger the step of displaying the task creation interface on the electronic device.

8. The method according to claim 1 or 2, characterized in that, After setting the status of the graphical element indicated by the specified operation to a selected state in response to a specified operation on the task creation interface, before extracting the time object information of the graphical element in the selected state, it further includes: Detect whether the graphical element in the selected state meets a predetermined error correction condition; wherein, meeting the predetermined error correction condition includes: the time object information of any graphical element in the selected state is abnormal time object information, and the abnormal time object information includes: time points in non-task execution time periods; If it is met, output a second prompt message to the electronic device; wherein, the second prompt message is used to describe that the time object information of the graphical element in the selected state is abnormal, so as to prompt the user to adjust the graphical element in the selected state; In response to detecting an adjustment instruction for the graphical element in the selected state, return to the step of detecting whether the graphical element in the selected state meets the predetermined error correction condition. If it is not met, trigger the step of extracting the time object information of the graphical element in the selected state.

9. A task creation device, characterized in that, Applied to an electronic device, the device includes: A generation module, configured to, in response to a task creation instruction, generate a task creation interface that matches the device type of the electronic device based on the device type of the electronic device, and display the task creation interface on the electronic device; wherein, the task creation interface includes: a plurality of task-related candidate items and a plurality of graphical elements with a predetermined shape corresponding to each candidate item respectively, the candidate items at least include candidate locations; each graphical element among the plurality of graphical elements corresponding to each candidate item represents a time period within the target time range to which the current time belongs and having a specified time granularity, and each graphical element has time object information for representing the start time point and end time point of the time period represented by the graphical element; the target time range is a time range formed by at least one target time period, and each target time period corresponds to at least two graphical elements, and the time ranges represented by the at least two graphical elements corresponding to each target time period are all within the time range represented by the target time period; A setting module, configured to set the status of the graphical element indicated by the specified operation to a selected state in response to a specified operation on the task creation interface; wherein, the specified operation is an operation that can be responded to by the graphical elements in the generated task creation interface; An extraction module, configured to extract the time object information of the graphical element in the selected state, and generate a target time array including the extracted time object information; A traversal analysis module for traversing and analyzing each time object information in the target time array to obtain a target task time; wherein the traversal analysis includes: a time point representing the earliest time and a time point representing the latest time obtained by traversing from the target time array; A determination module for determining a target task content based on the candidate items corresponding to the selected graphical elements, and associating the target task content with the target task time to complete task creation.

10. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus; The memory is used for storing computer programs; The processor is used to implement the method according to any one of claims 1-8 when executing the programs stored on the memory.