chromesetting
杨树林 5 years ago
parent ac0bea6978
commit 1c02c4ae64

@ -237,7 +237,6 @@ class TPMDataset extends Component {
// 附件相关 START
handleChange = (info) => {
debugger
if(info.file.status === 'uploading' || info.file.status === 'done' || info.file.status === 'removed') {
let {fileList} = this.state;
@ -359,7 +358,7 @@ class TPMDataset extends Component {
onChange: this.handleChange,
onRemove: this.onAttachmentRemove,
beforeUpload: (file, fileList) => {
debugger
if (this.state.fileList.length >= 1) {
return false
}

@ -5,6 +5,10 @@ import { BrowserRouter as Router, Route, Link } from "react-router-dom";
class TPMNav extends Component {
render() {
console.log("componentDidMount");
console.log("TPMNavTPMNavTPMNavTPMNav");
console.log(this.props);
const { user, match, shixun, secret_repository,is_jupyter} = this.props;
let isAdminOrCreator = false;
if (user) {
@ -17,6 +21,7 @@ class TPMNav extends Component {
// console.log(match.path)
// console.log("TPMNavTPMNavTPMNav");
// console.log(is_jupyter);
const is_teacher = this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:"";
return (
<div className="bor-bottom-greyE clearfix pl20 pr20 pt40 pb20 edu-back-white challengeNav">
<Link

@ -33,6 +33,7 @@ class Challengesjupyter extends Component {
iFrameHeight: '0px',
jupyter_port:0,
jupyter_url:null,
username:"",
}
}
@ -60,9 +61,8 @@ class Challengesjupyter extends Component {
componentDidMount() {
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={
@ -70,12 +70,12 @@ class Challengesjupyter extends Component {
}
axios.get(ChallengesURL, {params: datas}).then((response) => {
debugger
if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
if (response.data.status === 403||response.data.status === 401||response.data.status === 500) {
}else{
// console.log("componentDidMountChallengesjupyter");
// console.log(response.data);
debugger
if(response.data.status===0){
this.setState({
jupyter_url:response.data.url,
@ -93,6 +93,7 @@ class Challengesjupyter extends Component {
}
updatamakedown = (id) => {
@ -162,7 +163,7 @@ class Challengesjupyter extends Component {
identifier:id,
jupyter_port:jupyter_port,
}
axios.post(url, data)
axios.get(url, {params: data})
.then((result) => {
if (result.data.status === 0) {
this.props.showNotification(`应用成功`);

@ -49,17 +49,16 @@
line-height:30px;
}
.renwuxiangqdivtest{
width:32px;
height:30px;
font-size:16px;
line-height:30px;
}
.renwuxiangssi{
width: 30%;
width: 50%;
}
.renwuxiangssit{
width: 70%;
width: 50%;
}
.pb47{

Loading…
Cancel
Save