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

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

Loading…
Cancel
Save