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
d8fc342d
Commit
d8fc342d
authored
Dec 18, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'最新代码提交'
parent
75b41ed2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
4 deletions
+25
-4
PlanCourse.js
src/components/PlanCourse.js
+1
-1
plancourse.js
src/models/plancourse.js
+1
-1
index.js
src/pages/classdetail/index.js
+13
-1
index.js
src/pages/index/index.js
+10
-1
No files found.
src/components/PlanCourse.js
View file @
d8fc342d
...
...
@@ -383,7 +383,7 @@ class classRoomMgt extends React.Component {
<
Row
gutter
=
{
4
}
>
<
Col
span
=
{
13
}
>
{
getFieldDecorator
(
'teacher_id'
,
{
initialValue
:
rulePlanDetail
.
teacher_id
.
length
>
0
?
rulePlanDetail
.
teacher_id
:
schoolUserInfo
.
id
,
initialValue
:
rulePlanDetail
.
teacher_id
,
rules
:
[{
required
:
true
,
message
:
'请选择上课老师'
}],
})(
<
Select
style
=
{{
width
:
'100%'
}}
placeholder
=
"请选择上课老师"
>
...
...
src/models/plancourse.js
View file @
d8fc342d
...
...
@@ -32,7 +32,7 @@ export default {
end_date
:
''
,
is_repeat
:
1
,
week_day
:
''
,
teacher_id
:
[]
,
teacher_id
:
''
,
id
:
0
,
},
datePlanDetail
:
{
...
...
src/pages/classdetail/index.js
View file @
d8fc342d
...
...
@@ -865,7 +865,7 @@ class ClassDetailForm extends React.Component {
}
goPlanCourse
=
()
=>
{
const
{
dispatch
,
classDetail
,
classId
,
guideShow
,
dispatch
,
classDetail
,
classId
,
guideShow
,
rulePlanDetail
,
schoolUserInfo
,
}
=
this
.
props
;
if
(
guideShow
)
{
return
;
...
...
@@ -880,6 +880,10 @@ class ClassDetailForm extends React.Component {
classId
,
PlanCourseShow
:
true
,
edittype
:
'add'
,
rulePlanDetail
:
{
...
rulePlanDetail
,
teacher_id
:
schoolUserInfo
&&
schoolUserInfo
.
id
?
schoolUserInfo
.
id
:
''
,
},
classDetail
,
widthClassSelect
:
false
,
teacherList
:
classDetail
.
school_teachers
,
...
...
@@ -1918,6 +1922,12 @@ function mapStateToProps(state) {
const
{
guideShow
,
}
=
state
.
userguide
;
const
{
schoolUserInfo
,
}
=
state
.
webapp
;
const
{
rulePlanDetail
,
}
=
state
.
plancourse
;
return
{
classDetail
,
editClassModalShow
,
...
...
@@ -1968,6 +1978,8 @@ function mapStateToProps(state) {
addTimeSubmitting
,
courseTimeListShow
,
guideShow
,
rulePlanDetail
,
schoolUserInfo
,
};
}
export
default
connect
(
mapStateToProps
)(
ClassDetail
);
...
...
src/pages/index/index.js
View file @
d8fc342d
...
...
@@ -127,7 +127,9 @@ class StaticCenter extends React.Component {
return
current
>
moment
();
}
goPlanCourse
=
()
=>
{
const
{
dispatch
,
classId
}
=
this
.
props
;
const
{
dispatch
,
classId
,
rulePlanDetail
,
schoolUserInfo
,
}
=
this
.
props
;
dispatch
({
type
:
'plancourse/queryClassList'
,
});
...
...
@@ -138,6 +140,10 @@ class StaticCenter extends React.Component {
PlanCourseShow
:
true
,
edittype
:
'add'
,
widthClassSelect
:
true
,
rulePlanDetail
:
{
...
rulePlanDetail
,
teacher_id
:
schoolUserInfo
&&
schoolUserInfo
.
id
?
schoolUserInfo
.
id
:
''
,
},
},
});
}
...
...
@@ -1277,6 +1283,9 @@ function mapStateToProps(state) {
editClassModalShow
,
classSubmitting
,
}
=
state
.
classmgt
;
const
{
rulePlanDetail
,
}
=
state
.
plancourse
;
return
{
staticcenter
,
clockCharts
,
...
...
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