Control method, device and electronic device based on multiple associated date selectors

By associating a date picker with the table and dynamically adjusting the date selection range, the problem of not being able to limit the date picker when the number of table rows is irregular is solved, and the efficiency of table operations is improved.

CN116126296BActive Publication Date: 2025-09-19WEICHAI POWER CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211603560.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-13
Publication Date
2025-09-19
Estimated Expiration
2042-12-13

AI Technical Summary

Technical Problem

The existing technology cannot effectively limit the date selection range of the date picker when the number of table rows is uncertain, especially when the number of table rows is uncertain and the date pickers are associated.

Method used

By obtaining multiple rows of data to be called in the table, the date selectors corresponding to the start and end dates of each row of data to be called are determined respectively, and the start date selector of the current row is associated with the end date selector of the previous row, and the end date selector is associated with the start date selector of the next row, so as to dynamically adjust the date selection range.

Benefits of technology

It realizes effective control of the date selection range of the date picker when the number of table rows can be dynamically increased or decreased, improves the efficiency of table operation, and has a wide range of applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116126296B_ABST
    Figure CN116126296B_ABST
Patent Text Reader

Abstract

The present invention discloses a control method, device, and electronic device based on multiple associated date selectors. The control method based on multiple associated date selectors includes: associating the date selector corresponding to the start date of the current row of data to be called with the date selector corresponding to the end date of the previous row of data to be called, and associating the date selector corresponding to the end date of the current row of data to be called with the date selector corresponding to the start date of the next row of data to be called; determining the date selection range of the date selector corresponding to the start date of the current row of data to be called based on the end date of the previous row of data to be called, and determining the date selection range of the date selector corresponding to the end date of the current row of data to be called based on the start date of the next row of data to be called. The present invention enables dynamic control of the date selection range of date selectors in a table, improves table operation efficiency, and has a wide range of applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of date selector control, and in particular to a control method, device and electronic equipment based on multiple associated date selectors. Background Art

[0002] Elementui is a desktop front-end UI framework based on Vue.js 2.0. It is a desktop component library based on Vue 2.0 for developers, designers and product managers.

[0003] Currently, in EL-table (a component used by ElementUI to draw tables) where rows cannot be added or removed dynamically and only two EL-date-pickers (a component used by ElementUI to select dates) are present, the date selection range is set using the picker-options attribute of the date picker (a property used by the date picker to limit the range of available dates). Existing technologies mostly restrict date pickers when the table content is fixed and the number of date pickers is known, or when the table can dynamically add or delete rows and the date pickers do not have any associated relationships. However, this is not applicable when the number of table rows is variable and the date picker's time selection range needs to be restricted using the associated relationships of the date pickers. Summary of the Invention

[0004] The present invention provides a control method, device and electronic device based on multiple associated date selectors to solve the problem that the date selection range of a known date selector cannot be limited when the number of table rows is not constant.

[0005] According to one aspect of the present invention, a control method based on multiple associated date selectors is provided, the control method based on multiple associated date selectors comprising:

[0006] Get multiple rows of data to be called in the table, and determine the date selector corresponding to the start date and the date selector corresponding to the end date of each row of data to be called;

[0007] Associate the date selector corresponding to the start date of the current row of data to be called with the date selector corresponding to the end date of the previous row of data to be called, and associate the date selector corresponding to the end date of the current row of data to be called with the date selector corresponding to the start date of the next row of data to be called;

[0008] The date selection range of the date selector corresponding to the start date of the data to be called in the current row is determined according to the end date of the data to be called in the previous row, and the date selection range of the date selector corresponding to the end date of the data to be called in the current row is determined according to the start date of the data to be called in the next row.

[0009] Optionally, determining the date selection range of the date selector corresponding to the start date of the current row of data to be called according to the end date of the previous row of data to be called includes:

[0010] Set the date selection range after and including the end date of the previous row of data to be called as the date selection range of the date selector corresponding to the start date of the current row of data to be called;

[0011] Determine the date selection range of the date picker corresponding to the end date of the current row of data to be called based on the start date of the next row of data to be called, including:

[0012] The date selection range before and including the start date of the next row of data to be called is used as the date selection range of the date selector corresponding to the end date of the current row of data to be called.

[0013] Optionally, determining the date selection range of the date selector corresponding to the start date of the current row of data to be called according to the end date of the previous row of data to be called includes:

[0014] Set the date selection range after the set time interval after the end date of the previous row of data to be called as the date selection range of the date selector corresponding to the start date of the current row of data to be called;

[0015] Determine the date selection range of the date picker corresponding to the end date of the current row of data to be called based on the start date of the next row of data to be called, including:

[0016] The date selection range before the set time interval before the start date of the next row of data to be called is used as the date selection range of the date selector corresponding to the end date of the current row of data to be called.

[0017] Optionally, before associating the date selector corresponding to the start date of the current row of data to be called with the date selector corresponding to the end date of the previous row of data to be called, the method further includes:

[0018] If the current row of data to be called is the first row of data to be called, the date selector corresponding to the end date of the first row of data to be called is associated with the date selector corresponding to the start date of the next row of data to be called corresponding to the first row of data to be called.

[0019] Optionally, the control method based on multiple associated date selectors further includes:

[0020] Add a new row of data to be called before the current row of data to be called;

[0021] Associate the date selector corresponding to the start date of the added row of data to be called with the date selector corresponding to the end date of the previous row of data to be called, and associate the date selector corresponding to the end date of the added row of data to be called with the date selector corresponding to the start date of the current row of data to be called.

[0022] Optionally, the control method based on multiple associated date selectors further includes:

[0023] The date selection range that is after the start date of the data to be called in the current row and includes the start date of the data to be called in the current row is used as the date selection range of the date selector corresponding to the end date of the data to be called in the current row.

[0024] Optionally, the control method based on multiple associated date selectors further includes:

[0025] The date selection range after the set time interval after the start date of the data to be called in the current row is used as the date selection range of the date selector corresponding to the end date of the data to be called in the current row.

[0026] According to another aspect of the present invention, a control device based on multiple associated date selectors is provided, the control device based on multiple associated date selectors comprising:

[0027] According to another aspect of the present invention, an electronic device is provided, comprising:

[0028] at least one processor; and

[0029] a memory communicatively connected to the at least one processor; wherein,

[0030] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the control method based on multiple associated date selectors according to any embodiment of the present invention.

[0031] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the control method based on multiple associated date selectors according to any embodiment of the present invention when executed.

[0032] The technical solution of the embodiment of the present invention obtains multiple rows of data to be called in a table, and respectively determines the date selector corresponding to the start date and the date selector corresponding to the end date of each row of data to be called; associates the date selector corresponding to the start date of the current row of data to be called with the date selector corresponding to the end date of the previous row of data to be called, and associates the date selector corresponding to the end date of the current row of data to be called with the date selector corresponding to the start date of the next row of data to be called; determines the date selection range of the date selector corresponding to the start date of the current row of data to be called based on the end date of the previous row of data to be called, and determines the date selection range of the date selector corresponding to the end date of the current row of data to be called based on the start date of the next row of data to be called. The present invention solves the problem of being unable to limit the date selection range of a known date selector when the number of rows in a table is not fixed, realizes dynamic control of the date selection range of the date selector in the table, improves the efficiency of table operation, and has a wide range of applications.

[0033] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0035] Figure 1 This is a flow chart of a control method based on multiple associated date selectors provided in accordance with the first embodiment of the present invention;

[0036] Figure 2 This is a screenshot of an interface of a date selection control based on multiple associated date selectors according to embodiment 1 of the present invention;

[0037] Figure 3 This is another screenshot of the interface of the date selection control based on multiple associated date selectors according to the first embodiment of the present invention;

[0038] Figure 4 This is a structural diagram of a control device based on multiple associated date selectors provided in accordance with a second embodiment of the present invention;

[0039] Figure 5 The present invention is a schematic structural diagram of an electronic device for implementing a control method based on multiple associated date selectors according to an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0041] It should be noted that the terms "previous", "next", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0042] Example 1

[0043] Figure 1 A flowchart of a control method based on multiple associated date selectors is provided for the first embodiment of the present invention. This embodiment is applicable to the case where there is no index column and each row of the table can be dynamically increased or decreased, and the selectable time range of multiple date selectors in the table is limited. The control method based on multiple associated date selectors can be executed by a control device based on multiple associated date selectors. The control device based on multiple associated date selectors can be implemented in the form of hardware and / or software, and the control device based on multiple associated date selectors can be configured in an electronic device. Figure 1 As shown, the control method based on multiple associated date selectors includes:

[0044] S110 , obtaining multiple rows of data to be called in a table, and respectively determining a date selector corresponding to a start date and an end date for each row of data to be called.

[0045] Among them, the table is an el-table table based on elementui, and the table can include multiple rows of data to be called. Optionally, the table can include two, three or more rows of data to be called. At the same time, the data to be called in the table can be added or reduced at will.

[0046] The date picker is used in Vue framework development to help users dynamically select a formatted date (time) or date (time) range that meets the requirements.

[0047] In this embodiment, a date selector is nested in the table, that is, a date selector is nested in each row of data to be called, and a date selector is set for the start time of each row of data to be called, and a date selector is set for the end time.

[0048] Specifically, index is the index of the row in the table where the clicked date selector is located. By clicking index, the date selector calls the pending data to obtain the row index, thereby processing the pending data in the row of pending data bound to the table, thereby controlling the date selection range of the date selectors associated with the pending data in the row of pending data or other rows of pending data. By obtaining the pending data bound to the row of the table through the index, the date selection range of the date selector is limited through the association relationship of the date selector. Based on the above, by dynamically obtaining the index, the date selection range of multiple date selectors in a table where rows can be added or removed can be limited.

[0049] It is understandable that the date selector corresponding to the start date of each row of data to be called and the date selector corresponding to the end date can both limit their date selection range through the index, thereby dynamically adjusting the start time and end time of each row of data to be called.

[0050] S120. Associate the date selector corresponding to the start date of the current row of data to be called with the date selector corresponding to the end date of the previous row of data to be called, and associate the date selector corresponding to the end date of the current row of data to be called with the date selector corresponding to the start date of the next row of data to be called.

[0051] It can be understood that if the current row of data to be called is the first row of data to be called, the start date of the first row of data to be called can be any date selected by technical personnel in this field according to actual conditions. Optionally, the start date of the first row of data to be called can be a date selection range after the current date and including the current date. The start date of the first row of data to be called can be any date selection range. The start date of the first row of data to be called can also be a date selection range pre-set by technical personnel in this field. This embodiment does not impose any restrictions on this.

[0052] If the current row of data to be called is the first row of data to be called, the date selector corresponding to the end date of the first row of data to be called is associated with the date selector corresponding to the start date of the next row of data to be called corresponding to the first row of data to be called.

[0053] Similarly, if the current row of data to be called is the last row of data to be called, the date selector corresponding to the start date of the last row of data to be called is associated with the date selector of the start date of the previous row of data to be called corresponding to the last row of data to be called.

[0054] If the current row of data to be called is the last row of data to be called, the end date of the last row of data to be called can be any date selected by those skilled in the art according to actual conditions. Optionally, the end date of the last row of data to be called can be a date selection range after the current date and including the current date. The end date of the last row of data to be called can be any date selection range. The end date of the last row of data to be called can also be a date selection range pre-set by those skilled in the art. This embodiment does not impose any restrictions on this.

[0055] In order to dynamically increase or decrease the data to be called in the table, the date selection range of multiple date selectors is limited. Specifically, in one embodiment, if a row of data to be called is added before the current row of data to be called; the date selector corresponding to the start date of the added row of data to be called is associated with the date selector corresponding to the end date of the previous row of data to be called, and the date selector corresponding to the end date of the added row of data to be called is associated with the date selector corresponding to the start date of the current row of data to be called.

[0056] In another embodiment, if a row of data to be called is added after the current row of data to be called; the date selector corresponding to the start date of the row of data to be called is associated with the date selector corresponding to the end date of the current row of data to be called, and the date selector corresponding to the end date of the row of data to be called is associated with the date selector corresponding to the start date of the next row of data to be called.

[0057] Exemplarily, due to the increase or decrease of the data to be called in the table, rows i-1, i, and i+1 are used instead of the three adjacent rows of numbers, that is, the previous row of data to be called in this application is row i-1 of data to be called, the current row of data to be called is row i of data to be called, and the next row of data to be called is row i+1 of data to be called. There are two mutually associated date selectors c1 and c2 in each row, that is, date selector c1 is the date selector corresponding to the start date of each row of data to be called, and date selector c2 is the date selector corresponding to the end date of each row of data to be called. The date relationship between the three adjacent rows of data to be called is: (i-1)c1 is earlier than (i-1)c2, earlier than ic1, earlier than ic2, earlier than (i+1)c1, and earlier than (i+1)c2.

[0058] It is understandable that the present invention associates the date selectors in the table through the intermediate value, and only one piece of code is needed to control all the date selectors in the table. It can also be used when the table is dynamically increased or decreased, and the versatility is greatly enhanced.

[0059] It should be noted that, since the number of rows of data to be called in the table can be dynamically increased or decreased, the present application can be set for all rows of data to be called in the table to comply with the above-mentioned date selector control method, that is, a date selector appears regularly in each row of data to be called in all tables, and the date selection ranges of the date selectors are related, such as the 1st, 2nd, 3rd... date selectors appear regularly in each row and the date selection ranges of the date selectors are related; the present application can set the above-mentioned date selector control method for specific rows of data to be called in the table, that is, a date selector appears regularly in specific rows of data to be called in all tables and the date selection ranges of the date selectors are related. Optionally, the specific rows of data to be called can be data to be called in the form of odd rows, even rows or every other row in the table. This embodiment does not impose any restrictions on the specific form of the specific rows. For example, the date selectors appear regularly in each odd row, such as the 1st, 3rd, 5th... and the date selection ranges of the date selectors are related.

[0060] S130. Determine a date selection range of a date selector corresponding to a start date of the data to be called in the current row according to an end date of the data to be called in the previous row, and determine a date selection range of a date selector corresponding to an end date of the data to be called in the current row according to a start date of the data to be called in the next row.

[0061] Specifically, the date selection range after and including the start date of the data to be called in the current row is used as the date selection range of the date selector corresponding to the end date of the data to be called in the current row.

[0062] For example, see Figure 2 , when the start date of the data to be called in the current row is 2022 / 04 / 04, the end date of the data to be called in the current row can be a date selection range after the start date 2022 / 04 / 04 and including the start date 2022 / 04 / 04.

[0063] Understandably, continue to see Figure 2 The start date of the current row of data to be called is 2022 / 04 / 04, which can be considered as the first row of data to be called. The start date 2022 / 04 / 04 can be arbitrarily selected by those skilled in the art according to actual conditions.

[0064] In one embodiment, the date selection range after the set time interval after the start date of the data to be called in the current row is used as the date selection range of the date selector corresponding to the end date of the data to be called in the current row.

[0065] For example, see Figure 2When the start date of the data to be called in the current row is 2022 / 04 / 04, the end date of the data to be called in the current row can be a date selection range after a set time interval after the start date of the data to be called in the current row. Optionally, the end date of the data to be called in the current row can be a date such as 2022 / 04 / 12 or 2022 / 04 / 18. This embodiment does not impose any restrictions on this.

[0066] Specifically, to limit the selectable range of all other date selectors associated with the date selector for the current row of data to be called in the table, the date selection range that is after and including the end date of the previous row of data to be called is used as the date selection range for the date selector corresponding to the start date of the current row of data to be called; and the date selection range that is before and including the start date of the next row of data to be called is used as the date selection range for the date selector corresponding to the end date of the current row of data to be called.

[0067] For example, see Figure 3 , the end date of the previous row of data to be called is 2022 / 04 / 12, then the dates after 2022 / 04 / 12 and including 2022 / 04 / 12 are used as the date selection range of the date selector corresponding to the start date of the current row of data to be called.

[0068] In one embodiment, the date selection range after the set time interval after the end date of the previous row of data to be called is used as the date selection range of the date selector corresponding to the start date of the current row of data to be called; the date selection range before the set time interval before the start date of the next row of data to be called is used as the date selection range of the date selector corresponding to the end date of the current row of data to be called.

[0069] The time interval may be set by those skilled in the art according to actual needs, and this embodiment does not impose any limitation on this.

[0070] For example, see Figure 3 , the end date of the previous row of data to be called is 2022 / 04 / 12. The time interval can be set to five days, seven days, or longer, and this embodiment does not impose any restrictions on this. Taking the example of setting the time interval to five days, the date after and including 2022 / 04 / 17 will be used as the date selection range of the date selector corresponding to the start date of the current row of data to be called.

[0071] It should be noted that, continue to refer to Figure 2 and Figure 3, you can gray out the date selection range that does not match the date selector and make it unselectable, thereby directly limiting the selectable time range of the date selector.

[0072] It should also be noted that after determining the start date and end date of the current row of data to be called, the start date and end date of the current row of data to be called can be verified to determine whether the start date and end date of the currently selected current row of data to be called are consistent with the requirements of the date selectors of the associated previous row and next row of data to be called. If they are consistent, the start date and end date of the current row of data to be called are selected; if they are not consistent, the selected start date and end date of the current row of data to be called are cleared.

[0073] The technical solution of the embodiment of the present invention obtains multiple rows of data to be called in a table, and respectively determines the date selector corresponding to the start date and the date selector corresponding to the end date of each row of data to be called; associates the date selector corresponding to the start date of the current row of data to be called with the date selector corresponding to the end date of the previous row of data to be called, and associates the date selector corresponding to the end date of the current row of data to be called with the date selector corresponding to the start date of the next row of data to be called; determines the date selection range of the date selector corresponding to the start date of the current row of data to be called according to the end date of the previous row of data to be called, and determines the date selection range of the date selector corresponding to the end date of the current row of data to be called according to the start date of the next row of data to be called. The present invention solves the problem that it is impossible to use a general method to limit the date selection range of a known date selector when the number of table rows can be dynamically increased or decreased, realizes dynamic control of the date selection range of the date selector in the table, improves the efficiency of table operation, and has a wide range of applications.

[0074] Example 2

[0075] Figure 4 This is a schematic diagram of the structure of a control device based on multiple associated date selectors provided in the third embodiment of the present invention. Figure 4 As shown, the control device based on multiple associated date selectors includes:

[0076] The date selector determination module 410 is used to obtain multiple rows of data to be called in the table and determine the date selector corresponding to the start date and the date selector corresponding to the end date of each row of data to be called;

[0077] The date selector association module 420 is used to associate the date selector corresponding to the start date of the current row of data to be called with the date selector corresponding to the end date of the previous row of data to be called, and to associate the date selector corresponding to the end date of the current row of data to be called with the date selector corresponding to the start date of the next row of data to be called;

[0078] The date selection range determination module 430 is used to determine the date selection range of the date selector corresponding to the start date of the current row of data to be called based on the end date of the previous row of data to be called, and to determine the date selection range of the date selector corresponding to the end date of the current row of data to be called based on the start date of the next row of data to be called.

[0079] Optionally, determining the date selection range of the date selector corresponding to the start date of the current row of data to be called according to the end date of the previous row of data to be called includes:

[0080] Set the date selection range after and including the end date of the previous row of data to be called as the date selection range of the date selector corresponding to the start date of the current row of data to be called;

[0081] Determine the date selection range of the date picker corresponding to the end date of the current row of data to be called based on the start date of the next row of data to be called, including:

[0082] The date selection range before and including the start date of the next row of data to be called is used as the date selection range of the date selector corresponding to the end date of the current row of data to be called.

[0083] Optionally, determining the date selection range of the date selector corresponding to the start date of the current row of data to be called according to the end date of the previous row of data to be called includes:

[0084] Set the date selection range after the set time interval after the end date of the previous row of data to be called as the date selection range of the date selector corresponding to the start date of the current row of data to be called;

[0085] Determine the date selection range of the date picker corresponding to the end date of the current row of data to be called based on the start date of the next row of data to be called, including:

[0086] The date selection range before the set time interval before the start date of the next row of data to be called is used as the date selection range of the date selector corresponding to the end date of the current row of data to be called.

[0087] Optionally, the control device based on multiple associated date selectors further includes:

[0088] The first row of data to be called control module is used to execute if the current row of data to be called is the first row of data to be called, then the date selector corresponding to the end date of the first row of data to be called is associated with the date selector of the start date of the next row of data to be called corresponding to the first row of data to be called.

[0089] Optionally, the control device based on multiple associated date selectors further includes:

[0090] Add row of waiting-to-call data module, used to add row of waiting-to-call data before the current row of waiting-to-call data;

[0091] Add an association module, which is used to associate the date selector corresponding to the start date of the added row of data to be called with the date selector corresponding to the end date of the previous row of data to be called, and associate the date selector corresponding to the end date of the added row of data to be called with the date selector corresponding to the start date of the current row of data to be called.

[0092] Optionally, the control device based on multiple associated date selectors further includes:

[0093] The first current row of data to be called end date selection module is used to execute the date selection range after the start date of the current row of data to be called and including the start date of the current row of data to be called as the date selection range of the date selector corresponding to the end date of the current row of data to be called.

[0094] Optionally, the control device based on multiple associated date selectors further includes:

[0095] The second current row of data to be called end date selection module is used to execute the date selection range after the set time interval after the start date of the current row of data to be called as the date selection range of the date selector corresponding to the end date of the current row of data to be called.

[0096] The control device based on multiple associated date selectors provided in an embodiment of the present invention can execute the control method based on multiple associated date selectors provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the control method based on multiple associated date selectors.

[0097] Example 3

[0098] Figure 5 A schematic diagram of the structure of an electronic device 510 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0099] like Figure 5 As shown, the electronic device 510 includes at least one processor 511, and a memory connected to the at least one processor 511 in communication, such as a read-only memory (ROM) 512, a random access memory (RAM) 513, etc., wherein the memory stores a computer program that can be executed by the at least one processor, and the processor 511 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 512 or the computer program loaded from the storage unit 518 into the random access memory (RAM) 513. Various programs and data required for the operation of the electronic device 510 can also be stored in the RAM 513. The processor 511, ROM 512, and RAM 513 are connected to each other via a bus 514. An input / output (I / O) interface 515 is also connected to the bus 514.

[0100] Multiple components in the electronic device 510 are connected to the I / O interface 515, including an input unit 516, such as a keyboard, a mouse, etc.; an output unit 517, such as various types of displays, speakers, etc.; a storage unit 518, such as a magnetic disk, an optical disk, etc.; and a communication unit 519, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 519 allows the electronic device 510 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0101] The processor 511 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 511 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 511 executes the various methods and processes described above, such as a control method based on multiple associated date selectors.

[0102] In some embodiments, the control method based on multiple associated date selectors can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 518. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 510 via the ROM 512 and / or the communication unit 519. When the computer program is loaded into the RAM 513 and executed by the processor 511, one or more steps of the control method based on multiple associated date selectors described above can be performed. Alternatively, in other embodiments, the processor 511 can be configured to perform the control method based on multiple associated date selectors by any other appropriate means (e.g., by means of firmware).

[0103] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0104] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0105] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0106] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0107] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0108] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0109] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0110] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A control method based on multiple associated date selectors, characterized in that: include: Get multiple rows of data to be called in the table, and determine the date selector corresponding to the start date and the date selector corresponding to the end date of each row of data to be called; Associate the date selector corresponding to the start date of the current row of data to be called with the date selector corresponding to the end date of the previous row of data to be called, and associate the date selector corresponding to the end date of the current row of data to be called with the date selector corresponding to the start date of the next row of data to be called; Add a new row of data to be called before the current row of data to be called; Associate the date selector corresponding to the start date of the data to be called in the added row with the date selector corresponding to the end date of the data to be called in the previous row, and associate the date selector corresponding to the end date of the data to be called in the added row with the date selector corresponding to the start date of the data to be called in the current row; The date selection range of the date selector corresponding to the start date of the data to be called in the current row is determined based on the end date of the data to be called in the previous row, and the date selection range of the date selector corresponding to the end date of the data to be called in the current row is determined based on the start date of the data to be called in the next row; The date selection range that is after the start date of the data to be called in the current row and includes the start date of the data to be called in the current row is used as the date selection range of the date selector corresponding to the end date of the data to be called in the current row.

2. The control method based on multiple associated date selectors according to claim 1, characterized in that: Determining the date selection range of the date selector corresponding to the start date of the current row of data to be called according to the end date of the previous row of data to be called includes: Set the date selection range after and including the end date of the previous row of data to be called as the date selection range of the date selector corresponding to the start date of the current row of data to be called; Determine the date selection range of the date picker corresponding to the end date of the current row of data to be called based on the start date of the next row of data to be called, including: The date selection range before and including the start date of the next row of data to be called is used as the date selection range of the date selector corresponding to the end date of the current row of data to be called.

3. The control method based on multiple associated date selectors according to claim 1, characterized in that: Determining the date selection range of the date selector corresponding to the start date of the current row of data to be called according to the end date of the previous row of data to be called includes: Set the date selection range after the set time interval after the end date of the previous row of data to be called as the date selection range of the date selector corresponding to the start date of the current row of data to be called; Determine the date selection range of the date picker corresponding to the end date of the current row of data to be called based on the start date of the next row of data to be called, including: The date selection range before the set time interval before the start date of the next row of data to be called is used as the date selection range of the date selector corresponding to the end date of the current row of data to be called.

4. The control method based on multiple associated date selectors according to claim 1, characterized in that: Before associating the date selector corresponding to the start date of the current row of data to be called with the date selector corresponding to the end date of the previous row of data to be called, the method further includes: If the current row of data to be called is the first row of data to be called, the date selector corresponding to the end date of the first row of data to be called is associated with the date selector corresponding to the start date of the next row of data to be called corresponding to the first row of data to be called.

5. The control method based on multiple associated date selectors according to claim 1, characterized in that: The control method based on multiple associated date selectors also includes: The date selection range after the set time interval after the start date of the data to be called in the current row is used as the date selection range of the date selector corresponding to the end date of the data to be called in the current row.

6. A control device based on multiple associated date selectors, characterized in that: include: The date selector determination module is used to obtain multiple rows of data to be called in the table and determine the date selector corresponding to the start date and the date selector corresponding to the end date of each row of data to be called; The date selector association module is used to associate the date selector corresponding to the start date of the current row of data to be called with the date selector corresponding to the end date of the previous row of data to be called, and to associate the date selector corresponding to the end date of the current row of data to be called with the date selector corresponding to the start date of the next row of data to be called; Add row of waiting-to-call data module, used to add row of waiting-to-call data before the current row of waiting-to-call data; Add an association module, which is used to associate the date selector corresponding to the start date of the added row of data to be called with the date selector corresponding to the end date of the previous row of data to be called, and associate the date selector corresponding to the end date of the added row of data to be called with the date selector corresponding to the start date of the current row of data to be called; A date selection range determination module is used to determine the date selection range of the date selector corresponding to the start date of the current row of data to be called according to the end date of the previous row of data to be called, and to determine the date selection range of the date selector corresponding to the end date of the current row of data to be called according to the start date of the next row of data to be called; The first current row of data to be called end date selection module is used to execute the date selection range after the start date of the current row of data to be called and including the start date of the current row of data to be called as the date selection range of the date selector corresponding to the end date of the current row of data to be called.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the control method based on multiple associated date selectors according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the control method based on multiple associated date selectors according to any one of claims 1 to 5 when executed.

Citation Information

Patent Citations

  • Optimization method and device of time selector and storage medium

    CN110109674A

  • Process data processing method and system

    CN112084196A