|
|
@ -831,20 +831,7 @@ class PollNew extends Component {
|
|
|
|
//保存并继续,即提交本题的新建并继续创建一个相同的题(该新题处于编辑模式,题目和选项不要清空)
|
|
|
|
//保存并继续,即提交本题的新建并继续创建一个相同的题(该新题处于编辑模式,题目和选项不要清空)
|
|
|
|
Deleteadddomtwo = (indexo, object,bool) => {
|
|
|
|
Deleteadddomtwo = (indexo, object,bool) => {
|
|
|
|
var thiss = this;
|
|
|
|
var thiss = this;
|
|
|
|
if(bool === true){
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
q_countst: 1,
|
|
|
|
|
|
|
|
bindingid:undefined,
|
|
|
|
|
|
|
|
Newdisplay:false,
|
|
|
|
|
|
|
|
newoption: false,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
q_countst: 1,
|
|
|
|
|
|
|
|
Newdisplay:false,
|
|
|
|
|
|
|
|
newoption: false,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var poll_questionslength = this.state.poll_questions.length;
|
|
|
|
var poll_questionslength = this.state.poll_questions.length;
|
|
|
|
// console.log("deleteadddomtwo|||||||||||||||||||||||||||||||||||||||||\\");
|
|
|
|
// console.log("deleteadddomtwo|||||||||||||||||||||||||||||||||||||||||\\");
|
|
|
@ -988,7 +975,6 @@ class PollNew extends Component {
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制`);
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制`);
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -999,11 +985,11 @@ class PollNew extends Component {
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if(object.question.min_choices){
|
|
|
|
if(object.question.min_choices){
|
|
|
|
if(object.question.min_choices===0){
|
|
|
|
if(object.question.min_choices===0){
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1015,11 +1001,11 @@ class PollNew extends Component {
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
if(object.question.max_choices){
|
|
|
|
if(object.question.max_choices){
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1075,22 +1061,9 @@ class PollNew extends Component {
|
|
|
|
insindex = this.state.problemtopic;
|
|
|
|
insindex = this.state.problemtopic;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.createquestionsandanswers(object, 2, arrc, null, object.question.max_choices, object.question.min_choices, insindex,object.question.answers.length);
|
|
|
|
this.createquestionsandanswers(object, 2, arrc, null, object.question.max_choices, object.question.min_choices, insindex,object.question.answers.length);
|
|
|
|
//插入多选题
|
|
|
|
|
|
|
|
// if (object.question.max_choices > arrc.length) {
|
|
|
|
|
|
|
|
// // console.log("选择题的最大可选项不能大于选项数")
|
|
|
|
|
|
|
|
// this.props.showNotification(`选择题的最大可选项不能大于选项数`);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (object.question.min_choices === 0) {
|
|
|
|
|
|
|
|
// // console.log("选择题的最大可选项不能小于2项目")
|
|
|
|
|
|
|
|
// this.props.showNotification(`选择题的最大可选项不能小于2项目`);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// newarrpoll.push(question);
|
|
|
|
|
|
|
|
newarrpoll.splice(thiss.state.Insertposition, 0, question);
|
|
|
|
newarrpoll.splice(thiss.state.Insertposition, 0, question);
|
|
|
|
|
|
|
|
|
|
|
|
} else if (object.question.question_type === 3) {
|
|
|
|
} else if (object.question.question_type === 3) {
|
|
|
|
//插入主观题
|
|
|
|
//插入主观题
|
|
|
|
var answers = [];
|
|
|
|
var answers = [];
|
|
|
@ -1222,7 +1195,6 @@ class PollNew extends Component {
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制`);
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制`);
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1233,11 +1205,11 @@ class PollNew extends Component {
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if(object.question.min_choices){
|
|
|
|
if(object.question.min_choices){
|
|
|
|
if(object.question.min_choices===0){
|
|
|
|
if(object.question.min_choices===0){
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1249,11 +1221,11 @@ class PollNew extends Component {
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
if(object.question.max_choices){
|
|
|
|
if(object.question.max_choices){
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1304,20 +1276,7 @@ class PollNew extends Component {
|
|
|
|
"answers": answers
|
|
|
|
"answers": answers
|
|
|
|
};
|
|
|
|
};
|
|
|
|
question = {"question": questiontwo};
|
|
|
|
question = {"question": questiontwo};
|
|
|
|
//插入多选题
|
|
|
|
|
|
|
|
// if (object.question.max_choices > arrc.length) {
|
|
|
|
|
|
|
|
// // console.log("选择题的最大可选项不能大于答案数")
|
|
|
|
|
|
|
|
// this.props.showNotification('选择题的最大可选项不能大于选项数!');
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (object.question.min_choices === 0) {
|
|
|
|
|
|
|
|
// // console.log("选择题的最大可选项不能小于2项目")
|
|
|
|
|
|
|
|
// this.props.showNotification('选择题的最大可选项不能小于2项目!');
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
if (uuk !== -1) {
|
|
|
|
if (uuk !== -1) {
|
|
|
|
// console.log("修改")
|
|
|
|
// console.log("修改")
|
|
|
|
this.edittotheserver(object, 2, arrc, null, object.question.max_choices, object.question.min_choices,object.question.answers.length);
|
|
|
|
this.edittotheserver(object, 2, arrc, null, object.question.max_choices, object.question.min_choices,object.question.answers.length);
|
|
|
@ -1393,6 +1352,20 @@ class PollNew extends Component {
|
|
|
|
this.state.mymainsint = this.state.mymainsint + 1;
|
|
|
|
this.state.mymainsint = this.state.mymainsint + 1;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(bool === true){
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
q_countst: 1,
|
|
|
|
|
|
|
|
bindingid:undefined,
|
|
|
|
|
|
|
|
Newdisplay:false,
|
|
|
|
|
|
|
|
newoption: false,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
q_countst: 1,
|
|
|
|
|
|
|
|
Newdisplay:false,
|
|
|
|
|
|
|
|
newoption: false,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
// poll_questions: newarrpoll,
|
|
|
|
// poll_questions: newarrpoll,
|
|
|
|
adddom: newarr,
|
|
|
|
adddom: newarr,
|
|
|
@ -1411,11 +1384,6 @@ class PollNew extends Component {
|
|
|
|
// indexo 第几个数组
|
|
|
|
// indexo 第几个数组
|
|
|
|
//object 单个数组数据
|
|
|
|
//object 单个数组数据
|
|
|
|
Deleteadddomthree = (indexo, object,bool) => {
|
|
|
|
Deleteadddomthree = (indexo, object,bool) => {
|
|
|
|
if(bool === true) {
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
bindingid:undefined,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
Newdisplay:false,
|
|
|
|
Newdisplay:false,
|
|
|
|
newoption: false,
|
|
|
|
newoption: false,
|
|
|
@ -1556,11 +1524,11 @@ class PollNew extends Component {
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if(object.question.min_choices){
|
|
|
|
if(object.question.min_choices){
|
|
|
|
if(object.question.min_choices===0){
|
|
|
|
if(object.question.min_choices===0){
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1572,11 +1540,11 @@ class PollNew extends Component {
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
if(object.question.max_choices){
|
|
|
|
if(object.question.max_choices){
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1590,7 +1558,6 @@ class PollNew extends Component {
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// return;
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
var questiontwo = {};
|
|
|
|
var questiontwo = {};
|
|
|
|
var other = [];
|
|
|
|
var other = [];
|
|
|
|
var option = [];
|
|
|
|
var option = [];
|
|
|
@ -1640,6 +1607,7 @@ class PollNew extends Component {
|
|
|
|
// if (object.question.max_choices > arrc.length) {
|
|
|
|
// if (object.question.max_choices > arrc.length) {
|
|
|
|
|
|
|
|
|
|
|
|
newarrpoll.splice(thiss.state.Insertposition, 0, question);
|
|
|
|
newarrpoll.splice(thiss.state.Insertposition, 0, question);
|
|
|
|
|
|
|
|
|
|
|
|
} else if (object.question.question_type === 3) {
|
|
|
|
} else if (object.question.question_type === 3) {
|
|
|
|
//插入主观题
|
|
|
|
//插入主观题
|
|
|
|
var answers = [];
|
|
|
|
var answers = [];
|
|
|
@ -1758,7 +1726,6 @@ class PollNew extends Component {
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制`);
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制`);
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1768,11 +1735,11 @@ class PollNew extends Component {
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if(object.question.max_choices>0){
|
|
|
|
if(object.question.min_choices){
|
|
|
|
if(object.question.min_choices){
|
|
|
|
if(object.question.min_choices===0){
|
|
|
|
if(object.question.min_choices===0){
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1784,11 +1751,12 @@ class PollNew extends Component {
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
if(object.question.max_choices){
|
|
|
|
if(object.question.max_choices){
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
this.props.showNotification(`最小和最大限制须同时为数值或者“--"`);
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1843,7 +1811,6 @@ class PollNew extends Component {
|
|
|
|
this.createquestionsandanswers(object, 2, arrc, null, object.question.max_choices, object.question.min_choices, object.question.id,object.question.answers.length);
|
|
|
|
this.createquestionsandanswers(object, 2, arrc, null, object.question.max_choices, object.question.min_choices, object.question.id,object.question.answers.length);
|
|
|
|
newarrpoll.push(question);
|
|
|
|
newarrpoll.push(question);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// console.log(newarrpoll)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (object.question.question_type === 3) {
|
|
|
|
} else if (object.question.question_type === 3) {
|
|
|
|
//插入主观题
|
|
|
|
//插入主观题
|
|
|
@ -1915,6 +1882,11 @@ class PollNew extends Component {
|
|
|
|
q_countst: 0,
|
|
|
|
q_countst: 0,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(bool === true) {
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
bindingid:undefined,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
this.Deleteadddom(indexo);
|
|
|
|
this.Deleteadddom(indexo);
|
|
|
|
// console.log(indexo)
|
|
|
|
// console.log(indexo)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2096,6 +2068,7 @@ class PollNew extends Component {
|
|
|
|
thiss.thisinitializationdatanew();
|
|
|
|
thiss.thisinitializationdatanew();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//上下移到服务器中
|
|
|
|
//上下移到服务器中
|
|
|
@ -2892,7 +2865,7 @@ class PollNew extends Component {
|
|
|
|
console.log(this.state.poll_questions);
|
|
|
|
console.log(this.state.poll_questions);
|
|
|
|
console.log(this.state.adddom);
|
|
|
|
console.log(this.state.adddom);
|
|
|
|
let resultDom;
|
|
|
|
let resultDom;
|
|
|
|
resultDom = <div>
|
|
|
|
resultDom = <div >
|
|
|
|
<p className="clearfix font-16">
|
|
|
|
<p className="clearfix font-16">
|
|
|
|
<span className="color-grey-6 fl">第{index + 1}题:</span>
|
|
|
|
<span className="color-grey-6 fl">第{index + 1}题:</span>
|
|
|
|
<span
|
|
|
|
<span
|
|
|
@ -2988,7 +2961,7 @@ class PollNew extends Component {
|
|
|
|
resultDomtwo =
|
|
|
|
resultDomtwo =
|
|
|
|
<div >
|
|
|
|
<div >
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className="font-16 color-grey-6 mb20">{itemo.question.question_type === 1 ? "单选题" : itemo.question.question_type === 2 ? "多选题" : "主观题"}
|
|
|
|
className="font-16 color-grey-6 mb20" id={"yslproblms3"}>{itemo.question.question_type === 1 ? "单选题" : itemo.question.question_type === 2 ? "多选题" : "主观题"}
|
|
|
|
<Checkbox value={itemo.question.is_necessary}
|
|
|
|
<Checkbox value={itemo.question.is_necessary}
|
|
|
|
checked={itemo.question.is_necessary === 1 ? true : false}
|
|
|
|
checked={itemo.question.is_necessary === 1 ? true : false}
|
|
|
|
onChange={(e) => this.OnCheckAllChange(e, indexo)}
|
|
|
|
onChange={(e) => this.OnCheckAllChange(e, indexo)}
|
|
|
@ -3056,7 +3029,7 @@ class PollNew extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
<div className="df">
|
|
|
|
<div className="df">
|
|
|
|
{itemo.question.question_type === 1 ? (
|
|
|
|
{itemo.question.question_type === 1 ? (
|
|
|
|
<div>
|
|
|
|
<div className="ml10">
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
<ActionBtn style="grey" className="mr20 mt5"
|
|
|
|
<ActionBtn style="grey" className="mr20 mt5"
|
|
|
@ -3091,7 +3064,7 @@ class PollNew extends Component {
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className="color-grey-6 mr20 font-16 lineh-40 fl">可选</span>
|
|
|
|
className="color-grey-6 mr20 ml10 font-16 lineh-40 fl">可选</span>
|
|
|
|
<div className="mr40 flex1 ">
|
|
|
|
<div className="mr40 flex1 ">
|
|
|
|
{/*可选最小1*/}
|
|
|
|
{/*可选最小1*/}
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
@ -3150,11 +3123,11 @@ class PollNew extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div >
|
|
|
|
{itemo.question.question_type === 2 ?
|
|
|
|
{itemo.question.question_type === 2 ?
|
|
|
|
(
|
|
|
|
(
|
|
|
|
this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
<div className="clearfix mt30" >
|
|
|
|
<div className="clearfix mt30 ml10" >
|
|
|
|
|
|
|
|
|
|
|
|
<div><ActionBtn style="grey" className="mr20 fl mt5"
|
|
|
|
<div><ActionBtn style="grey" className="mr20 fl mt5"
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}>新增选项</ActionBtn>
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}>新增选项</ActionBtn>
|
|
|
@ -3230,7 +3203,7 @@ class PollNew extends Component {
|
|
|
|
resultDomtwo =
|
|
|
|
resultDomtwo =
|
|
|
|
<div >
|
|
|
|
<div >
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className="font-16 color-grey-6 mb20">{itemo.question.question_type === 1 ? "单选题" : itemo.question.question_type === 2 ? "多选题" : "主观题"}
|
|
|
|
className="font-16 color-grey-6 mb20" id={"yslproblms2"}>{itemo.question.question_type === 1 ? "单选题" : itemo.question.question_type === 2 ? "多选题" : "主观题"}
|
|
|
|
<Checkbox value={itemo.question.is_necessary}
|
|
|
|
<Checkbox value={itemo.question.is_necessary}
|
|
|
|
checked={itemo.question.is_necessary === 1 ? true : false}
|
|
|
|
checked={itemo.question.is_necessary === 1 ? true : false}
|
|
|
|
onChange={(e) => this.OnCheckAllChange(e, indexo)}
|
|
|
|
onChange={(e) => this.OnCheckAllChange(e, indexo)}
|
|
|
@ -3298,7 +3271,7 @@ class PollNew extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
<div className="df">
|
|
|
|
<div className="df">
|
|
|
|
{itemo.question.question_type === 1 ? (
|
|
|
|
{itemo.question.question_type === 1 ? (
|
|
|
|
<div>
|
|
|
|
<div className="ml10">
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
<ActionBtn style="grey" className="mr20 mt5"
|
|
|
|
<ActionBtn style="grey" className="mr20 mt5"
|
|
|
@ -3396,7 +3369,7 @@ class PollNew extends Component {
|
|
|
|
{itemo.question.question_type === 2 ?
|
|
|
|
{itemo.question.question_type === 2 ?
|
|
|
|
(
|
|
|
|
(
|
|
|
|
this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
<div className="clearfix mt30" >
|
|
|
|
<div className="clearfix mt30 ml10" >
|
|
|
|
|
|
|
|
|
|
|
|
<div><ActionBtn style="grey" className="mr20 fl mt5"
|
|
|
|
<div><ActionBtn style="grey" className="mr20 fl mt5"
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}>新增选项</ActionBtn>
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}>新增选项</ActionBtn>
|
|
|
@ -3481,7 +3454,7 @@ class PollNew extends Component {
|
|
|
|
resultDomtwo =
|
|
|
|
resultDomtwo =
|
|
|
|
<div className="problemShow">
|
|
|
|
<div className="problemShow">
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className="font-16 color-grey-6 mb20">{itemo.question.question_type === 1 ? "单选题" : itemo.question.question_type === 2 ? "多选题" : "主观题"}
|
|
|
|
className="font-16 color-grey-6 mb20" id={"yslproblms"}>{itemo.question.question_type === 1 ? "单选题" : itemo.question.question_type === 2 ? "多选题" : "主观题"}
|
|
|
|
<Checkbox value={itemo.question.is_necessary}
|
|
|
|
<Checkbox value={itemo.question.is_necessary}
|
|
|
|
checked={itemo.question.is_necessary === 1 ? true : false}
|
|
|
|
checked={itemo.question.is_necessary === 1 ? true : false}
|
|
|
|
onChange={(e) => this.OnCheckAllChange(e, indexo)}
|
|
|
|
onChange={(e) => this.OnCheckAllChange(e, indexo)}
|
|
|
@ -3549,7 +3522,7 @@ class PollNew extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
<div className="df">
|
|
|
|
<div className="df">
|
|
|
|
{itemo.question.question_type === 1 ? (
|
|
|
|
{itemo.question.question_type === 1 ? (
|
|
|
|
<div>
|
|
|
|
<div className="ml10">
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
{polls_status === undefined || polls_status === 1 ?
|
|
|
|
{polls_status === undefined || polls_status === 1 ?
|
|
|
|
<ActionBtn style="grey" className="mr20 mt5"
|
|
|
|
<ActionBtn style="grey" className="mr20 mt5"
|
|
|
@ -3647,7 +3620,7 @@ class PollNew extends Component {
|
|
|
|
{itemo.question.question_type === 2 ?
|
|
|
|
{itemo.question.question_type === 2 ?
|
|
|
|
(
|
|
|
|
(
|
|
|
|
polls_status === undefined || polls_status === 1 ?
|
|
|
|
polls_status === undefined || polls_status === 1 ?
|
|
|
|
<div className="clearfix mt30" >
|
|
|
|
<div className="clearfix mt30 ml10" >
|
|
|
|
|
|
|
|
|
|
|
|
<div><ActionBtn style="grey" className="mr20 fl mt5"
|
|
|
|
<div><ActionBtn style="grey" className="mr20 fl mt5"
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}>新增选项</ActionBtn>
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}>新增选项</ActionBtn>
|
|
|
|