Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
schedule
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
schedule
Commits
de8acb25
Commit
de8acb25
authored
Apr 01, 2020
by
xiexiaoqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: repeat click and timepicker nan
parent
3f31812d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
meetingTimePicker.js
components/meetingTimePicker/meetingTimePicker.js
+5
-1
taskPanel.acss
components/taskPanel/taskPanel.acss
+3
-2
taskPanel.js
components/taskPanel/taskPanel.js
+5
-3
No files found.
components/meetingTimePicker/meetingTimePicker.js
View file @
de8acb25
...
...
@@ -66,6 +66,7 @@ function getPostTimeByDate(date) {
}
function
getPickerValue
(
date
)
{
const
res
=
getYMDWHMIN
(
date
);
return
[
timeData
.
indexOf
(
res
.
y
+
"年"
+
res
.
m
+
"月"
+
res
.
d
+
"日 "
+
res
.
w
),
timeHour
.
indexOf
(
res
.
h
),
timeMin
.
indexOf
(
res
.
min
)];
}
// 将周几转换为今天,明天, 昨天
...
...
@@ -238,7 +239,10 @@ Component({
},
onChange
(
e
)
{
const
pickValue
=
e
.
detail
.
value
;
console
.
log
(
pickValue
)
//开始时间的分钟数必须是5的倍数才对的上
if
(
pickValue
.
includes
(
-
1
))
{
pickValue
[
pickValue
.
indexOf
(
-
1
)]
=
0
}
if
(
this
.
data
.
currentTab
===
'start'
)
{
const
startDate
=
getDateByPickValue
(
pickValue
);
this
.
changeStart
(
startDate
,
pickValue
);
...
...
components/taskPanel/taskPanel.acss
View file @
de8acb25
...
...
@@ -74,8 +74,9 @@
}
.edit-column>.checkbox {
width: 32rpx;
height: 32rpx;
width: 32rpx!important;
height: 32rpx!important;
line-height: 32rpx!important;
}
.margin-bottom {
...
...
components/taskPanel/taskPanel.js
View file @
de8acb25
import
create
from
'dd-store'
;
import
pageStore
from
'../../pages/meetingDetail/store'
;
import
{
debounce
}
from
'../../utils/utils'
;
import
{
debounce
,
throttle
}
from
'../../utils/utils'
;
create
.
Component
({
store
:
pageStore
,
mixins
:
[],
...
...
@@ -46,13 +46,15 @@ create.Component({
}
},
//新建才有完成按钮
complete
()
{
complete
:
throttle
(
function
()
{
const
{
currentTask
}
=
this
.
store
.
data
;
if
(
!
currentTask
.
taskInfos
)
{
return
}
this
.
props
.
onComplete
()
},
}
,
1000
),
//删除任务
handleDelete
()
{
dd
.
confirm
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment