|
|
|
@ -900,9 +900,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
console.log("902");
|
|
|
|
|
console.log("902");
|
|
|
|
|
console.log(this.props);
|
|
|
|
|
// console.log("902");
|
|
|
|
|
// console.log("902");
|
|
|
|
|
// console.log(this.props);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentDidCatch(error, info){
|
|
|
|
@ -916,15 +916,17 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
console.log("+++++++++915");
|
|
|
|
|
console.log("+++++++++916");
|
|
|
|
|
console.log(nextProps);
|
|
|
|
|
console.log(this.props)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
console.log("componentDidMount");
|
|
|
|
|
if(this.props.isAdmin() === true){
|
|
|
|
|
this.tearchar();
|
|
|
|
|
console.log("909");
|
|
|
|
|
// console.log("909");
|
|
|
|
|
}else{
|
|
|
|
|
this.student();
|
|
|
|
|
console.log("911");
|
|
|
|
|
// console.log("911");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1165,8 +1167,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
console.log("554");
|
|
|
|
|
console.log(columns2);
|
|
|
|
|
// console.log("554");
|
|
|
|
|
// console.log(columns2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
@ -1621,8 +1623,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
user_name: student_works[i].user_name,
|
|
|
|
|
user_login: student_works[i].user_login,
|
|
|
|
|
})
|
|
|
|
|
console.log(datalist);
|
|
|
|
|
console.log("1612");
|
|
|
|
|
// console.log(datalist);
|
|
|
|
|
// console.log("1612");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1719,9 +1721,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log(datalist);
|
|
|
|
|
console.log("1712");
|
|
|
|
|
//
|
|
|
|
|
// console.log(datalist);
|
|
|
|
|
// console.log("1712");
|
|
|
|
|
this.setState({
|
|
|
|
|
data: datalist,
|
|
|
|
|
columns: columns2,
|
|
|
|
@ -2004,7 +2006,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
//立即截止
|
|
|
|
|
homeworkends = () => {
|
|
|
|
|
console.log("1160");
|
|
|
|
|
// console.log("1160");
|
|
|
|
|
let homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
let url = "/homework_commons/" + homeworkid + "/end_groups.json";
|
|
|
|
|
|
|
|
|
@ -2201,18 +2203,63 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
daochushixunbaogao=()=>{
|
|
|
|
|
let url =`/zip/shixun_report?homework_common_id=${this.props.match.params.homeworkid}&work_status=${this.state.course_groupyslstwo===undefined ||this.state.course_groupyslstwo===null? "": this.state.course_groupyslstwo}&course_group=${this.state.checkedValuesineinfo===undefined||this.state.checkedValuesineinfo===null? "":this.state.checkedValuesineinfo}&search=${this.state.searchtext===undefined||this.state.searchtext===null?"":this.state.searchtext}`
|
|
|
|
|
this.confirmysl(url);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
daochuzuoye =() =>{
|
|
|
|
|
let url = `/homework_commons/${this.props.match.params.homeworkid}/works_list.xlsx?group_id=${this.state.checkedValuesineinfo===undefined||this.state.checkedValuesineinfo===null?"":this.state.checkedValuesineinfo}&search=${this.state.searchtext===undefined||this.state.searchtext=== null?"":this.state.searchtext}`
|
|
|
|
|
this.confirmysl(url);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
confirmysl(url){
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
if(response.data.status&&response.data.status===-1){
|
|
|
|
|
|
|
|
|
|
}else if(response.data.status&&response.data.status===-2){
|
|
|
|
|
if(response.data.messages === "100"){
|
|
|
|
|
// 已超出文件导出的上限数量(100 ),建议:
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
DownloadType:true,
|
|
|
|
|
DownloadMessageval:100
|
|
|
|
|
})
|
|
|
|
|
}else {
|
|
|
|
|
//因附件资料超过500M
|
|
|
|
|
this.setState({
|
|
|
|
|
DownloadType:true,
|
|
|
|
|
DownloadMessageval:500
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
this.props.showNotification(`正在下载中`);
|
|
|
|
|
window.open("/api"+url, '_blank');
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Downloadcal=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
DownloadType:false,
|
|
|
|
|
DownloadMessageval:undefined
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let {columns,course_groupysls,isAdmin, course_groupyslstwo, unlimited, unlimitedtwo, course_group_info, orders, task_status, checkedValuesine, searchtext, teacherlist, visible,visibles, game_list,columnsstu, limit,experience, boolgalist,viewtrainingdata, teacherdata, page, data, jobsettingsdata, styletable, datas, order, loadingstate,computeTimetype} = this.state;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log(this.state.data);
|
|
|
|
|
// console.log("841");
|
|
|
|
|
console.log(this.state.columns);
|
|
|
|
|
console.log(data);
|
|
|
|
|
console.log("2202");
|
|
|
|
|
console.log(this.props.isAdmin());
|
|
|
|
|
// console.log(this.state.columns);
|
|
|
|
|
// console.log(data);
|
|
|
|
|
// console.log("2202");
|
|
|
|
|
// console.log(this.props.isAdmin());
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
this.props.isAdmin() === true ?
|
|
|
|
@ -2232,7 +2279,13 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
updatas={() => this.isupdatas()}
|
|
|
|
|
/> : ""}
|
|
|
|
|
|
|
|
|
|
<DownloadMessageysl
|
|
|
|
|
{...this.props}
|
|
|
|
|
value={this.state.DownloadMessageval}
|
|
|
|
|
modalCancel={this.Downloadcal}
|
|
|
|
|
modalsType={this.state.DownloadType}
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
{visibles === true ?
|
|
|
|
|
<div>
|
|
|
|
|
<style>
|
|
|
|
|