diff --git a/public/react/src/modules/courses/poll/PollNew.js b/public/react/src/modules/courses/poll/PollNew.js
index a3513db40..de0a5bbeb 100644
--- a/public/react/src/modules/courses/poll/PollNew.js
+++ b/public/react/src/modules/courses/poll/PollNew.js
@@ -63,6 +63,8 @@ class PollNew extends Component {
problemtopicbool: false,
newoption: false,
cancellation: false,
+ bindingid:undefined,
+ Newdisplay:false,
}
// console.log("试卷新建和编辑");
// console.log(JSON.stringify(props));
@@ -311,7 +313,9 @@ class PollNew extends Component {
newoption: false
})
}
-
+ this.setState({
+ Newdisplay:true,
+ })
var Insertposition = this.state.poll_questions.length;
// console.log(JSON.stringify(this.state.poll_questions));
for (var i = 0; i < this.state.poll_questions.length; i++) {
@@ -332,7 +336,9 @@ class PollNew extends Component {
newoption: false
})
}
-
+ this.setState({
+ Newdisplay:true,
+ })
var Insertposition = this.state.poll_questions.length;
// console.log(JSON.stringify(this.state.poll_questions));
for (var i = 0; i < this.state.poll_questions.length; i++) {
@@ -349,7 +355,9 @@ class PollNew extends Component {
//添加主观题目
addmymainsint = () => {
-
+ this.setState({
+ Newdisplay:true,
+ })
var Insertposition = this.state.poll_questions.length;
// console.log(JSON.stringify(this.state.poll_questions));
for (var i = 0; i < this.state.poll_questions.length; i++) {
@@ -375,8 +383,9 @@ class PollNew extends Component {
var anserbool = false;
this.setState({
q_countst: 1,
+ bindingid:object.question.id
})
- window.scrollTo(0, this.refs.targetElement.offsetTop)
+ // window.scrollTo(0, this.refs.targetElement.offsetTops)
let {adddom} = this.state;
// var arr =new Object(objects);
// console.log(arr)
@@ -522,7 +531,8 @@ class PollNew extends Component {
// console.log(pollid)
// console.log(Insertposition)
// console.log(Whether)
- // console.log(id)
+ console.log("addMytopic");
+ console.log(id);
if (this.state.q_countst > 0) {
this.props.showNotification(`不能同时编辑两题`);
@@ -537,7 +547,7 @@ class PollNew extends Component {
Insertposition: Insertposition,
q_countst: 1,
})
- window.scrollTo(0, this.refs.targetElement.offsetTop)
+ // window.scrollTo(0, this.refs.targetElement.offsetTop)
var arrr = this.state.adddom;
let newarrr = [...arrr];
@@ -551,12 +561,13 @@ class PollNew extends Component {
var question = {}
var questiontwo = {
// "id": this.state.poll_questions[arr.length - 1].question.id + 1 + arrr.length,
- "id": this.state.poll_questions[newarr.length - 1].question.id + 1,
+ "id": Whether=== true? id :this.state.poll_questions[newarr.length - 1].question.id,
"is_necessary": 1,
"question_number": 1,
"question_title": "",
"question_type": 1,
"new": "new",
+ "newid":Whether=== true? id :this.state.poll_questions[newarr.length - 1].question.id + 1,
"answers": [
{"answer_id": 1, "answer_position": 1, "answer_text": ""},
{"answer_id": 2, "answer_position": 2, "answer_text": ""},
@@ -578,7 +589,7 @@ class PollNew extends Component {
//插入多选题
var question = {}
var questiontwo = {
- "id": this.state.poll_questions[newarr.length - 1].question.id + 1,
+ "id": Whether=== true? id :this.state.poll_questions[newarr.length - 1].question.id,
"is_necessary": 1,
"question_number": 2,
"question_title": "",
@@ -586,6 +597,7 @@ class PollNew extends Component {
"max_choices": 0,
"min_choices": 0,
"new": "new",
+ "newid":Whether=== true? id :this.state.poll_questions[newarr.length - 1].question.id + 1,
"answers": [
{"answer_id": 1, "answer_position": 1, "answer_text": ""},
{"answer_id": 2, "answer_position": 2, "answer_text": ""},
@@ -608,12 +620,13 @@ class PollNew extends Component {
// console.log(this.state.poll_questions[newarr.length - 1].question.id);
var question = {}
var questiontwo = {
- "id": this.state.poll_questions[newarr.length - 1].question.id + 1,
+ "id": Whether=== true? id :this.state.poll_questions[newarr.length - 1].question.id,
"is_necessary": 1,
"question_number": 3,
"question_title": "",
"question_type": 3,
"new": "new",
+ "newid":Whether=== true? id :this.state.poll_questions[newarr.length - 1].question.id + 1,
"answers": []
};
question = {"question": questiontwo};
@@ -629,20 +642,21 @@ class PollNew extends Component {
/////上面视图全部删除后 要加载的
if (index === 1) {
// 插入单选题
- var id;
+ var ids;
try {
- id = this.state.poll_questions[newarr.length - 1].question.id + 1
+ ids = this.state.poll_questions[newarr.length - 1].question.id;
} catch (e) {
- id = 1;
+ ids= 1;
}
var questiontwo = {
// "id": this.state.poll_questions[arr.length - 1].question.id + 1 + arrr.length,
- "id": id,
+ "id": Whether=== true? id :ids,
"is_necessary": 1,
"question_number": 1,
"question_title": "",
"question_type": 1,
"new": "new",
+ "newid":Whether=== true? id :this.state.poll_questions[newarr.length - 1].question.id + 1,
"answers": [
{"answer_id": 1, "answer_position": 1, "answer_text": ""},
{"answer_id": 2, "answer_position": 2, "answer_text": ""},
@@ -662,14 +676,14 @@ class PollNew extends Component {
} else if (index === 2) {
//插入多选题
- var id;
+ var ids;
try {
- id = this.state.poll_questions[newarr.length - 1].question.id + 1
+ ids = this.state.poll_questions[newarr.length - 1].question.id;
} catch (e) {
- id = 1;
+ ids = 1;
}
var questiontwo = {
- "id": id,
+ "id": Whether=== true? id :ids,
"is_necessary": 1,
"question_number": 2,
"question_title": "",
@@ -677,6 +691,7 @@ class PollNew extends Component {
"max_choices": 0,
"min_choices": 0,
"new": "new",
+ "newid":Whether=== true? id :this.state.poll_questions[newarr.length - 1].question.id + 1,
"answers": [
{"answer_id": 1, "answer_position": 1, "answer_text": ""},
{"answer_id": 2, "answer_position": 2, "answer_text": ""},
@@ -696,19 +711,20 @@ class PollNew extends Component {
} else if (index === 3) {
//插入主观题
- var id;
+ var ids;
try {
- id = this.state.poll_questions[newarr.length - 1].question.id + 1
+ ids= this.state.poll_questions[newarr.length - 1].question.id;
} catch (e) {
- id = 1;
+ ids = 1;
}
var questiontwo = {
- "id": id,
+ "id":Whether=== true? id : ids,
"is_necessary": 1,
"question_number": 3,
"question_title": "",
"question_type": 3,
"new": "new",
+ "newid":Whether=== true? id :this.state.poll_questions[newarr.length - 1].question.id + 1,
"answers": []
};
question = {"question": questiontwo};
@@ -723,26 +739,51 @@ class PollNew extends Component {
}
//删除指定条目
- Deleteadddom = (indexo) => {
+ Deleteadddom = (indexo,bool) => {
// console.log("deleteadddom 259")
+
var arr = this.state.adddom;
let newarr = [...arr];
-
newarr.splice(indexo, 1);
- this.setState({
- adddom: newarr,
- q_countst: 0,
- problemtopic: null,
- problemtopicbool: false,
- })
+ if(bool === true) {
+ this.setState({
+ adddom: newarr,
+ q_countst: 0,
+ problemtopic: null,
+ problemtopicbool: false,
+ bindingid:undefined,
+ Newdisplay:false,
+ })
+
+ }else{
+ this.setState({
+ adddom: newarr,
+ q_countst: 0,
+ problemtopic: null,
+ problemtopicbool: false,
+ Newdisplay:false,
+ })
+ }
+
}
//保存并继续
//保存并继续,即提交本题的新建并继续创建一个相同的题(该新题处于编辑模式,题目和选项不要清空)
- Deleteadddomtwo = (indexo, object) => {
+ Deleteadddomtwo = (indexo, object,bool) => {
var thiss = this;
- this.setState({
- q_countst: 1,
- })
+ if(bool === true){
+ this.setState({
+ q_countst: 1,
+ bindingid:undefined,
+ Newdisplay:false,
+
+ })
+ }else {
+ this.setState({
+ q_countst: 1,
+ Newdisplay:false,
+ })
+ }
+
var poll_questionslength = this.state.poll_questions.length;
// console.log("deleteadddomtwo|||||||||||||||||||||||||||||||||||||||||\\");
// console.log(indexo);
@@ -1229,7 +1270,15 @@ class PollNew extends Component {
//保存,即完成新建并退出本题编辑
// indexo 第几个数组
//object 单个数组数据
- Deleteadddomthree = (indexo, object) => {
+ Deleteadddomthree = (indexo, object,bool) => {
+ if(bool === true) {
+ this.setState({
+ bindingid:undefined,
+ })
+ }
+ this.setState({
+ Newdisplay:false,
+ })
// console.log("deleteadddom 349")
var thiss = this;
let arr = this.state.adddom;
@@ -2485,7 +2534,7 @@ class PollNew extends Component {
console.log(this.state.poll_questions);
console.log(this.state.adddom);
let resultDom;
- resultDom =
+ resultDom =
第{index + 1}题:
this.addMytopic(item.question.question_type, this.state.pollid, index + 1, true, item.question.id)}>
- this.adddomedit(item)}> this.adddomedit(item)}>
: this.adddomedit(item)}>
@@ -2538,244 +2587,7 @@ class PollNew extends Component {
})}
{/*单选题*/}
-
- {this.state.adddom === undefined ? "" : item.question.question_type === 1&&this.state.adddom.map((itemo, indexo) => {
- let arrid = itemo.question.id;
- let resultDomtwo;
- resultDomtwo =
-
-
{itemo.question.question_type === 1 ? "单选题" : itemo.question.question_type === 2 ? "多选题" : "主观题"}
- this.OnCheckAllChange(e, indexo)}
- className="lineh-40"
- style={{"marginLeft": "20px"}}>必答
-
-
-
-
- {itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
- return (
-
- )
- })}
-
-
- {itemo.question.question_type === 1 ? (
-
-
- {this.state.polls_status === undefined || this.state.polls_status === 1 ?
-
this.Ewoption(itemo.question.id, itemo)}>新增选项
-
- : ""}
- {this.state.polls_status === undefined || this.state.polls_status === 1 ?
-
- (this.state.newoption === false ?
-
this.Addanotheroption(itemo.question.id)}>新增其他选项
- : "")
- : ""}
-
- this.Deleteadddom(indexo)}>取消
- this.Deleteadddomthree(indexo, itemo)}>保存
- this.Deleteadddomtwo(indexo, itemo)}>保存并继续
-
-
-
-
-
- )
-
-
- : itemo.question.question_type === 2 ? (
- //////////////////////////////////////////// 可选
-
-
-
-
可选
-
- {/*可选最小*/}
-
-
- ~
- {/*可选最大*/}
-
- 项
- (学生答题时,系统对其选择的选项个数进行限制,--表示不限制)
-
-
-
-
-
- )
-
- : (
)
-
- }
-
-
- {itemo.question.question_type === 2 ?
- (
- this.state.polls_status === undefined || this.state.polls_status === 1 ?
-
-
-
this.Ewoption(itemo.question.id, itemo)}>新增选项
-
- {
- this.state.newoption === false ?
this.Addanotheroption(itemo.question.id)}>新增其他选项 : ""
- }
-
-
-
-
-
- this.Deleteadddom(indexo)}>取消
- this.Deleteadddomthree(indexo, itemo)}>保存
- this.Deleteadddomtwo(indexo, itemo)}>保存并继续
-
-
-
-
- :
-
-
- this.Deleteadddom(indexo)}>取消
- this.Deleteadddomthree(indexo, itemo)}>保存
- this.Deleteadddomtwo(indexo, itemo)}>保存并继续
-
-
- )
-
- : itemo.question.question_type === 3 ?
-
-
- this.Deleteadddom(indexo)}>取消
- this.Deleteadddomthree(indexo, itemo)}>保存
- this.Deleteadddomtwo(indexo, itemo)}>保存并继续
-
-
- :
- ""}
-
-
-
-
-
-
- return (
-
- {resultDomtwo}
-
- )
- })}
-
-
: item.question.question_type === 2 ?
@@ -2791,12 +2603,27 @@ class PollNew extends Component {
})}
{/*多选题*/}
-
- {this.state.adddom === undefined ? "" : item.question.question_type === 2&&this.state.adddom.map((itemo, indexo) => {
+
+
+ : item.question.question_type === 3 ?
+ // 主观题
+ (
+
) : (
)}
+
+
+ return (
+
+ {/*这里是编辑和新增的地方*/}
+ {
+ this.state.bindingid && this.state.bindingid===item.question.id?
+ (this.state.Newdisplay === false?
+
+
+ {this.state.adddom === undefined ? "" :this.state.adddom===undefined?"": this.state.adddom.length===0?"":item.question.id === this.state.adddom[0].question.id&&this.state.adddom.map((itemo, indexo) => {
let arrid = itemo.question.id;
let resultDomtwo;
resultDomtwo =
-
+
{itemo.question.question_type === 1 ? "单选题" : itemo.question.question_type === 2 ? "多选题" : "主观题"}
) : itemt.answer_text === "其他" ? (
其它
this.Deleteadddom(indexo)}>取消
+ onClick={() => this.Deleteadddom(indexo,true)}>取消
this.Deleteadddomthree(indexo, itemo)}>保存
+ onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存
this.Deleteadddomtwo(indexo, itemo)}>保存并继续
+ onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续
@@ -2965,7 +2792,7 @@ class PollNew extends Component {
{itemo.question.question_type === 2 ?
(
this.state.polls_status === undefined || this.state.polls_status === 1 ?
-
+
this.Ewoption(itemo.question.id, itemo)}>新增选项
@@ -2980,11 +2807,11 @@ class PollNew extends Component {
this.Deleteadddom(indexo)}>取消
+ onClick={() => this.Deleteadddom(indexo,true)}>取消
this.Deleteadddomthree(indexo, itemo)}>保存
+ onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存
this.Deleteadddomtwo(indexo, itemo)}>保存并继续
+ onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续
@@ -2993,24 +2820,24 @@ class PollNew extends Component {
this.Deleteadddom(indexo)}>取消
+ onClick={() => this.Deleteadddom(indexo,true)}>取消
this.Deleteadddomthree(indexo, itemo)}>保存
+ onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存
this.Deleteadddomtwo(indexo, itemo)}>保存并继续
+ onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续
)
: itemo.question.question_type === 3 ?
-
+
this.Deleteadddom(indexo)}>取消
+ onClick={() => this.Deleteadddom(indexo,true)}>取消
this.Deleteadddomthree(indexo, itemo)}>保存
+ onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存
this.Deleteadddomtwo(indexo, itemo)}>保存并继续
+ onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续
:
@@ -3028,16 +2855,18 @@ class PollNew extends Component {
)
})}
-
-
- : item.question.question_type === 3 ?
- // 主观题
- (
- {this.state.adddom === undefined ? "" : item.question.question_type === 3&&this.state.adddom.map((itemo, indexo) => {
- let arrid = itemo.question.id;
- let resultDomtwo;
- resultDomtwo =
-
+
:"")
+ :
+
+ {resultDom}
+ {this.state.Newdisplay === false?
+
+
+ {this.state.adddom === undefined ? "" :this.state.adddom===undefined?"": this.state.adddom.length===0?"":item.question.id === this.state.adddom[0].question.id&&this.state.adddom.map((itemo, indexo) => {
+ let arrid = itemo.question.id;
+ let resultDomtwo;
+ resultDomtwo =
+
{itemo.question.question_type === 1 ? "单选题" : itemo.question.question_type === 2 ? "多选题" : "主观题"}
必答
-
+ onInput={(e) => this.HandleInputTopic(e, indexo)}>{itemo.question.question_title}
- {itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
- return (
-
- {itemt.answer_text === undefined ? (
-
) : itemt.answer_text === "其他" ? (
-
+ {itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
+ return (
+
- )
- })}
-
-
- {itemo.question.question_type === 1 ? (
-
-
+
{this.state.polls_status === undefined || this.state.polls_status === 1 ?
-
this.Ewoption(itemo.question.id, itemo)}>新增选项
-
+
this.Deleteentrys(arrid, indext, false)}>
: ""}
- {this.state.polls_status === undefined || this.state.polls_status === 1 ?
+ )}
+
+ )
+ })}
- (this.state.newoption === false ?
+
+ {itemo.question.question_type === 1 ? (
+
+
+ {this.state.polls_status === undefined || this.state.polls_status === 1 ?
this.Addanotheroption(itemo.question.id)}>新增其他选项
- : "")
- : ""}
-
+ onClick={() => this.Ewoption(itemo.question.id, itemo)}>新增选项
+
+ : ""}
+ {this.state.polls_status === undefined || this.state.polls_status === 1 ?
+
+ (this.state.newoption === false ?
+ this.Addanotheroption(itemo.question.id)}>新增其他选项
+ : "")
+ : ""}
+
this.Deleteadddom(indexo)}>取消
+ onClick={() => this.Deleteadddom(indexo,true)}>取消
this.Deleteadddomthree(indexo, itemo)}>保存
+ onClick={() => this.Deleteadddomthree(indexo, itemo,true)}>保存
this.Deleteadddomtwo(indexo, itemo)}>保存并继续
+ onClick={() => this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续
+
-
- )
+ )
- : itemo.question.question_type === 2 ? (
- //////////////////////////////////////////// 可选
-
-
-
+ : itemo.question.question_type === 2 ? (
+ //////////////////////////////////////////// 可选
+
+
+
可选
-
- {/*可选最小*/}
-
-
- ~
- {/*可选最大*/}
-
- )
- })}
-
-
项
-
(学生答题时,系统对其选择的选项个数进行限制,--表示不限制)
+
+
+ )
+
+ : (
)
+
+ }
+
+
+ {itemo.question.question_type === 2 ?
+ (
+ this.state.polls_status === undefined || this.state.polls_status === 1 ?
+
+
+
this.Ewoption(itemo.question.id, itemo)}>新增选项
+
+ {
+ this.state.newoption === false ?
this.Addanotheroption(itemo.question.id)}>新增其他选项 : ""
+ }
+
+
+
+ this.Deleteadddom(indexo,true)}>取消
+ this.Deleteadddomthree(indexo, itemo,true)}>保存
+ this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续
+
+
+
+
+ :
+
+
+ this.Deleteadddom(indexo,true)}>取消
+ this.Deleteadddomthree(indexo, itemo,true)}>保存
+ this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续
+
-
)
- : (
)
+ : itemo.question.question_type === 3 ?
+
+
+ this.Deleteadddom(indexo,true)}>取消
+ this.Deleteadddomthree(indexo, itemo,true)}>保存
+ this.Deleteadddomtwo(indexo, itemo,true)}>保存并继续
+
+
+ :
+ ""}
- }
+
+
+
+
+ return (
- {itemo.question.question_type === 2 ?
- (
- this.state.polls_status === undefined || this.state.polls_status === 1 ?
-
+ {resultDomtwo}
+
+ )
+ })}
+
:""}
+
+ }
+
-
this.Ewoption(itemo.question.id, itemo)}>新增选项
+ )
+ })}
- {
- this.state.newoption === false ?
this.Addanotheroption(itemo.question.id)}>新增其他选项 : ""
- }
+
+ {/*新建单选多选2*/}
+
+ {
+ this.state.Newdisplay === true?
+
+ {this.state.adddom === undefined ? "" : this.state.adddom.map((itemo, indexo) => {
+ // console.log('打印this.state.adddom')
+ // console.log(this.state.adddom);
+ let arrid = itemo.question.id;
+ let resultDomtwo;
+ resultDomtwo =
+
+
{itemo.question.question_type === 1 ? "单选题" : itemo.question.question_type === 2 ? "多选题" : "主观题"}
+ this.OnCheckAllChange(e, indexo)}
+ className="lineh-40"
+ style={{"marginLeft": "20px"}}>必答
+
+
+
+
+ {itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
+ return (
+
+ )
+ })}
+
+
+ {itemo.question.question_type === 1 ? (
+
+
+ {polls_status === undefined || polls_status === 1 ?
+
this.Ewoption(itemo.question.id, itemo)}>新增选项
+
+ : ""}
+ {polls_status === undefined || polls_status === 1 ?
+
+ (newoption === false ?
+
this.Addanotheroption(itemo.question.id)}>新增其他选项
+ : "")
+ : ""}
+
+ this.Deleteadddom(indexo)}>取消
+ this.Deleteadddomthree(indexo, itemo)}>保存
+ this.Deleteadddomtwo(indexo, itemo)}>保存并继续
+
+
+
+
+
+ )
+
+
+ : itemo.question.question_type === 2 ? (
+ //////////////////////////////////////////// 可选
+
+
+
+
可选
+
+ {/*可选最小*/}
+
+ this.HandleGradationGroupChangee(value, indexo, itemo.question.max_choices, itemo.question.answers.length)}
+ value={itemo.question.min_choices === 0 || itemo.question.min_choices === "0" ? "--" : itemo.question.min_choices === null ? "--" : itemo.question.min_choices === undefined ? "--" : itemo.question.min_choices}
+
+ >
+
+ {itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
+ return (
+ indext >= 1 ? : ""
+ )
+ })}
+
+ ~
+ {/*可选最大*/}
+ this.HandleGradationGroupChangeee(value, indexo)}
+ value={itemo.question.max_choices === 0 || itemo.question.max_choices === "0" ? "--" : itemo.question.min_choices === null ? "--" : itemo.question.min_choices === undefined ? "--" : itemo.question.max_choices}
+ >
+
+ {itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
+ return (
+ indext >= 1 ? : ""
+
+ )
+ })}
+
+ 项
+ (学生答题时,系统对其选择的选项个数进行限制,--表示不限制)
+
+
+
+ )
-
+ : ()
+
+ }
+
+
+ {itemo.question.question_type === 2 ?
+ (
+ polls_status === undefined || polls_status === 1 ?
+
+
+
this.Ewoption(itemo.question.id, itemo)}>新增选项
+
+ {
+ newoption === false ?
this.Addanotheroption(itemo.question.id)}>新增其他选项 : ""
+ }
+
+
+
+
+
this.Deleteadddom(indexo)}>取消
this.Deleteadddomtwo(indexo, itemo)}>保存并继续
-
+
- :
-
+ :
+
this.Deleteadddom(indexo)}>取消
@@ -3240,11 +3321,11 @@ class PollNew extends Component {
this.Deleteadddomtwo(indexo, itemo)}>保存并继续
-
- )
+
+ )
- : itemo.question.question_type === 3 ?
-
+ : itemo.question.question_type === 3 ?
+
this.Deleteadddom(indexo)}>取消
@@ -3253,40 +3334,35 @@ class PollNew extends Component {
this.Deleteadddomtwo(indexo, itemo)}>保存并继续
-
- :
- ""}
+
+ :
+ ""}
-
-
+
+
- return (
-
- {resultDomtwo}
-
- )
- })}
-
) : (
)}
-
+ return (
+
+ {resultDomtwo}
+
+ )
+ })}
+
+ :
+ ""
+ }
- return (
-
- {resultDom}
-
- )
- })}
-
{polls_status === undefined || polls_status === 1 ?
{
this.props.match.params.news === "new" ?
this.state.Newedit === false ?