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
179c66db
Commit
179c66db
authored
Apr 02, 2020
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
冲突解决
parent
9c558144
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
26 deletions
+2
-26
scheduleList.js
PageComponents/scheduleList/scheduleList.js
+2
-26
No files found.
PageComponents/scheduleList/scheduleList.js
View file @
179c66db
...
...
@@ -66,24 +66,10 @@ create.Component({
}
// 第一次加载
const
today
=
new
Date
();
// finalDate 是用来定位到今天的
const
finalDate
=
new
Date
(
today
);
// finalDate.setDate(today.getDate() - today.getDay())
// <<<<<<< HEAD
// that.setData({
// scheduleList: scheduleList,
// todayStr: finalDate.toLocaleDateString(),
// thisYear: year,
// maxYear: year,
// canClick: true,
// startPageOnShow: true,
// isFirstLoad: false
// });
// =======
that
.
setData
(
{
scheduleList
:
scheduleList
,
todayStr
:
finalDate
.
toLocaleDateString
(),
todayStr
:
today
.
toLocaleDateString
(),
thisYear
:
year
,
maxYear
:
year
},
...
...
@@ -91,7 +77,6 @@ create.Component({
console
.
log
(
new
Date
().
getTime
());
}
);
// >>>>>>> 8548e2b26ad549008cdd8c9e5e2bf83d67124e7d
}
);
});
...
...
@@ -176,16 +161,7 @@ create.Component({
let
rule
=
RRule
.
fromString
(
`
${
item
.
recurrenceModel
.
recurrenceRule
}
;DTSTART=
${
DTSTART
}
`
);
// rule.options.tzid = "Asia/Hong_Kong";
// 改变时区
// <<<<<<< HEAD
// let rullAll = rule.all()
// rule.all().map(item => {
// console.log(item.toLocaleDateString())
// })
// =======
// >>>>>>> 8548e2b26ad549008cdd8c9e5e2bf83d67124e7d
rule
.
options
.
tzid
=
"Asia/Hong_Kong"
;
// 判断是否需要剔除某一天
if
(
item
.
excludePlanDates
)
{
// 拿到剔除日期的list
...
...
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