|
|
@ -136,7 +136,7 @@ class CommonWorkDetailIndex extends Component{
|
|
|
|
DownloadMessageval:undefined
|
|
|
|
DownloadMessageval:undefined
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bindRef = ref => { this.child = ref };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
@ -171,8 +171,10 @@ class CommonWorkDetailIndex extends Component{
|
|
|
|
let params = {}
|
|
|
|
let params = {}
|
|
|
|
if (isListModule) {
|
|
|
|
if (isListModule) {
|
|
|
|
// TODO
|
|
|
|
// TODO
|
|
|
|
// params = this.refs.commonWorkList._getRequestParams()
|
|
|
|
params =this.child._getRequestParams()!==undefined?this.child._getRequestParams():{};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// console.log("普通作业176176176");
|
|
|
|
|
|
|
|
// console.log(params);
|
|
|
|
let exportUrl = `/homework_commons/${workId}/works_list.zip?${queryString.stringify(params)}`
|
|
|
|
let exportUrl = `/homework_commons/${workId}/works_list.zip?${queryString.stringify(params)}`
|
|
|
|
let exportResultUrl = `/homework_commons/${workId}/works_list.xlsx?${queryString.stringify(params)}`
|
|
|
|
let exportResultUrl = `/homework_commons/${workId}/works_list.xlsx?${queryString.stringify(params)}`
|
|
|
|
return (
|
|
|
|
return (
|
|
|
@ -356,7 +358,7 @@ class CommonWorkDetailIndex extends Component{
|
|
|
|
{/* 作品列表 */}
|
|
|
|
{/* 作品列表 */}
|
|
|
|
<Route exact path="/courses/:coursesId/common_homeworks/:workId/list"
|
|
|
|
<Route exact path="/courses/:coursesId/common_homeworks/:workId/list"
|
|
|
|
render={
|
|
|
|
render={
|
|
|
|
(props) => (<CommonWorkList ref="commonWorkList" {...this.props} {...props} {...this.state} {...commonHandler}/>)
|
|
|
|
(props) => (<CommonWorkList ref="commonWorkList" triggerRef={this.bindRef} {...this.props} {...props} {...this.state} {...commonHandler}/>)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
></Route>
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
|
|