dev_forum
杨树明 5 years ago
parent 3801ca041a
commit 022a2b57e3

@ -136,7 +136,7 @@ body>.-task-title {
margin-right: 20px;
}
.HeaderSearch .ant-input-search .ant-input{
height:30px;
/*height:30px;*/
background: #373e3f !important;
border: 1px solid #373e3f !important;

@ -189,9 +189,13 @@ export default class TPMevaluation extends Component {
}
let newevaluationlist=[]
if(response.data.test_sets.length===0){
// let newlist=[
// {hidden:0,input:"",output:"",score:50},
// {hidden:1,input:"",output:"",score:50}
// ]
let newlist=[
{hidden:0,input:"",output:"",score:50},
{hidden:1,input:"",output:"",score:50}
{input:"",output:"",score:50},
{input:"",output:"",score:50}
]
newevaluationlist=newlist
}else{
@ -243,7 +247,8 @@ export default class TPMevaluation extends Component {
addevaluationon=()=>{
let {evaluationlist,markvalue}=this.state;
let newevaluationlist=evaluationlist;
newevaluationlist.push({hidden:0,input:"",output:"",score:0});
// newevaluationlist.push({hidden:0,input:"",output:"",score:0});
newevaluationlist.push({input:"",output:"",score:0});
newevaluationlist=this.oneditevaluationlist(newevaluationlist,markvalue);
this.setevaluationlist(newevaluationlist);
}
@ -1076,7 +1081,7 @@ export default class TPMevaluation extends Component {
>%</span>
<Checkbox onChange={()=>this.evaluationonChange(item.hidden,key)} checked={item.hidden===1?true:false}>隐藏</Checkbox>
{/*<Checkbox onChange={()=>this.evaluationonChange(item.hidden,key)} checked={item.hidden===1?true:false}>隐藏</Checkbox>*/}
</span>
<Tooltip placement="bottom" title={"删除"}>

@ -51,7 +51,7 @@ export default class TpmQuestionMain extends Component {
<span className="mr30 color-orange pt10">*</span>
<div className="flex1 mr20">
<TPMMDEditor ref={this.props.contentMdRef} placeholder="请输入选择题的过关任务内容" mdID={'courseContentMD'} refreshTimeout={1500}
watch={true} className="courseMessageMD" initValue={this.props.contentMdRefval}></TPMMDEditor>
watch={true} className="courseMessageMD" initValue={this.props.contentMdRefval} height={700}></TPMMDEditor>
</div>
<div>
<span

Loading…
Cancel
Save