|
|
@ -266,7 +266,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
projects: result.data,
|
|
|
|
projects: result.data,
|
|
|
|
pollid: pollid,
|
|
|
|
pollid: pollid,
|
|
|
|
polls_status: 1,
|
|
|
|
polls_status: result.data.poll.is_public===false?1:2,
|
|
|
|
polls_name: result.data.poll.name,
|
|
|
|
polls_name: result.data.poll.name,
|
|
|
|
polls_description: result.data.poll.description,
|
|
|
|
polls_description: result.data.poll.description,
|
|
|
|
poll_questions: result.data.questions,
|
|
|
|
poll_questions: result.data.questions,
|
|
|
@ -315,7 +315,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
projects: result.data,
|
|
|
|
projects: result.data,
|
|
|
|
pollid: pollid,
|
|
|
|
pollid: pollid,
|
|
|
|
polls_status: 1,
|
|
|
|
polls_status: result.data.poll.is_public===false?1:2,
|
|
|
|
polls_name: result.data.poll.name,
|
|
|
|
polls_name: result.data.poll.name,
|
|
|
|
polls_description: result.data.poll.description,
|
|
|
|
polls_description: result.data.poll.description,
|
|
|
|
poll_questions: result.data.questions,
|
|
|
|
poll_questions: result.data.questions,
|
|
|
@ -673,7 +673,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
{"answer_id": 2, "answer_position": 2, "answer_text": ""},
|
|
|
|
{"answer_id": 2, "answer_position": 2, "answer_text": ""},
|
|
|
|
{"answer_id": 3, "answer_position": 3, "answer_text": ""},
|
|
|
|
{"answer_id": 3, "answer_position": 3, "answer_text": ""},
|
|
|
|
{"answer_id": 4, "answer_position": 4, "answer_text": ""},
|
|
|
|
{"answer_id": 4, "answer_position": 4, "answer_text": ""},
|
|
|
|
// {"answer_id": 5, "answer_position": 5, "answer_text": "其他"},
|
|
|
|
{"answer_id": 5, "answer_position": 5, "answer_text": "其他"},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
question = {"question": questiontwo};
|
|
|
|
question = {"question": questiontwo};
|
|
|
@ -767,7 +767,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
{"answer_id": 2, "answer_position": 2, "answer_text": ""},
|
|
|
|
{"answer_id": 2, "answer_position": 2, "answer_text": ""},
|
|
|
|
{"answer_id": 3, "answer_position": 3, "answer_text": ""},
|
|
|
|
{"answer_id": 3, "answer_position": 3, "answer_text": ""},
|
|
|
|
{"answer_id": 4, "answer_position": 4, "answer_text": ""},
|
|
|
|
{"answer_id": 4, "answer_position": 4, "answer_text": ""},
|
|
|
|
// {"answer_id": 5, "answer_position": 5, "answer_text": "其他"},
|
|
|
|
{"answer_id": 5, "answer_position": 5, "answer_text": "其他"},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
question = {"question": questiontwo};
|
|
|
|
question = {"question": questiontwo};
|
|
|
@ -823,6 +823,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
problemtopicbool: false,
|
|
|
|
problemtopicbool: false,
|
|
|
|
bindingid:undefined,
|
|
|
|
bindingid:undefined,
|
|
|
|
Newdisplay:false,
|
|
|
|
Newdisplay:false,
|
|
|
|
|
|
|
|
newoption: false,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
@ -832,6 +833,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
problemtopic: null,
|
|
|
|
problemtopic: null,
|
|
|
|
problemtopicbool: false,
|
|
|
|
problemtopicbool: false,
|
|
|
|
Newdisplay:false,
|
|
|
|
Newdisplay:false,
|
|
|
|
|
|
|
|
newoption: false,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1775,7 +1777,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
createquestionsandanswers = (object, number, option, other, max_choices, min_choices, insert_id) => {
|
|
|
|
createquestionsandanswers = (object, number, option, other, max_choices, min_choices, insert_id) => {
|
|
|
|
var thiss = this;
|
|
|
|
var thiss = this;
|
|
|
|
var poll_id = this.state.pollid;
|
|
|
|
var poll_id = this.state.pollid;
|
|
|
|
var urlly = `/polls/${poll_id}/poll_questions.json`
|
|
|
|
var urlly = `/poll_bank_questions.json`;
|
|
|
|
var max_choicess = null;
|
|
|
|
var max_choicess = null;
|
|
|
|
var min_choicess = null;
|
|
|
|
var min_choicess = null;
|
|
|
|
if (max_choices === 0 && min_choices === 0) {
|
|
|
|
if (max_choices === 0 && min_choices === 0) {
|
|
|
@ -1786,6 +1788,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
min_choicess = min_choices;
|
|
|
|
min_choicess = min_choices;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
axios.post(urlly, {
|
|
|
|
axios.post(urlly, {
|
|
|
|
|
|
|
|
exercise_bank_id:poll_id,
|
|
|
|
question_title: object.question.question_title,
|
|
|
|
question_title: object.question.question_title,
|
|
|
|
question_type: number,
|
|
|
|
question_type: number,
|
|
|
|
is_necessary: object.question.is_necessary,
|
|
|
|
is_necessary: object.question.is_necessary,
|
|
|
@ -1823,7 +1826,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
///编辑修改到服务器当中
|
|
|
|
///编辑修改到服务器当中
|
|
|
|
edittotheserver = (object, number, option, other, max_choices, min_choices) => {
|
|
|
|
edittotheserver = (object, number, option, other, max_choices, min_choices) => {
|
|
|
|
// console.log("调用了edittotheserver")
|
|
|
|
// console.log("调用了edittotheserver")
|
|
|
|
var url = `/poll_questions/${object.question.id}.json`
|
|
|
|
var url = `/poll_bank_questions/${object.question.id}.json`
|
|
|
|
var thiss = this;
|
|
|
|
var thiss = this;
|
|
|
|
axios.put(url, {
|
|
|
|
axios.put(url, {
|
|
|
|
// debug: true,
|
|
|
|
// debug: true,
|
|
|
@ -1851,7 +1854,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
eletetoserver = (pollid, newarr, type, index) => {
|
|
|
|
eletetoserver = (pollid, newarr, type, index) => {
|
|
|
|
// console.log("调用了eletetoserver")
|
|
|
|
// console.log("调用了eletetoserver")
|
|
|
|
var id = pollid;
|
|
|
|
var id = pollid;
|
|
|
|
var url = `/poll_questions/${id}.json`
|
|
|
|
var url = `/exercise_bank_questions/${id}.json`
|
|
|
|
let {mysingles, mydoubles, mymainsint} = this.state
|
|
|
|
let {mysingles, mydoubles, mymainsint} = this.state
|
|
|
|
var thiss = this;
|
|
|
|
var thiss = this;
|
|
|
|
|
|
|
|
|
|
|
@ -1893,7 +1896,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
var thiss = this;
|
|
|
|
var thiss = this;
|
|
|
|
if (bool === true) {
|
|
|
|
if (bool === true) {
|
|
|
|
var url = `/exercise_bank_questions/${poll_question_id}/up_down.json`;
|
|
|
|
var url = `/exercise_bank_questions/${poll_question_id}/up_down.json`;
|
|
|
|
axios.post(url, {
|
|
|
|
axios.put(url, {
|
|
|
|
opr: "up",
|
|
|
|
opr: "up",
|
|
|
|
}).then((result) => {
|
|
|
|
}).then((result) => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -1910,7 +1913,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var url = `/exercise_bank_questions/${poll_question_id}/up_down.json`;
|
|
|
|
var url = `/exercise_bank_questions/${poll_question_id}/up_down.json`;
|
|
|
|
axios.post(url, {
|
|
|
|
axios.put(url, {
|
|
|
|
opr: "down",
|
|
|
|
opr: "down",
|
|
|
|
}).then((result) => {
|
|
|
|
}).then((result) => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -2444,7 +2447,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//试图
|
|
|
|
//试图
|
|
|
|
toWorkDetail = () => {
|
|
|
|
toWorkDetail = () => {
|
|
|
|
this.props.history.push(`/banks/poll/${this.props.match.params.workId}`);
|
|
|
|
this.props.history.push(`/banks/poll/${this.props.match.params.workId} `);
|
|
|
|
this.props.initPublic(undefined);
|
|
|
|
this.props.initPublic(undefined);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2707,7 +2710,7 @@ class PollNewQuestbank 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 id={"biaoshipolll1111111"}>
|
|
|
|
<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
|
|
|
@ -2785,7 +2788,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div id={"biaoshipolll222"}>
|
|
|
|
{/*这里是编辑和新增的地方*/}
|
|
|
|
{/*这里是编辑和新增的地方*/}
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.state.bindingid && this.state.bindingid===item.question.id?
|
|
|
|
this.state.bindingid && this.state.bindingid===item.question.id?
|
|
|
@ -2798,6 +2801,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
resultDomtwo =
|
|
|
|
resultDomtwo =
|
|
|
|
<div >
|
|
|
|
<div >
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
|
|
|
|
id={"ceshiyong3"}
|
|
|
|
className="font-16 color-grey-6 mb20">{itemo.question.question_type === 1 ? "单选题" : itemo.question.question_type === 2 ? "多选题" : "主观题"}
|
|
|
|
className="font-16 color-grey-6 mb20">{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}
|
|
|
@ -2825,21 +2829,36 @@ class PollNewQuestbank extends Component {
|
|
|
|
<div></div>) : itemt.answer_text === "其他" ? (
|
|
|
|
<div></div>) : itemt.answer_text === "其他" ? (
|
|
|
|
<p className="df mb20">
|
|
|
|
<p className="df mb20">
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className="color-grey-6 mr3 w60 font-16 lineh-40"
|
|
|
|
className="color-grey-6 mr3 w55 font-16 lineh-40"
|
|
|
|
style={{"text-align": "center"}}>其它</span>
|
|
|
|
style={{"text-align": "center"}}>其它</span>
|
|
|
|
|
|
|
|
|
|
|
|
<input
|
|
|
|
<input
|
|
|
|
className="mr20 input-flex-40 TextAreainput" disabled
|
|
|
|
className="mr20 max1010 input-flex-40 TextAreainput" disabled
|
|
|
|
placeholder='无法编辑!将由参与答题的人手动录入'></input>
|
|
|
|
placeholder='无法编辑!将由参与答题的人手动录入'></input>
|
|
|
|
|
|
|
|
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
|
|
|
|
itemo.question.question_type === 1?(
|
|
|
|
|
|
|
|
indext>1?
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
itemo.question.question_type === 2 ?"":
|
|
|
|
<a className="lineh-40"
|
|
|
|
<a className="lineh-40"
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, true)}><Tooltip
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, true)}><Tooltip
|
|
|
|
title="删除"
|
|
|
|
title="删除"
|
|
|
|
placement={"bottom"}><i
|
|
|
|
placement={"bottom"}><i
|
|
|
|
className="iconfont icon-htmal5icon19 font-20 color-grey-c"></i></Tooltip></a>
|
|
|
|
className="iconfont icon-htmal5icon19 font-22 color-grey-c"></i></Tooltip></a>
|
|
|
|
: ""}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a className="lineh-40 ml10 yw18"
|
|
|
|
|
|
|
|
><Tooltip
|
|
|
|
|
|
|
|
placement={"bottom"}><i
|
|
|
|
|
|
|
|
className="color-green font-18 iconfont "></i></Tooltip></a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
:"")
|
|
|
|
|
|
|
|
: "":""}
|
|
|
|
|
|
|
|
|
|
|
|
</p>) : (<p className="df mb20">
|
|
|
|
</p>) : (<p className="df mb20">
|
|
|
|
<span className="color-grey-6 mr10 w60 font-16 lineh-40"
|
|
|
|
<span className="color-grey-6 mr5 w55 font-16 lineh-40"
|
|
|
|
style={{"text-align": "center"}}>选项</span>
|
|
|
|
style={{"text-align": "center"}}>选项</span>
|
|
|
|
|
|
|
|
|
|
|
|
<TextArea
|
|
|
|
<TextArea
|
|
|
@ -2847,17 +2866,40 @@ class PollNewQuestbank extends Component {
|
|
|
|
className="mr20 TextAreas"
|
|
|
|
className="mr20 TextAreas"
|
|
|
|
value={itemt.answer_text}
|
|
|
|
value={itemt.answer_text}
|
|
|
|
style={{
|
|
|
|
style={{
|
|
|
|
"height": "45px",
|
|
|
|
maxWidth: "1010px",
|
|
|
|
"max-height": "9.0072e+15px",
|
|
|
|
height: "45px",
|
|
|
|
|
|
|
|
maxHeight: "9.0072e+15px",
|
|
|
|
"overflow-y": "hidden",
|
|
|
|
"overflow-y": "hidden",
|
|
|
|
"line-height": "35px",
|
|
|
|
lineHeight: "35px",
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
onInput={(e) => this.HandleInputChanges(e, indexo, indext)}></TextArea>
|
|
|
|
onInput={(e) => this.HandleInputChanges(e, indexo, indext)}></TextArea>
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
<a className="lineh-40"
|
|
|
|
indext>1?
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<a className="lineh-40 mr"
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, false)}><Tooltip
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, false)}><Tooltip
|
|
|
|
title="删除" placement={"bottom"}><i
|
|
|
|
title="删除" placement={"bottom"}><i
|
|
|
|
className="iconfont icon-htmal5icon19 font-20 color-grey-c"></i></Tooltip></a>
|
|
|
|
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
|
|
|
|
|
|
|
|
title="新增" placement={"bottom"}><i
|
|
|
|
|
|
|
|
className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>
|
|
|
|
|
|
|
|
: itemo.question.answers.length-1===indext?
|
|
|
|
|
|
|
|
<a className="lineh-40 "
|
|
|
|
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip
|
|
|
|
|
|
|
|
title="新增" placement={"bottom"}><i
|
|
|
|
|
|
|
|
className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>
|
|
|
|
|
|
|
|
: <a className="lineh-40 yw18"
|
|
|
|
|
|
|
|
></a>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
:indext===1&&itemo.question.answers.length===2||indext===1&&itemo.question.answers.length===3?<a className="lineh-40 mr10"
|
|
|
|
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip
|
|
|
|
|
|
|
|
title="新增" placement={"bottom"}><i
|
|
|
|
|
|
|
|
className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>:""
|
|
|
|
: ""}
|
|
|
|
: ""}
|
|
|
|
</p>)}
|
|
|
|
</p>)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -2867,26 +2909,26 @@ class PollNewQuestbank extends Component {
|
|
|
|
<div className="df">
|
|
|
|
<div className="df">
|
|
|
|
{itemo.question.question_type === 1 ? (
|
|
|
|
{itemo.question.question_type === 1 ? (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
{/*<ActionBtn style="grey" className="mr20 mt5"*/}
|
|
|
|
|
|
|
|
{/* onClick={() => this.Ewoption(itemo.question.id, itemo)}>新增选项</ActionBtn>*/}
|
|
|
|
|
|
|
|
<div style={{minWidth: "1138px"}}>
|
|
|
|
{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"
|
|
|
|
""
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}>新增选项</ActionBtn>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
: ""}
|
|
|
|
: ""}
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
|
|
|
|
|
|
|
|
(this.state.newoption === false ?
|
|
|
|
(this.state.newoption === false ?
|
|
|
|
<ActionBtn style="grey" className="mr20 mt5"
|
|
|
|
<ActionBtn style="grey" className="ml61 mt5"
|
|
|
|
onClick={() => this.Addanotheroption(itemo.question.id)}>新增其他选项</ActionBtn>
|
|
|
|
onClick={() => this.Addanotheroption(itemo.question.id)}>添加[其它]选项</ActionBtn>
|
|
|
|
: "")
|
|
|
|
: "")
|
|
|
|
: ""}
|
|
|
|
: ""}
|
|
|
|
<span className="fr mt5">
|
|
|
|
<span className="fr mt5">
|
|
|
|
<ActionBtn style="greyBack" className="mr20 w100"
|
|
|
|
<ActionBtn style="greyBack" className="mr20 w64"
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)} >保存并继续</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存并退出 </ActionBtn>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -2897,8 +2939,8 @@ class PollNewQuestbank extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
: itemo.question.question_type === 2 ? (
|
|
|
|
: itemo.question.question_type === 2 ? (
|
|
|
|
//////////////////////////////////////////// 可选
|
|
|
|
//////////////////////////////////////////// 可选
|
|
|
|
<div>
|
|
|
|
<div >
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
<div style={{minWidth: "1179px"}}>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className="color-grey-6 mr20 font-16 lineh-40 fl">可选</span>
|
|
|
|
className="color-grey-6 mr20 font-16 lineh-40 fl">可选</span>
|
|
|
@ -2950,6 +2992,14 @@ class PollNewQuestbank extends Component {
|
|
|
|
className="ml10 mr20 color-grey-6 lineh-40 fl font-16">项</span>
|
|
|
|
className="ml10 mr20 color-grey-6 lineh-40 fl font-16">项</span>
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className="color-grey-9 fl lineh-40">(学生答题时,系统对其选择的选项个数进行限制,--表示不限制)</span>
|
|
|
|
className="color-grey-9 fl lineh-40">(学生答题时,系统对其选择的选项个数进行限制,--表示不限制)</span>
|
|
|
|
|
|
|
|
<span className="fr mt5">
|
|
|
|
|
|
|
|
<ActionBtn style="greyBack" className=" mr20 w64"
|
|
|
|
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续 </ActionBtn>
|
|
|
|
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存并退出</ActionBtn>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -2957,60 +3007,60 @@ class PollNewQuestbank extends Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
: (<div style={{minWidth: "1100px"}}></div>)
|
|
|
|
: (<div style={{minWidth: "1179px"}}></div>)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</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" >
|
|
|
|
|
|
|
|
//
|
|
|
|
<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>*/}
|
|
|
|
|
|
|
|
//
|
|
|
|
{
|
|
|
|
// {/* {*/}
|
|
|
|
this.state.newoption === false ? <ActionBtn style="grey" className="mr20 fl mt5"
|
|
|
|
// {/* this.state.newoption === false ? <ActionBtn style="grey" className="mr20 fl mt5"*/}
|
|
|
|
onClick={() => this.Addanotheroption(itemo.question.id)}>新增其他选项</ActionBtn> : ""
|
|
|
|
// {/* onClick={() => this.Addanotheroption(itemo.question.id)}>新增其他选项</ActionBtn> : ""*/}
|
|
|
|
}
|
|
|
|
// {/* }*/}
|
|
|
|
|
|
|
|
//
|
|
|
|
</div>
|
|
|
|
// {/*</div>*/}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
<span className="fr mt5">
|
|
|
|
// <span className="fr mt5">
|
|
|
|
<ActionBtn style="greyBack" className=" mr20 w100"
|
|
|
|
// <ActionBtn style="greyBack" className=" mr20 w64"
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
// onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
// <ActionBtn style="blue" className="mr20 w100"
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存</ActionBtn>
|
|
|
|
// onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续 </ActionBtn>
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
// <ActionBtn style="blue" className=" w100"
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续</ActionBtn>
|
|
|
|
// onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存并退出</ActionBtn>
|
|
|
|
</span>
|
|
|
|
// </span>
|
|
|
|
</div>
|
|
|
|
// </div>
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
:
|
|
|
|
// :
|
|
|
|
<div className="clearfix mt30" >
|
|
|
|
// <div className="clearfix mt30" >
|
|
|
|
<span className="fr mt5">
|
|
|
|
// <span className="fr mt5">
|
|
|
|
<ActionBtn style="greyBack" className=" mr20 w100"
|
|
|
|
// <ActionBtn style="greyBack" className=" mr20 w64"
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
// onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
// <ActionBtn style="blue" className="mr20 w100"
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存</ActionBtn>
|
|
|
|
// onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
// <ActionBtn style="blue" className=" w100"
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续</ActionBtn>
|
|
|
|
// onClick={() => this.Deleteadddomthree(indexo, itemo,true)}> 保存并退出</ActionBtn>
|
|
|
|
</span>
|
|
|
|
// </span>
|
|
|
|
</div>
|
|
|
|
// </div>
|
|
|
|
)
|
|
|
|
// )
|
|
|
|
|
|
|
|
""
|
|
|
|
: itemo.question.question_type === 3 ?
|
|
|
|
: itemo.question.question_type === 3 ?
|
|
|
|
<div className="clearfix mt30" >
|
|
|
|
<div className="clearfix mt30" >
|
|
|
|
<span className="fr">
|
|
|
|
<span className="fr">
|
|
|
|
<ActionBtn style="greyBack" className="mr20 w100"
|
|
|
|
<ActionBtn style="greyBack" className="mr20 w64"
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续 </ActionBtn>
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存并退出</ActionBtn>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
:
|
|
|
|
:
|
|
|
@ -3041,6 +3091,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
resultDomtwo =
|
|
|
|
resultDomtwo =
|
|
|
|
<div >
|
|
|
|
<div >
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
|
|
|
|
id={"ceshiyong1"}
|
|
|
|
className="font-16 color-grey-6 mb20">{itemo.question.question_type === 1 ? "单选题" : itemo.question.question_type === 2 ? "多选题" : "主观题"}
|
|
|
|
className="font-16 color-grey-6 mb20">{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}
|
|
|
@ -3062,27 +3113,49 @@ class PollNewQuestbank extends Component {
|
|
|
|
onInput={(e) => this.HandleInputTopic(e, indexo)}>{itemo.question.question_title}</TextArea>
|
|
|
|
onInput={(e) => this.HandleInputTopic(e, indexo)}>{itemo.question.question_title}</TextArea>
|
|
|
|
|
|
|
|
|
|
|
|
{itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
|
|
|
|
{itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
|
|
|
|
|
|
|
|
console.log("chishiyong1");
|
|
|
|
|
|
|
|
console.log( itemo.question.answers[itemo.question.answers.length - 1]);
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{itemt.answer_text === undefined ? (
|
|
|
|
{itemt.answer_text === undefined ? (
|
|
|
|
<div></div>) : itemt.answer_text === "其他" ? (
|
|
|
|
<div></div>) : itemt.answer_text === "其他" ? (
|
|
|
|
<p className="df mb20">
|
|
|
|
<p className="df mb20">
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className="color-grey-6 mr3 w60 font-16 lineh-40"
|
|
|
|
className="color-grey-6 mr3 w55 font-16 lineh-40"
|
|
|
|
style={{"text-align": "center"}}>其它</span>
|
|
|
|
style={{"text-align": "center"}}>其它</span>
|
|
|
|
|
|
|
|
|
|
|
|
<input
|
|
|
|
<input
|
|
|
|
className="mr20 input-flex-40 TextAreainput" disabled
|
|
|
|
className="mr20 max1010 input-flex-40 TextAreainput" disabled
|
|
|
|
placeholder='无法编辑!将由参与答题的人手动录入'></input>
|
|
|
|
placeholder='无法编辑!将由参与答题的人手动录入'></input>
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
<a className="lineh-40"
|
|
|
|
indext>1?
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
itemo.question.question_type === 2?"":
|
|
|
|
|
|
|
|
<a className="lineh-40 mr10"
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, true)}><Tooltip
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, true)}><Tooltip
|
|
|
|
title="删除"
|
|
|
|
title="删除"
|
|
|
|
placement={"bottom"}><i
|
|
|
|
placement={"bottom"}><i
|
|
|
|
className="iconfont icon-htmal5icon19 font-20 color-grey-c"></i></Tooltip></a>
|
|
|
|
className="iconfont icon-htmal5icon19 font-22 color-grey-c"></i></Tooltip></a>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* {*/}
|
|
|
|
|
|
|
|
{/* itemo.question.answers.length-1=== indext?*/}
|
|
|
|
|
|
|
|
{/* <a className="lineh-40 "*/}
|
|
|
|
|
|
|
|
{/* onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip*/}
|
|
|
|
|
|
|
|
{/* title="新增"*/}
|
|
|
|
|
|
|
|
{/* placement={"bottom"}><i*/}
|
|
|
|
|
|
|
|
{/* className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>*/}
|
|
|
|
|
|
|
|
{/*: <a className="lineh-40 yw18"*/}
|
|
|
|
|
|
|
|
{/* ><Tooltip*/}
|
|
|
|
|
|
|
|
{/* placement={"bottom"}><i*/}
|
|
|
|
|
|
|
|
{/* className="color-green font-18 iconfont "></i></Tooltip></a>*/}
|
|
|
|
|
|
|
|
{/* }*/}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
:""
|
|
|
|
: ""}
|
|
|
|
: ""}
|
|
|
|
</p>) : (<p className="df mb20">
|
|
|
|
</p>) : (<p className="df mb20">
|
|
|
|
<span className="color-grey-6 mr10 w60 font-16 lineh-40"
|
|
|
|
<span className="color-grey-6 mr5 w55 font-16 lineh-40"
|
|
|
|
style={{"text-align": "center"}}>选项</span>
|
|
|
|
style={{"text-align": "center"}}>选项</span>
|
|
|
|
|
|
|
|
|
|
|
|
<TextArea
|
|
|
|
<TextArea
|
|
|
@ -3090,17 +3163,40 @@ class PollNewQuestbank extends Component {
|
|
|
|
className="mr20 TextAreas"
|
|
|
|
className="mr20 TextAreas"
|
|
|
|
value={itemt.answer_text}
|
|
|
|
value={itemt.answer_text}
|
|
|
|
style={{
|
|
|
|
style={{
|
|
|
|
"height": "45px",
|
|
|
|
maxWidth: "1010px",
|
|
|
|
"max-height": "9.0072e+15px",
|
|
|
|
height: "45px",
|
|
|
|
|
|
|
|
maxHeight: "9.0072e+15px",
|
|
|
|
"overflow-y": "hidden",
|
|
|
|
"overflow-y": "hidden",
|
|
|
|
"line-height": "35px",
|
|
|
|
lineHeight: "35px",
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
onInput={(e) => this.HandleInputChanges(e, indexo, indext)}></TextArea>
|
|
|
|
onInput={(e) => this.HandleInputChanges(e, indexo, indext)}></TextArea>
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
<a className="lineh-40"
|
|
|
|
indext>1?
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<a className="lineh-40 mr10"
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, false)}><Tooltip
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, false)}><Tooltip
|
|
|
|
title="删除" placement={"bottom"}><i
|
|
|
|
title="删除" placement={"bottom"}><i
|
|
|
|
className="iconfont icon-htmal5icon19 font-20 color-grey-c"></i></Tooltip></a>
|
|
|
|
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
|
|
|
|
|
|
|
|
title="新增" placement={"bottom"}><i
|
|
|
|
|
|
|
|
className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>
|
|
|
|
|
|
|
|
: itemo.question.answers.length - 1 === indext ?
|
|
|
|
|
|
|
|
<a className="lineh-40 "
|
|
|
|
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip
|
|
|
|
|
|
|
|
title="新增" placement={"bottom"}><i
|
|
|
|
|
|
|
|
className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
<a className="lineh-40 yw18"
|
|
|
|
|
|
|
|
></a>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
:indext===1&&itemo.question.answers.length===2||indext===1&&itemo.question.answers.length===3? <a className="lineh-40 mr10"
|
|
|
|
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip
|
|
|
|
|
|
|
|
title="新增" placement={"bottom"}><i
|
|
|
|
|
|
|
|
className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>:""
|
|
|
|
: ""}
|
|
|
|
: ""}
|
|
|
|
</p>)}
|
|
|
|
</p>)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -3110,26 +3206,26 @@ class PollNewQuestbank extends Component {
|
|
|
|
<div className="df">
|
|
|
|
<div className="df">
|
|
|
|
{itemo.question.question_type === 1 ? (
|
|
|
|
{itemo.question.question_type === 1 ? (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
{/*<ActionBtn style="grey" className="mr20 mt5"*/}
|
|
|
|
|
|
|
|
{/* onClick={() => this.Ewoption(itemo.question.id, itemo)}>新增选项</ActionBtn>*/}
|
|
|
|
|
|
|
|
<div style={{minWidth: "1138px"}}>
|
|
|
|
{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"
|
|
|
|
""
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}>新增选项</ActionBtn>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
: ""}
|
|
|
|
: ""}
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
|
|
|
|
|
|
|
|
|
|
|
|
(this.state.newoption === false ?
|
|
|
|
(this.state.newoption === false ?
|
|
|
|
<ActionBtn style="grey" className="mr20 mt5"
|
|
|
|
<ActionBtn style="grey" className="ml61 mt5"
|
|
|
|
onClick={() => this.Addanotheroption(itemo.question.id)}>新增其他选项</ActionBtn>
|
|
|
|
onClick={() => this.Addanotheroption(itemo.question.id)}>添加[其它]选项</ActionBtn>
|
|
|
|
: "")
|
|
|
|
: "")
|
|
|
|
: ""}
|
|
|
|
: ""}
|
|
|
|
<span className="fr mt5">
|
|
|
|
<span className="fr mt5">
|
|
|
|
<ActionBtn style="greyBack" className="mr20 w100"
|
|
|
|
<ActionBtn style="greyBack" className="mr20 w64"
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续 </ActionBtn>
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存并退出</ActionBtn>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -3141,7 +3237,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
: itemo.question.question_type === 2 ? (
|
|
|
|
: itemo.question.question_type === 2 ? (
|
|
|
|
//////////////////////////////////////////// 可选
|
|
|
|
//////////////////////////////////////////// 可选
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
<div style={{minWidth: "1179px"}}>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className="color-grey-6 mr20 font-16 lineh-40 fl">可选</span>
|
|
|
|
className="color-grey-6 mr20 font-16 lineh-40 fl">可选</span>
|
|
|
@ -3193,6 +3289,15 @@ class PollNewQuestbank extends Component {
|
|
|
|
className="ml10 mr20 color-grey-6 lineh-40 fl font-16">项</span>
|
|
|
|
className="ml10 mr20 color-grey-6 lineh-40 fl font-16">项</span>
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className="color-grey-9 fl lineh-40">(学生答题时,系统对其选择的选项个数进行限制,--表示不限制)</span>
|
|
|
|
className="color-grey-9 fl lineh-40">(学生答题时,系统对其选择的选项个数进行限制,--表示不限制)</span>
|
|
|
|
|
|
|
|
<span className="fr mt5">
|
|
|
|
|
|
|
|
<ActionBtn style="greyBack" className=" mr20 w64"
|
|
|
|
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}
|
|
|
|
|
|
|
|
>保存并继续 </ActionBtn>
|
|
|
|
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存并退出</ActionBtn>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -3200,60 +3305,64 @@ class PollNewQuestbank extends Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
: (<div style={{minWidth: "1100px"}}></div>)
|
|
|
|
: (<div style={{minWidth: "1179px"}}></div>)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</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" >
|
|
|
|
|
|
|
|
//
|
|
|
|
<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>
|
|
|
|
|
|
|
|
//
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
this.state.newoption === false ? <ActionBtn style="grey" className="mr20 fl mt5"
|
|
|
|
// this.state.newoption === false ? <ActionBtn style="grey" className="mr20 fl mt5"
|
|
|
|
onClick={() => this.Addanotheroption(itemo.question.id)}>新增其他选项</ActionBtn> : ""
|
|
|
|
// onClick={() => this.Addanotheroption(itemo.question.id)}>新增其他选项</ActionBtn> : ""
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
</div>
|
|
|
|
// </div>
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
<span className="fr mt5">
|
|
|
|
// <span className="fr mt5">
|
|
|
|
<ActionBtn style="greyBack" className=" mr20 w100"
|
|
|
|
// <ActionBtn style="greyBack" className=" mr20 w64"
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
// onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
// <ActionBtn style="blue" className="mr20 w100"
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存</ActionBtn>
|
|
|
|
// onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
// >保存并继续 </ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续</ActionBtn>
|
|
|
|
// <ActionBtn style="blue" className=" w100"
|
|
|
|
</span>
|
|
|
|
// onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存并退出</ActionBtn>
|
|
|
|
</div>
|
|
|
|
// </span>
|
|
|
|
|
|
|
|
// </div>
|
|
|
|
|
|
|
|
//
|
|
|
|
:
|
|
|
|
//
|
|
|
|
<div className="clearfix mt30" >
|
|
|
|
// :
|
|
|
|
<span className="fr mt5">
|
|
|
|
// <div className="clearfix mt30" >
|
|
|
|
<ActionBtn style="greyBack" className=" mr20 w100"
|
|
|
|
// <span className="fr mt5">
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
// <ActionBtn style="greyBack" className=" mr20 w64"
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
// onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存</ActionBtn>
|
|
|
|
// <ActionBtn style="blue" className="mr20 w100"
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
// onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续</ActionBtn>
|
|
|
|
// >保存并继续</ActionBtn>
|
|
|
|
</span>
|
|
|
|
// <ActionBtn style="blue" className=" w100"
|
|
|
|
</div>
|
|
|
|
// onClick={() => this.Deleteadddomthree(indexo, itemo,true)}> 保存并退出</ActionBtn>
|
|
|
|
)
|
|
|
|
// </span>
|
|
|
|
|
|
|
|
// </div>
|
|
|
|
|
|
|
|
// )
|
|
|
|
|
|
|
|
""
|
|
|
|
|
|
|
|
|
|
|
|
: itemo.question.question_type === 3 ?
|
|
|
|
: itemo.question.question_type === 3 ?
|
|
|
|
<div className="clearfix mt30" >
|
|
|
|
<div className="clearfix mt30" >
|
|
|
|
<span className="fr">
|
|
|
|
<span className="fr">
|
|
|
|
<ActionBtn style="greyBack" className="mr20 w100"
|
|
|
|
<ActionBtn style="greyBack" className="mr20 w64"
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddom(indexo,true)}>取消</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}
|
|
|
|
|
|
|
|
>保存并继续</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo,true)}> 保存并退出</ActionBtn>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
:
|
|
|
|
:
|
|
|
@ -3293,6 +3402,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
resultDomtwo =
|
|
|
|
resultDomtwo =
|
|
|
|
<div className="problemShow">
|
|
|
|
<div className="problemShow">
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
|
|
|
|
id={"ceshiyong2"}
|
|
|
|
className="font-16 color-grey-6 mb20">{itemo.question.question_type === 1 ? "单选题" : itemo.question.question_type === 2 ? "多选题" : "主观题"}
|
|
|
|
className="font-16 color-grey-6 mb20">{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}
|
|
|
@ -3314,27 +3424,40 @@ class PollNewQuestbank extends Component {
|
|
|
|
onInput={(e) => this.HandleInputTopic(e, indexo)}>{itemo.question.question_title}</TextArea>
|
|
|
|
onInput={(e) => this.HandleInputTopic(e, indexo)}>{itemo.question.question_title}</TextArea>
|
|
|
|
|
|
|
|
|
|
|
|
{itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
|
|
|
|
{itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
|
|
|
|
|
|
|
|
console.log("ceshiyong2");
|
|
|
|
|
|
|
|
console.log(itemo.question.answers.length-1);
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{itemt.answer_text === undefined ? (
|
|
|
|
{itemt.answer_text === undefined ? (
|
|
|
|
<div></div>) : itemt.answer_text === "其他" ? (
|
|
|
|
<div></div>) : itemt.answer_text === "其他" ? (
|
|
|
|
<p className="df mb20">
|
|
|
|
<p className="df mb20">
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className="color-grey-6 mr3 w60 font-16 lineh-40"
|
|
|
|
className="color-grey-6 mr3 w55 font-16 lineh-40"
|
|
|
|
style={{"text-align": "center"}}>其它</span>
|
|
|
|
style={{"text-align": "center"}}>其它</span>
|
|
|
|
|
|
|
|
|
|
|
|
<input
|
|
|
|
<input
|
|
|
|
className="mr20 input-flex-40 TextAreainput" disabled
|
|
|
|
className="mr20 max1010 input-flex-40 TextAreainput" disabled
|
|
|
|
placeholder='无法编辑!将由参与答题的人手动录入'></input>
|
|
|
|
placeholder='无法编辑!将由参与答题的人手动录入'></input>
|
|
|
|
{polls_status === undefined || polls_status === 1 ?
|
|
|
|
{polls_status === undefined || polls_status === 1 ?
|
|
|
|
<a className="lineh-40"
|
|
|
|
indext>1?
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
itemo.question.question_type === 2?""
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
<a className="lineh-40 mr10"
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, true)}><Tooltip
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, true)}><Tooltip
|
|
|
|
title="删除"
|
|
|
|
title="删除"
|
|
|
|
placement={"bottom"}><i
|
|
|
|
placement={"bottom"}><i
|
|
|
|
className="iconfont icon-htmal5icon19 font-20 color-grey-c"></i></Tooltip></a>
|
|
|
|
className="iconfont icon-htmal5icon19 font-22 color-grey-c"></i></Tooltip></a>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
:""
|
|
|
|
: ""}
|
|
|
|
: ""}
|
|
|
|
</p>) : (<p className="df mb20">
|
|
|
|
</p>) : (<p className="df mb20">
|
|
|
|
<span className="color-grey-6 mr10 w60 font-16 lineh-40"
|
|
|
|
<span className="color-grey-6 mr5 w55 font-16 lineh-40"
|
|
|
|
style={{"text-align": "center"}}>选项</span>
|
|
|
|
style={{"text-align": "center"}}>选项</span>
|
|
|
|
|
|
|
|
|
|
|
|
<TextArea
|
|
|
|
<TextArea
|
|
|
@ -3342,17 +3465,45 @@ class PollNewQuestbank extends Component {
|
|
|
|
className="mr20 TextAreas"
|
|
|
|
className="mr20 TextAreas"
|
|
|
|
value={itemt.answer_text}
|
|
|
|
value={itemt.answer_text}
|
|
|
|
style={{
|
|
|
|
style={{
|
|
|
|
"height": "45px",
|
|
|
|
maxWidth: "1010px",
|
|
|
|
"max-height": "9.0072e+15px",
|
|
|
|
height: "45px",
|
|
|
|
|
|
|
|
maxHeight: "9.0072e+15px",
|
|
|
|
"overflow-y": "hidden",
|
|
|
|
"overflow-y": "hidden",
|
|
|
|
"line-height": "35px",
|
|
|
|
lineHeight: "35px",
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
onInput={(e) => this.HandleInputChanges(e, indexo, indext)}></TextArea>
|
|
|
|
onInput={(e) => this.HandleInputChanges(e, indexo, indext)}></TextArea>
|
|
|
|
{polls_status === undefined || polls_status === 1 ?
|
|
|
|
{polls_status === undefined || polls_status === 1 ?
|
|
|
|
<a className="lineh-40"
|
|
|
|
(indext>1?
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
<a className="lineh-40 mr10"
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, false)}><Tooltip
|
|
|
|
onClick={() => this.Deleteentrys(arrid, indext, false)}><Tooltip
|
|
|
|
title="删除" placement={"bottom"}><i
|
|
|
|
title="删除" placement={"bottom"}><i
|
|
|
|
className="iconfont icon-htmal5icon19 font-20 color-grey-c"></i></Tooltip></a>
|
|
|
|
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
|
|
|
|
|
|
|
|
title="新增"
|
|
|
|
|
|
|
|
placement={"bottom"}><i
|
|
|
|
|
|
|
|
className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
itemo.question.answers.length - 1 === indext ?
|
|
|
|
|
|
|
|
<a className="lineh-40 "
|
|
|
|
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip
|
|
|
|
|
|
|
|
title="新增"
|
|
|
|
|
|
|
|
placement={"bottom"}><i
|
|
|
|
|
|
|
|
className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a className="lineh-40 yw18"
|
|
|
|
|
|
|
|
></a>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
:indext===1&&itemo.question.answers.length===2||indext===1&&itemo.question.answers.length===3?<a className="lineh-40 mr10"
|
|
|
|
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip
|
|
|
|
|
|
|
|
title="新增"
|
|
|
|
|
|
|
|
placement={"bottom"}><i
|
|
|
|
|
|
|
|
className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a>:"")
|
|
|
|
: ""}
|
|
|
|
: ""}
|
|
|
|
</p>)}
|
|
|
|
</p>)}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -3362,26 +3513,27 @@ class PollNewQuestbank extends Component {
|
|
|
|
<div className="df">
|
|
|
|
<div className="df">
|
|
|
|
{itemo.question.question_type === 1 ? (
|
|
|
|
{itemo.question.question_type === 1 ? (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
{/*<ActionBtn style="grey" className="mr20 mt5"*/}
|
|
|
|
|
|
|
|
{/* onClick={() => this.Ewoption(itemo.question.id, itemo)}>新增选项</ActionBtn>*/}
|
|
|
|
|
|
|
|
<div style={{minWidth: "1138px"}}>
|
|
|
|
{polls_status === undefined || polls_status === 1 ?
|
|
|
|
{polls_status === undefined || polls_status === 1 ?
|
|
|
|
<ActionBtn style="grey" className="mr20 mt5"
|
|
|
|
""
|
|
|
|
onClick={() => this.Ewoption(itemo.question.id, itemo)}>新增选项</ActionBtn>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
: ""}
|
|
|
|
: ""}
|
|
|
|
{polls_status === undefined || polls_status === 1 ?
|
|
|
|
{polls_status === undefined || polls_status === 1 ?
|
|
|
|
|
|
|
|
|
|
|
|
(newoption === false ?
|
|
|
|
(newoption === false ?
|
|
|
|
<ActionBtn style="grey" className="mr20 mt5"
|
|
|
|
<ActionBtn style="grey" className="ml61 mt5"
|
|
|
|
onClick={() => this.Addanotheroption(itemo.question.id)}>新增其他选项</ActionBtn>
|
|
|
|
onClick={() => this.Addanotheroption(itemo.question.id)}>添加[其它]选项</ActionBtn>
|
|
|
|
: "")
|
|
|
|
: "")
|
|
|
|
: ""}
|
|
|
|
: ""}
|
|
|
|
<span className="fr mt5">
|
|
|
|
<span className="fr mt5">
|
|
|
|
<ActionBtn style="greyBack" className="mr20 w100"
|
|
|
|
<ActionBtn style="greyBack" className="mr20 w64"
|
|
|
|
onClick={() => this.Deleteadddom(indexo)}>取消</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddom(indexo)}>取消</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo)}>保存</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo)}
|
|
|
|
|
|
|
|
> 保存并继续</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo)}>保存并继续</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo)}>保存并退出</ActionBtn>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -3393,7 +3545,7 @@ class PollNewQuestbank extends Component {
|
|
|
|
: itemo.question.question_type === 2 ? (
|
|
|
|
: itemo.question.question_type === 2 ? (
|
|
|
|
//////////////////////////////////////////// 可选
|
|
|
|
//////////////////////////////////////////// 可选
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div style={{minWidth: "1100px"}}>
|
|
|
|
<div style={{minWidth: "1179px"}}>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className="color-grey-6 mr20 font-16 lineh-40 fl">可选</span>
|
|
|
|
className="color-grey-6 mr20 font-16 lineh-40 fl">可选</span>
|
|
|
@ -3445,6 +3597,15 @@ class PollNewQuestbank extends Component {
|
|
|
|
className="ml10 mr20 color-grey-6 lineh-40 fl font-16">项</span>
|
|
|
|
className="ml10 mr20 color-grey-6 lineh-40 fl font-16">项</span>
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className="color-grey-9 fl lineh-40">(学生答题时,系统对其选择的选项个数进行限制,--表示不限制)</span>
|
|
|
|
className="color-grey-9 fl lineh-40">(学生答题时,系统对其选择的选项个数进行限制,--表示不限制)</span>
|
|
|
|
|
|
|
|
<span className="fr mt5">
|
|
|
|
|
|
|
|
<ActionBtn style="greyBack" className=" mr20 w64"
|
|
|
|
|
|
|
|
onClick={() => this.Deleteadddom(indexo)}>取消</ActionBtn>
|
|
|
|
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo)}
|
|
|
|
|
|
|
|
>保存并继续</ActionBtn>
|
|
|
|
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo)}> 保存并退出</ActionBtn>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -3452,60 +3613,63 @@ class PollNewQuestbank extends Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
: (<div style={{minWidth: "1100px"}}></div>)
|
|
|
|
: (<div style={{minWidth: "1179px"}}></div>)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{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" >
|
|
|
|
|
|
|
|
//
|
|
|
|
<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>
|
|
|
|
|
|
|
|
//
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
newoption === false ? <ActionBtn style="grey" className="mr20 fl mt5"
|
|
|
|
// newoption === false ? <ActionBtn style="grey" className="mr20 fl mt5"
|
|
|
|
onClick={() => this.Addanotheroption(itemo.question.id)}>新增其他选项</ActionBtn> : ""
|
|
|
|
// onClick={() => this.Addanotheroption(itemo.question.id)}>新增其他选项</ActionBtn> : ""
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
</div>
|
|
|
|
// </div>
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
<span className="fr mt5">
|
|
|
|
// <span className="fr mt5">
|
|
|
|
<ActionBtn style="greyBack" className=" mr20 w100"
|
|
|
|
// <ActionBtn style="greyBack" className=" mr20 w64"
|
|
|
|
onClick={() => this.Deleteadddom(indexo)}>取消</ActionBtn>
|
|
|
|
// onClick={() => this.Deleteadddom(indexo)}>取消</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
// <ActionBtn style="blue" className="mr20 w100"
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo)}>保存</ActionBtn>
|
|
|
|
// onClick={() => this.Deleteadddomtwo(indexo, itemo)}
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
// >保存并继续</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo)}>保存并继续</ActionBtn>
|
|
|
|
// <ActionBtn style="blue" className=" w100"
|
|
|
|
</span>
|
|
|
|
// onClick={() => this.Deleteadddomthree(indexo, itemo)}> 保存并退出</ActionBtn>
|
|
|
|
</div>
|
|
|
|
// </span>
|
|
|
|
|
|
|
|
// </div>
|
|
|
|
|
|
|
|
//
|
|
|
|
:
|
|
|
|
//
|
|
|
|
<div className="clearfix mt30" >
|
|
|
|
// :
|
|
|
|
<span className="fr mt5">
|
|
|
|
// <div className="clearfix mt30" >
|
|
|
|
<ActionBtn style="greyBack" className=" mr20 w100"
|
|
|
|
// <span className="fr mt5">
|
|
|
|
onClick={() => this.Deleteadddom(indexo)}>取消</ActionBtn>
|
|
|
|
// <ActionBtn style="greyBack" className=" mr20 w64"
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
// onClick={() => this.Deleteadddom(indexo)}>取消</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo)}>保存</ActionBtn>
|
|
|
|
// <ActionBtn style="blue" className="mr20 w100"
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
// onClick={() => this.Deleteadddomtwo(indexo, itemo)}
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo)}>保存并继续</ActionBtn>
|
|
|
|
// > 保存并继续 </ActionBtn>
|
|
|
|
</span>
|
|
|
|
// <ActionBtn style="blue" className=" w100"
|
|
|
|
</div>
|
|
|
|
// onClick={() => this.Deleteadddomthree(indexo, itemo)}>保存并退出</ActionBtn>
|
|
|
|
)
|
|
|
|
// </span>
|
|
|
|
|
|
|
|
// </div>
|
|
|
|
|
|
|
|
// )
|
|
|
|
|
|
|
|
""
|
|
|
|
: itemo.question.question_type === 3 ?
|
|
|
|
: itemo.question.question_type === 3 ?
|
|
|
|
<div className="clearfix mt30">
|
|
|
|
<div className="clearfix mt30">
|
|
|
|
<span className="fr">
|
|
|
|
<span className="fr">
|
|
|
|
<ActionBtn style="greyBack" className="mr20 w100"
|
|
|
|
<ActionBtn style="greyBack" className="mr20 w64"
|
|
|
|
onClick={() => this.Deleteadddom(indexo)}>取消</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddom(indexo)}>取消</ActionBtn>
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
<ActionBtn style="blue" className="mr20 w100"
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo)}>保存</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo)}
|
|
|
|
|
|
|
|
>保存并继续 </ActionBtn>
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
<ActionBtn style="blue" className=" w100"
|
|
|
|
onClick={() => this.Deleteadddomtwo(indexo, itemo)}>保存并继续</ActionBtn>
|
|
|
|
onClick={() => this.Deleteadddomthree(indexo, itemo)}>保存并退出</ActionBtn>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
:
|
|
|
|
:
|
|
|
|