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
2dab8acd
Commit
2dab8acd
authored
Aug 17, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
9af7a0f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
index.js
src/pages/classdetail/index.js
+2
-2
RenewEdit.js
src/pages/student/RenewEdit.js
+7
-2
exportexcel.js
src/utils/exportexcel.js
+1
-1
No files found.
src/pages/classdetail/index.js
View file @
2dab8acd
...
...
@@ -1102,8 +1102,8 @@ class ClassDetailForm extends React.Component {
render
:
(
text
,
record
,
index
)
=>
{
return
(
<
div
>
{
(
record
.
gender
&&
record
.
gender
==
1
)
&&
'男
'
}
{
(
record
.
gender
&&
record
.
gender
==
2
)
&&
'女
'
}
{
record
.
gender
&&
record
.
gender
==
1
?
'男'
:
'
'
}
{
record
.
gender
&&
record
.
gender
==
2
?
'女'
:
'
'
}
{
!
record
.
gender
?
'-'
:
''
}
<
/div
>
);
...
...
src/pages/student/RenewEdit.js
View file @
2dab8acd
...
...
@@ -92,6 +92,11 @@ class RenewEdit extends React.Component {
searchCourseRelateClass
(
selectedCourse
.
id
||
0
);
}
}
close
=
()
=>
{
const
{
form
,
close
}
=
this
.
props
;
form
.
resetFields
();
close
();
}
render
()
{
const
{
visible
,
...
...
@@ -105,9 +110,9 @@ class RenewEdit extends React.Component {
return
(
<
Modal
visible
=
{
visible
}
title
=
"新增
班级
"
title
=
"新增
课程
"
okText
=
"确定"
onCancel
=
{()
=>
close
()}
onCancel
=
{()
=>
this
.
close
()}
onOk
=
{
this
.
renewCourse
}
className
=
"modifyclassModal"
zIndex
=
{
110
}
...
...
src/utils/exportexcel.js
View file @
2dab8acd
...
...
@@ -24,7 +24,7 @@ function exportExcel(headers, data, fileName = 'XXX.xlsx', type) {
return
{
title
:
item
.
title
,
course
:
item
.
course
.
title
,
teacher
:
item
.
school_teachers
.
nickname
,
teacher
:
item
.
school_teachers
?
item
.
school_teachers
.
map
(
ele
=>
ele
.
nickname
).
join
(
','
)
:
''
,
capacity
:
item
.
capacity
,
total
:
`
${
item
.
expend
||
0
}
/
${
item
.
total
}
`
,
};
...
...
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