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
5808599e
Commit
5808599e
authored
May 20, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:排序current重置删除
parent
1483c43b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
11 deletions
+7
-11
src/modules/teach-tool/paper-manage/components/PaperList.jsx
+1
-3
src/modules/teach-tool/paper-manage/components/SelectQuestionList.jsx
+3
-4
src/modules/teach-tool/question-manage/components/QuestionList.jsx
+3
-4
No files found.
src/modules/teach-tool/paper-manage/components/PaperList.jsx
View file @
5808599e
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-25 11:23:47
* @LastEditors: yuananting
* @LastEditTime: 2021-0
4-15 11:04:03
* @LastEditTime: 2021-0
5-20 11:37:40
* @Description: 助学工具-题库-试卷列表数据
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -441,7 +441,6 @@ class PaperList extends Component {
pagination=
{
false
}
bordered
loading=
{
loading
}
onChange=
{
this
.
handleChangeTable
}
/>
)
:
(
<
Table
...
...
@@ -455,7 +454,6 @@ class PaperList extends Component {
columns=
{
this
.
parseColumns
()
}
pagination=
{
false
}
bordered
onChange=
{
this
.
handleChangeTable
}
/>
)
}
</
ConfigProvider
>
...
...
src/modules/teach-tool/paper-manage/components/SelectQuestionList.jsx
View file @
5808599e
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-25 11:23:47
* @LastEditors: yuananting
* @LastEditTime: 2021-0
4-13 13:56:05
* @LastEditTime: 2021-0
5-20 11:43:21
* @Description: 助学工具-新建试卷-选择题目列表
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -108,15 +108,14 @@ class SelectQuestionList extends Component {
handleChangeTable
=
(
pagination
,
filters
,
sorter
)
=>
{
const
{
columnKey
,
order
}
=
sorter
;
let
sort
=
"UPDATED_DESC"
;
if
(
order
===
"ascend"
)
{
if
(
columnKey
===
"accuracy"
&&
order
===
"ascend"
)
{
sort
=
"ACCURACY_ASC"
;
}
if
(
order
===
"descend"
)
{
if
(
columnKey
===
"accuracy"
&&
order
===
"descend"
)
{
sort
=
"ACCURACY_DESC"
;
}
const
_query
=
this
.
state
.
query
;
_query
.
order
=
sort
;
_query
.
current
=
1
;
this
.
setState
({
query
:
_query
},
()
=>
this
.
queryQuestionPageListWithContent
());
};
...
...
src/modules/teach-tool/question-manage/components/QuestionList.jsx
View file @
5808599e
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-25 11:23:47
* @LastEditors: yuananting
* @LastEditTime: 2021-05-
18 16:10:49
* @LastEditTime: 2021-05-
20 11:35:07
* @Description: 助学工具-题库-题目列表数据
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -161,7 +161,7 @@ class QuestionList extends Component {
height
:
100
,
}
}
description=
{
<
div
>
<
span
>
<
span
>
还没有题目
</
span
>
{
[
"CloudManager"
,
"StoreManager"
].
includes
(
User
.
getUserRole
())
&&
categoryId
&&
(
...
...
@@ -178,7 +178,7 @@ class QuestionList extends Component {
吧!
</
span
>
)
}
</
div
>
</
span
>
}
></
Empty
>
);
...
...
@@ -202,7 +202,6 @@ class QuestionList extends Component {
}
const
_query
=
this
.
state
.
query
;
_query
.
order
=
sort
||
"UPDATED_DESC"
;
_query
.
current
=
1
;
this
.
setState
({
query
:
_query
},
()
=>
this
.
queryQuestionPageList
());
};
...
...
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