chromesetting
杨树明 5 years ago
parent 28d322ca91
commit 73412c7330

@ -459,9 +459,9 @@ class TPMDataset extends Component {
} }
ButtonloadinghandleChange=()=>{ ButtonloadinghandleChange=()=>{
// this.props.showNotification(`zhzzzzz`); // this.props.showNotification(`zhzzzzz`);
// this.setState({ this.setState({
// Buttonloading:true Buttonloading:false
// }) })
} }
render() { render() {
const {tpmLoading, shixun, user, match} = this.props; const {tpmLoading, shixun, user, match} = this.props;
@ -494,9 +494,7 @@ class TPMDataset extends Component {
const isLt400M = file.size / 1024 / 1024 <= 400; const isLt400M = file.size / 1024 / 1024 <= 400;
if (!isLt400M) { if (!isLt400M) {
this.setState({ this.ButtonloadinghandleChange
Buttonloading:false
})
this.props.showNotification('文件大小必须小于等于400MB!'); this.props.showNotification('文件大小必须小于等于400MB!');
} }
return isLt400M; return isLt400M;
@ -548,7 +546,7 @@ class TPMDataset extends Component {
</style> </style>
<div className="intermediatecenter deletebuttom"> <div className="intermediatecenter deletebuttom">
<Upload {...uploadProps}> <Upload {...uploadProps}>
<Button className={"deletebuttom"} loading={this.state.Buttonloading} onClick={ this.ButtonloadinghandleChange}>{this.state.Buttonloading===true?"上传中":"上传文件"}</Button> <Button className={"deletebuttom"} loading={this.state.Buttonloading}>{this.state.Buttonloading===true?"上传中":"上传文件"}</Button>
</Upload></div> </Upload></div>
{ {
data_sets_count>0? data_sets_count>0?

Loading…
Cancel
Save