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
e1223310
Commit
e1223310
authored
Jun 03, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Plain Diff
fix:解决合并冲突
parents
5b9e121b
193f1d3a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
21 deletions
+68
-21
src/components/XMTable.jsx
+37
-0
src/modules/teach-tool/examination-manager/AddExam.less
+4
-3
src/modules/teach-tool/paper-manage/components/PaperList.jsx
+3
-2
src/modules/teach-tool/paper-manage/components/SelectQuestionList.jsx
+8
-8
src/modules/teach-tool/question-manage/components/QuestionList.jsx
+16
-8
No files found.
src/components/XMTable.jsx
0 → 100644
View file @
e1223310
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Empty
,
ConfigProvider
,
Table
}
from
'antd'
;
function
XMTable
(
props
)
{
const
[
empty
,
setEmpty
]
=
useState
(
props
.
renderEmpty
||
{});
const
[
data
,
setData
]
=
useState
({});
useEffect
(()
=>
{
setEmpty
(
props
.
renderEmpty
)
delete
props
.
renderEmpty
;
setData
(
props
);
},
[
props
]);
// 自定义表格空状态
function
customizeRenderEmpty
()
{
return
(
<
Empty
image=
{
empty
.
image
||
Empty
.
PRESENTED_IMAGE_SIMPLE
}
imageStyle=
{
{
height
:
150
,
}
}
description=
{
empty
.
description
}
></
Empty
>
);
};
return
(
<
ConfigProvider
renderEmpty=
{
customizeRenderEmpty
}
>
<
Table
{
...
data
}
/>
</
ConfigProvider
>
)
}
export
default
XMTable
;
\ No newline at end of file
src/modules/teach-tool/examination-manager/AddExam.less
View file @
e1223310
.examPage{
padding-bottom: 50px;
.box {
padding-bottom:
40
px!important;
padding-bottom:
66
px!important;
}
.ant-form-item{
margin-bottom: 24px !important;
&:last-child{
margin-bottom: 0px !important;
}
}
.form{
margin-top:
12
px;
margin-top:
24
px;
margin-bottom: 32px;
width: 1000px;
.title{
...
...
@@ -19,7 +20,7 @@
font-weight: bold;
color: #333333;
line-height: 22px;
margin-bottom:
8
px;
margin-bottom:
24
px;
}
}
...
...
src/modules/teach-tool/paper-manage/components/PaperList.jsx
View file @
e1223310
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-25 11:23:47
* @LastEditors: yuananting
* @LastEditTime: 2021-0
5-31 13:42:54
* @LastEditTime: 2021-0
6-03 16:09:00
* @Description: 助学工具-题库-试卷列表数据
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -500,8 +500,9 @@ class PaperList extends Component {
onSelectPaper
=
(
selectedPaperKeys
)
=>
{
if
(
selectedPaperKeys
.
length
>
50
)
{
const
extraLength
=
selectedPaperKeys
.
length
-
50
;
selectedPaperKeys
.
splice
(
selectedPaperKeys
.
length
-
extraLength
,
extraLength
);
message
.
warning
(
'最多只能选择50个试卷'
);
return
null
;
}
this
.
setState
({
selectedPaperKeys
});
};
...
...
src/modules/teach-tool/paper-manage/components/SelectQuestionList.jsx
View file @
e1223310
...
...
@@ -154,6 +154,14 @@ class SelectQuestionList extends Component {
parseColumns
=
()
=>
{
const
columns
=
[
{
title
:
"题型"
,
key
:
"questionTypeEnum"
,
dataIndex
:
"questionTypeEnum"
,
render
:
(
val
)
=>
{
return
questionTypeEnum
[
val
];
},
},
{
title
:
"题目"
,
key
:
"questionStem"
,
dataIndex
:
"questionStem"
,
...
...
@@ -180,14 +188,6 @@ class SelectQuestionList extends Component {
},
},
{
title
:
"题型"
,
key
:
"questionTypeEnum"
,
dataIndex
:
"questionTypeEnum"
,
render
:
(
val
)
=>
{
return
questionTypeEnum
[
val
];
},
},
{
title
:
"正确率"
,
key
:
"accuracy"
,
dataIndex
:
"accuracy"
,
...
...
src/modules/teach-tool/question-manage/components/QuestionList.jsx
View file @
e1223310
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-25 11:23:47
* @LastEditors: yuananting
* @LastEditTime: 2021-06-0
1 11:31:1
7
* @LastEditTime: 2021-06-0
3 16:41:4
7
* @Description: 助学工具-题库-题目列表数据
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -477,8 +477,9 @@ class QuestionList extends Component {
onSelectChange
=
(
selectedRowKeys
)
=>
{
if
(
selectedRowKeys
.
length
>
50
)
{
const
extraLength
=
selectedRowKeys
.
length
-
50
;
selectedRowKeys
.
splice
(
selectedRowKeys
.
length
-
extraLength
,
extraLength
);
message
.
warning
(
'最多只能选择50个题目'
);
return
null
;
}
this
.
setState
({
selectedRowKeys
});
};
...
...
@@ -710,12 +711,19 @@ class QuestionList extends Component {
</
span
>
</
div
>
}
<
Dropdown
className=
"ml8"
overlay=
{
this
.
setMoreOperationOption
()
}
>
<
Button
id=
"more_operate"
>
更多操作
<
DownOutlined
/>
</
Button
>
</
Dropdown
>
{
!!
categoryId
?
(
<
Dropdown
className=
"ml8"
overlay=
{
this
.
setMoreOperationOption
()
}
>
<
Button
id=
"more_operate"
>
更多操作
<
DownOutlined
/>
</
Button
>
</
Dropdown
>
)
:
(
<
Space
size=
{
16
}
>
<
Button
onClick=
{
()
=>
this
.
batchMove
()
}
>
批量移动
</
Button
>
<
Button
onClick=
{
()
=>
this
.
batchDelete
()
}
>
批量删除
</
Button
>
</
Space
>
)
}
</
Space
>
)
}
<
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