|
|
|
@ -156,8 +156,10 @@ class TPMDataset extends Component {
|
|
|
|
|
selectedRowKeysdata:[],
|
|
|
|
|
selectedRowKeys: [],
|
|
|
|
|
checked:false,
|
|
|
|
|
page:1,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -181,7 +183,7 @@ class TPMDataset extends Component {
|
|
|
|
|
getdatastwo = (page,limit) => {
|
|
|
|
|
let id=this.props.match.params.shixunId;
|
|
|
|
|
|
|
|
|
|
let collaborators=`/shixuns/${id}/jupyter_data_sets.json`;
|
|
|
|
|
let collaborators=`/shixuns/${id}/get_data_sets.json`;
|
|
|
|
|
axios.get(collaborators,{params:{
|
|
|
|
|
page:page,
|
|
|
|
|
limit:limit,
|
|
|
|
@ -209,6 +211,7 @@ class TPMDataset extends Component {
|
|
|
|
|
selectedRowKeysdata:[],
|
|
|
|
|
selectedRowKeys: [],
|
|
|
|
|
checked:false,
|
|
|
|
|
page:page,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -233,7 +236,7 @@ class TPMDataset extends Component {
|
|
|
|
|
getdatasthree = (page,limit) => {
|
|
|
|
|
let id=this.props.match.params.shixunId;
|
|
|
|
|
|
|
|
|
|
let collaborators=`/shixuns/${id}/jupyter_data_sets.json`;
|
|
|
|
|
let collaborators=`/shixuns/${id}/get_data_sets.json`;
|
|
|
|
|
axios.get(collaborators,{params:{
|
|
|
|
|
page:page,
|
|
|
|
|
limit:limit,
|
|
|
|
@ -298,10 +301,19 @@ class TPMDataset extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
fileList: appendFileSizeToUploadFileAll(fileList),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if(info.file.status === 'done'){
|
|
|
|
|
//done 成功就会调用这个方法
|
|
|
|
|
this.getdatas();
|
|
|
|
|
if(info.file.response){
|
|
|
|
|
if(info.file.response.status===-1||info.file.response.status==="-1"){
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
this.getdatas();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(info.file.response){
|
|
|
|
|
if(info.file.response.status===-1||info.file.response.status==="-1"){
|
|
|
|
|
// console.log("准备显示弹框了");
|
|
|
|
@ -318,6 +330,8 @@ class TPMDataset extends Component {
|
|
|
|
|
tittest:info.file.response.message,
|
|
|
|
|
itemtypebool:itemtype>-1?true:itemtype<=-1?false:false,
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|