dev_aliyun_beta
杨树林 6 years ago
parent 7702d78bc1
commit c5b41a2892

@ -1752,7 +1752,7 @@ class PollNew extends Component {
question = {"question": questiontwo}; question = {"question": questiontwo};
if (uuk !== -1) { if (uuk !== -1) {
// console.log("修改") // console.log("修改")
this.edittotheserver(object, 3, null, null, 0, 0,0); this.edittotheserver(object, 3, null, null, 0, 0,0,0);
newarrpoll.splice(uuk, 1, question); newarrpoll.splice(uuk, 1, question);
} else { } else {
// console.log("删除") // console.log("删除")
@ -1859,10 +1859,10 @@ class PollNew extends Component {
max_choicess = max_choices; max_choicess = max_choices;
min_choicess = min_choices; min_choicess = min_choices;
} }
console.log("createquestionsandanswers"); // console.log("createquestionsandanswers");
console.log(max_choicess); // console.log(max_choicess);
console.log(min_choicess); // console.log(min_choicess);
console.log(length); // console.log(length);
axios.put(url, { axios.put(url, {
// debug: true, // debug: true,
question_title: object.question.question_title, question_title: object.question.question_title,

@ -13,6 +13,7 @@ import axios from 'axios'
import moment from "../new/CoursesNew"; import moment from "../new/CoursesNew";
import Modals from "../../modals/Modals"; import Modals from "../../modals/Modals";
import PollListItem from "./PollListItem"; import PollListItem from "./PollListItem";
import TPMMDEditor from '../../tpm/challengesnew/TPMMDEditor';
const TextArea = Input.TextArea const TextArea = Input.TextArea
const RadioGroup = Radio.Group const RadioGroup = Radio.Group
@ -36,12 +37,13 @@ class PollNewQuestbank extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.contentMdRef = React.createRef();
this.state = { this.state = {
visible: false, visible: false,
poll_questions: [], poll_questions: [],
user_permission: "", user_permission: "",
addonAfter: 0, addonAfter: 0,
addonAftertwo: 100, addonAftertwo: 0,
mysingles: 0, mysingles: 0,
mydoubles: 0, mydoubles: 0,
mymainsint: 0, mymainsint: 0,
@ -122,6 +124,7 @@ class PollNewQuestbank extends Component {
// cancellation: true, // cancellation: true,
// }) // })
// } else { // } else {
this.Initializatio_data(); this.Initializatio_data();
this.state.Newedit === false; this.state.Newedit === false;
this.setState({ this.setState({
@ -288,6 +291,19 @@ class PollNewQuestbank extends Component {
}) })
} }
} }
try {
const crumbData={
title:'编辑',
is_public:result && result.data && result.data.is_public,
crumbArray:[
{to:`/banks/poll/${pollid}`,content:'详情'},
{content:'编辑'}
]
}
this.props.initPublic(crumbData);
}catch (e) {
}
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
}) })
@ -314,7 +330,7 @@ class PollNewQuestbank extends Component {
if (result !== undefined) { if (result !== undefined) {
this.setState({ this.setState({
projects: result.data, projects: result.data,
pollid: pollid, pollid: pollidsy,
polls_status: result.data.poll.is_public === false ? 1 : 2, 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,
@ -331,9 +347,6 @@ class PollNewQuestbank extends Component {
}); });
if (result.data.poll.name) { if (result.data.poll.name) {
if (result.data.poll.name.length > 0) { if (result.data.poll.name.length > 0) {
this.setState({ this.setState({
@ -346,7 +359,6 @@ class PollNewQuestbank extends Component {
// console.log("有问卷~~~") // console.log("有问卷~~~")
// } // }
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
@ -836,7 +848,6 @@ class PollNewQuestbank extends Component {
newoption: false, newoption: false,
}) })
} }
} }
//保存并继续 //保存并继续
//保存并继续,即提交本题的新建并继续创建一个相同的题(该新题处于编辑模式,题目和选项不要清空) //保存并继续,即提交本题的新建并继续创建一个相同的题(该新题处于编辑模式,题目和选项不要清空)
@ -855,7 +866,10 @@ class PollNewQuestbank extends Component {
Newdisplay: false, Newdisplay: false,
}) })
} }
if (object.question.question_type === 3) {
this.HandleInputTopics(this.contentMdRef.current.getValue().trim(), indexo);
}
var poll_questionslength = this.state.poll_questions.length; var poll_questionslength = this.state.poll_questions.length;
// console.log("deleteadddomtwo|||||||||||||||||||||||||||||||||||||||||\\"); // console.log("deleteadddomtwo|||||||||||||||||||||||||||||||||||||||||\\");
// console.log(indexo); // console.log(indexo);
@ -881,11 +895,13 @@ class PollNewQuestbank extends Component {
console.log(e) console.log(e)
} }
} }
if (object.question.question_type !== 3) {
if (newarr[indexo].question.question_title === "") { if (newarr[indexo].question.question_title === "") {
this.props.showNotification(`题目不能为空`); this.props.showNotification(`题目不能为空`);
return return
} }
}
if (max > 0) { if (max > 0) {
if (object.question.question_type === 1) { if (object.question.question_type === 1) {
this.props.showNotification(`选项内容不能为空`); this.props.showNotification(`选项内容不能为空`);
@ -912,8 +928,6 @@ class PollNewQuestbank extends Component {
} }
if (object.question.question_type === 2) { if (object.question.question_type === 2) {
if (object.question.max_choices > 0) { if (object.question.max_choices > 0) {
// if (object.question.min_choices < 2) { // if (object.question.min_choices < 2) {
@ -988,7 +1002,7 @@ class PollNewQuestbank extends Component {
if (this.state.problemtopicbool === true) { if (this.state.problemtopicbool === true) {
insindex = this.state.problemtopic; insindex = this.state.problemtopic;
} }
this.createquestionsandanswers(object, 1, arrc, null, 0, 0, insindex); this.createquestionsandanswers(object, 1, arrc, null, 0, 0, insindex,0);
// newarrpoll.push(question); // newarrpoll.push(question);
newarrpoll.splice(thiss.state.Insertposition, 0, question); newarrpoll.splice(thiss.state.Insertposition, 0, question);
@ -1048,7 +1062,7 @@ class PollNewQuestbank extends Component {
if (this.state.problemtopicbool === true) { if (this.state.problemtopicbool === true) {
insindex = this.state.problemtopic; insindex = this.state.problemtopic;
} }
this.createquestionsandanswers(object, 2, arrc, null, object.question.max_choices, object.question.min_choices, insindex); 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) { // if (object.question.max_choices > arrc.length) {
// // console.log("选择题的最大可选项不能大于选项数") // // console.log("选择题的最大可选项不能大于选项数")
@ -1066,6 +1080,7 @@ class PollNewQuestbank extends Component {
// newarrpoll.push(question); // 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) {
// this.HandleInputTopics(this.contentMdRef.current.getValue().trim(),indexo);
//插入主观题 //插入主观题
var answers = []; var answers = [];
var questiontwo = {}; var questiontwo = {};
@ -1103,7 +1118,7 @@ class PollNewQuestbank extends Component {
"id": null, "id": null,
"is_necessary": object.question.is_necessary, "is_necessary": object.question.is_necessary,
"question_number": 3, "question_number": 3,
"question_title": object.question.question_title, "question_title": this.contentMdRef.current.getValue().trim(),
"question_type": 3, "question_type": 3,
"new": "", "new": "",
"answers": answers "answers": answers
@ -1118,7 +1133,7 @@ class PollNewQuestbank extends Component {
if (this.state.problemtopicbool === true) { if (this.state.problemtopicbool === true) {
insindex = this.state.problemtopic; insindex = this.state.problemtopic;
} }
this.createquestionsandanswers(object, 3, null, null, 0, 0, insindex); this.createquestionsandanswers(object, 3, null, null, 0, 0, insindex,0);
// newarrpoll.push(question); // newarrpoll.push(question);
newarrpoll.splice(thiss.state.Insertposition, 0, question); newarrpoll.splice(thiss.state.Insertposition, 0, question);
} }
@ -1181,11 +1196,11 @@ class PollNewQuestbank extends Component {
question = {"question": questiontwo}; question = {"question": questiontwo};
if (uuk !== -1) { if (uuk !== -1) {
// console.log("修改") // console.log("修改")
this.edittotheserver(object, 1, arrc, null, 0, 0); this.edittotheserver(object, 1, arrc, null, 0, 0,0);
newarrpoll.splice(uuk, 1, question); newarrpoll.splice(uuk, 1, question);
} else { } else {
// console.log("他原来的删除掉了") // console.log("他原来的删除掉了")
this.createquestionsandanswers(object, 1, arrc, null, 0, 0, object.question.id); this.createquestionsandanswers(object, 1, arrc, null, 0, 0, object.question.id,0);
newarrpoll.push(question); newarrpoll.push(question);
} }
newarr[indexo].question.new = "new" newarr[indexo].question.new = "new"
@ -1252,16 +1267,18 @@ class PollNewQuestbank extends Component {
// } // }
if (uuk !== -1) { if (uuk !== -1) {
// console.log("修改") // console.log("修改")
this.edittotheserver(object, 2, arrc, null, object.question.max_choices, object.question.min_choices); this.edittotheserver(object, 2, arrc, null, object.question.max_choices, object.question.min_choices,object.question.answers.length);
newarrpoll.splice(uuk, 1, question); newarrpoll.splice(uuk, 1, question);
} else { } else {
// console.log("删除") // console.log("删除")
this.createquestionsandanswers(object, 2, arrc, null, object.question.max_choices, object.question.min_choices, object.question.id); 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) // console.log(newarrpoll)
newarr[indexo].question.new = "new" newarr[indexo].question.new = "new"
} else if (object.question.question_type === 3) { } else if (object.question.question_type === 3) {
// this.HandleInputTopics(this.contentMdRef.current.getValue().trim(),indexo);
//插入主观题 //插入主观题
var answers = []; var answers = [];
var questiontwo = {}; var questiontwo = {};
@ -1289,7 +1306,7 @@ class PollNewQuestbank extends Component {
"id": object.question.id, "id": object.question.id,
"is_necessary": object.question.is_necessary, "is_necessary": object.question.is_necessary,
"question_number": 3, "question_number": 3,
"question_title": object.question.question_title, "question_title": this.contentMdRef.current.getValue().trim(),
"question_type": 3, "question_type": 3,
"new": "", "new": "",
"answers": answers "answers": answers
@ -1298,11 +1315,11 @@ class PollNewQuestbank extends Component {
if (uuk !== -1) { if (uuk !== -1) {
// console.log("修改") // console.log("修改")
this.edittotheserver(object, 3, null, null, 0, 0); this.edittotheserver(object, 3, null, null, 0, 0,0);
newarrpoll.splice(uuk, 1, question); newarrpoll.splice(uuk, 1, question);
} else { } else {
// console.log("删除") // console.log("删除")
this.createquestionsandanswers(object, 3, null, null, 0, 0, object.question.id); this.createquestionsandanswers(object, 3, null, null, 0, 0, object.question.id,0);
newarrpoll.push(question); newarrpoll.push(question);
} }
// console.log(newarrpoll) // console.log(newarrpoll)
@ -1350,7 +1367,11 @@ class PollNewQuestbank extends Component {
} }
this.setState({ this.setState({
Newdisplay: false, Newdisplay: false,
}) });
if (object.question.question_type === 3) {
this.HandleInputTopics(this.contentMdRef.current.getValue().trim(), indexo);
}
// console.log("deleteadddom 349") // console.log("deleteadddom 349")
var thiss = this; var thiss = this;
let arr = this.state.adddom; let arr = this.state.adddom;
@ -1374,10 +1395,12 @@ class PollNewQuestbank extends Component {
// console.log(e) // console.log(e)
} }
} }
if (object.question.question_type !== 3) {
if (newarr[indexo].question.question_title === "") { if (newarr[indexo].question.question_title === "") {
this.props.showNotification('题目不能为空!'); this.props.showNotification('题目不能为空!');
return return
} }
}
if (max > 0) { if (max > 0) {
if (object.question.question_type === 1) { if (object.question.question_type === 1) {
this.props.showNotification('选项内容不能为空!'); this.props.showNotification('选项内容不能为空!');
@ -1401,7 +1424,6 @@ class PollNewQuestbank extends Component {
} }
if (object.question.question_type === 2) { if (object.question.question_type === 2) {
if (object.question.max_choices > 0) { if (object.question.max_choices > 0) {
// if (object.question.min_choices < 2) { // if (object.question.min_choices < 2) {
@ -1470,7 +1492,7 @@ class PollNewQuestbank extends Component {
if (this.state.problemtopicbool === true) { if (this.state.problemtopicbool === true) {
insindex = this.state.problemtopic; insindex = this.state.problemtopic;
} }
this.createquestionsandanswers(object, 1, arrc, null, 0, 0, insindex); this.createquestionsandanswers(object, 1, arrc, null, 0, 0, insindex,0);
newarrpoll.splice(thiss.state.Insertposition, 0, question); newarrpoll.splice(thiss.state.Insertposition, 0, question);
} else if (object.question.question_type === 2) { } else if (object.question.question_type === 2) {
//插入多选题 //插入多选题
@ -1524,12 +1546,14 @@ class PollNewQuestbank extends Component {
if (this.state.problemtopicbool === true) { if (this.state.problemtopicbool === true) {
insindex = this.state.problemtopic; insindex = this.state.problemtopic;
} }
this.createquestionsandanswers(object, 2, arrc, null, object.question.max_choices, object.question.min_choices, insindex); 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) { // 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) {
// this.HandleInputTopics(this.contentMdRef.current.getValue().trim(),indexo);
//插入主观题 //插入主观题
var answers = []; var answers = [];
var questiontwo = {}; var questiontwo = {};
@ -1560,7 +1584,7 @@ class PollNewQuestbank extends Component {
"id": null, "id": null,
"is_necessary": object.question.is_necessary, "is_necessary": object.question.is_necessary,
"question_number": 3, "question_number": 3,
"question_title": object.question.question_title, "question_title": this.contentMdRef.current.getValue().trim(),
"question_type": 3, "question_type": 3,
"new": "", "new": "",
"answers": answers "answers": answers
@ -1572,7 +1596,7 @@ class PollNewQuestbank extends Component {
if (this.state.problemtopicbool === true) { if (this.state.problemtopicbool === true) {
insindex = this.state.problemtopic; insindex = this.state.problemtopic;
} }
this.createquestionsandanswers(object, 3, null, null, 0, 0, insindex); this.createquestionsandanswers(object, 3, null, null, 0, 0, insindex,0);
// newarrpoll.push(question); // newarrpoll.push(question);
newarrpoll.splice(thiss.state.Insertposition, 0, question); newarrpoll.splice(thiss.state.Insertposition, 0, question);
} }
@ -1633,11 +1657,11 @@ class PollNewQuestbank extends Component {
question = {"question": questiontwo}; question = {"question": questiontwo};
if (uuk !== -1) { if (uuk !== -1) {
// console.log("修改") // console.log("修改")
this.edittotheserver(object, 1, arrc, null, 0, 0); this.edittotheserver(object, 1, arrc, null, 0, 0,0);
newarrpoll.splice(uuk, 1, question); newarrpoll.splice(uuk, 1, question);
} else { } else {
// console.log("删除") // console.log("删除")
this.createquestionsandanswers(object, 1, arrc, null, 0, 0, object.question.id); this.createquestionsandanswers(object, 1, arrc, null, 0, 0, object.question.id,0);
newarrpoll.push(question); newarrpoll.push(question);
} }
// console.log(newarrpoll) // console.log(newarrpoll)
@ -1689,16 +1713,18 @@ class PollNewQuestbank extends Component {
//插入多选题 //插入多选题
if (uuk !== -1) { if (uuk !== -1) {
// console.log("修改") // console.log("修改")
this.edittotheserver(object, 2, arrc, null, object.question.max_choices, object.question.min_choices); this.edittotheserver(object, 2, arrc, null, object.question.max_choices, object.question.min_choices,object.question.answers.length);
newarrpoll.splice(uuk, 1, question); newarrpoll.splice(uuk, 1, question);
} else { } else {
// console.log("删除") // console.log("删除")
this.createquestionsandanswers(object, 2, arrc, null, object.question.max_choices, object.question.min_choices, object.question.id); 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) // console.log(newarrpoll)
} else if (object.question.question_type === 3) { } else if (object.question.question_type === 3) {
// this.HandleInputTopics(this.contentMdRef.current.getValue().trim(),indexo);
//插入主观题 //插入主观题
var answers = []; var answers = [];
var questiontwo = {}; var questiontwo = {};
@ -1726,7 +1752,7 @@ class PollNewQuestbank extends Component {
"id": object.question.id, "id": object.question.id,
"is_necessary": object.question.is_necessary, "is_necessary": object.question.is_necessary,
"question_number": 3, "question_number": 3,
"question_title": object.question.question_title, "question_title": this.contentMdRef.current.getValue().trim(),
"question_type": 3, "question_type": 3,
"new": "", "new": "",
"answers": answers "answers": answers
@ -1734,11 +1760,11 @@ class PollNewQuestbank extends Component {
question = {"question": questiontwo}; question = {"question": questiontwo};
if (uuk !== -1) { if (uuk !== -1) {
// console.log("修改") // console.log("修改")
this.edittotheserver(object, 3, null, null, 0, 0); this.edittotheserver(object, 3, null, null, 0, 0,0);
newarrpoll.splice(uuk, 1, question); newarrpoll.splice(uuk, 1, question);
} else { } else {
// console.log("删除") // console.log("删除")
this.createquestionsandanswers(object, 3, null, null, 0, 0, object.question.id); this.createquestionsandanswers(object, 3, null, null, 0, 0, object.question.id,0);
newarrpoll.push(question); newarrpoll.push(question);
} }
// console.log(newarrpoll) // console.log(newarrpoll)
@ -1774,7 +1800,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,length) => {
var thiss = this; var thiss = this;
var poll_id = this.state.pollid; var poll_id = this.state.pollid;
var urlly = `/poll_bank_questions.json`; var urlly = `/poll_bank_questions.json`;
@ -1792,8 +1818,8 @@ class PollNewQuestbank extends Component {
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,
max_choices: max_choicess, max_choices: max_choicess===undefined?length:max_choicess===null?length:max_choicess===0?length:max_choicess,
min_choices: min_choicess, min_choices: min_choicess===undefined?2:min_choicess===null?2:min_choicess===0?2:min_choicess,
question_answers: option, question_answers: option,
question_other_answer: null, question_other_answer: null,
insert_id: insert_id insert_id: insert_id
@ -1824,7 +1850,7 @@ class PollNewQuestbank extends Component {
} }
///编辑修改到服务器当中 ///编辑修改到服务器当中
edittotheserver = (object, number, option, other, max_choices, min_choices) => { edittotheserver = (object, number, option, other, max_choices, min_choices,length) => {
// console.log("调用了edittotheserver") // console.log("调用了edittotheserver")
var url = `/poll_bank_questions/${object.question.id}.json` var url = `/poll_bank_questions/${object.question.id}.json`
var thiss = this; var thiss = this;
@ -1833,8 +1859,8 @@ class PollNewQuestbank extends Component {
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,
max_choices: max_choices, max_choices: max_choicess===undefined?length:max_choicess===null?length:max_choicess===0?length:max_choicess,
min_choices: min_choices, min_choices: min_choicess===undefined?2:min_choicess===null?2:min_choicess===0?2:min_choicess,
question_answers: option, question_answers: option,
question_other_answer: null, question_other_answer: null,
}).then((result) => { }).then((result) => {
@ -2144,6 +2170,19 @@ class PollNewQuestbank extends Component {
}) })
} }
HandleInputTopics = (value, i) => {
console.log("handleInputTopic 633")
console.log(value);
//取到input的数据
// console.log("handleInputTopic value is :" + value);
// console.log(i);
let arr = this.state.adddom;
let newarr = [...arr];
newarr[i].question.question_title = value
this.setState({
adddom: newarr
})
}
//最小值 //最小值
HandleGradationGroupChangee = (value, index, max, length) => { HandleGradationGroupChangee = (value, index, max, length) => {
// console.log("最小值"); // console.log("最小值");
@ -2206,12 +2245,10 @@ class PollNewQuestbank extends Component {
} else if (parseInt(minchoices) === 0) { } else if (parseInt(minchoices) === 0) {
arr[i].question.min_choices = parseInt(2); arr[i].question.min_choices = parseInt(2);
arr[i].question.max_choices = parseInt(value); arr[i].question.max_choices = parseInt(value);
} } else if (parseInt(value) === 0 && parseInt(minchoices) > 0) {
else if(parseInt(value)===0&&parseInt(minchoices)>0){
arr[i].question.min_choices = parseInt(minchoices); arr[i].question.min_choices = parseInt(minchoices);
arr[i].question.max_choices = parseInt(value); arr[i].question.max_choices = parseInt(value);
} } else {
else {
arr[i].question.min_choices = minchoices === null ? 2 : minchoices === undefined ? 2 : minchoices === 0 ? 2 : parseInt(minchoices); arr[i].question.min_choices = minchoices === null ? 2 : minchoices === undefined ? 2 : minchoices === 0 ? 2 : parseInt(minchoices);
arr[i].question.max_choices = parseInt(value); arr[i].question.max_choices = parseInt(value);
} }
@ -2461,7 +2498,8 @@ class PollNewQuestbank extends Component {
readOnlys, readOnlys,
newoption, newoption,
cancellation, cancellation,
left_banner_id left_banner_id,
addonAftertwo
} = this.state } = this.state
//获取老师权限 //获取老师权限
// console.log("[`${maps[polls_status && polls_status]}`]]"); // console.log("[`${maps[polls_status && polls_status]}`]]");
@ -2491,7 +2529,7 @@ class PollNewQuestbank extends Component {
// console.log(this.state.projects===undefined?"":this.state.projects.poll_questions) // console.log(this.state.projects===undefined?"":this.state.projects.poll_questions)
var displaymysave = (mysave === true) ? "" : "display:none;"; var displaymysave = (mysave === true) ? "" : "display:none;";
return ( return (
<div className=" clearfix"> <div className="newMain clearfix">
{/*提示*/} {/*提示*/}
{Modalstype && Modalstype === true ? <Modals {Modalstype && Modalstype === true ? <Modals
modalsType={this.state.Modalstype} modalsType={this.state.Modalstype}
@ -2501,56 +2539,53 @@ class PollNewQuestbank extends Component {
modalsBottomval={this.state.ModalsBottomval} modalsBottomval={this.state.ModalsBottomval}
loadtype={this.state.Loadtype} loadtype={this.state.Loadtype}
/> : ""} /> : ""}
<style> <div className="educontent mb50">
{ {/*<p className="clearfix mb20 mt10">*/}
` {/* <a className=" btn colorgrey fl hovercolorblue"*/}
.newMains{ margin: 0 auto; padding-bottom: 235px !important; min-width:1200px; min-height: 800px !important;} {/* onClick={() => this.gotohome()}>{this.props.coursedata.name}</a>*/}
` {/* <span className="color-grey-9 fl ml3 mr3">&gt;</span>*/}
}
</style>
<div className="educontent newMains">
<p className="clearfix mb20 mt10">
<a className=" btn colorgrey fl hovercolorblue" onClick={()=>this.gotohome()}>{this.props.coursedata.name}</a>
<span className="color-grey-9 fl ml3 mr3">&gt;</span>
{/*{*/} {/*{*/}
{/* this.props.match.params.news === "new"?*/} {/* this.props.match.params.news === "new"?*/}
{/* <a className=" btn colorgrey fl hovercolorblue"*/} {/* <a className=" btn colorgrey fl hovercolorblue"*/}
{/* href={`/courses/${this.props.match.params.coursesId}/polls/${this.props.match.params.pollid}`}>问卷</a>*/} {/* href={`/courses/${this.props.match.params.coursesId}/polls/${this.props.match.params.pollid}`}>问卷</a>*/}
{/* :*/} {/* :*/}
<a className=" btn colorgrey fl hovercolorblue" {/*<a className=" btn colorgrey fl hovercolorblue"*/}
href={`/courses/${this.props.match.params.coursesId}/polls/${left_banner_id}`}>问卷</a> {/* href={`/courses/${this.props.match.params.coursesId}/polls/${left_banner_id}`}>问卷</a>*/}
{/*}*/} {/*}*/}
<span className="color-grey-9 fl ml3 mr3">&gt;</span> {/*<span className="color-grey-9 fl ml3 mr3">&gt;</span>*/}
{/*<span>{this.props.match.params.news === undefined ? "新建" : this.props.match.params.news === "new" ? "新建" : "编辑"}</span>*/} {/*<span>{this.props.match.params.news === undefined ? "新建" : this.props.match.params.news === "new" ? "新建" : "编辑"}</span>*/}
<span>编辑</span> {/* <span>编辑</span>*/}
</p> {/*</p>*/}
<div className="clearfix mb30"> {/*<div className="clearfix mb30">*/}
{/*<p className="fl color-black summaryname mt5">{this.props.match.params.news === undefined ? "新建问卷" : this.props.match.params.news === "new" ? "新建问卷" : "编辑问卷"}</p>*/} {/*<p className="fl color-black summaryname mt5">{this.props.match.params.news === undefined ? "新建问卷" : this.props.match.params.news === "new" ? "新建问卷" : "编辑问卷"}</p>*/}
<p className="fl color-black summaryname mt5">编辑</p> {/*<p className="fl color-black summaryname mt5">编辑</p>*/}
{/*{*/} {/*{*/}
{/* this.props.match.params.news === "new" ?*/} {/* this.props.match.params.news === "new" ?*/}
{/* <a href={`/courses/${this.props.match.params.coursesId}/polls/${this.props.match.params.pollid}`}*/} {/* <a href={`/courses/${this.props.match.params.coursesId}/polls/${this.props.match.params.pollid}`}*/}
{/* className=" fr font-16">返回</a>*/} {/* className=" fr font-16">返回</a>*/}
{/* :*/} {/* :*/}
<a href={`/courses/${this.props.match.params.coursesId}/polls/${left_banner_id}`} {/*<a href={`/courses/${this.props.match.params.coursesId}/polls/${left_banner_id}`}*/}
className=" fr font-16"></a> {/* className=" fr font-16"></a>*/}
{/*}*/} {/*}*/}
</div> {/*</div>*/}
{/*<Form {...formItemLayout} onSubmit={this.handleSubmit}>*/} {/*<Form {...formItemLayout} onSubmit={this.handleSubmit}>*/}
{ {
this.state.mysave === false ? this.state.mysave === false ?
<div style={{ background: '#fff', minHeight: "75px",padding: "30px"}}> <div style={{background: '#fff', minHeight: "75px", padding: "30px"}} className="mt10">
<div className="displayTitle font-16"> <div className="displayTitle font-16">
<span>{this.state.polls_nametest}</span> <span>{this.state.polls_nametest}</span>
<a className="fr" onClick={() => { this.adddomeditit() }} style={{ lineHeight: '32px'}}> <a className="fr" onClick={() => {
this.adddomeditit()
}} style={{lineHeight: '32px'}}>
<Tooltip title="编辑"><i className="iconfont icon-bianjidaibeijing font-20 color-green"></i></Tooltip> <Tooltip title="编辑"><i className="iconfont icon-bianjidaibeijing font-20 color-green"></i></Tooltip>
</a> </a>
</div> </div>
<div className="displayDescription color-grey-9" dangerouslySetInnerHTML={{__html: this.state.polls_descriptiontest}} <div className="displayDescription color-grey-9"
dangerouslySetInnerHTML={{__html: this.state.polls_descriptiontest}}
style={{whiteSpace: 'pre-wrap'}} style={{whiteSpace: 'pre-wrap'}}
></div> ></div>
@ -2596,13 +2631,14 @@ class PollNewQuestbank extends Component {
` `
} }
</style> </style>
<Input placeholder="请输入问卷标题最大限制60个字符" maxLength="60" <Input placeholder="请输入问卷标题最大限制60个字符" maxLength={60}
style={{"margin-top": "15px", "text-align": "left"}} style={{"margin-top": "15px", "text-align": "left"}}
onInput={this.changeTopicName} onInput={this.changeTopicName}
readOnly={readOnlys} readOnly={readOnlys}
autoComplete="off" autoComplete="off"
addonAfter={String(addonAfter)+"/60"} addonAfter={String(addonAfter)}
value={this.state.polls_nametest} value={this.state.polls_nametest}
className="searchViewAfter yslpollls"></Input> className="searchViewAfter yslpollls"></Input>
</div> </div>
@ -2622,11 +2658,12 @@ class PollNewQuestbank extends Component {
<TextArea placeholder="请输入本次问卷答题的相关说明最大限制100个字符" <TextArea placeholder="请输入本次问卷答题的相关说明最大限制100个字符"
style={{"height": "120px", "margin-top": "15px", "text-align": "left"}} style={{"height": "120px", "margin-top": "15px", "text-align": "left"}}
maxLength="100"
readOnly={readOnlys} readOnly={readOnlys}
onInput={this.changeTopicNametwo} onInput={this.changeTopicNametwo}
value={this.state.polls_descriptiontest} value={this.state.polls_descriptiontest}
autoComplete="off" suffix={"100"}></TextArea> maxLength={100}
autoComplete="off" addonAfter={String(addonAftertwo)}
></TextArea>
{ {
this.state.Newedit === true || this.state.mysave === true ? this.state.Newedit === true || this.state.mysave === true ?
<div> <div>
@ -2659,7 +2696,6 @@ class PollNewQuestbank extends Component {
} }
<p className="clearfix padding20-30 color-grey-9"> <p className="clearfix padding20-30 color-grey-9">
@ -2712,11 +2748,11 @@ class PollNewQuestbank extends Component {
let resultDom; let resultDom;
resultDom = <div id={"biaoshipolll1111111"}> 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
className="color-grey-9 fl">{item.question.question_type === 1 ? "(单选题)" : item.question.question_type === 2 ? "(多选题)" : "(主观题)"}</span> className="color-grey-9 fl">{item.question.question_type === 1 ? "单选题" : item.question.question_type === 2 ? "多选题" : "主观题"}</span>
<span <span
className="selectAnswer ml10">{item.question.is_necessary === 1 ? "必答" : item.question.question_type === 2 ? "选答" : "选答"}</span> className=" ml10">{item.question.is_necessary === 1 ? "(必答)" : item.question.question_type === 2 ? "(选答)" : "(选答)"}</span>
<span style={{color: "#4B4B4B"}} <span style={{color: "#4B4B4B"}}
className="font-16 mt10 ml10">{(item.question.min_choices === undefined && item.question.max_choices === undefined ? "" : item.question.min_choices === null && item.question.max_choices === null ? "" : item.question.min_choices === 0 && item.question.max_choices === 0 ? "" : "可选" + item.question.min_choices + "-" + item.question.max_choices + "项")}</span> className="font-16 mt10 ml10">{(item.question.min_choices === undefined && item.question.max_choices === undefined ? "" : item.question.min_choices === null && item.question.max_choices === null ? "" : item.question.min_choices === 0 && item.question.max_choices === 0 ? "" : "可选" + item.question.min_choices + "-" + item.question.max_choices + "项")}</span>
{ {
@ -2747,7 +2783,11 @@ class PollNewQuestbank extends Component {
} }
</p> </p>
<p className="mt20"> <span className="font-16 flex1" style={{"white-space":"pre-wrap","word-break": "break-all","word-wrap": "break-word"}}>{item.question.question_title}</span></p> <p className="mt20"><span className="font-16 flex1" style={{
"white-space": "pre-wrap",
"word-break": "break-all",
"word-wrap": "break-word"
}}>{item.question.question_title}</span></p>
{/*<pre className="mt20 mb20 font-16 break_word flex1">{item.question.question_title}</pre>*/} {/*<pre className="mt20 mb20 font-16 break_word flex1">{item.question.question_title}</pre>*/}
{item.question.question_type === 1 ? {item.question.question_type === 1 ?
<div> <div>
@ -2756,7 +2796,14 @@ class PollNewQuestbank extends Component {
return ( return (
<div className="h20 pt20" style={{"clear": "both"}}> <div className="h20 pt20" style={{"clear": "both"}}>
<Radio value={i} className={"fl"} style={{"text-align": "left", marginTop: "3px"}}></Radio> <Radio value={i} className={"fl"} style={{"text-align": "left", marginTop: "3px"}}></Radio>
<span className={" flex1 "} style={{"text-align": "left","white-space":"pre-wrap","word-break": "break-all","word-wrap": "break-word","float": "left","width":"1116px"}} >{items.answer_text}</span> <span className={" flex1 "} style={{
"text-align": "left",
"white-space": "pre-wrap",
"word-break": "break-all",
"word-wrap": "break-word",
"float": "left",
"width": "1116px"
}}>{items.answer_text}</span>
</div> </div>
) )
@ -2773,7 +2820,14 @@ class PollNewQuestbank extends Component {
return ( return (
<div className="mt10 pt20 " style={{"clear": "both"}}> <div className="mt10 pt20 " style={{"clear": "both"}}>
<Checkbox value={i} key={i} className={"fl"} style={{"text-align": "left"}}></Checkbox> <Checkbox value={i} key={i} className={"fl"} style={{"text-align": "left"}}></Checkbox>
<span className={" flex1"} style={{"text-align": "left","white-space":"pre-wrap","word-break": "break-all","word-wrap": "break-word","float": "left","width":"1120px"}}>{items.answer_text}</span> <span className={" flex1"} style={{
"text-align": "left",
"white-space": "pre-wrap",
"word-break": "break-all",
"word-wrap": "break-word",
"float": "left",
"width": "1120px"
}}>{items.answer_text}</span>
</div> </div>
) )
})} })}
@ -2783,7 +2837,8 @@ class PollNewQuestbank extends Component {
: item.question.question_type === 3 ? : item.question.question_type === 3 ?
// 主观题 // 主观题
( <div> ( <div className="pt20 pb20">
<textarea placeholder="在此填入答案" readOnly className="winput-100-130"></textarea>
</div>) : (<div></div>)} </div>) : (<div></div>)}
</div> </div>
@ -2800,6 +2855,7 @@ class PollNewQuestbank extends Component {
let resultDomtwo; let resultDomtwo;
resultDomtwo = resultDomtwo =
<div> <div>
<span className="color-grey-6">{item.question.question_number}</span>
<span <span
id={"ceshiyong3"} 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 ? "多选题" : "主观题"}
@ -2810,6 +2866,15 @@ class PollNewQuestbank extends Component {
style={{"marginLeft": "20px"}}>必答</Checkbox> style={{"marginLeft": "20px"}}>必答</Checkbox>
</span> </span>
{
itemo.question.question_type === 3 ?
<TPMMDEditor ref={this.contentMdRef} placeholder="请输入参考答案"
mdID={'courseContentMD'} refreshTimeout={1500}
height={155}
className="courseMessageMD"
initValue={itemo.question.question_title}></TPMMDEditor>
:
<TextArea placeholder="请输入题目" className="mb20 TextAreas" <TextArea placeholder="请输入题目" className="mb20 TextAreas"
autosize={{minRows: 1, maxRows: 5}} autosize={{minRows: 1, maxRows: 5}}
id="textArea" id="textArea"
@ -2821,7 +2886,7 @@ 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) => {
return ( return (
<div> <div>
@ -2896,7 +2961,8 @@ class PollNewQuestbank extends Component {
></a> ></a>
} }
</span> </span>
:indext===1&&itemo.question.answers.length===2||indext===1&&itemo.question.answers.length===3?<a className="lineh-40 mr10" : 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 onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip
title="新增" placement={"bottom"}><i title="新增" placement={"bottom"}><i
className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a> : "" className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a> : ""
@ -2969,7 +3035,8 @@ class PollNewQuestbank extends Component {
<Option value={String("0")}>--</Option> <Option value={String("0")}>--</Option>
{itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => { {itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
return ( return (
indext >= 1 ? <Option value={String(indext + 1)}>{indext + 1}</Option> : "" indext >= 1 ?
<Option value={String(indext + 1)}>{indext + 1}</Option> : ""
) )
})} })}
</Select> </Select>
@ -2983,7 +3050,8 @@ class PollNewQuestbank extends Component {
<Option value={String("0")}>--</Option> <Option value={String("0")}>--</Option>
{itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => { {itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
return ( return (
indext >= 1 ? <Option value={String(indext + 1)}>{indext + 1}</Option> : "" indext >= 1 ?
<Option value={String(indext + 1)}>{indext + 1}</Option> : ""
) )
})} })}
@ -3090,6 +3158,8 @@ class PollNewQuestbank extends Component {
let resultDomtwo; let resultDomtwo;
resultDomtwo = resultDomtwo =
<div> <div>
<span className="color-grey-6">{item.question.question_number}</span>
<span <span
id={"ceshiyong1"} 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 ? "多选题" : "主观题"}
@ -3099,6 +3169,14 @@ class PollNewQuestbank extends Component {
className="lineh-40" className="lineh-40"
style={{"marginLeft": "20px"}}>必答</Checkbox> style={{"marginLeft": "20px"}}>必答</Checkbox>
</span> </span>
{
itemo.question.question_type === 3 ?
<TPMMDEditor ref={this.contentMdRef} placeholder="请输入参考答案"
mdID={'courseContentMD'} refreshTimeout={1500}
height={155}
className="courseMessageMD"
initValue={itemo.question.question_title}></TPMMDEditor>
:
<TextArea placeholder="请输入题目" className="mb20 TextAreas" <TextArea placeholder="请输入题目" className="mb20 TextAreas"
autosize={{minRows: 1, maxRows: 5}} autosize={{minRows: 1, maxRows: 5}}
@ -3111,7 +3189,7 @@ 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("chishiyong1");
console.log(itemo.question.answers[itemo.question.answers.length - 1]); console.log(itemo.question.answers[itemo.question.answers.length - 1]);
@ -3193,7 +3271,8 @@ class PollNewQuestbank extends Component {
></a> ></a>
} }
</span> </span>
:indext===1&&itemo.question.answers.length===2||indext===1&&itemo.question.answers.length===3? <a className="lineh-40 mr10" : 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 onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip
title="新增" placement={"bottom"}><i title="新增" placement={"bottom"}><i
className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a> : "" className="color-green font-18 iconfont icon-roundaddfill"></i></Tooltip></a> : ""
@ -3266,7 +3345,8 @@ class PollNewQuestbank extends Component {
<Option value={String("0")}>--</Option> <Option value={String("0")}>--</Option>
{itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => { {itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
return ( return (
indext >= 1 ? <Option value={String(indext + 1)}>{indext + 1}</Option> : "" indext >= 1 ?
<Option value={String(indext + 1)}>{indext + 1}</Option> : ""
) )
})} })}
</Select> </Select>
@ -3280,7 +3360,8 @@ class PollNewQuestbank extends Component {
<Option value={String("0")}>--</Option> <Option value={String("0")}>--</Option>
{itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => { {itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
return ( return (
indext >= 1 ? <Option value={String(indext + 1)}>{indext + 1}</Option> : "" indext >= 1 ?
<Option value={String(indext + 1)}>{indext + 1}</Option> : ""
) )
})} })}
@ -3388,7 +3469,6 @@ class PollNewQuestbank extends Component {
})} })}
{/*新建单选多选2*/} {/*新建单选多选2*/}
<div className="myyslwidth"> <div className="myyslwidth">
{ {
@ -3401,6 +3481,7 @@ class PollNewQuestbank extends Component {
let resultDomtwo; let resultDomtwo;
resultDomtwo = resultDomtwo =
<div className="problemShow"> <div className="problemShow">
<span className="color-grey-6">{item.question.question_number}</span>
<span <span
id={"ceshiyong2"} 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 ? "多选题" : "主观题"}
@ -3410,7 +3491,14 @@ class PollNewQuestbank extends Component {
className="lineh-40" className="lineh-40"
style={{"marginLeft": "20px"}}>必答</Checkbox> style={{"marginLeft": "20px"}}>必答</Checkbox>
</span> </span>
{
itemo.question.question_type === 3 ?
<TPMMDEditor ref={this.contentMdRef} placeholder="请输入参考答案" mdID={'courseContentMD'}
refreshTimeout={1500}
height={155}
className="courseMessageMD"
initValue={itemo.question.question_title}></TPMMDEditor>
:
<TextArea placeholder="请输入题目" className="mb20 TextAreas" <TextArea placeholder="请输入题目" className="mb20 TextAreas"
autosize={{minRows: 1, maxRows: 5}} autosize={{minRows: 1, maxRows: 5}}
id="textArea" id="textArea"
@ -3422,6 +3510,8 @@ 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("ceshiyong2");
@ -3499,7 +3589,8 @@ class PollNewQuestbank extends Component {
></a> ></a>
} }
</span> </span>
:indext===1&&itemo.question.answers.length===2||indext===1&&itemo.question.answers.length===3?<a className="lineh-40 mr10" : 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 onClick={() => this.Ewoption(itemo.question.id, itemo)}><Tooltip
title="新增" title="新增"
placement={"bottom"}><i placement={"bottom"}><i
@ -3574,7 +3665,8 @@ class PollNewQuestbank extends Component {
<Option value={String("0")}>--</Option> <Option value={String("0")}>--</Option>
{itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => { {itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
return ( return (
indext >= 1 ? <Option value={String(indext + 1)}>{indext + 1}</Option> : "" indext >= 1 ?
<Option value={String(indext + 1)}>{indext + 1}</Option> : ""
) )
})} })}
</Select> </Select>
@ -3588,7 +3680,8 @@ class PollNewQuestbank extends Component {
<Option value={String("0")}>--</Option> <Option value={String("0")}>--</Option>
{itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => { {itemo.question.answers === undefined ? "" : itemo.question.answers.map((itemt, indext) => {
return ( return (
indext >= 1 ? <Option value={String(indext + 1)}>{indext + 1}</Option> : "" indext >= 1 ?
<Option value={String(indext + 1)}>{indext + 1}</Option> : ""
) )
})} })}
@ -3692,8 +3785,6 @@ class PollNewQuestbank extends Component {
} }
</div> </div>
</div> </div>
<div <div
@ -3719,58 +3810,109 @@ class PollNewQuestbank extends Component {
// RouteHOC() // RouteHOC()
export default PollNewQuestbank export default PollNewQuestbank
{/*<div>*/} {/*<div>*/
{/* {*/} }
{/* this.props.match.params.news === "new" ?*/} {/* {*/
{/* this.state.Newedit === false ?*/} }
{/* <div>*/} {/* this.props.match.params.news === "new" ?*/
{/* <div className=" mb10"></div>*/} }
{/* this.state.Newedit === false ?*/
{/* <div style={{"padding": "10px 30px 20px 30px"}}>*/} }
{/* <ActionBtn style="green" className="mr20" onClick={() => this.addmysingles()}><i*/} {/* <div>*/
{/* className="iconfont icon-tianjiafangda font-15 mr10"></i>单选题</ActionBtn>*/} }
{/* <ActionBtn style="green" className="mr20" onClick={() => this.addmydoubles()}><i*/} {/* <div className=" mb10"></div>*/
{/* className="iconfont icon-tianjiafangda font-15 mr10"></i>多选题</ActionBtn>*/} }
{/* <ActionBtn style="green" className="mr20" onClick={() => this.addmymainsint()}><i*/}
{/* className="iconfont icon-tianjiafangda font-15 mr10"></i>主观题</ActionBtn>*/}
{/* </div>*/}
{/* </div>*/}
{/* : ""*/}
{/* :*/}
{/* <div>*/}
{/* <div className=" mb10"></div>*/}
{/* <div style={{"padding": "10px 30px 20px 30px"}}>*/}
{/* <ActionBtn style="green" className="mr20" onClick={() => this.addmysingles()}><i*/}
{/* className="iconfont icon-tianjiafangda font-15 mr10"></i>单选题</ActionBtn>*/}
{/* <ActionBtn style="green" className="mr20" onClick={() => this.addmydoubles()}><i*/}
{/* className="iconfont icon-tianjiafangda font-15 mr10"></i>多选题</ActionBtn>*/}
{/* <ActionBtn style="green" className="mr20" onClick={() => this.addmymainsint()}><i*/}
{/* className="iconfont icon-tianjiafangda font-15 mr10"></i>主观题</ActionBtn>*/}
{/* </div>*/}
{/* </div>*/}
{/* }*/}
{/*</div>*/}
{/*{*/}
{/* this.props.match.params.news === "new" ?*/}
{/* (this.state.Newedit === false ?*/}
{/* <div*/}
{/* style={{*/}
{/* "display": "flex",*/}
{/* "justify-content": "center",*/}
{/* "align-items": "center",*/}
{/* "width": "100%",*/}
{/* }}*/}
{/* >*/}
{/* <li className="clearfix mt30 mb50">*/}
{/* <a className="defalutCancelbtn fl mr20" onClick={() => this.props.history.goBack()}>取消</a>*/}
{/* <a type="primary" className="defalutSubmitbtn fl"*/}
{/* onClick={() => this.submitQuestionnaire(this.props.match.params.news)}>提交</a>*/}
{/* </li>*/}
{/* <div style={{"padding": "10px 30px 20px 30px"}}>*/
}
{/* <ActionBtn style="green" className="mr20" onClick={() => this.addmysingles()}><i*/
}
{/* className="iconfont icon-tianjiafangda font-15 mr10"></i>单选题</ActionBtn>*/
}
{/* <ActionBtn style="green" className="mr20" onClick={() => this.addmydoubles()}><i*/
}
{/* className="iconfont icon-tianjiafangda font-15 mr10"></i>多选题</ActionBtn>*/
}
{/* <ActionBtn style="green" className="mr20" onClick={() => this.addmymainsint()}><i*/
}
{/* className="iconfont icon-tianjiafangda font-15 mr10"></i>主观题</ActionBtn>*/
}
{/* </div>*/
}
{/* </div>*/
}
{/* : ""*/
}
{/* :*/
}
{/* <div>*/
}
{/* <div className=" mb10"></div>*/
}
{/* <div style={{"padding": "10px 30px 20px 30px"}}>*/
}
{/* <ActionBtn style="green" className="mr20" onClick={() => this.addmysingles()}><i*/
}
{/* className="iconfont icon-tianjiafangda font-15 mr10"></i>单选题</ActionBtn>*/
}
{/* <ActionBtn style="green" className="mr20" onClick={() => this.addmydoubles()}><i*/
}
{/* className="iconfont icon-tianjiafangda font-15 mr10"></i>多选题</ActionBtn>*/
}
{/* <ActionBtn style="green" className="mr20" onClick={() => this.addmymainsint()}><i*/
}
{/* className="iconfont icon-tianjiafangda font-15 mr10"></i>主观题</ActionBtn>*/
}
{/* </div>*/
}
{/* </div>*/
}
{/* }*/
}
{/*</div>*/
}
{/*{*/
}
{/* this.props.match.params.news === "new" ?*/
}
{/* (this.state.Newedit === false ?*/
}
{/* <div*/
}
{/* style={{*/
}
{/* "display": "flex",*/
}
{/* "justify-content": "center",*/
}
{/* "align-items": "center",*/
}
{/* "width": "100%",*/
}
{/* }}*/
}
{/* >*/
}
{/* <li className="clearfix mt30 mb50">*/
}
{/* <a className="defalutCancelbtn fl mr20" onClick={() => this.props.history.goBack()}>取消</a>*/
}
{/* <a type="primary" className="defalutSubmitbtn fl"*/
}
{/* onClick={() => this.submitQuestionnaire(this.props.match.params.news)}>提交</a>*/
}
{/* </li>*/
}
{/* </div>*/}
{/* : "")*/} {/* </div>*/
{/* :*/} }
{/* */}
{/*}*/} {/* : "")*/
}
{/* :*/
}
{/* */
}
{/*}*/
}
Loading…
Cancel
Save