|
|
@ -146,6 +146,7 @@ class PathDetailIndex extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
componentDidMount(){
|
|
|
|
componentDidMount(){
|
|
|
|
|
|
|
|
debugger
|
|
|
|
const query = this.props.location.search;
|
|
|
|
const query = this.props.location.search;
|
|
|
|
// const type = query.split('?chinaoocTimestamp=');
|
|
|
|
// const type = query.split('?chinaoocTimestamp=');
|
|
|
|
// console.log("Eduinforms12345");
|
|
|
|
// console.log("Eduinforms12345");
|
|
|
@ -158,18 +159,19 @@ class PathDetailIndex extends Component{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
dataquerys:{},
|
|
|
|
dataquerys:{},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
dataquerys:foqus,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
dataqueryss=foqus;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
dataquerys:foqus,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
dataqueryss=foqus;
|
|
|
|
|
|
|
|
}catch (e) {
|
|
|
|
}catch (e) {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
dataquerys:{},
|
|
|
|
dataquerys:{},
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getdatasindexs(undefined,dataqueryss)
|
|
|
|
debugger
|
|
|
|
|
|
|
|
this.getdatasindexs(undefined,dataqueryss);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//截取url 数据的
|
|
|
|
//截取url 数据的
|
|
|
|
foo=(url)=> {
|
|
|
|
foo=(url)=> {
|
|
|
@ -194,6 +196,7 @@ class PathDetailIndex extends Component{
|
|
|
|
return json;
|
|
|
|
return json;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
getdatasindexs=(key,yslwebobject)=>{
|
|
|
|
getdatasindexs=(key,yslwebobject)=>{
|
|
|
|
|
|
|
|
debugger
|
|
|
|
// yslwebobject 后端需要的接口
|
|
|
|
// yslwebobject 后端需要的接口
|
|
|
|
let pathid=this.props.match.params.pathId;
|
|
|
|
let pathid=this.props.match.params.pathId;
|
|
|
|
let url="/paths/"+pathid+".json";
|
|
|
|
let url="/paths/"+pathid+".json";
|
|
|
@ -252,7 +255,7 @@ class PathDetailIndex extends Component{
|
|
|
|
})
|
|
|
|
})
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
getdatasindex=(key,yslwebobject)=>{
|
|
|
|
getdatasindex=(key)=>{
|
|
|
|
// yslwebobject 后端需要的接口
|
|
|
|
// yslwebobject 后端需要的接口
|
|
|
|
let pathid=this.props.match.params.pathId;
|
|
|
|
let pathid=this.props.match.params.pathId;
|
|
|
|
let url="/paths/"+pathid+".json";
|
|
|
|
let url="/paths/"+pathid+".json";
|
|
|
|