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
427bb19b
Commit
427bb19b
authored
Mar 18, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:新增导入提示
parent
acb5ccd5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
16 deletions
+8
-16
src/modules/teach-tool/components/NewQuestionTab.jsx
+2
-11
src/modules/teach-tool/modal/BatchImportQuestionModal.jsx
+6
-4
src/modules/teach-tool/modal/BatchImportQuestionModal.less
+0
-1
No files found.
src/modules/teach-tool/components/NewQuestionTab.jsx
View file @
427bb19b
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-25 14:34:29
* @LastEditors: yuananting
* @LastEditTime: 2021-03-18 14:
11:46
* @LastEditTime: 2021-03-18 14:
52:18
* @Description: 助学工具-题库-题目管理-新建题目Tab
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -512,7 +512,6 @@ class NewQuestionTab extends Component {
}
changeBlankCount
=
(
data
)
=>
{
console
.
log
(
"data:"
,
data
);
data
.
forEach
((
item
)
=>
{
if
(
!
item
.
answerTagList
)
{
item
.
answerTagList
=
[];
...
...
@@ -592,7 +591,7 @@ class NewQuestionTab extends Component {
}
}
value=
{
tag
}
size=
"small"
suffix=
{
<
CloseOutlined
style=
{
{
color
:
"#999999"
}
}
/>
}
suffix=
{
<
CloseOutlined
onClick=
{
()
=>
this
.
handleInputConfirm
(
optionItem
)
}
style=
{
{
color
:
"#999999"
}
}
/>
}
onBlur=
{
(
e
)
=>
this
.
handleInputConfirm
(
optionItem
,
e
.
target
.
value
,
index
)
}
...
...
@@ -1019,7 +1018,6 @@ class NewQuestionTab extends Component {
* @memberof QuestionInputItem
*/
handleReupload
=
(
uploadItem
)
=>
{
console
.
log
(
"uploadItem:"
,
uploadItem
);
uploadItem
.
status
=
"init"
;
Upload
.
uploadToOSSEvent
(
uploadItem
.
mediaFile
,
...
...
@@ -1130,7 +1128,6 @@ class NewQuestionTab extends Component {
);
let
acceptType
=
""
;
let
selectTypeList
=
[];
console
.
log
(
"mediaType"
,
mediaType
);
switch
(
mediaType
)
{
case
"PICTURE"
:
acceptType
=
MEDIA_FILE_ACCEPT
.
PICTURE
;
...
...
@@ -1146,8 +1143,6 @@ class NewQuestionTab extends Component {
break
;
}
console
.
log
(
acceptType
,
selectTypeList
);
return
(
<
div
className=
"question-input-item_wrapper"
>
{
/* 题干 */
}
...
...
@@ -1217,10 +1212,6 @@ class NewQuestionTab extends Component {
questionOptionContentList
,
isCorrectAnswer
,
}
=
optionItem
;
console
.
log
(
"questionOptionContentList:"
,
questionOptionContentList
);
optionItem
.
optionSort
=
optionIndex
;
const
mediaBtn
=
[
"VOICE"
,
"AUDIO"
,
"PICTURE"
];
const
placeHold
=
...
...
src/modules/teach-tool/modal/BatchImportQuestionModal.jsx
View file @
427bb19b
...
...
@@ -39,7 +39,6 @@ class BatchImportQuestionModal extends Component {
// 选择云盘资源
handleSelectExcel
=
(
file
)
=>
{
console
.
log
(
file
);
this
.
setState
({
uploadFile
:
file
});
this
.
setState
({
showSelectFileModal
:
false
,
...
...
@@ -133,6 +132,9 @@ class BatchImportQuestionModal extends Component {
</
div
>
<
div
className=
"step-section"
>
<
h4
className=
"step-title"
>
2.选择需要导入的Excel文件
</
h4
>
<
p
style=
{
{
marginBottom
:
16
,
color
:
"gray"
}
}
>
导入限制:一次最多导入1000个题目
</
p
>
<
Button
type=
"primary"
className=
"add-btn"
...
...
@@ -220,9 +222,9 @@ class BatchImportQuestionModal extends Component {
type=
"primary"
className=
"down-btn"
onClick=
{
()
=>
{
this
.
setState
({
status
:
"init"
})
this
.
setState
({
uploadFile
:
null
})
this
.
setState
({
showSelectFileModal
:
true
})
this
.
setState
({
status
:
"init"
})
;
this
.
setState
({
uploadFile
:
null
})
;
this
.
setState
({
showSelectFileModal
:
true
})
;
}
}
>
重新上传文件
...
...
src/modules/teach-tool/modal/BatchImportQuestionModal.less
View file @
427bb19b
...
...
@@ -6,7 +6,6 @@
.step-title {
font-size: 16px;
font-weight: 400;
margin-bottom: 16px;
color: #333;
}
.tip-box {
...
...
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