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
dcb9c063
Commit
dcb9c063
authored
Mar 31, 2020
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 编辑
parent
bdb33035
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
15 deletions
+23
-15
scheduleList.js
PageComponents/scheduleList/scheduleList.js
+13
-10
createMeeting.js
pages/createMeeting/createMeeting.js
+2
-0
editMeeting.js
pages/editMeeting/editMeeting.js
+8
-5
No files found.
PageComponents/scheduleList/scheduleList.js
View file @
dcb9c063
...
...
@@ -6,8 +6,12 @@ import {
getCurrentMonthLast
,
throttle
}
from
"../../utils/utils"
;
Component
({
import
create
from
'dd-store'
import
exampleStore
from
'/stores/exampleStore'
create
.
Component
({
mixins
:
[],
store
:
exampleStore
,
useAll
:
true
,
data
:
{
response
:
""
,
scheduleList
:
[],
...
...
@@ -31,13 +35,14 @@ Component({
},
didUpdate
()
{
if
(
this
.
props
.
update
)
{
this
.
store
.
data
.
indexNeedUpdate
=
false
;
this
.
update
();
this
.
getDate
();
}
},
didUnmount
()
{},
didUnmount
()
{
},
methods
:
{
getDate
()
{
// 页面显示
getDate
:
throttle
(
function
(
e
)
{
let
data
=
{
startTime
:
"2020-01-01 00:00:00"
,
endTime
:
"2025-12-30 23:59:59"
...
...
@@ -56,7 +61,6 @@ Component({
scheduleList
.
push
(
that
.
returnScheduleList
(
2019
+
i
));
}
// 第一次加载
if
(
this
.
data
.
isFirstLoad
)
{
const
today
=
new
Date
();
// finalDate 是用来定位到今天的
const
finalDate
=
new
Date
(
today
);
...
...
@@ -71,11 +75,10 @@ Component({
isFirstLoad
:
false
});
}
}
);
});
},
nextDetail
:
throttle
(
function
(
e
)
{
},
1000
),
nextDetail
:
throttle
(
function
(
e
)
{
let
item
=
e
.
target
.
dataset
.
item
;
dd
.
navigateTo
({
url
:
`./../editMeeting/editMeeting?scheduleItem=
${
JSON
.
stringify
(
item
)}
`
...
...
@@ -212,7 +215,7 @@ Component({
);
}
});
scheduleMap
.
forEach
(
function
(
value
,
key
,
map
)
{
scheduleMap
.
forEach
(
function
(
value
,
key
,
map
)
{
scheduleList
.
push
(
value
);
});
return
scheduleList
;
...
...
@@ -350,7 +353,7 @@ Component({
value
:
year
});
let
thisDay
=
new
Date
().
toLocaleDateString
();
DateMap
.
forEach
(
function
(
value
,
key
,
map
)
{
DateMap
.
forEach
(
function
(
value
,
key
,
map
)
{
if
(
new
Date
(
key
).
getDay
()
===
0
&&
that
.
count
(
...
...
pages/createMeeting/createMeeting.js
View file @
dcb9c063
...
...
@@ -340,6 +340,8 @@ create.Page({
addSchedule
(
data
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
code
===
0
)
{
this
.
store
.
data
.
indexNeedUpdate
=
true
this
.
update
()
dd
.
navigateBack
({
delta
:
1
})
...
...
pages/editMeeting/editMeeting.js
View file @
dcb9c063
...
...
@@ -139,7 +139,7 @@ create.Page({
let
data
=
{
id
:
this
.
data
.
scheduleItem
.
id
,
scheduleTemplateId
:
this
.
data
.
scheduleItem
.
scheduleTemplateId
,
planDate
:
this
.
data
.
scheduleItem
.
planDate
.
replace
(
/
\/
/g
,
'-'
)
planDate
:
this
.
data
.
scheduleItem
.
planDate
}
getScheduleDetail
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
...
...
@@ -152,10 +152,9 @@ create.Page({
participatorUserId
.
push
(
value
.
participator
.
userId
)
originUsers
.
push
(
value
.
participator
)
if
(
value
.
participator
.
userId
===
getApp
().
globalData
.
userid
)
{
// this.setData({
// aheadTimes: value.
// })
this
.
setData
({
aheadTimes
:
value
.
aheadList
})
}
}
for
(
let
item
of
this
.
data
.
comListData
.
repeatList
)
{
...
...
@@ -556,6 +555,8 @@ create.Page({
'conToastData.showToast'
:
true
,
'conToastData.title'
:
'保存成功'
})
this
.
store
.
data
.
indexNeedUpdate
=
true
this
.
update
()
if
(
this
.
store
.
data
.
originalData
.
repeatable
===
1
)
{
observer
.
notice
(
res
.
data
.
data
)
}
...
...
@@ -709,6 +710,8 @@ create.Page({
planDate
:
this
.
data
.
scheduleItem
.
planDate
}
deleteSchedule
(
data
).
then
(
res
=>
{
this
.
store
.
data
.
indexNeedUpdate
=
true
this
.
update
()
dd
.
navigateBack
({
delta
:
1
})
...
...
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