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