Commit 7f706e10 authored by baixian's avatar baixian

最新代码提交

parent dd419222
......@@ -382,7 +382,7 @@ class StudentMgt extends React.Component {
(ele) => {
if (arr.indexOf(ele.course.id) < 0) {
arr.push(ele.course.id);
return <Option value={ele.course.id}>{ele.course.title}</Option>;
return <Option key={ele.id} value={ele.course.id}>{ele.course.title}</Option>;
}
return false;
});
......@@ -484,6 +484,8 @@ class StudentMgt extends React.Component {
erpCountdown,
erpCounting,
} = this.props;
console.log(this.props, 'this.props');
console.log(classRecordsList, 'classRecordsList');
const { getFieldDecorator } = this.props.form;
const { logCourseId } = this.state;
const dateFormat = 'YYYY/MM/DD';
......@@ -764,6 +766,7 @@ class StudentMgt extends React.Component {
</div>
<div className={pageStyle.tablebox}>
<Table
rowKey="id"
dataSource={studentCurrentCourses}
columns={columns}
pagination={false}
......@@ -790,7 +793,7 @@ class StudentMgt extends React.Component {
<span>选择班级:</span>
<Select placeholder="所有班级" style={{ width: 233 }} onChange={this.classChange}>
<Option value="">所有班级</Option>
{studentsClassList.map(ele => <Option value={ele.id}>{ele.title}</Option>)}
{studentsClassList.map(ele => <Option key={ele.id} value={ele.id}>{ele.title}</Option>)}
</Select>
</div>
<div className={pageStyle.tablebox}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment