Commit 8b5aea7c by yuananting

feat:控制填空处理

parent 8e54dce0
......@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-25 14:34:29
* @LastEditors: yuananting
* @LastEditTime: 2021-03-18 15:08:11
* @LastEditTime: 2021-03-18 15:57:39
* @Description: 助学工具-题库-题目管理-新建题目Tab
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -111,13 +111,15 @@ class NewQuestionTab extends Component {
),
},
() => {
const con = questionInfo.questionStemList[0].content;
const input = con.match(/<input([^<>]*)>/g)
const _blanksList = input.map(item => {
return this.transferStemDocument(item).firstChild
})
console.log("-----", _blanksList)
this.setState({blanksList:_blanksList})
if(this.props.questionTypeKey==="GAP_FillING") {
const con = questionInfo.questionStemList[0].content;
const input = con.match(/<input([^<>]*)>/g)
const _blanksList = input.map(item => {
return this.transferStemDocument(item).firstChild
})
console.log("-----", _blanksList)
this.setState({blanksList:_blanksList})
}
}
); // 题干内容
this.setState({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment