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
dca77248
Commit
dca77248
authored
Mar 25, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:去除console
parent
6b940f8b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
src/modules/teach-tool/AddNewQuestion.jsx
+1
-2
src/modules/teach-tool/components/NewQuestionTab.jsx
+1
-5
src/modules/teach-tool/components/QuestionEditor.jsx
+0
-1
No files found.
src/modules/teach-tool/AddNewQuestion.jsx
View file @
dca77248
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Author: yuananting
* @Date: 2021-02-25 13:46:35
* @Date: 2021-02-25 13:46:35
* @LastEditors: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-03-25 15:
08:08
* @LastEditTime: 2021-03-25 15:
39:55
* @Description: 助学工具-题库-题目管理-新增题目
* @Description: 助学工具-题库-题目管理-新增题目
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -391,7 +391,6 @@ class AddNewQuestion extends Component {
...
@@ -391,7 +391,6 @@ class AddNewQuestion extends Component {
}
}
}
}
questionInfo=
{
gapFillingContent
}
questionInfo=
{
gapFillingContent
}
onSetState=
{
(
newContent
)
=>
{
onSetState=
{
(
newContent
)
=>
{
console
.
log
(
"填空题"
,
newContent
)
Object
.
assign
(
gapFillingContent
,
newContent
);
Object
.
assign
(
gapFillingContent
,
newContent
);
}
}
}
}
/>
/>
...
...
src/modules/teach-tool/components/NewQuestionTab.jsx
View file @
dca77248
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Author: yuananting
* @Date: 2021-02-25 14:34:29
* @Date: 2021-02-25 14:34:29
* @LastEditors: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-03-25 15:
10:56
* @LastEditTime: 2021-03-25 15:
40:18
* @Description: 助学工具-题库-题目管理-新建题目Tab
* @Description: 助学工具-题库-题目管理-新建题目Tab
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -132,7 +132,6 @@ class NewQuestionTab extends Component {
...
@@ -132,7 +132,6 @@ class NewQuestionTab extends Component {
}
}
_onSetState
=
(
params
=
{})
=>
{
_onSetState
=
(
params
=
{})
=>
{
console
.
log
(
"_onSetState_____this.state.gapFillingAnswer"
,
this
.
state
.
gapFillingAnswer
)
this
.
setState
({
...
params
,
updateKey
:
window
.
random_string
(
16
)
},
()
=>
{
this
.
setState
({
...
params
,
updateKey
:
window
.
random_string
(
16
)
},
()
=>
{
this
.
props
.
onSetState
({
this
.
props
.
onSetState
({
questionStemList
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
state
.
stemContent
)),
questionStemList
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
state
.
stemContent
)),
...
@@ -575,7 +574,6 @@ class NewQuestionTab extends Component {
...
@@ -575,7 +574,6 @@ class NewQuestionTab extends Component {
changeBlankCount
=
(
data
,
idx
)
=>
{
changeBlankCount
=
(
data
,
idx
)
=>
{
const
{
gapFillingAnswer
}
=
this
.
state
;
const
{
gapFillingAnswer
}
=
this
.
state
;
let
_gap
=
[...
gapFillingAnswer
];
let
_gap
=
[...
gapFillingAnswer
];
console
.
log
(
"__changeBlankCount_gap111"
,
_gap
)
if
(
data
.
length
<=
idx
)
{
if
(
data
.
length
<=
idx
)
{
_gap
.
splice
(
idx
,
1
);
_gap
.
splice
(
idx
,
1
);
}
else
{
}
else
{
...
@@ -597,7 +595,6 @@ class NewQuestionTab extends Component {
...
@@ -597,7 +595,6 @@ class NewQuestionTab extends Component {
item
.
editInput
=
false
;
item
.
editInput
=
false
;
return
item
;
return
item
;
});
});
console
.
log
(
"__changeBlankCount_gap222"
,
_gap
)
}
}
this
.
setState
(
this
.
setState
(
...
@@ -687,7 +684,6 @@ class NewQuestionTab extends Component {
...
@@ -687,7 +684,6 @@ class NewQuestionTab extends Component {
};
};
renderGapFillingAnswer
=
(
optionItem
,
optionIndex
)
=>
{
renderGapFillingAnswer
=
(
optionItem
,
optionIndex
)
=>
{
console
.
log
(
"*****renderGapFillingAnswer******"
,
gapFillingAnswer
)
const
{
gapFillingAnswer
}
=
this
.
state
;
const
{
gapFillingAnswer
}
=
this
.
state
;
const
list
=
const
list
=
gapFillingAnswer
[
optionIndex
]
&&
gapFillingAnswer
[
optionIndex
]
&&
...
...
src/modules/teach-tool/components/QuestionEditor.jsx
View file @
dca77248
...
@@ -159,7 +159,6 @@ class QuestionEditor extends Component {
...
@@ -159,7 +159,6 @@ class QuestionEditor extends Component {
);
);
if
(
counter
===
0
)
{
if
(
counter
===
0
)
{
console
.
log
(
"编辑——0————editor:"
,
stemDom
)
this
.
props
.
changeBlankCount
(
stemDom
);
this
.
props
.
changeBlankCount
(
stemDom
);
}
}
}
}
...
...
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