import React, {Component} from 'react'; import {Input, Select, Radio, Checkbox, Popconfirm, message, Modal,Tooltip} from 'antd'; import {BrowserRouter as Router, Route, Link, Switch} from "react-router-dom"; import TPMMDEditor from '../../tpm/challengesnew/TPMMDEditor'; const Option = Select.Option; const RadioGroup = Radio.Group; export default class TpmQuestionEdit extends Component { constructor(props) { super(props) this.state = { } } componentDidMount() { } render() { console.log( this.props.neweditanswerRef) console.log( this.props.neweditanswerRefval) console.log( this.props.editanswersRef) console.log( this.props.editanswersRefval) return (

题干

*
必填项

{ this.props.questionlists===undefined||this.props.questionlists.length===0?"":this.props.questionlists.map((item,key)=>{ return(
  • this.props.delquestionlists(key)}>
  • ) }) }

    this.props.addquestionlists()} className="fl edu-default-btn edu-greyline-btn mb20 option_icon_add">新增选项 {this.props.newcnttypesum===0?"请选择答案":"选项内容不能为空"}

  • 参考答案

    必填项

    难度系数

    this.props.onshixunGroupanswe(e)}> 简单 中等 困难

    奖励经验值

    *

    如果学员答题错误,则不能得到相应的经验值
    如果学员成功得到经验值,那么将同时获得等值的金币奖励,如:+10经验值、+10金币

    必填项

    技能标签

    *
    this.props.shixunssanswerkill(e)} value={this.props.shixunssanswerkillvalue} onPressEnter={(e)=>this.props.clickshixunsanswerskill(e)} onBlur={(e)=>this.props.clickshixunsanswerskill(e)} /> {/*+ 添加*/}
    学员答题正确将获得技能,否则不能获得技能 必填项
    { this.props.shixunsskillanswerlist.length === 0 ? "" : this.props.shixunsskillanswerlist.map((itme, key) => { return (
  • {itme} this.props.delshixunssnswerllist(key)}>×
  • ) }) }
    4||this.props.identity===undefined||this.props.power===false?"none":"block"}}> this.props.answer_subit()}>提交 取消
    ) } }