Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

chromesetting
cxt 5 years ago
commit a9a8353ece

@ -866,6 +866,7 @@ class PollNew extends Component {
let newarr = [...arr]; let newarr = [...arr];
newarr.splice(indexo, 1); newarr.splice(indexo, 1);
if(bool === true) { if(bool === true) {
console.log("shangchu1");
this.setState({ this.setState({
adddom: newarr, adddom: newarr,
q_countst: 0, q_countst: 0,
@ -878,6 +879,8 @@ class PollNew extends Component {
}) })
}else{ }else{
console.log("shangchu2");
this.setState({ this.setState({
adddom: newarr, adddom: newarr,
q_countst: 0, q_countst: 0,
@ -1416,6 +1419,7 @@ class PollNew extends Component {
} }
if(bool === true){ if(bool === true){
console.log("tianjiadao1");
this.setState({ this.setState({
q_countst: 1, q_countst: 1,
bindingid:undefined, bindingid:undefined,
@ -1423,6 +1427,7 @@ class PollNew extends Component {
newoption: false, newoption: false,
}) })
}else { }else {
console.log("tianjiadao2");
this.setState({ this.setState({
q_countst: 1, q_countst: 1,
Newdisplay:false, Newdisplay:false,
@ -2018,6 +2023,7 @@ class PollNew extends Component {
if (result.data.status === 0) { if (result.data.status === 0) {
this.props.showNotification(`已完成`); this.props.showNotification(`已完成`);
thiss.thisinitializationdatanew(); thiss.thisinitializationdatanew();
console.log("已完成了了了1");
this.setState({ this.setState({
Newdisplay:false, Newdisplay:false,
newoption: false, newoption: false,
@ -2109,6 +2115,7 @@ class PollNew extends Component {
axios.put(url,datay).then((result) => { axios.put(url,datay).then((result) => {
try { try {
if (result.data.status === 0) { if (result.data.status === 0) {
console.log("编辑题目成功1");
this.props.showNotification(`编辑题目成功`); this.props.showNotification(`编辑题目成功`);
thiss.thisinitializationdatanew(); thiss.thisinitializationdatanew();
this.setState({ this.setState({
@ -3609,7 +3616,7 @@ class PollNew extends Component {
{ {
this.state.Newdisplay === true? this.state.Newdisplay === true?
<div> <div>
{this.state.adddom === undefined ? "" : this.state.adddom.map((itemo, indexo) => { {this.state.adddom === undefined ? "publishtimeids123123" : this.state.adddom.map((itemo, indexo) => {
// console.log('打印this.state.adddom') // console.log('打印this.state.adddom')
// console.log(this.state.adddom); // console.log(this.state.adddom);
let arrid = itemo.question.id; let arrid = itemo.question.id;

Loading…
Cancel
Save