题库提交

dev_jupyter
杨树林 5 years ago
parent cea60c87d5
commit a85d7bbb37

@ -368,7 +368,7 @@ class Paperreview extends Component {
>
{
Intelligentformation===true?
<IntelligentModel {...this.state} {...this.props} exam_id={this.props.match.params.id} Confirmationofvolumeformations={()=>this.Confirmationofvolumeformations()}></IntelligentModel>
<IntelligentModel getdata={(data)=>this.getdata(data)} {...this.state} {...this.props} exam_id={this.props.match.params.id} Confirmationofvolumeformations={()=>this.Confirmationofvolumeformations()}></IntelligentModel>
:""
}
{

@ -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>
)

@ -761,7 +761,7 @@ class Comthetestpaperst 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>

@ -1041,3 +1041,24 @@
color: #4CACFF !important;
font-size:14px;
}
.tikutask-btn{
width:80px;
height:34px;
background:rgba(204,204,204,1);
border-radius:4px;
}
.tikutask-btns{
width:80px;
height:34px;
background:rgba(76,172,255,1);
border-radius:4px;
}
.w100{
width: 100px !important;
}
.h34{
height: 34px !important;
}
.lh34{
line-height: 34px !important;
}

Loading…
Cancel
Save