日历选时间快速添加任务
This commit is contained in:
parent
db6114a4ee
commit
15cf7800a4
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "DooTask",
|
||||
"version": "0.5.56",
|
||||
"version": "0.5.58",
|
||||
"description": "DooTask is task management system.",
|
||||
"main": "main.js",
|
||||
"license": "MIT",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "DooTask",
|
||||
"version": "0.5.56",
|
||||
"version": "0.5.58",
|
||||
"description": "DooTask is task management system.",
|
||||
"scripts": {
|
||||
"start": "./cmd dev",
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
public/js/build/258.js
Normal file
2
public/js/build/258.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -281,9 +281,16 @@ export default {
|
||||
return currentDate.format(format);
|
||||
},
|
||||
|
||||
onBeforeCreateSchedule({start, end, guide}) {
|
||||
onBeforeCreateSchedule({start, end, isAllDay, guide}) {
|
||||
if (isAllDay || this.calendarView == 'month') {
|
||||
start = $A.date2string(start.toDate(), "Y-m-d 00:00:00")
|
||||
end = $A.date2string(end.toDate(), "Y-m-d 23:59:59")
|
||||
} else {
|
||||
start = $A.date2string(start.toDate(), "Y-m-d H:i:s")
|
||||
end = $A.date2string(end.toDate(), "Y-m-d H:i:s")
|
||||
}
|
||||
Store.set('addTask', {
|
||||
times: [start.toDate(), end.toDate()],
|
||||
times: [start, end],
|
||||
owner: this.userId,
|
||||
beforeClose: () => {
|
||||
guide.clearGuideElement();
|
||||
|
Loading…
x
Reference in New Issue
Block a user