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
dca9352c
Commit
dca9352c
authored
Dec 19, 2019
by
baixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
db788868
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
index.html
index.html
+1
-1
ChangeCourse.js
src/pages/classdetail/ChangeCourse.js
+9
-2
No files found.
index.html
View file @
dca9352c
...
...
@@ -18,6 +18,6 @@
</head>
<body>
<div
id=
"root"
></div>
<script
src=
"dist/main.js?1576
63324477
0"
charset=
"utf-8"
></script>
<script
src=
"dist/main.js?1576
72660111
0"
charset=
"utf-8"
></script>
</body>
</html>
\ No newline at end of file
src/pages/classdetail/ChangeCourse.js
View file @
dca9352c
...
...
@@ -17,7 +17,7 @@ class ChangeCourse extends React.Component {
form
,
changeScheduleIndex
,
closeChangeSchedule
,
sureAdjustCourse
,
}
=
this
.
props
;
if
(
changeScheduleIndex
==
2
)
{
closeChangeSchedule
();
this
.
closeChangeSchedule
();
}
else
{
e
.
preventDefault
();
form
.
validateFields
((
err
,
values
)
=>
{
...
...
@@ -31,6 +31,13 @@ class ChangeCourse extends React.Component {
// Can not select days before today and today
return
current
&&
current
<
moment
(
new
Date
(
new
Date
().
getTime
()
-
(
24
*
3600
*
1000
)));
}
closeChangeSchedule
=
()
=>
{
const
{
closeChangeSchedule
,
form
,
changeScheduleIndex
}
=
this
.
props
;
closeChangeSchedule
();
if
(
changeScheduleIndex
===
1
)
{
form
.
resetFields
();
}
}
render
()
{
const
{
visible
,
...
...
@@ -91,7 +98,7 @@ class ChangeCourse extends React.Component {
visible
=
{
changeScheduleShow
}
title
=
"调整课次"
okText
=
"确定"
onCancel
=
{
closeChangeSchedule
}
onCancel
=
{
this
.
closeChangeSchedule
}
onOk
=
{
this
.
sureAdjustCourse
}
className
=
"courseplanmodal"
confirmLoading
=
{
scheduleUpdateSubmitting
}
...
...
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