|
|
|
@ -1067,7 +1067,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let columns2= arr;
|
|
|
|
|
var teacherlist = undefined;
|
|
|
|
|
var teacherlists = undefined;
|
|
|
|
|
if (teacherdata !== undefined) {
|
|
|
|
|
// console.log("seacthdata设置数据")
|
|
|
|
@ -1075,7 +1074,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
if (teacherdata.id === undefined) {
|
|
|
|
|
this.setState({
|
|
|
|
|
data: [],
|
|
|
|
|
teacherlist: undefined,
|
|
|
|
|
loadingstate: false,
|
|
|
|
|
styletable: styletable,
|
|
|
|
|
})
|
|
|
|
@ -1115,10 +1113,6 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
// current: this.state.page,
|
|
|
|
|
// }
|
|
|
|
|
styletable = {"display": "block",}
|
|
|
|
|
} else {
|
|
|
|
|
// console.log("seacthdata设置数据2")
|
|
|
|
|
teacherlist = undefined;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1488,7 +1482,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
limit:20,
|
|
|
|
|
}
|
|
|
|
|
axios.post(urll, data).then((result) => {
|
|
|
|
|
// debugger
|
|
|
|
|
debugger
|
|
|
|
|
if (result !== undefined) {
|
|
|
|
|
// console.log(url)
|
|
|
|
|
// console.log("作品列表6789077")
|
|
|
|
@ -1583,7 +1577,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
|
|
|
|
|
// 设置数据
|
|
|
|
|
seacthdatat = (teacherdata,student_works,work_efficiency,course_group_info) => {
|
|
|
|
|
// debugger
|
|
|
|
|
debugger
|
|
|
|
|
let {page, limit} = this.state;
|
|
|
|
|
let datalist = [];
|
|
|
|
|
let columns = this.state.columns;
|
|
|
|
@ -1707,11 +1701,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
var teacherlist = undefined;
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
data: datalist,
|
|
|
|
|
teacherlist: teacherlist,
|
|
|
|
|
columns: columns2,
|
|
|
|
|
loadingstate: false,
|
|
|
|
|
})
|
|
|
|
@ -2197,10 +2189,10 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
|
|
|
|
|
// 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 ?
|
|
|
|
|