|
|
|
@ -7,7 +7,7 @@ import CourseLayoutcomponent from '../common/CourseLayoutComponent'
|
|
|
|
|
|
|
|
|
|
import Titlesearchsection from '../common/titleSearch/TitleSearchSection'
|
|
|
|
|
import ColorCountText from '../common/titleSearch/ColorCountText'
|
|
|
|
|
import { WordsBtn, trigger, on, off, getUrl, downloadFile , sortDirections } from 'educoder'
|
|
|
|
|
import { WordsBtn, trigger, on, off, getRandomcode, getRandomNumber , sortDirections } from 'educoder'
|
|
|
|
|
import Modals from "../../modals/Modals";
|
|
|
|
|
import axios from 'axios'
|
|
|
|
|
import _ from 'lodash'
|
|
|
|
@ -199,7 +199,7 @@ class studentsList extends Component{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// 确认是否下载
|
|
|
|
|
confirmysl(url){
|
|
|
|
|
confirmysl(url,urls){
|
|
|
|
|
// this.props.showGlobalLoading('正在生成文件,请稍后...')
|
|
|
|
|
axios.get(url + 'export=true').then((response) => {
|
|
|
|
|
if(response === undefined){
|
|
|
|
@ -226,7 +226,7 @@ class studentsList extends Component{
|
|
|
|
|
|
|
|
|
|
// this.props.showNotification(`正在下载中`);
|
|
|
|
|
// window.open("/api"+url, '_blank');
|
|
|
|
|
this.props.slowDownload(url)
|
|
|
|
|
this.props.slowDownload(getRandomcode(url))
|
|
|
|
|
|
|
|
|
|
// getUrl() + "/api"+
|
|
|
|
|
// const fileUrl = url;
|
|
|
|
@ -673,6 +673,8 @@ class studentsList extends Component{
|
|
|
|
|
let exportUrltwo = `/courses/${courseId}/export_couser_info.xlsx?`; //课堂信息
|
|
|
|
|
let exportUrlthree = `/courses/${courseId}/export_member_act_score.xlsx?`; //活跃度
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const params = {}
|
|
|
|
|
if (course_group_id) {
|
|
|
|
|
params.group_id = course_group_id
|
|
|
|
@ -685,11 +687,13 @@ class studentsList extends Component{
|
|
|
|
|
}
|
|
|
|
|
let paramsString = ''
|
|
|
|
|
for (let key in params) {
|
|
|
|
|
paramsString += `${key}=${params[key]}&`
|
|
|
|
|
paramsString += `&${key}=${params[key]}&`
|
|
|
|
|
}
|
|
|
|
|
exportUrl += paramsString;
|
|
|
|
|
exportUrltwo+=paramsString;
|
|
|
|
|
exportUrlthree+=paramsString;
|
|
|
|
|
exportUrlthree += paramsString;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log(paramsString);
|
|
|
|
|
// console.log(checkBoxValues);
|
|
|
|
|
// console.log(searchValue);
|
|
|
|
@ -815,6 +819,7 @@ class studentsList extends Component{
|
|
|
|
|
<li className="li_line drop_down fr color-blue font-16">
|
|
|
|
|
导出<i className="iconfont icon-xiajiantou font-12 ml2"></i>
|
|
|
|
|
<ul className="drop_down_menu" style={{"right": "-20px", "left": "unset", "height": "auto"}}>
|
|
|
|
|
|
|
|
|
|
<li><a
|
|
|
|
|
onClick={(i) => this.confirmysl(exportUrltwo)}>课堂信息</a>
|
|
|
|
|
</li>
|
|
|
|
@ -824,6 +829,7 @@ class studentsList extends Component{
|
|
|
|
|
<li><a
|
|
|
|
|
onClick={(i) => this.confirmysl(exportUrl)}>总成绩</a>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
}
|
|
|
|
|