|
|
|
@ -109,29 +109,45 @@ class TPMBanner extends Component {
|
|
|
|
|
if (prevProps != this.props) {
|
|
|
|
|
let shixunopenprocess=window.localStorage.shixunopenprocess;
|
|
|
|
|
let openopenpublictype=window.localStorage.openopenpublictype;
|
|
|
|
|
if(this.props.shixunsDetails&&this.props.shixunsDetails.shixun_status === 0 && this.props.identity < 5){
|
|
|
|
|
if(shixunopenprocess===undefined||shixunopenprocess===false){
|
|
|
|
|
this.setState({
|
|
|
|
|
openknow:true
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
openknow:false
|
|
|
|
|
})
|
|
|
|
|
if(this.props.status===0&&this.props.openknows===false){
|
|
|
|
|
|
|
|
|
|
if(this.props.shixunsDetails&&this.props.shixunsDetails.shixun_status === 0 && this.props.identity < 5){
|
|
|
|
|
if(shixunopenprocess===undefined||shixunopenprocess===false){
|
|
|
|
|
this.setState({
|
|
|
|
|
openknow:true
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
openknow:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
openknow:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(this.props.shixunsDetails&&this.props.shixunsDetails.shixun_status === 2 && this.props.shixunsDetails&&this.props.shixunsDetails.public===0 && this.props.identity < 5){
|
|
|
|
|
if(openopenpublictype===undefined||openopenpublictype===false){
|
|
|
|
|
this.setState({
|
|
|
|
|
openshowpublictype:true
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
openshowpublictype:false
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.props.public===0&&this.props.status>1&&this.props.openknows===false){
|
|
|
|
|
if(this.props.shixunsDetails&&this.props.shixunsDetails.shixun_status === 2 && this.props.shixunsDetails&&this.props.shixunsDetails.public===0 && this.props.identity < 5){
|
|
|
|
|
if(openopenpublictype===undefined||openopenpublictype===false){
|
|
|
|
|
this.setState({
|
|
|
|
|
openshowpublictype:true
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
openshowpublictype:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
openshowpublictype:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -779,8 +795,8 @@ class TPMBanner extends Component {
|
|
|
|
|
};
|
|
|
|
|
//
|
|
|
|
|
// console.log(this.props.shixunsDetails&&this.props.shixunsDetails.is_jupyter)
|
|
|
|
|
console.log(this.props)
|
|
|
|
|
console.log(this.state)
|
|
|
|
|
// console.log(this.props)
|
|
|
|
|
// console.log(this.state)
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
|
shixunsDetails === undefined ? "" :
|
|
|
|
|