CN116126296A - Control method and device based on multiple associated date selectors and electronic equipment - Google Patents

Control method and device based on multiple associated date selectors and electronic equipment Download PDF

Info

Publication number
CN116126296A
CN116126296A CN202211603560.7A CN202211603560A CN116126296A CN 116126296 A CN116126296 A CN 116126296A CN 202211603560 A CN202211603560 A CN 202211603560A CN 116126296 A CN116126296 A CN 116126296A
Authority
CN
China
Prior art keywords
date
data
called
line
selector corresponding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211603560.7A
Other languages
Chinese (zh)
Inventor
孙欣璐
张欣书
崔会会
饶嘉棣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weichai Power Co Ltd
Weifang Weichai Power Technology Co Ltd
Original Assignee
Weichai Power Co Ltd
Weifang Weichai Power Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weichai Power Co Ltd, Weifang Weichai Power Technology Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN202211603560.7A priority Critical patent/CN116126296A/en
Publication of CN116126296A publication Critical patent/CN116126296A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Abstract

The invention discloses a control method and device based on a plurality of associated date selectors and electronic equipment. The control method based on the plurality of associated date selectors comprises the following steps: associating a date selector corresponding to the starting date of the current line of data to be called with a date selector corresponding to the ending date of the previous line of data to be called, and associating the date selector corresponding to the ending date of the current line of data to be called with a date selector corresponding to the starting date of the next line of data to be called; determining a date selection range of a date selector corresponding to the starting date of the data to be called in the current line according to the ending date of the data to be called in the previous line, and determining the date selection range of the date selector corresponding to the ending date of the data to be called in the current line according to the starting date of the data to be called in the next line. The invention realizes the dynamic control of the date selection range of the date selector in the table, improves the table operation efficiency and has wide application range.

Description

Control method and device based on multiple associated date selectors and electronic equipment
Technical Field
The present invention relates to the field of date selector control technologies, and in particular, to a control method and apparatus based on multiple associated date selectors, and an electronic device.
Background
The Elementui is a set of desktop front-end ui frameworks based on Vue.js2.0, and is a set of desktop component libraries based on Vue2.0 prepared for developers, designers and product managers.
Currently, an element sets a date selectable range by a pointer-options attribute of a date selector (an attribute of the date selector for limiting a date selectable range) in an el-table (an element for drawing a table) in which a line cannot be dynamically increased or decreased and only two el-date-pointers exist. In the prior art, most of the date selectors are limited when the contents of the table are determined and the number of the date selectors is known, or when the table can be dynamically added or deleted and the date selectors have no association relation; however, when the number of table rows is not constant, the association relationship between the date selector is required, and the time selection range of the date selector is limited, which is not applicable.
Disclosure of Invention
The invention provides a control method and device based on a plurality of associated date selectors and electronic equipment, and aims to solve the problem that the date selection range of a date selector with known unknown table number of data cannot be limited.
According to an aspect of the present invention, there is provided a control method based on a plurality of associated date selectors, the control method based on a plurality of associated date selectors comprising:
acquiring a plurality of lines of data to be called in a table, and respectively determining a date selector corresponding to the start date and a date selector corresponding to the end date of each line of data to be called;
associating a date selector corresponding to the starting date of the current line of data to be called with a date selector corresponding to the ending date of the previous line of data to be called, and associating the date selector corresponding to the ending date of the current line of data to be called with a date selector corresponding to the starting date of the next line of data to be called;
determining a date selection range of a date selector corresponding to the starting date of the data to be called in the current line according to the ending date of the data to be called in the previous line, and determining the date selection range of the date selector corresponding to the ending date of the data to be called in the current line according to the starting date of the data to be called in the next line.
Optionally, the determining, according to the ending date of the last line of data to be called, the date selection range of the date selector corresponding to the starting date of the current line of data to be called includes:
taking a date selection range which is after the ending date of the last line of data to be called and contains the ending date of the last line of data to be called as a date selection range of a date selector corresponding to the starting date of the current line of data to be called;
determining a date selection range of a date selector corresponding to the ending date of the data to be called in the current line according to the starting date of the data to be called in the next line, wherein the method comprises the following steps:
and taking the date selection range which is before the starting date of the data to be called in the next row and contains the starting date of the data to be called in the next row as the date selection range of the date selector corresponding to the ending date of the data to be called in the current row.
Optionally, the determining, according to the ending date of the last line of data to be called, the date selection range of the date selector corresponding to the starting date of the current line of data to be called includes:
taking a date selection range after a set time interval after the ending date of the data to be called in the previous line as a date selection range of a date selector corresponding to the starting date of the data to be called in the current line;
determining a date selection range of a date selector corresponding to the ending date of the data to be called in the current line according to the starting date of the data to be called in the next line, wherein the method comprises the following steps:
and taking the date selection range before the set time interval before the starting date of the data to be called in the next row as the date selection range of the date selector corresponding to the ending date of the data to be called in the current row.
Optionally, before associating the date selector corresponding to the start date of the current line of data to be called with the date selector corresponding to the end date of the previous line of data to be called, the method further includes:
and if the current line of data to be called is the first line of data to be called, associating the date selector corresponding to the ending date of the first line of data to be called with the date selector corresponding to the starting date of the next line of data to be called.
Optionally, the control method based on the plurality of association date selectors further includes:
adding added line data to be called before the current line data to be called;
associating a date selector corresponding to the start date of the data to be called of the added row with a date selector corresponding to the end date of the data to be called of the previous row, and associating the date selector corresponding to the end date of the data to be called of the added row with a date selector corresponding to the start date of the data to be called of the current row.
Optionally, the control method based on the plurality of association date selectors further includes:
and taking the date selection range which is after the start date of the current line of data to be called and contains the start date of the current line of data to be called as the date selection range of the date selector corresponding to the end date of the current line of data to be called.
Optionally, the control method based on the plurality of association date selectors further includes:
and taking the date selection range after a set time interval after the starting date of the current line of data to be called as the date selection range of the date selector corresponding to the ending date of the current line of data to be called.
According to another aspect of the present invention, there is provided a control device based on a plurality of associated date selectors, the control device based on a plurality of associated date selectors comprising:
according to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of any one of the embodiments of the present invention based on a plurality of associated date selectors.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a control method based on a plurality of associated date selectors according to any of the embodiments of the present invention when executed.
According to the technical scheme, a plurality of rows of data to be called in the table are obtained, and a date selector corresponding to the start date and a date selector corresponding to the end date of each row of data to be called are respectively determined; associating a date selector corresponding to the starting date of the current line of data to be called with a date selector corresponding to the ending date of the previous line of data to be called, and associating the date selector corresponding to the ending date of the current line of data to be called with a date selector corresponding to the starting date of the next line of data to be called; determining a date selection range of a date selector corresponding to the starting date of the data to be called in the current line according to the ending date of the data to be called in the previous line, and determining the date selection range of the date selector corresponding to the ending date of the data to be called in the current line according to the starting date of the data to be called in the next line. The invention solves the problem that the date selection range of the date selector with the known unknown table number can not be limited, realizes the dynamic control of the date selection range of the date selector in the table, improves the table operation efficiency and has wide application range.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a control method based on a plurality of associated date selectors according to a first embodiment of the present invention;
FIG. 2 is an interface screen shot of a date selection control based on a plurality of associated date selectors as applied in accordance with an embodiment of the present invention;
FIG. 3 is another screenshot of a date selection control based on a plurality of associated date selectors as applicable in accordance with an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a control device based on a plurality of association date selectors according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing a control method based on a plurality of association date selectors according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "upper", "lower", and the like in the description and the claims of the present invention and the above drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a control method based on a plurality of associated date selectors, where the control method based on a plurality of associated date selectors may be executed by a control device based on a plurality of associated date selectors, where the control device based on a plurality of associated date selectors may be implemented in hardware and/or software, and where the control device based on a plurality of associated date selectors may be configured in an electronic device, where the control device based on a plurality of associated date selectors may be applicable to a case where there is no index column and each row of tables may be dynamically increased or decreased. As shown in fig. 1, the control method based on the plurality of association date selectors includes:
s110, acquiring a plurality of lines of data to be called in the table, and respectively determining a date selector corresponding to the start date and a date selector corresponding to the end date of each line of data to be called.
The table is an el-table based on elementui, and may include multiple rows of data to be called, optionally, two rows, three rows or multiple rows of data to be called, and at the same time, the data to be called in the table may be increased or decreased in any row.
The date selector is used in the development of a use-based Vue framework to facilitate the user's dynamic selection of a desired, formatted date (time) or date (time) range.
In this embodiment, the date selector is nested in the table, that is, the date selector is nested in each row of data to be called, one date selector is set at the start time of each row of data to be called, and one date selector is set at the end time.
Specifically, index is used as an index of a row in the table, index is clicked to call the data to be called through the date selector, so that the data to be called in the row in the data to be called bound by the table is processed, the date selection range of the data to be called in the row or the date selector related to the data to be called in other rows is controlled, the data to be called bound in the row in the table is obtained through index, and the date selection range of the date selector is limited through the association relation of the date selector. On the basis of the above, the date selection range of the plurality of date selectors in the table capable of increasing and decreasing rows is limited by dynamically acquiring index.
It can be understood that 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 can limit the date selection range through index, so that the start time and the end time of each row of data to be called can be dynamically adjusted.
S120, associating a date selector corresponding to the starting date of the current line of data to be called with a date selector corresponding to the ending date of the previous line of data to be called, and associating the date selector corresponding to the ending date of the current line of data to be called with a date selector corresponding to the starting date of the next line of data to be called.
It can be understood that, if the data to be called in the front line is the data to be called in the front line, the starting date of the data to be called in the front line may be selected by a person skilled in the art according to the actual situation, alternatively, the starting date of the data to be called in the front line may be a date selection range after the current date and including the current date, the starting date of the data to be called in the front line may be a date selection range, and the starting date of the data to be called in the front line may also be a certain date selection range preset by a person skilled in the art.
And if the current line of data to be called is the first line of data to be called, associating the date selector corresponding to the ending date of the first line of data to be called with the date selector corresponding to the starting date of the next line of data to be called.
Similarly, if the current line of data to be called is the last line of data to be called, the date selector corresponding to the starting date of the last line of data to be called is associated with the date selector corresponding to the starting date of the last line of data to be called.
If the current data to be called is the last data to be called, the end date of the last data to be called may be selected by a person skilled in the art according to the actual situation, alternatively, the end date of the last data to be called may be a date selection range after the current date and including the current date, the end date of the last data to be called may be a date selection range, and the end date of the last data to be called may be a certain date selection range preset by a person skilled in the art.
In order to dynamically realize the increase and decrease of the data to be called in the table, so as to limit the date selection range of the plurality of date selectors, specifically, in one embodiment, if a row of added row of data to be called is added before the current row of data to be called; associating a date selector corresponding to the start date of the data to be called of the added row with a date selector corresponding to the end date of the data to be called of the previous row, and associating the date selector corresponding to the end date of the data to be called of the added row with a date selector corresponding to the start date of the data to be called of the current row.
In another embodiment, if a row of data to be called is added after the current row of data to be called; associating the date selector corresponding to the start date of the line of data to be called with the date selector corresponding to the end date of the current line of data to be called, and associating the date selector corresponding to the end date of the line of data to be called with the date selector corresponding to the start date of the next line of data to be called.
For example, because of the increase or decrease of the data to be called in the table, the i-1, i, i+1 rows are used to replace the adjacent three row numbers, that is, the previous row of data to be called in the application is the i-1 row of data to be called, the current row of data to be called is the i row of data to be called, the next row of data to be called is the i+1 row of data to be called, two date selectors associated with each other exist in each row, namely, the date selector c1 is the date selector corresponding to the start date of each row of data to be called, the date selector c2 is the date selector corresponding to the end date of each row of data to be called, and the date relation of the adjacent three rows of data to be called is: (i-1) c1 earlier than (i-1) c2 earlier than ic1 earlier than ic2 earlier than (i+1) c1 earlier than (i+1) c2.
It can be understood that the invention associates date selectors in the table with intermediate values, and can control all the date selectors in the table only by one code, and the invention can also be used when the table is dynamically increased or decreased, thereby greatly enhancing the universality.
It should be noted that, because the number of rows of the data to be called in the table can be dynamically increased or decreased, the method can be set according to the control method of the date selector for all rows of the data to be called in the table, that is, the date selector appears regularly in each row of the data to be called in all tables and the date selectable ranges of the date selector are associated, for example, the date selector appears regularly in each row of 1 st, 2 nd, 3 … … th and the date selectable ranges of the date selector are associated; the above method for controlling the date selector may be set for the data to be called in a specific row in the table, that is, the data to be called in the specific row in all tables regularly appears in the date selector and the date selectable ranges of the date selector are associated, alternatively, the data to be called in the specific row may be the data to be called in the form of odd rows, even rows or every other row in the table, and the specific form of the specific row is not limited in this embodiment, for example, 1, 3, 5, … … each time the date selector appears in the odd rows regularly and the date selectable ranges of the date selector are associated.
S130, determining a date selection range of a date selector corresponding to the start date of the current line of data to be called according to the end date of the last line of data to be called, and determining the date selection range of the date selector corresponding to the end date of the current line of data to be called according to the start date of the next line of data to be called.
Specifically, a date selection range which is after the start date of the current line of data to be called and contains the start date of the current line of data to be called is used as a date selection range of a date selector corresponding to the end date of the current line of data to be called.
For example, referring to FIG. 2, when the start date of the current line of data to be invoked is 2022/04/04, then the end date of the current line of data to be invoked may be a date selection range that follows the start date 2022/04/04 and contains the start date 2022/04/04.
It will be appreciated that with continued reference to fig. 2, a start date 2022/04/04 of the current line of data to be invoked may be considered as the first line of data to be invoked, and that this start date 2022/04/04 may be chosen by one of ordinary skill in the art according to the actual circumstances.
In an embodiment, a date selection range after a set time interval after the start date of the current line of data to be called is used as a date selection range of a date selector corresponding to the end date of the current line of data to be called.
Illustratively, with continued reference to fig. 2, when the start date of the current line to call data is 2022/04/04, then the end date of the current line to call data may be a date selection range after a set time interval after the start date of the current line to call data, alternatively, the end date of the current line to call data may be 2022/04/12 or 2022/04/18, etc. without any limitation in this embodiment.
Specifically, in order to limit the selectable ranges of all other date selectors associated with the date selector of the current line of data to be called in the table, the date selection range which is after the end date of the last line of data to be called and contains the end date of the last line of data to be called is used as the date selection range of the date selector corresponding to the start date of the current line of data to be called; and taking the date selection range which is before the starting date of the data to be called in the next row and contains the starting date of the data to be called in the next row as the date selection range of the date selector corresponding to the ending date of the data to be called in the current row.
For example, referring to fig. 3, if the last line of data to be called has an end date of 2022/04/12, the date after 2022/04/12 and including 2022/04/12 is taken as the date selection range of the date selector corresponding to the start date of the current line of data to be called.
In an embodiment, taking a date selection range after a set time interval after the ending date of the data to be called in the previous line as a date selection range of a date selector corresponding to the starting date of the data to be called in the current line; and taking the date selection range before the set time interval before the starting date of the data to be called in the next row as the date selection range of the date selector corresponding to the ending date of the data to be called in the current row.
The setting time interval may be selected and set by a person skilled in the art according to actual requirements, which is not limited in this embodiment.
Illustratively, with continued reference to FIG. 3, the last line of data to be invoked has an end date 2022/04/12, and the set time interval may be set for five days, seven days, or more, as this embodiment is not limiting. Taking the setting time interval of five days as an example, the date after 2022/04/17 and including 2022/04/17 is taken as the date selection range of the date selector corresponding to the starting date of the data to be called in the current line.
It should be noted that, with continued reference to fig. 2 and 3, the date selection range that does not conform to the date selector may be left unselected, thereby implementing direct limitation of the selectable time range of the date selector.
In addition, after the start date and the end date of the current line to be called data are determined, the start date and the end date of the current line to be called data can be verified, whether the start date and the end date of the current line to be called data selected currently are consistent with the requirements of the date selector of the related previous line and next line to be called data or not is determined, if yes, the start date and the end date of the current line to be called data are determined to be selected, and if not, the start date and the end date of the selected current line to be called data are cleared.
According to the technical scheme, a plurality of rows of data to be called in the table are obtained, and a date selector corresponding to the start date and a date selector corresponding to the end date of each row of data to be called are respectively determined; associating a date selector corresponding to the starting date of the current line of data to be called with a date selector corresponding to the ending date of the previous line of data to be called, and associating the date selector corresponding to the ending date of the current line of data to be called with a date selector corresponding to the starting date of the next line of data to be called; determining a date selection range of a date selector corresponding to the starting date of the data to be called in the current line according to the ending date of the data to be called in the previous line, and determining the date selection range of the date selector corresponding to the ending date of the data to be called in the current line according to the starting date of the data to be called in the next line. The invention solves the problem that the general method can not be limited on the date selection range of the known date selector under the condition that the number of the table rows can be dynamically increased or decreased, realizes the dynamic control on the date selection range of the date selector in the table, improves the table operation efficiency and has wide application range.
Example two
Fig. 4 is a schematic structural diagram of a control device based on a plurality of association date selectors according to a third embodiment of the present invention. As shown in fig. 4, the control device based on a plurality of association date selectors includes:
a date selector determining module 410, configured to perform obtaining a plurality of rows of data to be called in the table, and determine a date selector corresponding to a start date and a date selector corresponding to an end date of each row of data to be called respectively;
a date selector association module 420, configured to associate a date selector corresponding to a start date of the current line of data to be called with a date selector corresponding to an end date of the previous line of data to be called, and associate a date selector corresponding to an end date of the current line of data to be called with a date selector corresponding to a start date of the next line of data to be called;
the date selection range determining module 430 is configured to determine a date selection range of the date selector corresponding to the start date of the current line of data to be called according to the end date of the previous line of data to be called, and determine a date selection range of the date selector corresponding to the end date of the current line of data to be called according to the start date of the next line of data to be called.
Optionally, the determining, according to the ending date of the last line of data to be called, the date selection range of the date selector corresponding to the starting date of the current line of data to be called includes:
taking a date selection range which is after the ending date of the last line of data to be called and contains the ending date of the last line of data to be called as a date selection range of a date selector corresponding to the starting date of the current line of data to be called;
determining a date selection range of a date selector corresponding to the ending date of the data to be called in the current line according to the starting date of the data to be called in the next line, wherein the method comprises the following steps:
and taking the date selection range which is before the starting date of the data to be called in the next row and contains the starting date of the data to be called in the next row as the date selection range of the date selector corresponding to the ending date of the data to be called in the current row.
Optionally, the determining, according to the ending date of the last line of data to be called, the date selection range of the date selector corresponding to the starting date of the current line of data to be called includes:
taking a date selection range after a set time interval after the ending date of the data to be called in the previous line as a date selection range of a date selector corresponding to the starting date of the data to be called in the current line;
determining a date selection range of a date selector corresponding to the ending date of the data to be called in the current line according to the starting date of the data to be called in the next line, wherein the method comprises the following steps:
and taking the date selection range before the set time interval before the starting date of the data to be called in the next row as the date selection range of the date selector corresponding to the ending date of the data to be called in the current row.
Optionally, the control device based on the plurality of association date selectors further includes:
and the first line to-be-called data control module is used for executing the association between the date selector corresponding to the ending date of the first line to-be-called data and the date selector corresponding to the starting date of the next line to-be-called data corresponding to the first line to-be-called data if the current line to-be-called data is the first line to-be-called data.
Optionally, the control device based on the plurality of association date selectors further includes:
the added line to-be-called data module is used for executing adding the added line to-be-called data before the current line to-be-called data;
the adding association module is used for associating the date selector corresponding to the starting date of the adding line of the data to be called with the date selector corresponding to the ending date of the previous line of the data to be called, and associating the date selector corresponding to the ending date of the adding line of the data to be called with the date selector corresponding to the starting date of the current line of the data to be called.
Optionally, the control device based on the plurality of association date selectors further includes:
the first current line data to be called end date selection module is used for executing a date selection range which is after the start date of the current line data to be called and contains the start date of the current line data to be called and is used as a date selection range of a date selector corresponding to the end date of the current line data to be called.
Optionally, the control device based on the plurality of association date selectors further includes:
the second current line data to be called end date selection module is used for executing a date selection range after a set time interval after the start date of the current line data to be called as a date selection range of a date selector corresponding to the end date of the current line data to be called.
The control device based on the plurality of association date selectors provided by the embodiment of the invention can execute the control method based on the plurality of association date selectors provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the control method based on the plurality of association date selectors.
Example III
Fig. 5 shows a schematic diagram of an electronic device 510 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 510 includes at least one processor 511, and a memory communicatively connected to the at least one processor 511, such as a Read Only Memory (ROM) 512, a Random Access Memory (RAM) 513, etc., in which the memory stores computer programs executable by the at least one processor, and the processor 511 may perform various suitable actions and processes according to the computer programs stored in the Read Only Memory (ROM) 512 or the computer programs loaded from the storage unit 518 into the Random Access Memory (RAM) 513. In the RAM 513, various programs and data required for the operation of the electronic device 510 can also be stored. The processor 511, the ROM 512, and the RAM 513 are connected to each other by a bus 514. An input/output (I/O) interface 515 is also connected to bus 514.
Various 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, and the like; a storage unit 518 such as a magnetic disk, optical disk, etc.; and a communication unit 519 such as a network card, modem, wireless communication transceiver, or the like. 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 telecommunications networks.
The processor 511 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 511 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 511 performs the respective methods and processes described above, for example, a control method based on a plurality of associated date selectors.
In some embodiments, the control method based on the plurality of associated date selectors may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 518. In some embodiments, some or all of the computer program may be loaded and/or installed onto the electronic device 510 via the ROM 512 and/or the communication unit 519. When the computer program is loaded into RAM 513 and executed by processor 511, one or more steps of the control method based on a plurality of associated date selectors described above may be performed. Alternatively, in other embodiments, processor 511 may be configured to perform a control method based on a plurality of associated date selectors in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out 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, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A control method based on a plurality of associated date selectors, comprising:
acquiring a plurality of lines of data to be called in a table, and respectively determining a date selector corresponding to the start date and a date selector corresponding to the end date of each line of data to be called;
associating a date selector corresponding to the starting date of the current line of data to be called with a date selector corresponding to the ending date of the previous line of data to be called, and associating the date selector corresponding to the ending date of the current line of data to be called with a date selector corresponding to the starting date of the next line of data to be called;
determining a date selection range of a date selector corresponding to the starting date of the data to be called in the current line according to the ending date of the data to be called in the previous line, and determining the date selection range of the date selector corresponding to the ending date of the data to be called in the current line according to the starting date of the data to be called in the next line.
2. The method according to claim 1, wherein determining a date selection range of the date selector corresponding to a start date of the current line of data to be called according to an end date of the previous line of data to be called comprises:
taking a date selection range which is after the ending date of the last line of data to be called and contains the ending date of the last line of data to be called as a date selection range of a date selector corresponding to the starting date of the current line of data to be called;
determining a date selection range of a date selector corresponding to the ending date of the data to be called in the current line according to the starting date of the data to be called in the next line, wherein the method comprises the following steps:
and taking the date selection range which is before the starting date of the data to be called in the next row and contains the starting date of the data to be called in the next row as the date selection range of the date selector corresponding to the ending date of the data to be called in the current row.
3. The method according to claim 1, wherein determining a date selection range of the date selector corresponding to a start date of the current line of data to be called according to an end date of the previous line of data to be called comprises:
taking a date selection range after a set time interval after the ending date of the data to be called in the previous line as a date selection range of a date selector corresponding to the starting date of the data to be called in the current line;
determining a date selection range of a date selector corresponding to the ending date of the data to be called in the current line according to the starting date of the data to be called in the next line, wherein the method comprises the following steps:
and taking the date selection range before the set time interval before the starting date of the data to be called in the next row as the date selection range of the date selector corresponding to the ending date of the data to be called in the current row.
4. The method according to claim 1, further comprising, before associating a date selector corresponding to a start date of the current line of data to be called with a date selector corresponding to an end date of the previous line of data to be called:
and if the current line of data to be called is the first line of data to be called, associating the date selector corresponding to the ending date of the first line of data to be called with the date selector corresponding to the starting date of the next line of data to be called.
5. The method of claim 1, further comprising:
adding added line data to be called before the current line data to be called;
associating a date selector corresponding to the start date of the data to be called of the added row with a date selector corresponding to the end date of the data to be called of the previous row, and associating the date selector corresponding to the end date of the data to be called of the added row with a date selector corresponding to the start date of the data to be called of the current row.
6. The method of claim 1, further comprising:
and taking the date selection range which is after the start date of the current line of data to be called and contains the start date of the current line of data to be called as the date selection range of the date selector corresponding to the end date of the current line of data to be called.
7. The method of claim 1, further comprising:
and taking the date selection range after a set time interval after the starting date of the current line of data to be called as the date selection range of the date selector corresponding to the ending date of the current line of data to be called.
8. A control device based on a plurality of associated date selectors, comprising:
the date selector determining module is used for executing the acquisition of a plurality of lines of data to be called in the table, and respectively determining a date selector corresponding to the start date and a date selector corresponding to the end date of each line of data to be called;
the date selector association module is used for associating a date selector corresponding to the start date of the current line of data to be called with a date selector corresponding to the end date of the previous line of data to be called, and associating the date selector corresponding to the end date of the current line of data to be called with a date selector corresponding to the start date of the next line of data to be called;
the date selection range determining module is used for determining the date selection range of the date selector corresponding to the starting date of the current line of data to be called according to the ending date of the last line of data to be called, and determining the date selection range of the date selector corresponding to the ending date of the current line of data to be called according to the starting date of the next line of data to be called.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of controlling a plurality of associated date selectors according to any of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the method of controlling a plurality of associated date selectors according to any of claims 1-7 when executed.
CN202211603560.7A 2022-12-13 2022-12-13 Control method and device based on multiple associated date selectors and electronic equipment Pending CN116126296A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211603560.7A CN116126296A (en) 2022-12-13 2022-12-13 Control method and device based on multiple associated date selectors and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211603560.7A CN116126296A (en) 2022-12-13 2022-12-13 Control method and device based on multiple associated date selectors and electronic equipment

Publications (1)

Publication Number Publication Date
CN116126296A true CN116126296A (en) 2023-05-16

Family

ID=86296442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211603560.7A Pending CN116126296A (en) 2022-12-13 2022-12-13 Control method and device based on multiple associated date selectors and electronic equipment

Country Status (1)

Country Link
CN (1) CN116126296A (en)

Similar Documents

Publication Publication Date Title
CN112597754B (en) Text error correction method, apparatus, electronic device and readable storage medium
CN114816578A (en) Method, device and equipment for generating program configuration file based on configuration table
CN114564149B (en) Data storage method, device, equipment and storage medium
CN116126719A (en) Interface testing method and device, electronic equipment and storage medium
CN116126296A (en) Control method and device based on multiple associated date selectors and electronic equipment
CN115438007A (en) File merging method and device, electronic equipment and medium
CN113486229B (en) Control method and device for grabbing pressure, electronic equipment and readable storage medium
CN115309730A (en) Data auditing method and device, electronic equipment and storage medium
CN114756468A (en) Test data creating method, device, equipment and storage medium
CN114706610A (en) Business flow chart generation method, device, equipment and storage medium
CN115202538B (en) Menu configuration method and device, electronic equipment and storage medium
CN116468824B (en) Animation redirection method, device, electronic equipment and storage medium
CN117763619A (en) Data desensitization method, device, equipment and medium
CN114428646B (en) Data processing method and device, electronic equipment and storage medium
CN114371889B (en) Event configuration method, device, electronic equipment and storage medium
CN117171206A (en) Query method, query device, electronic equipment and storage medium
CN114595231A (en) Database table generation method and device, electronic equipment and storage medium
CN117472774A (en) Interface testing method, device, electronic equipment and storage medium
CN116627097A (en) Process recipe management method and device, production equipment system and storage medium
CN116954922A (en) Distributed storage method, device, equipment and medium
CN116801001A (en) Video stream processing method and device, electronic equipment and storage medium
CN117421082A (en) Control display control method and device, electronic equipment and storage medium
CN116485130A (en) Method and device for generating procedure scheduling plan, electronic equipment and storage medium
CN117873452A (en) Static variable management method, device, electronic equipment and storage medium
CN116595961A (en) Column setting method and device of table, computer equipment and medium

Legal Events

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