|
|
|
@ -132,18 +132,19 @@ class InfosPackage extends Component{
|
|
|
|
|
|
|
|
|
|
delectproject=(id)=>{
|
|
|
|
|
|
|
|
|
|
let {cate,status}=this.state;
|
|
|
|
|
let {category,status}=this.state;
|
|
|
|
|
debugger
|
|
|
|
|
let url=`/project_packages/${id}.json`
|
|
|
|
|
|
|
|
|
|
axios.delete(url).then((response) => {
|
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
|
this.getCourses(cate,status,1);
|
|
|
|
|
this.getCourses(category,status,1);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(function (error) {
|
|
|
|
|
console.log(error);
|
|
|
|
|
});
|
|
|
|
|
this.cancelProject;
|
|
|
|
|
this.cancelProject();
|
|
|
|
|
}
|
|
|
|
|
render(){
|
|
|
|
|
let{
|
|
|
|
|