|
|
@ -66,6 +66,7 @@ class CommonWorkDetailIndex extends Component{
|
|
|
|
this.state = {
|
|
|
|
this.state = {
|
|
|
|
DownloadType:false,
|
|
|
|
DownloadType:false,
|
|
|
|
DownloadMessageval:undefined,
|
|
|
|
DownloadMessageval:undefined,
|
|
|
|
|
|
|
|
donwloading:false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
initWorkDetailCommonState = (data) => {
|
|
|
|
initWorkDetailCommonState = (data) => {
|
|
|
@ -104,17 +105,11 @@ class CommonWorkDetailIndex extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// 确认是否下载
|
|
|
|
/// 确认是否下载
|
|
|
|
confirmysl(url,child){
|
|
|
|
confirmysl(url){
|
|
|
|
let params = {}
|
|
|
|
axios.get(url+ '&export=true').then((response) => {
|
|
|
|
if (isListModule) {
|
|
|
|
if(response===undefined){
|
|
|
|
// TODO
|
|
|
|
return
|
|
|
|
if(child!=undefined) {
|
|
|
|
}
|
|
|
|
params = child._getRequestParams() !== undefined ? child._getRequestParams() : {};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
axios.get(url+ '&export=true',{
|
|
|
|
|
|
|
|
params
|
|
|
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
|
|
|
if(response.data.status&&response.data.status===-1){
|
|
|
|
if(response.data.status&&response.data.status===-1){
|
|
|
|
|
|
|
|
|
|
|
|
}else if(response.data.status&&response.data.status===-2){
|
|
|
|
}else if(response.data.status&&response.data.status===-2){
|
|
|
@ -138,7 +133,6 @@ class CommonWorkDetailIndex extends Component{
|
|
|
|
this.setState({ donwloading: true })
|
|
|
|
this.setState({ donwloading: true })
|
|
|
|
downloadFile({
|
|
|
|
downloadFile({
|
|
|
|
url: url,
|
|
|
|
url: url,
|
|
|
|
params,
|
|
|
|
|
|
|
|
successCallback: (url) => {
|
|
|
|
successCallback: (url) => {
|
|
|
|
this.setState({ donwloading: false })
|
|
|
|
this.setState({ donwloading: false })
|
|
|
|
console.log('successCallback')
|
|
|
|
console.log('successCallback')
|
|
|
@ -324,13 +318,13 @@ class CommonWorkDetailIndex extends Component{
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
|
|
<a href={"javascript:void(0)"} className="color-dark"
|
|
|
|
<a href={"javascript:void(0)"} className="color-dark"
|
|
|
|
onClick={() => this.confirmysl(exportResultUrl,this.child)}
|
|
|
|
onClick={() => this.confirmysl(exportResultUrl)}
|
|
|
|
>导出成绩</a>
|
|
|
|
>导出成绩</a>
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<a href={"javascript:void(0)"} className="color-dark"
|
|
|
|
<a href={"javascript:void(0)"} className="color-dark"
|
|
|
|
onClick={() => this.confirmysl(exportUrl,this.child)}
|
|
|
|
onClick={() => this.confirmysl(exportUrl)}
|
|
|
|
>导出作品附件</a>
|
|
|
|
>导出作品附件</a>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|