|
|
|
@ -1828,7 +1828,8 @@ class PollNew extends Component {
|
|
|
|
|
question_other_answer: null,
|
|
|
|
|
insert_id: insert_id
|
|
|
|
|
}
|
|
|
|
|
if(number&&number===2){
|
|
|
|
|
try {
|
|
|
|
|
if(number===2){
|
|
|
|
|
datay={
|
|
|
|
|
question_title: object.question.question_title,
|
|
|
|
|
question_type: number,
|
|
|
|
@ -1840,6 +1841,9 @@ class PollNew extends Component {
|
|
|
|
|
insert_id: insert_id
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
axios.post(urlly, datay).then((result) => {
|
|
|
|
|
// try {
|
|
|
|
@ -1900,7 +1904,8 @@ class PollNew extends Component {
|
|
|
|
|
question_answers: option,
|
|
|
|
|
question_other_answer: null,
|
|
|
|
|
};
|
|
|
|
|
if(number&&number===2){
|
|
|
|
|
try {
|
|
|
|
|
if(number===2){
|
|
|
|
|
datay={
|
|
|
|
|
// debug: true,
|
|
|
|
|
question_title: object.question.question_title,
|
|
|
|
@ -1912,7 +1917,11 @@ class PollNew extends Component {
|
|
|
|
|
question_other_answer: null,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
axios.put(url,datay ).then((result) => {
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
axios.put(url,datay).then((result) => {
|
|
|
|
|
try {
|
|
|
|
|
if (result.data.status === 0) {
|
|
|
|
|
this.props.showNotification(`编辑题目成功`);
|
|
|
|
|