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
db501bd8
Commit
db501bd8
authored
Mar 23, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:删除文案修改,删除题目页码重置
parent
84e85600
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
11 deletions
+16
-11
src/modules/teach-tool/QuestionCategoryManage.jsx
+9
-8
src/modules/teach-tool/components/QuestionBankSider.jsx
+3
-1
src/modules/teach-tool/components/QuestionManageContent.jsx
+4
-2
No files found.
src/modules/teach-tool/QuestionCategoryManage.jsx
View file @
db501bd8
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-23 18:28:50
* @LastEditors: yuananting
* @LastEditTime: 2021-03-23 1
2:15:56
* @LastEditTime: 2021-03-23 1
4:16:07
* @Description: 助学工具-题库-主页面分类管理
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -71,6 +71,7 @@ class QuestionCategoryManage extends Component {
categoryName
:
"未分类"
,
categoryCount
:
0
,
parentId
:
"0"
,
categoryLevel
:
0
,
};
result
.
unshift
(
defaultNode
);
this
.
setState
({
...
...
@@ -91,6 +92,7 @@ class QuestionCategoryManage extends Component {
categoryName
:
"未分类"
,
categoryCount
:
0
,
parentId
:
"0"
,
categoryLevel
:
0
,
};
result
.
unshift
(
defaultNode
);
this
.
setState
({
...
...
@@ -107,8 +109,7 @@ class QuestionCategoryManage extends Component {
delCategory
=
(
item
)
=>
{
return
confirm
({
title
:
"确认删除该分类吗?"
,
content
:
"此分类下存在关联项目,如删除,此分类下包含的所有内容将自动转入“未分类”中。"
,
content
:
"删除后,分类下的所有内容将自动转入“未分类”中。"
,
icon
:
(
<
span
className=
"icon iconfont default-confirm-icon"
>

</
span
>
),
...
...
@@ -241,11 +242,11 @@ class QuestionCategoryManage extends Component {
return
;
}
// 未分类不可以拖拽
//
if (
// info.dragNode.categoryName === "未分类" ||
// info.node.categoryName === "未分类"
//
)
// return
if
(
info
.
dragNode
.
categoryName
===
"未分类"
&&
info
.
dragNode
.
categoryLevel
===
0
)
return
message
.
info
(
"未分类”为默认分类暂不支持移动"
);
// 不允许其他节点拖拽到未分类之前
if
(
...
...
src/modules/teach-tool/components/QuestionBankSider.jsx
View file @
db501bd8
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-22 10:59:43
* @LastEditors: yuananting
* @LastEditTime: 2021-03-23 1
2:15:27
* @LastEditTime: 2021-03-23 1
4:10:18
* @Description: 助学工具-题库-题库主页面侧边栏
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -103,6 +103,7 @@ class QuestionBankSider extends Component {
categoryName
:
"未分类"
,
categoryCount
:
noCategoryCnt
,
parentId
:
"0"
,
categoryLevel
:
0
,
};
categoryList
.
unshift
(
defaultNode
);
this
.
setState
({
...
...
@@ -121,6 +122,7 @@ class QuestionBankSider extends Component {
categoryName
:
"未分类"
,
categoryCount
:
noCategoryCnt
,
parentId
:
"0"
,
categoryLevel
:
0
,
};
categoryList
.
unshift
(
defaultNode
);
this
.
setState
({
...
...
src/modules/teach-tool/components/QuestionManageContent.jsx
View file @
db501bd8
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-25 11:23:47
* @LastEditors: yuananting
* @LastEditTime: 2021-03-23 1
2:14:29
* @LastEditTime: 2021-03-23 1
4:13:11
* @Description: 助学工具-题库-题目管理主页面列表数据
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -145,7 +145,9 @@ class QuestionManageContent extends Component {
QuestionBankService
.
deleteQuestion
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
message
.
success
(
"删除成功"
);
this
.
queryQuestionPageList
();
const
_query
=
this
.
state
.
query
;
_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