From 1b822f25c97478215adea5b96f898d1171d49c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Mon, 16 Dec 2019 12:00:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/courses/poll/PollNew.js | 22 +------------------ 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/public/react/src/modules/courses/poll/PollNew.js b/public/react/src/modules/courses/poll/PollNew.js index 0c40f48c9..248434295 100644 --- a/public/react/src/modules/courses/poll/PollNew.js +++ b/public/react/src/modules/courses/poll/PollNew.js @@ -1449,6 +1449,7 @@ class PollNew extends Component { //object 单个数组数据 Deleteadddomthree = (indexo, object,bool) => { this.setState({ + Newdisplay:false, newoption: false, }) // console.log("deleteadddom 349") @@ -1578,9 +1579,6 @@ class PollNew extends Component { if(object.question.max_choices>0){ if (object.question.max_choices < object.question.min_choices) { this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); - this.setState({ - Newdisplay:true, - }) return; } } @@ -1591,16 +1589,10 @@ class PollNew extends Component { if(object.question.min_choices){ if(object.question.min_choices===0){ this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); - this.setState({ - Newdisplay:true, - }) return; } }else { this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); - this.setState({ - Newdisplay:true, - }) return; } @@ -1613,16 +1605,10 @@ class PollNew extends Component { if(object.question.max_choices){ if(object.question.max_choices===0){ this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); - this.setState({ - Newdisplay:true, - }) return; } }else { this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`); - this.setState({ - Newdisplay:true, - }) return; } @@ -2028,9 +2014,6 @@ class PollNew extends Component { if (result !== undefined) { if (result.data.status === 0) { this.props.showNotification(`已完成`); - this.setState({ - Newdisplay:false, - }) thiss.thisinitializationdatanew(); // console.log("确认创建问题") // console.log(result) @@ -2106,9 +2089,6 @@ class PollNew extends Component { try { if (result.data.status === 0) { this.props.showNotification(`编辑题目成功`); - this.setState({ - Newdisplay:false, - }) thiss.thisinitializationdatanew(); } } catch (e) {