chromesetting
杨树林 5 years ago
parent e2326f5800
commit 5977fa4a24

@ -15,8 +15,8 @@ class TPMChallengeContainer extends Component {
render() { render() {
const { tpmLoading } = this.props; const { tpmLoading } = this.props;
const user = this.props.current_user; const user = this.props.current_user;
console.log("TPMChallengeContainerTPMChallengeContainer"); // console.log("TPMChallengeContainerTPMChallengeContainer");
console.log(this.props); // console.log(this.props);
return ( return (
<React.Fragment> <React.Fragment>

@ -103,8 +103,8 @@ class TPMDataset extends Component {
selectedRowKeysdata:mydata, selectedRowKeysdata:mydata,
selectedRowKeys: datas, selectedRowKeys: datas,
}) })
console.log(mydata); // console.log(mydata);
console.log(datas); // console.log(datas);
} else { } else {
@ -237,6 +237,7 @@ class TPMDataset extends Component {
// 附件相关 START // 附件相关 START
handleChange = (info) => { handleChange = (info) => {
debugger
if(info.file.status === 'uploading' || info.file.status === 'done' || info.file.status === 'removed') { if(info.file.status === 'uploading' || info.file.status === 'done' || info.file.status === 'removed') {
let {fileList} = this.state; let {fileList} = this.state;
@ -256,6 +257,7 @@ class TPMDataset extends Component {
} }
onAttachmentRemove = (file) => { onAttachmentRemove = (file) => {
debugger
if(!file.percent || file.percent == 100){ if(!file.percent || file.percent == 100){
confirm({ confirm({
title: '确定要删除这个附件吗?', title: '确定要删除这个附件吗?',
@ -357,7 +359,7 @@ class TPMDataset extends Component {
onChange: this.handleChange, onChange: this.handleChange,
onRemove: this.onAttachmentRemove, onRemove: this.onAttachmentRemove,
beforeUpload: (file, fileList) => { beforeUpload: (file, fileList) => {
debugger
if (this.state.fileList.length >= 1) { if (this.state.fileList.length >= 1) {
return false return false
} }

@ -60,11 +60,26 @@ class Challengesjupyter extends Component {
componentDidMount() { componentDidMount() {
setTimeout(this.ChallengesList(), 1000); setTimeout(this.ChallengesList(), 1000);
// console.log("componentDidMount");
// console.log("Challengesjupyter");
// console.log(this.props);
let id = this.props.match.params.shixunId;
let ChallengesURL = `/jupyters/get_info_with_tpm.json`;
let datas={
identifier:id,
}
axios.get(ChallengesURL, {params: datas}).then((response) => {
if (response.status === 200) {
if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
console.log("componentDidMount"); }else{
console.log("Challengesjupyter"); console.log("componentDidMountChallengesjupyter");
console.log(this.props); console.log(response.data);
}
}
}).catch((error) => {
console.log(error)
});

Loading…
Cancel
Save