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
6e01f9ee
Commit
6e01f9ee
authored
Apr 05, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:助学工具文件合并修改
parent
1ded60fc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
191 additions
and
221 deletions
+191
-221
src/modules/teach-tool/components/CourseCategoryManage.jsx
+8
-10
src/modules/teach-tool/components/CourseCategorySiderTree.jsx
+1
-1
src/modules/teach-tool/examination-manager/SelectPaperModal.tsx
+2
-2
src/modules/teach-tool/modal/OpearteCourseCategoryModal.jsx
+0
-0
src/modules/teach-tool/paper-manage/Index.jsx
+6
-7
src/modules/teach-tool/paper-manage/OperatePaper.jsx
+0
-0
src/modules/teach-tool/paper-manage/OperatePaper.less
+1
-9
src/modules/teach-tool/paper-manage/PaperContent.jsx
+6
-8
src/modules/teach-tool/paper-manage/PaperContent.less
+3
-6
src/modules/teach-tool/paper-manage/components/PaperList.jsx
+51
-30
src/modules/teach-tool/paper-manage/components/PaperList.less
+3
-12
src/modules/teach-tool/paper-manage/components/SelectQuestionList.jsx
+5
-15
src/modules/teach-tool/paper-manage/components/SelectQuestionList.less
+2
-10
src/modules/teach-tool/paper-manage/modal/PreviewPaperModal.jsx
+30
-31
src/modules/teach-tool/paper-manage/modal/PreviewPaperModal.less
+0
-0
src/modules/teach-tool/paper-manage/modal/SelectQuestionModal.jsx
+3
-3
src/modules/teach-tool/paper-manage/modal/SelectQuestionModal.less
+0
-0
src/modules/teach-tool/question-manage/Index.jsx
+7
-7
src/modules/teach-tool/question-manage/Index.less
+1
-4
src/modules/teach-tool/question-manage/OperateQuestion.jsx
+14
-14
src/modules/teach-tool/question-manage/OperateQuestion.less
+1
-1
src/modules/teach-tool/question-manage/components/OperateQuestionTab.jsx
+4
-4
src/modules/teach-tool/question-manage/components/OperateQuestionTab.less
+0
-0
src/modules/teach-tool/question-manage/components/QuestionEditor.jsx
+0
-0
src/modules/teach-tool/question-manage/components/QuestionEditor.less
+0
-0
src/modules/teach-tool/question-manage/components/QuestionList.jsx
+19
-19
src/modules/teach-tool/question-manage/components/QuestionList.less
+3
-3
src/modules/teach-tool/question-manage/modal/BatchImportQuestionModal.jsx
+0
-0
src/modules/teach-tool/question-manage/modal/BatchImportQuestionModal.less
+0
-0
src/modules/teach-tool/question-manage/modal/PreviewQuestionModal.jsx
+4
-4
src/modules/teach-tool/question-manage/modal/PreviewQuestionModal.less
+1
-1
src/routes/config/mainRoutes.tsx
+14
-18
src/routes/config/menuList.tsx
+2
-2
No files found.
src/modules/teach-tool/components/CourseCategoryManage.jsx
View file @
6e01f9ee
...
...
@@ -9,7 +9,7 @@
import
React
,
{
Component
}
from
"react"
;
import
Breadcrumbs
from
"@/components/Breadcrumbs"
;
import
"./CourseCategoryManage.less"
;
import
NewEditCourseCategoryModal
from
"../modal/NewEdit
CourseCategoryModal"
;
import
OpearteCourseCategoryModal
from
"../modal/Opearte
CourseCategoryModal"
;
import
AidToolService
from
"@/domains/aid-tool-domain/AidToolService"
;
import
User
from
"@/common/js/user"
;
import
{
...
...
@@ -30,7 +30,7 @@ class CourseCategoryManage extends Component {
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
newEdit
CourseCategoryModal
:
null
,
//新增或编辑分类模态框
operate
CourseCategoryModal
:
null
,
//新增或编辑分类模态框
treeData
:
[],
originTreeData
:
[],
treeMap
:
{},
...
...
@@ -297,7 +297,7 @@ class CourseCategoryManage extends Component {
break
;
}
const
m
=
(
<
NewEdit
CourseCategoryModal
<
Opearte
CourseCategoryModal
node=
{
node
}
addLevelType=
{
addLevelType
}
type=
{
type
}
...
...
@@ -306,12 +306,12 @@ class CourseCategoryManage extends Component {
close=
{
()
=>
{
this
.
queryCategoryTree
(
"change"
,
this
.
state
.
categoryName
);
this
.
setState
({
newEdit
CourseCategoryModal
:
null
,
operate
CourseCategoryModal
:
null
,
});
}
}
/>
);
this
.
setState
({
newEdit
CourseCategoryModal
:
m
});
this
.
setState
({
operate
CourseCategoryModal
:
m
});
};
// 删除分类
...
...
@@ -586,7 +586,7 @@ class CourseCategoryManage extends Component {
expandedKeys
,
selectedKeys
,
autoExpandParent
,
newEdit
CourseCategoryModal
,
operate
CourseCategoryModal
,
}
=
this
.
state
;
return
(
<
div
className=
"page course-category-manage"
>
...
...
@@ -594,9 +594,7 @@ class CourseCategoryManage extends Component {
<
Breadcrumbs
navList=
"课程分类"
goBack=
{
()
=>
window
.
RCHistory
.
push
({
pathname
:
"/question-bank-index"
,
})
window
.
RCHistory
.
goBack
()
}
/>
)
:
(
...
...
@@ -649,7 +647,7 @@ class CourseCategoryManage extends Component {
></
DirectoryTree
>
</
div
>
</
div
>
{
newEdit
CourseCategoryModal
}
{
operate
CourseCategoryModal
}
</
div
>
);
}
...
...
src/modules/teach-tool/components/CourseCategorySiderTree.jsx
View file @
6e01f9ee
...
...
@@ -3,7 +3,7 @@
* @Date: 2021-02-22 10:59:43
* @LastEditors: yuananting
* @LastEditTime: 2021-04-01 14:15:23
* @Description: 助学工具-
课程分类侧边栏
* @Description: 助学工具-
侧边课程分类树
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
import
React
,
{
Component
}
from
"react"
;
...
...
src/modules/teach-tool/examination-manager/SelectPaperModal.tsx
View file @
6e01f9ee
import
React
,
{
useState
,
useRef
,
useEffect
,
useContext
}
from
'react'
import
{
message
,
Modal
}
from
'antd'
;
import
{
withRouter
}
from
'react-router-dom'
;
import
ExaminationPaperContent
from
'../examination-paper/Examination
PaperContent'
import
PaperContent
from
'../paper-manage/
PaperContent'
import
'./AddExam.less'
;
import
user
from
'@/common/js/user'
;
...
...
@@ -26,7 +26,7 @@ function SelectPaperModal(props: any) {
}
onCancel=
{
()
=>
{
props
.
close
()
}
}
>
<
ExaminationPaperContent
paperId=
{
item
.
paperId
}
onSelect=
{
(
item
:
any
)
=>
{
setItem
(
item
)
}
}
type=
'modal-select'
></
Examination
PaperContent
>
<
PaperContent
paperId=
{
item
.
paperId
}
onSelect=
{
(
item
:
any
)
=>
{
setItem
(
item
)
}
}
type=
'modal-select'
></
PaperContent
>
</
Modal
>
}
...
...
src/modules/teach-tool/modal/
NewEdit
CourseCategoryModal.jsx
→
src/modules/teach-tool/modal/
Opearte
CourseCategoryModal.jsx
View file @
6e01f9ee
File moved
src/modules/teach-tool/
examination-paper/ExaminationPaper
Index.jsx
→
src/modules/teach-tool/
paper-manage/
Index.jsx
View file @
6e01f9ee
...
...
@@ -3,14 +3,13 @@
* @Date: 2021-03-27 14:55:14
* @LastEditors: yuananting
* @LastEditTime: 2021-04-01 14:00:47
* @Description: 助学工具-试卷
主页面
* @Description: 助学工具-试卷
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
import
React
,
{
Component
}
from
"react"
;
import
"./ExaminationPaperIndex.less"
;
import
ExaminationPaperContent
from
"./ExaminationPaperContent"
;
import
PaperContent
from
"./PaperContent"
;
class
Examination
PaperIndex
extends
Component
{
class
PaperIndex
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{};
...
...
@@ -19,14 +18,14 @@ class ExaminationPaperIndex extends Component {
render
()
{
return
(
<
div
className=
"
examination-paper
-index page"
>
<
div
className=
"
paper-manage
-index page"
>
<
div
className=
"content-header"
>
试卷
</
div
>
<
div
className=
"box content-body"
>
<
ExaminationPaperContent
type=
''
></
Examination
PaperContent
>
<
PaperContent
type=
''
></
PaperContent
>
</
div
>
</
div
>
);
}
}
export
default
Examination
PaperIndex
;
export
default
PaperIndex
;
src/modules/teach-tool/
examination-paper/NewExamination
Paper.jsx
→
src/modules/teach-tool/
paper-manage/Operate
Paper.jsx
View file @
6e01f9ee
This diff is collapsed.
Click to expand it.
src/modules/teach-tool/
examination-paper/NewExamination
Paper.less
→
src/modules/teach-tool/
paper-manage/Operate
Paper.less
View file @
6e01f9ee
/*
* @Author: yuananting
* @Date: 2021-02-25 13:52:01
* @LastEditors: yuananting
* @LastEditTime: 2021-03-31 16:06:32
* @Description: 助学工具-新建试卷
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
.new-examination-paper {
.operate-paper-page {
position: relative !important;
.box {
margin-bottom: 66px !important;
...
...
src/modules/teach-tool/
examination-paper/Examination
PaperContent.jsx
→
src/modules/teach-tool/
paper-manage/
PaperContent.jsx
View file @
6e01f9ee
...
...
@@ -7,11 +7,11 @@
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
import
React
,
{
Component
}
from
"react"
;
import
"./
ExaminationPaperIndex.less"
;
import
"./
PaperContent.less"
import
CourseCategorySiderTree
from
"../components/CourseCategorySiderTree"
;
import
ExaminationPaperContent
from
"./components/ExaminationPaperConten
t"
;
import
PaperList
from
"./components/PaperLis
t"
;
class
ExaminationPaperIndex
extends
Component
{
class
PaperContent
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{};
...
...
@@ -29,7 +29,7 @@ class ExaminationPaperIndex extends Component {
render
()
{
return
(
<
div
className=
'
examination-paper-content
'
>
<
div
className=
'
paper-content-page
'
>
<
div
style=
{
{
borderRight
:
"0.5px solid #EEEEEE"
,
paddingRight
:
"4px"
}
}
>
...
...
@@ -44,7 +44,7 @@ class ExaminationPaperIndex extends Component {
</
div
>
</
div
>
<
div
className=
"content"
>
<
ExaminationPaperConten
t
<
PaperLis
t
paperId=
{
this
.
props
.
paperId
}
onSelect=
{
this
.
props
.
onSelect
}
type=
{
this
.
props
.
type
}
...
...
@@ -53,10 +53,8 @@ class ExaminationPaperIndex extends Component {
/>
</
div
>
</
div
>
);
}
}
export
default
ExaminationPaperIndex
;
export
default
PaperContent
;
src/modules/teach-tool/
examination-paper/ExaminationPaperIndex
.less
→
src/modules/teach-tool/
paper-manage/PaperContent
.less
View file @
6e01f9ee
.examination-paper-content{
.paper-content-page {
display: flex;
.site-layout-background {
background: #fff;
}
.sider {
min-width: 244px;
}
...
...
@@ -12,4 +8,4 @@
margin-left: 24px;
height: calc(100vh - 160px);
}
}
}
\ No newline at end of file
src/modules/teach-tool/
examination-paper/components/ExaminationPaperConten
t.jsx
→
src/modules/teach-tool/
paper-manage/components/PaperLis
t.jsx
View file @
6e01f9ee
...
...
@@ -3,7 +3,7 @@
* @Date: 2021-02-25 11:23:47
* @LastEditors: yuananting
* @LastEditTime: 2021-04-01 15:06:37
* @Description: 助学工具-题库-
题目管理主页面
列表数据
* @Description: 助学工具-题库-
试卷
列表数据
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
import
React
,
{
Component
}
from
"react"
;
...
...
@@ -17,17 +17,19 @@ import {
Button
,
Modal
,
message
,
ConfigProvider
,
Empty
,
}
from
"antd"
;
import
{
PageControl
}
from
"@/components"
;
import
"./
ExaminationPaperConten
t.less"
;
import
"./
PaperLis
t.less"
;
import
User
from
"@/common/js/user"
;
import
AidToolService
from
"@/domains/aid-tool-domain/AidToolService"
;
import
_
from
"underscore"
;
import
PaperPreviewModal
from
"../modal/P
aperPreview
Modal"
;
import
PaperPreviewModal
from
"../modal/P
reviewPaper
Modal"
;
const
{
Search
}
=
Input
;
class
ExaminationPaperConten
t
extends
Component
{
class
PaperLis
t
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
...
...
@@ -74,6 +76,7 @@ class ExaminationPaperContent extends Component {
previewPaper
=
(
record
)
=>
{
const
m
=
(
<
PaperPreviewModal
previewPage=
"paper-list"
categoryId=
{
this
.
state
.
query
.
categoryId
}
paperId=
{
record
.
paperId
}
close=
{
()
=>
{
...
...
@@ -87,13 +90,18 @@ class ExaminationPaperContent extends Component {
};
// 复制试卷
copyPaper
=
(
record
)
=>
{
};
copyPaper
=
(
record
)
=>
{
const
{
categoryId
}
=
this
.
state
.
query
;
window
.
RCHistory
.
push
({
pathname
:
`/paper-operate-page?type=copy&paperId=
${
record
.
paperId
}
&categoryId=
${
categoryId
}
`
,
});
};
// 编辑试卷
editPaper
=
(
record
)
=>
{
const
{
categoryId
}
=
this
.
state
.
query
;
window
.
RCHistory
.
push
({
pathname
:
`/
new-examination-paper?
paperId=
${
record
.
paperId
}
&categoryId=
${
categoryId
}
`
,
pathname
:
`/
paper-operate-page/operate?type=edit&
paperId=
${
record
.
paperId
}
&categoryId=
${
categoryId
}
`
,
});
};
...
...
@@ -133,6 +141,19 @@ class ExaminationPaperContent extends Component {
});
}
// 自定义表格空状态
customizeRenderEmpty
=
()
=>
{
return
(
<
Empty
image=
"https://image.xiaomaiketang.com/xm/emptyTable.png"
imageStyle=
{
{
height
:
100
,
}
}
description=
{
"还没有试卷"
}
></
Empty
>
);
};
// 表头设置
parseColumns
=
()
=>
{
const
columns
=
[
...
...
@@ -207,9 +228,7 @@ class ExaminationPaperContent extends Component {
<
span
className=
"record-operate__item split"
>
|
</
span
>
<
div
className=
"record-operate__item"
onClick=
{
()
=>
this
.
toEditQuetion
(
record
.
id
,
record
.
questionTypeEnum
)
}
onClick=
{
()
=>
this
.
copyPaper
(
record
)
}
>
复制
</
div
>
...
...
@@ -250,7 +269,6 @@ class ExaminationPaperContent extends Component {
};
onSelectChange
=
(
selectedRowKeys
,
selectedRows
)
=>
{
console
.
log
(
selectedRowKeys
,
selectedRows
)
this
.
setState
({
selectedRowKeys
})
...
...
@@ -268,8 +286,8 @@ class ExaminationPaperContent extends Component {
};
return
(
<
div
className=
{
"
question-manage-conten
t "
+
this
.
props
.
type
}
>
<
div
className=
"
question-manage
-filter"
>
<
div
className=
{
"
paper-lis
t "
+
this
.
props
.
type
}
>
<
div
className=
"
paper-list
-filter"
>
<
Row
type=
"flex"
justify=
"space-between"
align=
"top"
>
<
div
className=
"search-condition"
>
<
div
className=
"search-condition__item"
>
...
...
@@ -301,7 +319,7 @@ class ExaminationPaperContent extends Component {
type=
"primary"
onClick=
{
()
=>
{
window
.
RCHistory
.
push
({
pathname
:
`/
new-examination-paper?
categoryId=${categoryId}`
,
pathname
:
`/
paper-operate-page?type=new&
categoryId=${categoryId}`
,
});
}
}
>
...
...
@@ -309,28 +327,30 @@ class ExaminationPaperContent extends Component {
</
Button
>
}
<
div
className=
"question-manage-list"
>
{
(
this
.
props
.
type
!==
'modal-select'
)
?
<
Table
rowKey=
{
(
record
)
=>
record
.
id
}
dataSource=
{
dataSource
}
columns=
{
this
.
parseColumns
()
}
pagination=
{
false
}
bordered
onChange=
{
this
.
handleChangeTable
}
/>
:
<
Table
<
div
className=
"paper-list-content"
>
<
ConfigProvider
renderEmpty=
{
this
.
customizeRenderEmpty
}
>
{
(
this
.
props
.
type
!==
'modal-select'
)
?
<
Table
rowKey=
{
(
record
)
=>
record
.
id
}
dataSource=
{
dataSource
}
rowKey=
{
(
item
)
=>
{
return
item
.
paperId
}
}
rowSelection=
{
rowSelection
}
columns=
{
this
.
parseColumns
()
}
pagination=
{
false
}
bordered
onChange=
{
this
.
handleChangeTable
}
/>
}
/>
:
<
Table
rowKey=
{
(
record
)
=>
record
.
id
}
dataSource=
{
dataSource
}
rowKey=
{
(
item
)
=>
{
return
item
.
paperId
}
}
rowSelection=
{
rowSelection
}
columns=
{
this
.
parseColumns
()
}
pagination=
{
false
}
bordered
onChange=
{
this
.
handleChangeTable
}
/>
}
</
ConfigProvider
>
{
total
>
0
&&
(
<
div
className=
"box-footer"
>
...
...
@@ -356,4 +376,4 @@ class ExaminationPaperContent extends Component {
}
}
export
default
ExaminationPaperConten
t
;
export
default
PaperLis
t
;
\ No newline at end of file
src/modules/teach-tool/
examination-paper/components/ExaminationPaperConten
t.less
→
src/modules/teach-tool/
paper-manage/components/PaperLis
t.less
View file @
6e01f9ee
/*
* @Author: yuananting
* @Date: 2021-02-25 11:26:28
* @LastEditors: yuananting
* @LastEditTime: 2021-03-25 14:32:01
* @Description: 助学工具-题库-题目管理右侧内容样式
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
.question-manage-content {
.question-manage-filter {
.paper-list {
.paper-list-filter {
position: relative;
.search-condition {
...
...
@@ -51,7 +42,7 @@
.data-icon {
cursor: pointer;
}
.
question-manage-lis
t {
.
paper-list-conten
t {
position: relative;
margin-top: 16px;
.empty-list-tip {
...
...
src/modules/teach-tool/
examination-paper/components/SelectQuestionConten
t.jsx
→
src/modules/teach-tool/
paper-manage/components/SelectQuestionLis
t.jsx
View file @
6e01f9ee
...
...
@@ -15,17 +15,13 @@ import {
Input
,
Select
,
Tooltip
,
Space
,
Button
,
Modal
,
message
,
}
from
"antd"
;
import
{
PageControl
}
from
"@/components"
;
import
"./SelectQuestion
Conten
t.less"
;
import
"./SelectQuestion
Lis
t.less"
;
import
User
from
"@/common/js/user"
;
import
AidToolService
from
"@/domains/aid-tool-domain/AidToolService"
;
import
_
from
"underscore"
;
import
ShowTips
from
"@/components/ShowTips"
;
const
{
Search
}
=
Input
;
...
...
@@ -60,7 +56,7 @@ const questionTypeList = [
},
];
class
QuestionListConten
t
extends
Component
{
class
SelectQuestionLis
t
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
...
...
@@ -104,12 +100,6 @@ class QuestionListContent extends Component {
});
};
handleCreateQuestionBank
=
()
=>
{
window
.
RCHistory
.
push
({
pathname
:
`/create-new-question?categoryId=
${
this
.
state
.
query
.
categoryId
}
`
,
});
};
// 清空搜索条件
handleReset
=
()
=>
{
const
_query
=
{
...
...
@@ -298,7 +288,7 @@ class QuestionListContent extends Component {
(
item
)
=>
item
.
questionTypeEnum
===
"INDEFINITE_CHOICE"
).
length
;
return
(
<
div
className=
"select-question-
conten
t"
>
<
div
className=
"select-question-
lis
t"
>
<
div
className=
"select-question-filter"
>
<
Row
type=
"flex"
justify=
"space-between"
align=
"top"
>
<
div
className=
"search-condition"
>
...
...
@@ -380,7 +370,7 @@ class QuestionListContent extends Component {
<
span
className=
"clear-btn"
onClick=
{
()
=>
this
.
setState
({
selectQuestionKeys
:[]})
}
>
清空
</
span
>
)
}
</
div
>
<
div
className=
"
question-manage-lis
t"
>
<
div
className=
"
select-question-conten
t"
>
<
ConfigProvider
renderEmpty=
{
this
.
customizeRenderEmpty
}
>
<
Table
rowSelection=
{
rowSelection
}
...
...
@@ -412,4 +402,4 @@ class QuestionListContent extends Component {
}
}
export
default
QuestionListConten
t
;
export
default
SelectQuestionLis
t
;
src/modules/teach-tool/
examination-paper/components/SelectQuestionConten
t.less
→
src/modules/teach-tool/
paper-manage/components/SelectQuestionLis
t.less
View file @
6e01f9ee
/*
* @Author: yuananting
* @Date: 2021-02-25 11:26:28
* @LastEditors: yuananting
* @LastEditTime: 2021-03-30 18:34:50
* @Description: 助学工具-题库-题目管理右侧内容样式
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
.select-question-content {
.select-question-list {
.select-question-filter {
position: relative;
.search-condition {
...
...
@@ -49,7 +41,7 @@
.data-icon {
cursor: pointer;
}
.
question-manage-lis
t {
.
select-question-conten
t {
position: relative;
margin-top: 16px;
.empty-list-tip {
...
...
src/modules/teach-tool/
examination-paper/modal/PaperPreview
Modal.jsx
→
src/modules/teach-tool/
paper-manage/modal/PreviewPaper
Modal.jsx
View file @
6e01f9ee
...
...
@@ -10,7 +10,7 @@ import React, { Component } from "react";
import
{
Modal
}
from
"antd"
;
import
User
from
"@/common/js/user"
;
import
AidToolService
from
"@/domains/aid-tool-domain/AidToolService"
;
import
"./P
aperPreview
Modal.less"
;
import
"./P
reviewPaper
Modal.less"
;
import
ScanFileModal
from
"@/modules/resource-disk/modal/ScanFileModal"
;
import
_
from
"underscore"
;
import
XMAudio
from
"../../components/XMAudio"
;
...
...
@@ -23,20 +23,22 @@ const questionTypeList = {
INDEFINITE_CHOICE
:
"不定项选择题"
,
};
class
P
aperPreview
Modal
extends
Component
{
class
P
reviewPaper
Modal
extends
Component
{
formRef
=
React
.
createRef
();
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
paperInfo
:
{
paperName
:
null
,
questionList
:
[],
},
paperInfo
:
{},
};
}
componentDidMount
()
{
this
.
queryPaperDetail
();
const
{
previewPage
,
paperInfo
}
=
this
.
props
;
if
(
previewPage
===
"paper-list"
)
{
this
.
queryPaperDetail
();
}
else
if
(
previewPage
===
"paper-operate"
)
{
this
.
setState
({
paperInfo
});
}
}
// 题目预览
...
...
@@ -144,32 +146,30 @@ class PaperPreviewModal extends Component {
renderAnswer
=
(
optionList
,
gapFillingAnswerList
,
questionType
)
=>
{
if
(
questionType
===
"GAP_FILLING"
)
{
{
_
.
map
(
gapFillingAnswerList
,
(
gapItem
,
gapIndex
)
=>
{
const
{
correctAnswerList
}
=
gapItem
;
return
(
<
div
>
<
span
>
【填空
{
gapIndex
+
1
}
】
</
span
>
{
_
.
map
(
correctAnswerList
,
(
answerItem
)
=>
{
return
<
span
>
{
answerItem
}
</
span
>;
})
}
</
div
>
);
});
return
(
<
div
className=
"answer-line__item"
>
<
span
>
正确答案
</
span
>
{
_
.
map
(
gapFillingAnswerList
,
(
gapItem
,
gapIndex
)
=>
{
const
{
correctAnswerList
}
=
gapItem
;
return
(
<
div
className=
"gap-list"
>
<
span
>
【填空
{
gapIndex
+
1
}
】
</
span
>
{
_
.
map
(
correctAnswerList
,
(
answerItem
)
=>
{
return
<
span
>
{
answerItem
}
</
span
>;
})
}
</
div
>
);
})
}
</
div
>
)
}
}
else
{
const
correctAnswerOption
=
_
.
filter
(
optionList
,
(
item
)
=>
item
.
isCorrectAnswer
===
1
);
const
correctOptionSort
=
correctAnswerOption
.
length
>
0
&&
correctAnswerOption
.
map
((
item
)
=>
{
return
NUM_TO_WORD_MAP
[
item
.
optionSort
];
});
const
correctAnswerOption
=
_
.
filter
(
optionList
,
(
item
)
=>
item
.
isCorrectAnswer
===
1
);
const
correctOptionSort
=
correctAnswerOption
.
map
((
item
)
=>
{
return
NUM_TO_WORD_MAP
[
item
.
optionSort
]
});
return
(
<
div
className=
"answer-line__item"
>
<
span
>
正确答案
</
span
>
{
/* <span>【{correctOptionSort.join("、")}】</span> */
}
<
span
>
【
{
correctOptionSort
.
length
>
0
&&
correctOptionSort
.
join
(
"、"
)
}
】
</
span
>
</
div
>
);
}
...
...
@@ -247,7 +247,7 @@ class PaperPreviewModal extends Component {
>
<
h2
style=
{
{
textAlign
:
"center"
}
}
>
{
paperName
}
</
h2
>
<
div
className=
"question-list-box"
>
{
questionList
.
map
(
(
questionItem
,
questionIndex
)
=>
{
{
_
.
map
(
questionList
,
(
questionItem
,
questionIndex
)
=>
{
const
{
questionStemList
,
optionList
,
...
...
@@ -255,7 +255,6 @@ class PaperPreviewModal extends Component {
questionType
,
score
,
}
=
questionItem
;
console
.
log
(
optionList
);
return
(
<
div
className=
"question-info-item"
>
{
this
.
renderStem
(
...
...
@@ -281,4 +280,4 @@ class PaperPreviewModal extends Component {
);
}
}
export
default
P
aperPreview
Modal
;
export
default
P
reviewPaper
Modal
;
src/modules/teach-tool/
examination-paper/modal/PaperPreview
Modal.less
→
src/modules/teach-tool/
paper-manage/modal/PreviewPaper
Modal.less
View file @
6e01f9ee
File moved
src/modules/teach-tool/
examination-paper
/modal/SelectQuestionModal.jsx
→
src/modules/teach-tool/
paper-manage
/modal/SelectQuestionModal.jsx
View file @
6e01f9ee
...
...
@@ -3,13 +3,13 @@
* @Date: 2021-03-29 10:52:26
* @LastEditors: yuananting
* @LastEditTime: 2021-04-02 19:41:26
* @Description: 助学工具-
新建试卷-
选择题目弹窗
* @Description: 助学工具-
试卷-新建
选择题目弹窗
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
import
React
,
{
Component
}
from
"react"
;
import
{
Modal
}
from
"antd"
;
import
CourseCategorySiderTree
from
"../../components/CourseCategorySiderTree"
;
import
SelectQuestion
Content
from
"../components/SelectQuestionConten
t"
;
import
SelectQuestion
List
from
"../components/SelectQuestionLis
t"
;
import
"./SelectQuestionModal.less"
;
class
SelectQuestionModal
extends
Component
{
...
...
@@ -76,7 +76,7 @@ class SelectQuestionModal extends Component {
</
div
>
</
div
>
<
div
className=
"content"
>
<
SelectQuestion
Conten
t
<
SelectQuestion
Lis
t
ref=
{
this
.
listRef
}
selectedCategoryId=
{
this
.
state
.
selectedCategoryId
}
/>
...
...
src/modules/teach-tool/
examination-paper
/modal/SelectQuestionModal.less
→
src/modules/teach-tool/
paper-manage
/modal/SelectQuestionModal.less
View file @
6e01f9ee
File moved
src/modules/teach-tool/question-
bank/QuestionBank
Index.jsx
→
src/modules/teach-tool/question-
manage/
Index.jsx
View file @
6e01f9ee
...
...
@@ -3,15 +3,15 @@
* @Date: 2021-02-21 17:51:01
* @LastEditors: yuananting
* @LastEditTime: 2021-04-01 14:10:41
* @Description: 助学工具-题库
-题库主页面
* @Description: 助学工具-题库
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
import
React
,
{
Component
}
from
"react"
;
import
"./
QuestionBank
Index.less"
;
import
"./Index.less"
;
import
CourseCategorySiderTree
from
"../components/CourseCategorySiderTree"
;
import
Question
ManageContent
from
"./components/QuestionManageConten
t"
;
import
Question
List
from
"./components/QuestionLis
t"
;
class
Question
Bank
Index
extends
Component
{
class
QuestionIndex
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{};
...
...
@@ -29,7 +29,7 @@ class QuestionBankIndex extends Component {
render
()
{
return
(
<
div
className=
"question-
bank
-index page"
>
<
div
className=
"question-
manage
-index page"
>
<
div
className=
"content-header"
>
题目
</
div
>
<
div
className=
"box content-body"
>
<
div
...
...
@@ -45,7 +45,7 @@ class QuestionBankIndex extends Component {
</
div
>
</
div
>
<
div
className=
"content"
>
<
Question
ManageConten
t
<
Question
Lis
t
updatedSiderTree=
{
this
.
updatedSiderTreeFromList
.
bind
(
this
)
}
selectedCategoryId=
{
this
.
state
.
selectedCategoryId
}
/>
...
...
@@ -56,4 +56,4 @@ class QuestionBankIndex extends Component {
}
}
export
default
Question
Bank
Index
;
export
default
QuestionIndex
;
src/modules/teach-tool/question-
bank/QuestionBank
Index.less
→
src/modules/teach-tool/question-
manage/
Index.less
View file @
6e01f9ee
.question-
bank
-index {
.question-
manage
-index {
.content-body {
display: flex;
.site-layout-background {
background: #fff;
}
.sider {
min-width: 244px;
}
...
...
src/modules/teach-tool/question-
bank/AddNew
Question.jsx
→
src/modules/teach-tool/question-
manage/Operate
Question.jsx
View file @
6e01f9ee
...
...
@@ -3,15 +3,15 @@
* @Date: 2021-02-25 13:46:35
* @LastEditors: yuananting
* @LastEditTime: 2021-03-29 20:24:01
* @Description: 助学工具-题库-新建题目
* @Description: 助学工具-题库-新建
/编辑
题目
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
import
React
,
{
Component
}
from
"react"
;
import
{
Tabs
,
Button
,
Tooltip
,
message
,
Modal
}
from
"antd"
;
import
Breadcrumbs
from
"@/components/Breadcrumbs"
;
import
ShowTips
from
"@/components/ShowTips"
;
import
"./
AddNew
Question.less"
;
import
NewQuestionTab
from
"./components/New
QuestionTab"
;
import
"./
Operate
Question.less"
;
import
OperateQuestionTab
from
"./components/Operate
QuestionTab"
;
import
{
defineJudgeOptionInfo
,
defineOptionInfo
,
...
...
@@ -21,7 +21,7 @@ import AidToolService from "@/domains/aid-tool-domain/AidToolService";
import
User
from
"@/common/js/user"
;
const
{
TabPane
}
=
Tabs
;
class
AddNew
Question
extends
Component
{
class
Operate
Question
extends
Component
{
constructor
(
props
)
{
super
(
props
);
let
activeKey
=
""
;
...
...
@@ -161,7 +161,7 @@ class AddNewQuestion extends Component {
),
onOk
:
()
=>
{
window
.
RCHistory
.
push
({
pathname
:
`/question-
bank
-index?categoryId=
${
getParameterByName
(
"categoryId"
)}
`
,
pathname
:
`/question-
manage
-index?categoryId=
${
getParameterByName
(
"categoryId"
)}
`
,
});
},
});
...
...
@@ -246,7 +246,7 @@ class AddNewQuestion extends Component {
}
if
(
next
===
"close"
)
{
window
.
RCHistory
.
push
({
pathname
:
`/question-
bank
-index?categoryId=
${
categoryId
}
`
,
pathname
:
`/question-
manage
-index?categoryId=
${
categoryId
}
`
,
});
}
}
...
...
@@ -267,7 +267,7 @@ class AddNewQuestion extends Component {
}
if
(
next
===
"close"
)
{
window
.
RCHistory
.
push
({
pathname
:
`/question-
bank
-index?categoryId=
${
categoryId
}
`
,
pathname
:
`/question-
manage
-index?categoryId=
${
categoryId
}
`
,
});
}
}
...
...
@@ -291,7 +291,7 @@ class AddNewQuestion extends Component {
}
=
this
.
state
;
const
categoryId
=
getParameterByName
(
"categoryId"
);
return
(
<
div
className=
"page
add-new-question
"
>
<
div
className=
"page
operate-question-page
"
>
<
Breadcrumbs
navList=
{
getParameterByName
(
"id"
)
&&
this
.
state
.
currentOperate
===
"edit"
...
...
@@ -328,7 +328,7 @@ class AddNewQuestion extends Component {
}
key=
"SINGLE_CHOICE"
>
<
New
QuestionTab
<
Operate
QuestionTab
questionTypeKey=
{
activeKey
}
onRef=
{
(
ref
)
=>
{
this
.
singleChoiceRef
=
ref
;
...
...
@@ -357,7 +357,7 @@ class AddNewQuestion extends Component {
}
key=
"MULTI_CHOICE"
>
<
New
QuestionTab
<
Operate
QuestionTab
questionTypeKey=
{
activeKey
}
onRef=
{
(
ref
)
=>
{
this
.
multiChoiceRef
=
ref
;
...
...
@@ -385,7 +385,7 @@ class AddNewQuestion extends Component {
}
key=
"JUDGE"
>
<
New
QuestionTab
<
Operate
QuestionTab
questionTypeKey=
{
activeKey
}
onRef=
{
(
ref
)
=>
{
this
.
judgeRef
=
ref
;
...
...
@@ -413,7 +413,7 @@ class AddNewQuestion extends Component {
}
key=
"GAP_FILLING"
>
<
New
QuestionTab
<
Operate
QuestionTab
questionTypeKey=
{
activeKey
}
onRef=
{
(
ref
)
=>
{
this
.
gapRef
=
ref
;
...
...
@@ -451,7 +451,7 @@ class AddNewQuestion extends Component {
}
key=
"INDEFINITE_CHOICE"
>
<
New
QuestionTab
<
Operate
QuestionTab
questionTypeKey=
{
activeKey
}
onRef=
{
(
ref
)
=>
{
this
.
indefiniteRef
=
ref
;
...
...
@@ -496,4 +496,4 @@ class AddNewQuestion extends Component {
}
}
export
default
AddNew
Question
;
export
default
Operate
Question
;
src/modules/teach-tool/question-
bank/AddNew
Question.less
→
src/modules/teach-tool/question-
manage/Operate
Question.less
View file @
6e01f9ee
.
add-new-question
{
.
operate-question-page
{
position: relative !important;
.box {
margin-bottom: 66px !important;
...
...
src/modules/teach-tool/question-
bank/components/New
QuestionTab.jsx
→
src/modules/teach-tool/question-
manage/components/Operate
QuestionTab.jsx
View file @
6e01f9ee
...
...
@@ -3,7 +3,7 @@
* @Date: 2021-02-25 14:34:29
* @LastEditors: yuananting
* @LastEditTime: 2021-03-29 16:22:15
* @Description: 助学工具-题库-
新建
题目Tab
* @Description: 助学工具-题库-
操作
题目Tab
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
import
React
,
{
Component
}
from
"react"
;
...
...
@@ -17,7 +17,7 @@ import {
Input
,
Popover
,
}
from
"antd"
;
import
"./
New
QuestionTab.less"
;
import
"./
Operate
QuestionTab.less"
;
import
QuestionEditor
from
"./QuestionEditor"
;
import
{
PlusOutlined
,
CloseOutlined
}
from
"@ant-design/icons"
;
import
{
...
...
@@ -34,7 +34,7 @@ import ScanFileModal from "@/modules/resource-disk/modal/ScanFileModal";
import
SelectPrepareFileModal
from
"@/modules/prepare-lesson/modal/SelectPrepareFileModal"
;
import
_
from
"lodash"
;
class
New
QuestionTab
extends
Component
{
class
Operate
QuestionTab
extends
Component
{
constructor
(
props
)
{
super
(
props
);
const
{
questionInfo
=
{}
}
=
props
;
...
...
@@ -1377,4 +1377,4 @@ class NewQuestionTab extends Component {
}
}
export
default
New
QuestionTab
;
export
default
Operate
QuestionTab
;
src/modules/teach-tool/question-
bank/components/New
QuestionTab.less
→
src/modules/teach-tool/question-
manage/components/Operate
QuestionTab.less
View file @
6e01f9ee
File moved
src/modules/teach-tool/question-
bank
/components/QuestionEditor.jsx
→
src/modules/teach-tool/question-
manage
/components/QuestionEditor.jsx
View file @
6e01f9ee
File moved
src/modules/teach-tool/question-
bank
/components/QuestionEditor.less
→
src/modules/teach-tool/question-
manage
/components/QuestionEditor.less
View file @
6e01f9ee
File moved
src/modules/teach-tool/question-
bank/components/QuestionManageConten
t.jsx
→
src/modules/teach-tool/question-
manage/components/QuestionLis
t.jsx
View file @
6e01f9ee
...
...
@@ -3,7 +3,7 @@
* @Date: 2021-02-25 11:23:47
* @LastEditors: yuananting
* @LastEditTime: 2021-04-01 13:47:54
* @Description: 助学工具-题库-列表数据
* @Description: 助学工具-题库-
题目
列表数据
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
import
React
,
{
Component
}
from
"react"
;
...
...
@@ -21,11 +21,11 @@ import {
message
,
}
from
"antd"
;
import
{
PageControl
}
from
"@/components"
;
import
"./Question
ManageConten
t.less"
;
import
"./Question
Lis
t.less"
;
import
User
from
"@/common/js/user"
;
import
AidToolService
from
"@/domains/aid-tool-domain/AidToolService"
;
import
_
from
"underscore"
;
import
QuestionPreviewModal
from
"../modal/QuestionPreview
Modal"
;
import
PreviewQuestionModal
from
"../modal/PreviewQuestion
Modal"
;
import
BatchImportQuestionModal
from
"../modal/BatchImportQuestionModal"
;
const
{
Search
}
=
Input
;
...
...
@@ -61,7 +61,7 @@ const questionTypeList = [
},
];
class
Question
ManageConten
t
extends
Component
{
class
Question
Lis
t
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
...
...
@@ -77,7 +77,7 @@ class QuestionManageContent extends Component {
userId
:
User
.
getStoreUserId
(),
},
dataSource
:
[],
// 题库列表
questionPreview
Modal
:
null
,
// 题目预览模态框
previewQuestion
Modal
:
null
,
// 题目预览模态框
batchImportQuestionModal
:
null
,
// 批量导入模态框
};
}
...
...
@@ -156,7 +156,7 @@ class QuestionManageContent extends Component {
<
span
className=
"empty-list-tip"
onClick=
{
()
=>
{
this
.
handleCreateQuestion
Bank
();
this
.
handleCreateQuestion
();
}
}
>
新建一个
...
...
@@ -315,23 +315,23 @@ class QuestionManageContent extends Component {
// 预览题目
previewQuestion
=
(
id
)
=>
{
const
m
=
(
<
QuestionPreview
Modal
<
PreviewQuestion
Modal
id=
{
id
}
close=
{
()
=>
{
this
.
setState
({
questionPreview
Modal
:
null
,
previewQuestion
Modal
:
null
,
});
}
}
/>
);
this
.
setState
({
questionPreview
Modal
:
m
});
this
.
setState
({
previewQuestion
Modal
:
m
});
};
// 编辑题目
editQuestion
=
(
id
,
type
)
=>
{
const
{
categoryId
}
=
this
.
state
.
query
;
window
.
RCHistory
.
push
({
pathname
:
`
/create-new-question
?id=
${
id
}
&type=
${
type
}
&categoryId=
${
categoryId
}
`
,
pathname
:
`
question-operate-page
?id=
${
id
}
&type=
${
type
}
&categoryId=
${
categoryId
}
`
,
});
};
...
...
@@ -376,9 +376,9 @@ class QuestionManageContent extends Component {
};
// 创建题目-跳转新建页
handleCreateQuestion
Bank
=
()
=>
{
handleCreateQuestion
=
()
=>
{
window
.
RCHistory
.
push
({
pathname
:
`
/create-new-question
?categoryId=
${
this
.
state
.
query
.
categoryId
}
`
,
pathname
:
`
question-operate-page
?categoryId=
${
this
.
state
.
query
.
categoryId
}
`
,
});
};
...
...
@@ -403,13 +403,13 @@ class QuestionManageContent extends Component {
dataSource
=
[],
total
,
query
,
questionPreview
Modal
,
previewQuestion
Modal
,
batchImportQuestionModal
,
}
=
this
.
state
;
const
{
current
,
size
,
categoryId
,
questionName
,
questionType
}
=
query
;
return
(
<
div
className=
"question-
manage-conten
t"
>
<
div
className=
"question-
manage
-filter"
>
<
div
className=
"question-
lis
t"
>
<
div
className=
"question-
list
-filter"
>
<
Row
type=
"flex"
justify=
"space-between"
align=
"top"
>
<
div
className=
"search-condition"
>
<
div
className=
"search-condition__item"
>
...
...
@@ -475,13 +475,13 @@ class QuestionManageContent extends Component {
{
[
"CloudManager"
,
"StoreManager"
].
includes
(
User
.
getUserRole
())
&&
categoryId
&&
(
<
Space
size=
{
16
}
>
<
Button
type=
"primary"
onClick=
{
this
.
handleCreateQuestion
Bank
}
>
<
Button
type=
"primary"
onClick=
{
this
.
handleCreateQuestion
}
>
新建题目
</
Button
>
<
Button
onClick=
{
this
.
batchImportQuestion
}
>
批量导入
</
Button
>
</
Space
>
)
}
<
div
className=
"question-
manage-lis
t"
>
<
div
className=
"question-
list-conten
t"
>
<
ConfigProvider
renderEmpty=
{
this
.
customizeRenderEmpty
}
>
<
Table
rowKey=
{
(
record
)
=>
record
.
id
}
...
...
@@ -509,7 +509,7 @@ class QuestionManageContent extends Component {
/>
</
div
>
)
}
{
questionPreview
Modal
}
{
previewQuestion
Modal
}
{
batchImportQuestionModal
}
</
div
>
</
div
>
...
...
@@ -517,4 +517,4 @@ class QuestionManageContent extends Component {
}
}
export
default
Question
ManageConten
t
;
export
default
Question
Lis
t
;
src/modules/teach-tool/question-
bank/components/QuestionManageConten
t.less
→
src/modules/teach-tool/question-
manage/components/QuestionLis
t.less
View file @
6e01f9ee
.question-
manage-conten
t {
.question-
manage
-filter {
.question-
lis
t {
.question-
list
-filter {
position: relative;
.search-condition {
width: calc(100% - 80px);
...
...
@@ -41,7 +41,7 @@
.data-icon {
cursor: pointer;
}
.question-
manage-lis
t {
.question-
list-conten
t {
position: relative;
margin-top: 16px;
.empty-list-tip {
...
...
src/modules/teach-tool/question-
bank
/modal/BatchImportQuestionModal.jsx
→
src/modules/teach-tool/question-
manage
/modal/BatchImportQuestionModal.jsx
View file @
6e01f9ee
File moved
src/modules/teach-tool/question-
bank
/modal/BatchImportQuestionModal.less
→
src/modules/teach-tool/question-
manage
/modal/BatchImportQuestionModal.less
View file @
6e01f9ee
File moved
src/modules/teach-tool/question-
bank/modal/QuestionPreview
Modal.jsx
→
src/modules/teach-tool/question-
manage/modal/PreviewQuestion
Modal.jsx
View file @
6e01f9ee
...
...
@@ -10,7 +10,7 @@ import React, { Component } from "react";
import
{
Modal
}
from
"antd"
;
import
User
from
"@/common/js/user"
;
import
AidToolService
from
"@/domains/aid-tool-domain/AidToolService"
;
import
"./
QuestionPreview
Modal.less"
;
import
"./
PreviewQuestion
Modal.less"
;
import
ScanFileModal
from
"@/modules/resource-disk/modal/ScanFileModal"
;
import
_
from
"underscore"
;
import
XMAudio
from
"../../components/XMAudio"
;
...
...
@@ -23,7 +23,7 @@ const questionTypeList = {
INDEFINITE_CHOICE
:
"不定项选择题"
,
};
class
QuestionPreview
Modal
extends
Component
{
class
PreviewQuestion
Modal
extends
Component
{
formRef
=
React
.
createRef
();
constructor
(
props
)
{
super
(
props
);
...
...
@@ -98,7 +98,7 @@ class QuestionPreviewModal extends Component {
return
(
<
div
>
<
Modal
className=
"
question-preview
-modal"
className=
"
preview-question
-modal"
visible=
{
true
}
title=
"题目预览"
width=
{
560
}
...
...
@@ -449,4 +449,4 @@ class QuestionPreviewModal extends Component {
);
}
}
export
default
QuestionPreview
Modal
;
export
default
PreviewQuestion
Modal
;
src/modules/teach-tool/question-
bank/modal/QuestionPreview
Modal.less
→
src/modules/teach-tool/question-
manage/modal/PreviewQuestion
Modal.less
View file @
6e01f9ee
...
...
@@ -277,6 +277,6 @@
}
}
}
.
question-preview
-modal.ant-modal {
.
preview-question
-modal.ant-modal {
max-height: 60% !important;
}
src/routes/config/mainRoutes.tsx
View file @
6e01f9ee
...
...
@@ -26,11 +26,10 @@ import AddPlanPage from '@/modules/plan-manage/AddPlan';
import
LearningDataPage
from
'@/modules/plan-manage/LearningData'
;
import
StoreInfoPage
from
'@/modules/store-manage/StoreInfo'
;
import
CourseCategoryManage
from
'@/modules/teach-tool/components/CourseCategoryManage'
;
import
QuestionBankIndex
from
'@/modules/teach-tool/question-bank/QuestionBankIndex'
;
import
AddNewQuestion
from
'@/modules/teach-tool/question-bank/AddNewQuestion'
;
import
ExaminationPaperIndex
from
'@/modules/teach-tool/examination-paper/ExaminationPaperIndex'
;
import
NewExaminationPaper
from
'@/modules/teach-tool/examination-paper/NewExaminationPaper'
;
import
QuestionManageIndex
from
'@/modules/teach-tool/question-manage/Index'
;
import
OperateQuestion
from
"@/modules/teach-tool/question-manage/OperateQuestion"
;
import
PaperManageIndex
from
'@/modules/teach-tool/paper-manage/Index'
;
import
OperatePaper
from
"@/modules/teach-tool/paper-manage/OperatePaper"
;
import
ExaminationManagerIndex
from
'@/modules/teach-tool/examination-manager/Index'
;
const
mainRoutes
=
[
...
...
@@ -100,33 +99,30 @@ const mainRoutes = [
name
:
'资料云盘'
},
{
path
:
'/question-
bank
-index'
,
component
:
Question
Bank
Index
,
path
:
'/question-
manage
-index'
,
component
:
Question
Manage
Index
,
name
:
'题库'
},
{
path
:
'/
create-new-question
'
,
component
:
AddNew
Question
,
name
:
'新增
题目'
path
:
'/
question-operate-page
'
,
component
:
Operate
Question
,
name
:
'操作
题目'
},
{
path
:
'/
examination-paper
-index'
,
component
:
ExaminationPaper
Index
,
path
:
'/
paper-manage
-index'
,
component
:
PaperManage
Index
,
name
:
'试卷'
},
{
path
:
'/
new-examination-paper
'
,
component
:
NewExamination
Paper
,
name
:
'新建
试卷'
path
:
'/
paper-operate-page
'
,
component
:
Operate
Paper
,
name
:
'操作
试卷'
},
{
path
:
'/examination-manage-index'
,
component
:
ExaminationManagerIndex
,
name
:
'考试'
},
{
path
:
'/course-category-manage'
,
component
:
CourseCategoryManage
,
...
...
src/routes/config/menuList.tsx
View file @
6e01f9ee
...
...
@@ -61,12 +61,12 @@ export const menuList: any = [
{
groupName
:
"题库"
,
groupCode
:
"QuestionBank"
,
link
:
'/question-
bank
-index'
link
:
'/question-
manage
-index'
},
{
groupName
:
"试卷"
,
groupCode
:
"QuestionBank"
,
link
:
'/
examination-paper
-index'
link
:
'/
paper-manage
-index'
},
{
groupName
:
"考试"
,
...
...
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