Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_oauth
杨树林 6 years ago
commit c3460f7d77

@ -129,20 +129,21 @@ class CommonWorkDetailIndex extends Component{
}) })
} }
}else { }else {
this.props.showNotification(`正在下载中`); this.props.slowDownload(url)
this.setState({ donwloading: true }) // this.props.showNotification(`正在下载中`);
downloadFile({ // this.setState({ donwloading: true })
url: url, // downloadFile({
successCallback: (url) => { // url: url,
this.setState({ donwloading: false }) // successCallback: (url) => {
console.log('successCallback') // this.setState({ donwloading: false })
}, // console.log('successCallback')
failCallback: (responseHtml, url) => { // },
this.setState({ donwloading: false }) // failCallback: (responseHtml, url) => {
console.log('failCallback') // this.setState({ donwloading: false })
} // console.log('failCallback')
}) // }
// })
// window.open("/api"+url, '_blank'); // window.open("/api"+url, '_blank');
} }
}).catch((error) => { }).catch((error) => {

@ -63,8 +63,9 @@ class TabRightComponents extends Component{
}) })
} }
}else { }else {
this.props.showNotification(`正在下载中`); this.props.slowDownload(url)
window.open("/api"+url, '_blank'); // this.props.showNotification(`正在下载中`);
// window.open("/api"+url, '_blank');
} }
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)

@ -600,7 +600,7 @@ class studentsList extends Component{
font-size: 14px; font-size: 14px;
} }
.drop_down_menu { .drop_down_menu {
width: 93px; /*width: 93px;*/
} }
.drop_down_menu li { .drop_down_menu li {
width:100%; width:100%;

Loading…
Cancel
Save