|
|
|
@ -29,11 +29,13 @@ class ShixunModal extends Component{
|
|
|
|
|
|
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
|
if(result.status===200){
|
|
|
|
|
this.setState({
|
|
|
|
|
shixunmodallist:result.data,
|
|
|
|
|
hometypepvisible:false,
|
|
|
|
|
newshixunmodallist:result.data.shixun_list,
|
|
|
|
|
})
|
|
|
|
|
if(result.data.message===undefined){
|
|
|
|
|
this.setState({
|
|
|
|
|
shixunmodallist:result.data,
|
|
|
|
|
hometypepvisible:false,
|
|
|
|
|
newshixunmodallist:result.data.shixun_list,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{
|
|
|
|
|
console.log(error);
|
|
|
|
@ -59,18 +61,18 @@ class ShixunModal extends Component{
|
|
|
|
|
}
|
|
|
|
|
}).then((result)=>{
|
|
|
|
|
if(result.status===200){
|
|
|
|
|
if(result.data.message===undefined){
|
|
|
|
|
let shixun_list = result.data.shixun_list;
|
|
|
|
|
for (var i = 0; i < shixun_list.length; i++) {
|
|
|
|
|
newshixunmodallists.push(shixun_list[i])
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
shixunmodallist: result.data,
|
|
|
|
|
newshixunmodallist: newshixunmodallists,
|
|
|
|
|
hometypepvisible: false
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
let shixun_list=result.data.shixun_list;
|
|
|
|
|
for(var i=0; i<shixun_list.length;i++){
|
|
|
|
|
newshixunmodallists.push(shixun_list[i])
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
shixunmodallist:result.data,
|
|
|
|
|
newshixunmodallist:newshixunmodallists,
|
|
|
|
|
hometypepvisible:false
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}).catch((error)=>{
|
|
|
|
|