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
193f1d3a
Commit
193f1d3a
authored
Jun 03, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复选择最大限制
parent
0c620316
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
src/modules/teach-tool/paper-manage/components/PaperList.jsx
+3
-2
src/modules/teach-tool/question-manage/components/QuestionList.jsx
+10
-2
No files found.
src/modules/teach-tool/paper-manage/components/PaperList.jsx
View file @
193f1d3a
...
@@ -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-0
5-31 13:42:54
* @LastEditTime: 2021-0
6-03 16:09:00
* @Description: 助学工具-题库-试卷列表数据
* @Description: 助学工具-题库-试卷列表数据
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -500,8 +500,9 @@ class PaperList extends Component {
...
@@ -500,8 +500,9 @@ class PaperList extends Component {
onSelectPaper
=
(
selectedPaperKeys
)
=>
{
onSelectPaper
=
(
selectedPaperKeys
)
=>
{
if
(
selectedPaperKeys
.
length
>
50
)
{
if
(
selectedPaperKeys
.
length
>
50
)
{
const
extraLength
=
selectedPaperKeys
.
length
-
50
;
selectedPaperKeys
.
splice
(
selectedPaperKeys
.
length
-
extraLength
,
extraLength
);
message
.
warning
(
'最多只能选择50个试卷'
);
message
.
warning
(
'最多只能选择50个试卷'
);
return
null
;
}
}
this
.
setState
({
selectedPaperKeys
});
this
.
setState
({
selectedPaperKeys
});
};
};
...
...
src/modules/teach-tool/question-manage/components/QuestionList.jsx
View file @
193f1d3a
...
@@ -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-06-0
1 11:31:1
7
* @LastEditTime: 2021-06-0
3 16:41:4
7
* @Description: 助学工具-题库-题目列表数据
* @Description: 助学工具-题库-题目列表数据
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -477,8 +477,9 @@ class QuestionList extends Component {
...
@@ -477,8 +477,9 @@ class QuestionList extends Component {
onSelectChange
=
(
selectedRowKeys
)
=>
{
onSelectChange
=
(
selectedRowKeys
)
=>
{
if
(
selectedRowKeys
.
length
>
50
)
{
if
(
selectedRowKeys
.
length
>
50
)
{
const
extraLength
=
selectedRowKeys
.
length
-
50
;
selectedRowKeys
.
splice
(
selectedRowKeys
.
length
-
extraLength
,
extraLength
);
message
.
warning
(
'最多只能选择50个题目'
);
message
.
warning
(
'最多只能选择50个题目'
);
return
null
;
}
}
this
.
setState
({
selectedRowKeys
});
this
.
setState
({
selectedRowKeys
});
};
};
...
@@ -710,12 +711,19 @@ class QuestionList extends Component {
...
@@ -710,12 +711,19 @@ class QuestionList extends Component {
</
span
>
</
span
>
</
div
>
</
div
>
}
}
{
!!
categoryId
?
(
<
Dropdown
className=
"ml8"
overlay=
{
this
.
setMoreOperationOption
()
}
>
<
Dropdown
className=
"ml8"
overlay=
{
this
.
setMoreOperationOption
()
}
>
<
Button
id=
"more_operate"
>
<
Button
id=
"more_operate"
>
更多操作
更多操作
<
DownOutlined
/>
<
DownOutlined
/>
</
Button
>
</
Button
>
</
Dropdown
>
</
Dropdown
>
)
:
(
<
Space
size=
{
16
}
>
<
Button
onClick=
{
()
=>
this
.
batchMove
()
}
>
批量移动
</
Button
>
<
Button
onClick=
{
()
=>
this
.
batchDelete
()
}
>
批量删除
</
Button
>
</
Space
>
)
}
</
Space
>
</
Space
>
)
}
)
}
<
div
className=
"question-list-content"
>
<
div
className=
"question-list-content"
>
...
...
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