|
|
|
@ -48,8 +48,23 @@ class IntelligentModel extends Component {
|
|
|
|
|
Confirmationofvolumeformation=()=>{
|
|
|
|
|
this.props.form.validateFields((err, values) => {
|
|
|
|
|
if (!err) {
|
|
|
|
|
console.log("Confirmationofvolumeformation");
|
|
|
|
|
console.log(values);
|
|
|
|
|
const url=`/examination_intelligent_settings/${this.props.exam_id}/save_exam.json`;
|
|
|
|
|
let data={
|
|
|
|
|
name:values.classroom,
|
|
|
|
|
duration:values.kssc
|
|
|
|
|
}
|
|
|
|
|
axios.post(url, data)
|
|
|
|
|
.then((result) => {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
console.log(result);
|
|
|
|
|
this.props.history.push(`/paperlibrary`);
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
@ -127,7 +142,7 @@ class IntelligentModel extends Component {
|
|
|
|
|
className={"fl construction yslzxueshis "}
|
|
|
|
|
dataSource={optionss}
|
|
|
|
|
>
|
|
|
|
|
<Input className="yslzxueshisy " placeholder="例如:数据结构" onInput={this.handleChange} addonAfter={String(addonAfteronelens3)+"/60"} maxLength={60} />
|
|
|
|
|
<Input className="yslzxueshisy " placeholder="请输入名称,最大限制60个字符" onInput={this.handleChange} addonAfter={String(addonAfteronelens3)+"/60"} maxLength={60} />
|
|
|
|
|
</AutoComplete>
|
|
|
|
|
)}
|
|
|
|
|
<div id='isclassroom'></div>
|
|
|
|
@ -165,12 +180,13 @@ class IntelligentModel extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Form>
|
|
|
|
|
<div className="sortinxdirection">提示:组卷完成后,在试卷库—<span className="tishiyuyans xiaoshou">我的试卷库</span>查看!</div>
|
|
|
|
|
<div className="sortinxdirection">提示:组卷完成后,在试卷库—<a className="tishiyuyans xiaoshou">我的试卷库</a>查看!</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="clearfix mt30 edu-txt-center">
|
|
|
|
|
<a className="task-btn mr30 w80" onClick={()=>this.props.Confirmationofvolumeformations()}>取消</a>
|
|
|
|
|
<a className="task-btn task-btn-orange w80" onClick={()=>this.Confirmationofvolumeformation()}>确定</a>
|
|
|
|
|
<a className="task-btn mr30 h34 w100 lh34" onClick={()=>this.props.Confirmationofvolumeformations()}>取消</a>
|
|
|
|
|
<a className="task-btn task-btn-orange h34 w100 lh34" onClick={()=>this.Confirmationofvolumeformation()}>确定</a>
|
|
|
|
|
</div>
|
|
|
|
|
</Modal>
|
|
|
|
|
)
|
|
|
|
|