|
|
|
@ -1062,7 +1062,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
} else if (object.question.question_type === 2) {
|
|
|
|
|
//插入多选题
|
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -1087,11 +1087,11 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
|
if(object.question.max_choices){
|
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -1293,7 +1293,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
//插入多选题
|
|
|
|
|
|
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
|
this.props.showNotification('可选的最大限制不能小于最小限制!');
|
|
|
|
|
this.props.showNotification('可选:最小和最大限制须同时为数值或者“--"');
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -1318,11 +1318,11 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
|
if(object.question.max_choices){
|
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
|
this.props.showNotification(`最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.props.showNotification(`最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -1623,7 +1623,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
} else if (object.question.question_type === 2) {
|
|
|
|
|
//插入多选题
|
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -1649,11 +1649,11 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
|
if(object.question.max_choices){
|
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -1827,7 +1827,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
} else if (object.question.question_type === 2) {
|
|
|
|
|
//插入多选题
|
|
|
|
|
if (object.question.max_choices < object.question.min_choices) {
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -1853,11 +1853,11 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
if(object.question.min_choices>0){
|
|
|
|
|
if(object.question.max_choices){
|
|
|
|
|
if(object.question.max_choices===0){
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.props.showNotification(`可选的最大限制不能小于最小限制!`);
|
|
|
|
|
this.props.showNotification(`可选:最小和最大限制须同时为数值或者“--"`);
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -3251,10 +3251,14 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
// :
|
|
|
|
|
itemo.question.answers.length > 2 &&indext>1?
|
|
|
|
|
<span>
|
|
|
|
|
<a className="lineh-40 mr10"
|
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, false)}><Tooltip
|
|
|
|
|
title="删除" placement={"bottom"}><i
|
|
|
|
|
className="iconfont icon-htmal5icon19 font-22 color-grey-c"></i></Tooltip></a>
|
|
|
|
|
{
|
|
|
|
|
indext > 1 ?
|
|
|
|
|
<a className="lineh-40 mr10"
|
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, false)}><Tooltip
|
|
|
|
|
title="删除" placement={"bottom"}><i
|
|
|
|
|
className="iconfont icon-htmal5icon19 font-22 color-grey-c"></i></Tooltip></a>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
itemo.question.answers[itemo.question.answers.length - 1].answer_text === "其他" && itemo.question.answers.length - 2 === indext ?
|
|
|
|
|
|
|
|
|
@ -3574,10 +3578,14 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
// :"")
|
|
|
|
|
itemo.question.answers.length > 2 && indext>1 ?
|
|
|
|
|
<span>
|
|
|
|
|
<a className="lineh-40 mr10"
|
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, false)}><Tooltip
|
|
|
|
|
title="删除" placement={"bottom"}><i
|
|
|
|
|
className="iconfont icon-htmal5icon19 font-22 color-grey-c"></i></Tooltip></a>
|
|
|
|
|
{
|
|
|
|
|
indext > 1 ?
|
|
|
|
|
<a className="lineh-40 mr10"
|
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, false)}><Tooltip
|
|
|
|
|
title="删除" placement={"bottom"}><i
|
|
|
|
|
className="iconfont icon-htmal5icon19 font-22 color-grey-c"></i></Tooltip></a>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
itemo.question.answers[itemo.question.answers.length - 1].answer_text === "其他" && itemo.question.answers.length - 2 === indext ?
|
|
|
|
|
<a className="lineh-40"
|
|
|
|
@ -3897,22 +3905,34 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
}}
|
|
|
|
|
onInput={(e) => this.HandleInputChanges(e, indexo, indext)}></TextArea>
|
|
|
|
|
{polls_status === undefined || polls_status === 1 ?
|
|
|
|
|
(itemo.question.question_type === 2&& itemo.question.answers.length === 3 ?
|
|
|
|
|
(indext ===1?
|
|
|
|
|
<a className="lineh-40" id="bianjibianji3"
|
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip
|
|
|
|
|
title="新增"
|
|
|
|
|
placement={"bottom"}><i
|
|
|
|
|
className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>
|
|
|
|
|
:"")
|
|
|
|
|
:
|
|
|
|
|
itemo.question.answers.length > 2 && indext>1 ?
|
|
|
|
|
// (itemo.question.question_type === 2&& itemo.question.answers.length === 3 ?
|
|
|
|
|
// (itemo.question.answers[itemo.question.answers.length-1].answer_text === "其他" &&indext ===1?
|
|
|
|
|
// <a className="lineh-40" id="bianjibianji3"
|
|
|
|
|
// onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip
|
|
|
|
|
// title="新增"
|
|
|
|
|
// placement={"bottom"}><i
|
|
|
|
|
// className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>
|
|
|
|
|
// :itemo.question.answers[itemo.question.answers.length-1].answer_text === "选项" &&indext ===1?
|
|
|
|
|
// <a className="lineh-40" id="bianjibianji3"
|
|
|
|
|
// onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip
|
|
|
|
|
// title="新增"
|
|
|
|
|
// placement={"bottom"}><i
|
|
|
|
|
// className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>
|
|
|
|
|
// :"")
|
|
|
|
|
// :
|
|
|
|
|
itemo.question.answers.length > 2 && indext>=1 ?
|
|
|
|
|
<span>
|
|
|
|
|
<a className="lineh-40 mr10"
|
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, false)}><Tooltip
|
|
|
|
|
title="删除" placement={"bottom"}><i
|
|
|
|
|
className="iconfont icon-htmal5icon19 font-22 color-grey-c "></i></Tooltip></a>
|
|
|
|
|
{
|
|
|
|
|
indext>1?
|
|
|
|
|
<a className="lineh-40 mr10"
|
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, false)}><Tooltip
|
|
|
|
|
title="删除" placement={"bottom"}><i
|
|
|
|
|
className="iconfont icon-htmal5icon19 font-22 color-grey-c "></i></Tooltip></a>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
itemo.question.answers[itemo.question.answers.length - 1].answer_text === "其他" && itemo.question.answers.length - 2 === indext ?
|
|
|
|
|
<a className="lineh-40"
|
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip
|
|
|
|
@ -3940,9 +3960,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
placement={"bottom"}><i
|
|
|
|
|
className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>
|
|
|
|
|
:"")
|
|
|
|
|
|
|
|
|
|
: "")
|
|
|
|
|
: ""}
|
|
|
|
|
: "":""}
|
|
|
|
|
</p>)}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|