分组作业题库发送和删除题

dev_aliyun_beta
杨树林 6 years ago
parent 925a20f79a
commit 6db157fe7f

@ -2287,6 +2287,15 @@ class PollNewQuestbank extends Component {
//提交题目//没有就创建新的题库新建问newz题和保存题目不一样不能同时保存 这里只是新建 和编辑 标题和须知
submitQuestionnaire = () => {
if (this.state.polls_nametest === undefined || this.state.polls_nametest === "") {
this.props.showNotification("请输入标题");
return
}
if(this.state.poll_questions&&this.state.poll_questions.length===0){
this.props.showNotification("至少创建1个题目");
return;
}
this.props.history.push(`/banks/poll/${this.props.match.params.workid}`);
// this.props.initPublic(undefined);
// console.log("调用了submitQuestionnaire")

Loading…
Cancel
Save