|
|
|
@ -13,6 +13,7 @@ import '../css/busyWork.css'
|
|
|
|
|
import '../poll/pollStyle.css'
|
|
|
|
|
import {getImageUrl} from 'educoder';
|
|
|
|
|
import TraineetraininginformationModal from "./TraineetraininginformationModal";
|
|
|
|
|
import DownloadMessageysl from '../../modals/DownloadMessageysl';
|
|
|
|
|
import Startshixuntask from "../coursesPublic/Startshixuntask";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -63,6 +64,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
},
|
|
|
|
|
student_works: [],
|
|
|
|
|
startbtn: false,
|
|
|
|
|
DownloadType:false,
|
|
|
|
|
DownloadMessageval:undefined,
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
title: '序号',
|
|
|
|
@ -335,8 +338,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
console.log("Listofworksstudentone");
|
|
|
|
|
console.log("componentDidMount");
|
|
|
|
|
this.props.triggerRef(this);
|
|
|
|
|
var homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
this.Getalistofworks(homeworkid);
|
|
|
|
|
// var homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
// this.Getalistofworks(homeworkid);
|
|
|
|
|
this.Getalistofworkstwo("", "", "", "", 1, 20);
|
|
|
|
|
let query = this.props.location.pathname;
|
|
|
|
|
const type = query.split('/');
|
|
|
|
|
this.setState({
|
|
|
|
@ -857,16 +861,15 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
this.props.showNotification(`${response.data.message}`);
|
|
|
|
|
var homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
this.Getalistofworks(homeworkid);
|
|
|
|
|
// var homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
// this.Getalistofworks(homeworkid);
|
|
|
|
|
this.Getalistofworkstwo("", "", "", "", 1, 20);
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
ChangeTab=(e)=>{
|
|
|
|
|
this.props.ChangeTab(e);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let {visibles, game_list,columns, limit,experience, boolgalist,viewtrainingdata, teacherdata, page, data, jobsettingsdata, styletable, datas, order, loadingstate,computeTimetype} = this.state;
|
|
|
|
|
// console.log(this.state.data);
|
|
|
|
@ -920,6 +923,12 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
</style>
|
|
|
|
|
{visibles === true ?
|
|
|
|
|
<div>
|
|
|
|
|
<DownloadMessageysl
|
|
|
|
|
{...this.props}
|
|
|
|
|
value={this.state.DownloadMessageval}
|
|
|
|
|
modalCancel={this.Downloadcal}
|
|
|
|
|
modalsType={this.state.DownloadType}
|
|
|
|
|
/>
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
@ -1041,6 +1050,13 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
:
|
|
|
|
|
// 学生能查看别人的
|
|
|
|
|
<div className=" clearfix " style={{margin: "auto" , minWidth:"1200px"}}>
|
|
|
|
|
<DownloadMessageysl
|
|
|
|
|
{...this.props}
|
|
|
|
|
value={this.state.DownloadMessageval}
|
|
|
|
|
modalCancel={this.Downloadcal}
|
|
|
|
|
modalsType={this.state.DownloadType}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
{visibles === true ?
|
|
|
|
|
<TraineetraininginformationModal
|
|
|
|
|
homeworkid={this.props.match.params.homeworkid}
|
|
|
|
|