|
|
|
@ -932,7 +932,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
console.log("componentDidMount");
|
|
|
|
|
|
|
|
|
|
console.log(this.props.isAdmin());
|
|
|
|
|
// console.log(this.props.isAdmin());
|
|
|
|
|
if(this.props.isAdmin() === true){
|
|
|
|
|
this.tearchar();
|
|
|
|
|
// console.log("909");
|
|
|
|
@ -1109,7 +1109,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
console.log(teacherdata)
|
|
|
|
|
// console.log(teacherdata)
|
|
|
|
|
if (teacherdata.id !== undefined || teacherdata.id !== null || teacherdata.id !== "") {
|
|
|
|
|
// console.log("seacthdata设置数据1")
|
|
|
|
|
// console.log(this.state.teacherdata )
|
|
|
|
@ -1611,7 +1611,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
let columns = this.state.columns;
|
|
|
|
|
var columns2=[];
|
|
|
|
|
if (teacherdata !== undefined) {
|
|
|
|
|
console.log("1588");
|
|
|
|
|
// console.log("1588");
|
|
|
|
|
for (var i = 0; i < student_works.length; i++) {
|
|
|
|
|
var timedata = moment(student_works[i].update_time).format('YYYY-MM-DD HH:mm');
|
|
|
|
|
datalist.push({
|
|
|
|
|