Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
Project
Project
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
wangxuelai
biz.qingxiao.com
Commits
06dc9ae6
Commit
06dc9ae6
authored
Mar 04, 2020
by
baixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化日历点评天数
parent
53d6cd7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
index.html
index.html
+1
-1
clockmgt.js
src/models/clockmgt.js
+2
-1
No files found.
index.html
View file @
06dc9ae6
...
...
@@ -18,5 +18,5 @@
</head>
<body>
<div
id=
"root"
></div>
<script
type=
"text/javascript"
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/main.
1a6a46
.js"
></script></body>
<script
type=
"text/javascript"
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/main.
0f4df0
.js"
></script></body>
</html>
\ No newline at end of file
src/models/clockmgt.js
View file @
06dc9ae6
import
{
routerRedux
}
from
'dva/router'
;
import
{
message
,
Modal
}
from
'antd'
;
import
moment
from
'moment'
;
import
{
delay
}
from
'redux-saga'
;
import
*
as
uploader
from
'../services/uploader'
;
import
*
as
thememgtajax
from
'../services/thememgt'
;
...
...
@@ -1662,7 +1663,7 @@ export default {
});
setTimeout
(
loadmessage
);
if
(
themeDetailData
.
code
==
200
&&
themeDetailData
.
data
)
{
newcalendarDays
=
getBetweenDays
(
themeDetailData
.
data
.
calendar_set
.
start_time
,
themeDetailData
.
data
.
calendar_set
.
end_time
);
newcalendarDays
=
getBetweenDays
(
moment
(
themeDetailData
.
data
.
calendar_set
.
start_time
).
format
(
'YYYY-MM-DD 00:00'
),
moment
(
themeDetailData
.
data
.
calendar_set
.
end_time
).
format
(
'YYYY-MM-DD 00:00'
)
);
const
newRestDays
=
[];
themeDetailData
.
data
.
calendar_set
.
rest_dates
.
split
(
','
).
forEach
((
ele
)
=>
{
const
dayArr
=
ele
.
split
(
'-'
).
map
((
e
,
index
)
=>
{
...
...
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