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
2d180589
Commit
2d180589
authored
Mar 25, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:灰度调试
parent
b3142d23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
src/modules/teach-tool/AddNewQuestion.jsx
+2
-1
src/modules/teach-tool/components/NewQuestionTab.jsx
+6
-1
src/modules/teach-tool/components/QuestionEditor.jsx
+1
-0
No files found.
src/modules/teach-tool/AddNewQuestion.jsx
View file @
2d180589
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-25 13:46:35
* @LastEditors: yuananting
* @LastEditTime: 2021-03-25 1
5:39:55
* @LastEditTime: 2021-03-25 1
6:47:32
* @Description: 助学工具-题库-题目管理-新增题目
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -391,6 +391,7 @@ class AddNewQuestion extends Component {
}
}
questionInfo=
{
gapFillingContent
}
onSetState=
{
(
newContent
)
=>
{
console
.
log
(
"newContent填空"
,
newContent
)
Object
.
assign
(
gapFillingContent
,
newContent
);
}
}
/>
...
...
src/modules/teach-tool/components/NewQuestionTab.jsx
View file @
2d180589
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-25 14:34:29
* @LastEditors: yuananting
* @LastEditTime: 2021-03-25 1
5:40:18
* @LastEditTime: 2021-03-25 1
6:46:35
* @Description: 助学工具-题库-题目管理-新建题目Tab
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -97,6 +97,7 @@ class NewQuestionTab extends Component {
const
{
questionInfo
}
=
nextProps
;
if
(
this
.
props
.
questionInfo
!==
questionInfo
)
{
if
(
questionInfo
.
gapFillingAnswerList
!==
this
.
state
.
gapFillingAnswer
)
{
console
.
log
(
"shouldComponentUpdate"
,
questionInfo
.
gapFillingAnswerList
)
this
.
setState
({
gapFillingAnswer
:
questionInfo
.
gapFillingAnswerList
,
});
...
...
@@ -572,8 +573,11 @@ class NewQuestionTab extends Component {
}
changeBlankCount
=
(
data
,
idx
)
=>
{
console
.
log
(
"___data___"
,
data
)
const
{
gapFillingAnswer
}
=
this
.
state
;
let
_gap
=
[...
gapFillingAnswer
];
console
.
log
(
"___changeBlankCount__gapFillingAnswer____"
,
gapFillingAnswer
)
console
.
log
(
"***_gap:111"
,
_gap
)
if
(
data
.
length
<=
idx
)
{
_gap
.
splice
(
idx
,
1
);
}
else
{
...
...
@@ -595,6 +599,7 @@ class NewQuestionTab extends Component {
item
.
editInput
=
false
;
return
item
;
});
console
.
log
(
"***_gap:222"
,
_gap
)
}
this
.
setState
(
...
...
src/modules/teach-tool/components/QuestionEditor.jsx
View file @
2d180589
...
...
@@ -160,6 +160,7 @@ class QuestionEditor extends Component {
}
editorRoot
.
config
.
onchange
=
(
html
)
=>
{
console
.
log
(
"onchange"
)
const
conLen
=
html
.
replace
(
/<
(?!
img|input
)
.*
?
>/g
,
""
).
length
;
counter
++
;
const
{
focusFlag
}
=
this
.
state
;
...
...
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