chromesetting
杨树林 5 years ago
parent d7bfaf0968
commit 1b822f25c9

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

Loading…
Cancel
Save