PCqiandao
杨树林 5 years ago
parent 1d5c28d613
commit 41c04d9499

@ -28,6 +28,7 @@ const RadioGroup = Radio.Group;
const CheckboxGroup = Checkbox.Group;
const {Option} = Select;
//学生老师页面
let columnsystwo=[];
class Studentshavecompletedthelist extends Component {
// http://localhost:3007/courses/1309/exercises/722/exercises/student_exercise_list?debug=s
constructor(props) {
@ -1207,7 +1208,7 @@ class Studentshavecompletedthelist extends Component {
)
},
],
columnsystwo: [],// 也会被columnsys当作参数接收
// 也会被columnsys当作参数接收
exercise_status:0,
order_type: "desc",
exeuserid: 0,
@ -1269,9 +1270,10 @@ class Studentshavecompletedthelist extends Component {
componentDidMount() {
//被columnsys当作参数接收
this.setState({
columnsystwo:this.state.columnsys,
})
// console.log("componentDidMount");
// console.log(columnsystwo);
columnsystwo=this.state.columnsys;
// console.log(columnsystwo);
this.Teacherliststudentlist();
try {
@ -1980,7 +1982,7 @@ class Studentshavecompletedthelist extends Component {
course_groups: response.data.course_groups,
mylistansum:response.data.exercise_types.answer_users+response.data.exercise_types.unanswer_users,
loadingstate: false,
columnsys: this.state.columnsystwo,
columnsys: columnsystwo,
subjective: response.data.exercise_types.subjective,
objective_score: response.data.exercise_types.objective_score,
subjective_score: response.data.exercise_types.subjective_score,

Loading…
Cancel
Save