Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
5425415f
Commit
5425415f
authored
May 20, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复管理端部分问题
parent
6e5f9023
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
src/modules/course-manage/offline-course/OfflineCourseData.jsx
+13
-9
No files found.
src/modules/course-manage/offline-course/OfflineCourseData.jsx
View file @
5425415f
...
...
@@ -141,22 +141,26 @@ export default class OfflineCourseData extends React.Component {
return
columns
;
}
handleChangeTable
=
()
=>
{
handleChangeTable
=
(
pagination
,
filters
,
sorter
)
=>
{
const
{
columnKey
,
order
}
=
sorter
;
const
{
query
}
=
this
.
props
;
const
{
query
}
=
this
.
state
;
let
orderEnum
;
// 按创建时间升序排序
if
(
columnKey
===
'joinInTime'
&&
order
===
'ascend'
)
{
orderEnum
=
'JOIN_IN_DESC'
;
}
if
(
columnKey
===
'joinOutTime'
&&
order
===
'ascend'
)
{
orderEnum
=
'JOIN_IN_ASC'
;
}
// 按创建时间降序排序
if
(
columnKey
===
'joinInTime'
&&
order
===
'descend'
)
{
orderEnum
=
'JOIN_OUT_DESC'
;;}
if
(
columnKey
===
'joinOutTime'
&&
order
===
'descend'
)
{
orderEnum
=
'JOIN_OUT_ASC'
;;}
if
(
columnKey
===
'joinInTime'
&&
order
===
'ascend'
)
{
orderEnum
=
'JOIN_IN_ASC'
;
}
else
if
(
columnKey
===
'joinOutTime'
&&
order
===
'ascend'
)
{
orderEnum
=
'JOIN_OUT_ASC'
;
}
else
if
(
columnKey
===
'joinInTime'
&&
order
===
'descend'
)
{
orderEnum
=
'JOIN_IN_DESC'
;
}
else
if
(
columnKey
===
'joinOutTime'
&&
order
===
'descend'
)
{
orderEnum
=
'JOIN_OUT_DESC'
;
}
const
_query
=
{
...
query
,
orderEnum
,
};
this
.
setState
({
query
:
_query
},
()
=>
{
this
.
getDateDetail
(
query
.
current
);
this
.
getDateDetail
(
_
query
.
current
);
})
}
...
...
@@ -337,7 +341,7 @@ export default class OfflineCourseData extends React.Component {
loading=
{
loading
}
dataSource=
{
data
}
onChange=
{
this
.
handleChangeTable
}
rowKey=
{
(
row
)
=>
row
.
liveCourse
Id
}
rowKey=
{
(
row
)
=>
row
.
user
Id
}
/>
<
PageControl
current=
{
query
.
current
-
1
}
...
...
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