Commit 9477c64f authored by wangxuelai's avatar wangxuelai

Merge remote-tracking branch 'origin/bww-v2' into webpack-change

parents deaed611 7f706e10
...@@ -711,13 +711,13 @@ class CallStudentsForm extends React.Component { ...@@ -711,13 +711,13 @@ class CallStudentsForm extends React.Component {
</Col> </Col>
</Row> </Row>
<Table <Table
rowKey="student_id"
dataSource={callStudentOperateList} dataSource={callStudentOperateList}
columns={studentcolumns} columns={studentcolumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
loading={callStudentListLoading} loading={callStudentListLoading}
pagination={false} pagination={false}
footer={() => <div className="tablefooterbox" style={fontSize14}>共有{callStudentTotal}个学生</div>} footer={() => <div className="tablefooterbox" style={fontSize14}>共有{callStudentTotal}个学生</div>}
rowKey="id"
/> />
</Modal> </Modal>
<Modal <Modal
...@@ -797,7 +797,7 @@ class CallStudentsForm extends React.Component { ...@@ -797,7 +797,7 @@ class CallStudentsForm extends React.Component {
</Row> </Row>
<Row> <Row>
<Table <Table
rowKey="id" rowKey={bukeStudentList => bukeStudentList.id}
dataSource={bukeStudentList} dataSource={bukeStudentList}
columns={bukestudentColumns} columns={bukestudentColumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
......
...@@ -382,7 +382,7 @@ class StudentMgt extends React.Component { ...@@ -382,7 +382,7 @@ class StudentMgt extends React.Component {
(ele) => { (ele) => {
if (arr.indexOf(ele.course.id) < 0) { if (arr.indexOf(ele.course.id) < 0) {
arr.push(ele.course.id); 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; return false;
}); });
...@@ -484,6 +484,8 @@ class StudentMgt extends React.Component { ...@@ -484,6 +484,8 @@ class StudentMgt extends React.Component {
erpCountdown, erpCountdown,
erpCounting, erpCounting,
} = this.props; } = this.props;
console.log(this.props, 'this.props');
console.log(classRecordsList, 'classRecordsList');
const { getFieldDecorator } = this.props.form; const { getFieldDecorator } = this.props.form;
const { logCourseId } = this.state; const { logCourseId } = this.state;
const dateFormat = 'YYYY/MM/DD'; const dateFormat = 'YYYY/MM/DD';
...@@ -764,6 +766,7 @@ class StudentMgt extends React.Component { ...@@ -764,6 +766,7 @@ class StudentMgt extends React.Component {
</div> </div>
<div className={pageStyle.tablebox}> <div className={pageStyle.tablebox}>
<Table <Table
rowKey="id"
dataSource={studentCurrentCourses} dataSource={studentCurrentCourses}
columns={columns} columns={columns}
pagination={false} pagination={false}
...@@ -790,7 +793,7 @@ class StudentMgt extends React.Component { ...@@ -790,7 +793,7 @@ class StudentMgt extends React.Component {
<span>选择班级:</span> <span>选择班级:</span>
<Select placeholder="所有班级" style={{ width: 233 }} onChange={this.classChange}> <Select placeholder="所有班级" style={{ width: 233 }} onChange={this.classChange}>
<Option value="">所有班级</Option> <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> </Select>
</div> </div>
<div className={pageStyle.tablebox}> <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