日历选时间快速添加任务
This commit is contained in:
@@ -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
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "DooTask",
|
||||
"version": "0.5.56",
|
||||
"version": "0.5.58",
|
||||
"description": "DooTask is task management system.",
|
||||
"scripts": {
|
||||
"start": "./cmd dev",
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-2
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
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();
|
||||
|
||||
Reference in New Issue
Block a user