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
fa2e3ad0
Commit
fa2e3ad0
authored
5 years ago
by
liang ce
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.roboming.com/fengzhaoyu/schedule
into dev
parents
552fdd2d
f2b11c05
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
index.js
pages/index/index.js
+5
-3
No files found.
pages/index/index.js
View file @
fa2e3ad0
...
@@ -361,7 +361,6 @@ create.Page({
...
@@ -361,7 +361,6 @@ create.Page({
}
}
}
}
}
}
if
(
DateMap
.
has
(
toLocaleDateString
(
startTime
)))
{
if
(
DateMap
.
has
(
toLocaleDateString
(
startTime
)))
{
DateMap
.
get
(
toLocaleDateString
(
startTime
)).
push
(
pushItem
);
DateMap
.
get
(
toLocaleDateString
(
startTime
)).
push
(
pushItem
);
}
}
...
@@ -394,10 +393,12 @@ create.Page({
...
@@ -394,10 +393,12 @@ create.Page({
const
initialTimeList
=
item
.
initialTime
.
split
(
"-"
);
const
initialTimeList
=
item
.
initialTime
.
split
(
"-"
);
const
startTimeList
=
item
.
startTime
.
split
(
":"
);
const
startTimeList
=
item
.
startTime
.
split
(
":"
);
const
DTSTART
=
`
${
initialTimeList
[
0
]}${
initialTimeList
[
1
]}${
initialTimeList
[
2
]}
T
${
startTimeList
[
0
]}${
startTimeList
[
1
]}
00Z`
;
const
DTSTART
=
`
${
initialTimeList
[
0
]}${
initialTimeList
[
1
]}${
initialTimeList
[
2
]}
T
${
startTimeList
[
0
]}${
startTimeList
[
1
]}
00Z`
;
const
rule
=
RRule
.
fromString
(
let
rule
=
{
all
:
()
=>
[]
};
if
(
item
.
recurrenceModel
.
recurrenceRule
)
{
rule
=
RRule
.
fromString
(
`
${
item
.
recurrenceModel
.
recurrenceRule
}
;DTSTART=
${
DTSTART
}
`
`
${
item
.
recurrenceModel
.
recurrenceRule
}
;DTSTART=
${
DTSTART
}
`
);
);
}
const
setDateMapValueAll
=
(
startTime
,
endTime
,
item
)
=>
{
const
setDateMapValueAll
=
(
startTime
,
endTime
,
item
)
=>
{
//如果有日程会议则用日程会议替换
//如果有日程会议则用日程会议替换
let
replaceItem
=
[];
let
replaceItem
=
[];
...
@@ -418,6 +419,7 @@ create.Page({
...
@@ -418,6 +419,7 @@ create.Page({
};
};
// 需要剔除某一天
// 需要剔除某一天
if
(
item
.
excludePlanDates
)
{
if
(
item
.
excludePlanDates
)
{
const
excludeData
=
getExcludeDate
(
item
.
excludePlanDates
.
split
(
","
));
const
excludeData
=
getExcludeDate
(
item
.
excludePlanDates
.
split
(
","
));
rule
.
all
().
forEach
(
startTime
=>
{
rule
.
all
().
forEach
(
startTime
=>
{
//修正时间(时间有8小时时差)
//修正时间(时间有8小时时差)
...
...
This diff is collapsed.
Click to expand it.
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