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
0c8b67b7
Commit
0c8b67b7
authored
Apr 09, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:正确率排序
parent
932cb638
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletions
+18
-1
src/modules/teach-tool/paper-manage/components/SelectQuestionList.jsx
+18
-1
No files found.
src/modules/teach-tool/paper-manage/components/SelectQuestionList.jsx
View file @
0c8b67b7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Author: yuananting
* @Date: 2021-02-25 11:23:47
* @Date: 2021-02-25 11:23:47
* @LastEditors: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-04-09 17:
08:57
* @LastEditTime: 2021-04-09 17:
21:36
* @Description: 助学工具-新建试卷-选择题目列表
* @Description: 助学工具-新建试卷-选择题目列表
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -104,6 +104,22 @@ class SelectQuestionList extends Component {
...
@@ -104,6 +104,22 @@ class SelectQuestionList extends Component {
});
});
};
};
// 排序
handleChangeTable
=
(
pagination
,
filters
,
sorter
)
=>
{
const
{
columnKey
,
order
}
=
sorter
;
let
sort
=
null
;
if
(
order
===
"ascend"
)
{
sort
=
"ACCURACY_ASC"
;
}
if
(
order
===
"descend"
)
{
sort
=
"ACCURACY_DESC"
;
}
const
_query
=
this
.
state
.
query
;
_query
.
order
=
sort
||
"ACCURACY_DESC"
;
_query
.
current
=
1
;
this
.
setState
({
query
:
_query
},
()
=>
this
.
queryQuestionModalList
());
};
queryQuestionModalList
=
()
=>
{
queryQuestionModalList
=
()
=>
{
AidToolService
.
queryQuestionPageList
(
this
.
state
.
query
).
then
((
res
)
=>
{
AidToolService
.
queryQuestionPageList
(
this
.
state
.
query
).
then
((
res
)
=>
{
const
{
records
=
[],
total
=
0
}
=
res
.
result
;
const
{
records
=
[],
total
=
0
}
=
res
.
result
;
...
@@ -389,6 +405,7 @@ class SelectQuestionList extends Component {
...
@@ -389,6 +405,7 @@ class SelectQuestionList extends Component {
dataSource=
{
dataSource
}
dataSource=
{
dataSource
}
columns=
{
this
.
parseColumns
()
}
columns=
{
this
.
parseColumns
()
}
pagination=
{
false
}
pagination=
{
false
}
onChange=
{
this
.
handleChangeTable
}
bordered
bordered
/>
/>
</
ConfigProvider
>
</
ConfigProvider
>
...
...
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