Commit 6593da87 authored by wangxuelai's avatar wangxuelai

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

parents 485a9133 b1607412
...@@ -398,7 +398,7 @@ class CallStudentsForm extends React.Component { ...@@ -398,7 +398,7 @@ class CallStudentsForm extends React.Component {
{ {
title: '姓名', title: '姓名',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: '1',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={`${pageStyle.classNamebox} ${record.hassearch ? pageStyle.hasSearch : ''}`}> <div className={`${pageStyle.classNamebox} ${record.hassearch ? pageStyle.hasSearch : ''}`}>
...@@ -410,12 +410,12 @@ class CallStudentsForm extends React.Component { ...@@ -410,12 +410,12 @@ class CallStudentsForm extends React.Component {
{ {
title: '手机号', title: '手机号',
dataIndex: 'mobile', dataIndex: 'mobile',
key: 'mobile', key: '2',
}, },
{ {
title: '剩余课时', title: '剩余课时',
dataIndex: 'surplus', dataIndex: 'surplus',
key: 'surplus', key: '3',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={pageStyle.classNamebox}> <div className={pageStyle.classNamebox}>
...@@ -427,7 +427,7 @@ class CallStudentsForm extends React.Component { ...@@ -427,7 +427,7 @@ class CallStudentsForm extends React.Component {
{ {
title: '到课状态', title: '到课状态',
dataIndex: 'course', dataIndex: 'course',
key: 'course', key: '4',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={pageStyle.classNamebox}> <div className={pageStyle.classNamebox}>
...@@ -470,7 +470,7 @@ class CallStudentsForm extends React.Component { ...@@ -470,7 +470,7 @@ class CallStudentsForm extends React.Component {
{ {
title: '姓名', title: '姓名',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: '5',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={pageStyle.classNamebox}> <div className={pageStyle.classNamebox}>
...@@ -482,7 +482,7 @@ class CallStudentsForm extends React.Component { ...@@ -482,7 +482,7 @@ class CallStudentsForm extends React.Component {
{ {
title: '性别', title: '性别',
dataIndex: 'gender', dataIndex: 'gender',
key: 'gender', key: '6',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={pageStyle.classNamebox}> <div className={pageStyle.classNamebox}>
...@@ -494,12 +494,12 @@ class CallStudentsForm extends React.Component { ...@@ -494,12 +494,12 @@ class CallStudentsForm extends React.Component {
{ {
title: '手机号', title: '手机号',
dataIndex: 'mobile', dataIndex: 'mobile',
key: 'mobile', key: '7',
}, },
{ {
title: '课程名', title: '课程名',
dataIndex: 'course', dataIndex: 'course',
key: 'course', key: '8',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={pageStyle.classNamebox}> <div className={pageStyle.classNamebox}>
...@@ -511,14 +511,14 @@ class CallStudentsForm extends React.Component { ...@@ -511,14 +511,14 @@ class CallStudentsForm extends React.Component {
{ {
title: '年级', title: '年级',
dataIndex: 'grade', dataIndex: 'grade',
key: 'grade', key: '9',
}, },
]; ];
const bukestudentColumns = [ const bukestudentColumns = [
{ {
title: '姓名', title: '姓名',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: '11',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={pageStyle.classNamebox}> <div className={pageStyle.classNamebox}>
...@@ -530,7 +530,7 @@ class CallStudentsForm extends React.Component { ...@@ -530,7 +530,7 @@ class CallStudentsForm extends React.Component {
{ {
title: '班级名称', title: '班级名称',
dataIndex: 'gender', dataIndex: 'gender',
key: 'gender', key: '12',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={pageStyle.classNamebox}> <div className={pageStyle.classNamebox}>
...@@ -542,7 +542,7 @@ class CallStudentsForm extends React.Component { ...@@ -542,7 +542,7 @@ class CallStudentsForm extends React.Component {
{ {
title: '上课时间', title: '上课时间',
dataIndex: 'start_time', dataIndex: 'start_time',
key: 'start_time', key: '13',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={pageStyle.classNamebox}> <div className={pageStyle.classNamebox}>
...@@ -554,7 +554,7 @@ class CallStudentsForm extends React.Component { ...@@ -554,7 +554,7 @@ class CallStudentsForm extends React.Component {
{ {
title: '上课老师', title: '上课老师',
dataIndex: 'course', dataIndex: 'course',
key: 'course', key: '14',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={pageStyle.classNamebox}> <div className={pageStyle.classNamebox}>
...@@ -568,7 +568,7 @@ class CallStudentsForm extends React.Component { ...@@ -568,7 +568,7 @@ class CallStudentsForm extends React.Component {
{ {
title: '缺课状态', title: '缺课状态',
dataIndex: 'grade', dataIndex: 'grade',
key: 'grade', key: '15',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={pageStyle.classNamebox}> <div className={pageStyle.classNamebox}>
...@@ -581,7 +581,7 @@ class CallStudentsForm extends React.Component { ...@@ -581,7 +581,7 @@ class CallStudentsForm extends React.Component {
{ {
title: '剩余课时', title: '剩余课时',
dataIndex: 'surplus', dataIndex: 'surplus',
key: 'surplus', key: '16',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={pageStyle.classNamebox}>{(record.student_course && record.student_course.surplus) || 0}</div> <div className={pageStyle.classNamebox}>{(record.student_course && record.student_course.surplus) || 0}</div>
...@@ -591,7 +591,7 @@ class CallStudentsForm extends React.Component { ...@@ -591,7 +591,7 @@ class CallStudentsForm extends React.Component {
{ {
title: '上课内容', title: '上课内容',
dataIndex: 'content', dataIndex: 'content',
key: 'content', key: '17',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={pageStyle.classNamebox}>{record.schedule.content}</div> <div className={pageStyle.classNamebox}>{record.schedule.content}</div>
...@@ -711,7 +711,7 @@ class CallStudentsForm extends React.Component { ...@@ -711,7 +711,7 @@ class CallStudentsForm extends React.Component {
</Col> </Col>
</Row> </Row>
<Table <Table
rowKey={callStudentOperateList => callStudentOperateList.id} rowKey="id"
dataSource={callStudentOperateList} dataSource={callStudentOperateList}
columns={studentcolumns} columns={studentcolumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
...@@ -746,7 +746,7 @@ class CallStudentsForm extends React.Component { ...@@ -746,7 +746,7 @@ class CallStudentsForm extends React.Component {
</Row> </Row>
<Row> <Row>
<Table <Table
rowKey={linshiStudentList => linshiStudentList.id} rowKey="id"
dataSource={linshiStudentList} dataSource={linshiStudentList}
columns={addstudentColumns} columns={addstudentColumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
...@@ -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={bukeStudentList => bukeStudentList.id} rowKey="id"
dataSource={bukeStudentList} dataSource={bukeStudentList}
columns={bukestudentColumns} columns={bukestudentColumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
} }
} }
.timeitem { .timeitem {
width:160px; width:170px;
height:32px; height:32px;
background:rgba(255,255,255,1); background:rgba(255,255,255,1);
border-radius:4px; border-radius:4px;
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
} }
.itemContent { .itemContent {
padding-right: 40px; padding-right: 40px;
} }
\ No newline at end of file
...@@ -213,7 +213,7 @@ class ChangeCourse extends React.Component { ...@@ -213,7 +213,7 @@ class ChangeCourse extends React.Component {
} }
{changeScheduleIndex == 2 && {changeScheduleIndex == 2 &&
<Table <Table
rowKey={scheduleStudentList => scheduleStudentList.name} rowKey="id"
dataSource={scheduleStudentList} dataSource={scheduleStudentList}
columns={schedulestudentcolumns} columns={schedulestudentcolumns}
scroll={{ x: 400 }} scroll={{ x: 400 }}
......
...@@ -965,8 +965,8 @@ class ClassDetailForm extends React.Component { ...@@ -965,8 +965,8 @@ class ClassDetailForm extends React.Component {
const courseplancolumns = [ const courseplancolumns = [
{ {
title: '排课方式', title: '排课方式',
dataIndex: 'name', dataIndex: 'is_repeat',
key: 'name', key: 'is_repeat',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -979,8 +979,8 @@ class ClassDetailForm extends React.Component { ...@@ -979,8 +979,8 @@ class ClassDetailForm extends React.Component {
}, },
{ {
title: '上课日期', title: '上课日期',
dataIndex: 'age', dataIndex: 'week_day',
key: 'age', key: 'week_day',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1005,7 +1005,7 @@ class ClassDetailForm extends React.Component { ...@@ -1005,7 +1005,7 @@ class ClassDetailForm extends React.Component {
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
{record.times && record.times.map(ele => <div key={ele}>{ele}</div>)} {record.times && record.times.map(ele => <div>{ele}</div>)}
</div> </div>
); );
}, },
...@@ -1130,8 +1130,8 @@ class ClassDetailForm extends React.Component { ...@@ -1130,8 +1130,8 @@ class ClassDetailForm extends React.Component {
const studentChangeScheduleColumns = [ const studentChangeScheduleColumns = [
{ {
title: '上课时间', title: '上课时间',
dataIndex: 'coursetime', dataIndex: 'start_time',
key: 'coursetime', key: 'start_time',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div className={pageStyle.classNamebox}> <div className={pageStyle.classNamebox}>
...@@ -1143,8 +1143,8 @@ class ClassDetailForm extends React.Component { ...@@ -1143,8 +1143,8 @@ class ClassDetailForm extends React.Component {
}, },
{ {
title: '上课老师', title: '上课老师',
dataIndex: 'teacher', dataIndex: 'nickname',
key: 'teacher', key: 'nickname',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1168,7 +1168,7 @@ class ClassDetailForm extends React.Component { ...@@ -1168,7 +1168,7 @@ class ClassDetailForm extends React.Component {
{ {
title: '上课内容', title: '上课内容',
dataIndex: 'content', dataIndex: 'content',
key: 'content', key: 'j',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1182,7 +1182,7 @@ class ClassDetailForm extends React.Component { ...@@ -1182,7 +1182,7 @@ class ClassDetailForm extends React.Component {
{ {
title: '操作', title: '操作',
dataIndex: 'course', dataIndex: 'course',
key: 'course', key: 'ra',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<a href="javascript:;" onClick={() => this.sureChangeStudentSchedule(record)}>调课</a> <a href="javascript:;" onClick={() => this.sureChangeStudentSchedule(record)}>调课</a>
...@@ -1194,7 +1194,7 @@ class ClassDetailForm extends React.Component { ...@@ -1194,7 +1194,7 @@ class ClassDetailForm extends React.Component {
{ {
title: '姓名', title: '姓名',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'q',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1220,12 +1220,12 @@ class ClassDetailForm extends React.Component { ...@@ -1220,12 +1220,12 @@ class ClassDetailForm extends React.Component {
{ {
title: '手机号', title: '手机号',
dataIndex: 'mobile', dataIndex: 'mobile',
key: 'mobile', key: 'e',
}, },
{ {
title: '课程名', title: '课程名',
dataIndex: 'course', dataIndex: 'course',
key: 'course', key: 'r',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1237,14 +1237,14 @@ class ClassDetailForm extends React.Component { ...@@ -1237,14 +1237,14 @@ class ClassDetailForm extends React.Component {
{ {
title: '年级', title: '年级',
dataIndex: 'grade', dataIndex: 'grade',
key: 'grade', key: 'f',
}, },
]; ];
const coursecolumns = [ const coursecolumns = [
{ {
title: '序号', title: '序号',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'g',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1256,7 +1256,7 @@ class ClassDetailForm extends React.Component { ...@@ -1256,7 +1256,7 @@ class ClassDetailForm extends React.Component {
{ {
title: '上课时间', title: '上课时间',
dataIndex: 'coursetime', dataIndex: 'coursetime',
key: 'coursetime', key: 'h',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1278,7 +1278,7 @@ class ClassDetailForm extends React.Component { ...@@ -1278,7 +1278,7 @@ class ClassDetailForm extends React.Component {
{ {
title: '上课老师', title: '上课老师',
dataIndex: 'teacher', dataIndex: 'teacher',
key: 'teacher', key: 'ja',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1290,7 +1290,7 @@ class ClassDetailForm extends React.Component { ...@@ -1290,7 +1290,7 @@ class ClassDetailForm extends React.Component {
{ {
title: '上课教室', title: '上课教室',
dataIndex: 'class_room', dataIndex: 'class_room',
key: 'class_room', key: 'k',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1302,7 +1302,7 @@ class ClassDetailForm extends React.Component { ...@@ -1302,7 +1302,7 @@ class ClassDetailForm extends React.Component {
{ {
title: '上课内容', title: '上课内容',
dataIndex: 'content', dataIndex: 'content',
key: 'content', key: 'z',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div style={{ maxWidth: '200px' }}> <div style={{ maxWidth: '200px' }}>
...@@ -1316,7 +1316,7 @@ class ClassDetailForm extends React.Component { ...@@ -1316,7 +1316,7 @@ class ClassDetailForm extends React.Component {
{ {
title: '点名时间', title: '点名时间',
dataIndex: 'call_time', dataIndex: 'call_time',
key: 'call_time', key: 'x',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1327,8 +1327,8 @@ class ClassDetailForm extends React.Component { ...@@ -1327,8 +1327,8 @@ class ClassDetailForm extends React.Component {
}, },
{ {
title: '操作', title: '操作',
dataIndex: 'c', dataIndex: 'd',
key: 'c', key: 'd',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1355,7 +1355,7 @@ class ClassDetailForm extends React.Component { ...@@ -1355,7 +1355,7 @@ class ClassDetailForm extends React.Component {
{ {
title: '姓名', title: '姓名',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'm',
render: (text, record) => { render: (text, record) => {
return ( return (
<div> <div>
...@@ -1367,7 +1367,7 @@ class ClassDetailForm extends React.Component { ...@@ -1367,7 +1367,7 @@ class ClassDetailForm extends React.Component {
{ {
title: '性别', title: '性别',
dataIndex: 'gender', dataIndex: 'gender',
key: 'gender', key: 'n',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1381,12 +1381,12 @@ class ClassDetailForm extends React.Component { ...@@ -1381,12 +1381,12 @@ class ClassDetailForm extends React.Component {
{ {
title: '手机号', title: '手机号',
dataIndex: 'mobile', dataIndex: 'mobile',
key: 'mobile', key: 'o',
}, },
{ {
title: '课程名', title: '课程名',
dataIndex: 'course', dataIndex: 'course',
key: 'course', key: 'i',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1397,8 +1397,8 @@ class ClassDetailForm extends React.Component { ...@@ -1397,8 +1397,8 @@ class ClassDetailForm extends React.Component {
}, },
{ {
title: '操作', title: '操作',
dataIndex: 'c', dataIndex: 'd',
key: 'c', key: 'y',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -1496,7 +1496,7 @@ class ClassDetailForm extends React.Component { ...@@ -1496,7 +1496,7 @@ class ClassDetailForm extends React.Component {
selectedRowKeys: selectedToDelPlansKey, selectedRowKeys: selectedToDelPlansKey,
onChange: this.onDelPLanSelectChange, onChange: this.onDelPLanSelectChange,
}} }}
rowKey={coursePlansList => coursePlansList.id} rowKey="id"
dataSource={coursePlansList} dataSource={coursePlansList}
columns={courseplancolumns} columns={courseplancolumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
...@@ -1542,7 +1542,7 @@ class ClassDetailForm extends React.Component { ...@@ -1542,7 +1542,7 @@ class ClassDetailForm extends React.Component {
selectedRowKeys: selectedToDelStudentsKey, selectedRowKeys: selectedToDelStudentsKey,
onChange: this.onDelStudentsSelectChange, onChange: this.onDelStudentsSelectChange,
}} }}
rowKey={classStudentList => classStudentList.id} rowKey="id"
dataSource={classStudentList} dataSource={classStudentList}
columns={studentcolumns} columns={studentcolumns}
scroll={{ x: 700 }} scroll={{ x: 700 }}
...@@ -1582,7 +1582,7 @@ class ClassDetailForm extends React.Component { ...@@ -1582,7 +1582,7 @@ class ClassDetailForm extends React.Component {
</Row> </Row>
<div className={pageStyle.studenttablebox}> <div className={pageStyle.studenttablebox}>
<Table <Table
rowKey={scheduleList => scheduleList.id} rowKey="id"
dataSource={scheduleList} dataSource={scheduleList}
columns={coursecolumns} columns={coursecolumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
...@@ -1624,7 +1624,7 @@ class ClassDetailForm extends React.Component { ...@@ -1624,7 +1624,7 @@ class ClassDetailForm extends React.Component {
> >
<Row> <Row>
<Table <Table
rowKey={classList => classList.id} rowKey="id"
dataSource={classList} dataSource={classList}
columns={exchangeClassColumns} columns={exchangeClassColumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
...@@ -1665,7 +1665,7 @@ class ClassDetailForm extends React.Component { ...@@ -1665,7 +1665,7 @@ class ClassDetailForm extends React.Component {
</Row> </Row>
<Row> <Row>
<Table <Table
rowKey={toAddStudentList => toAddStudentList.id} rowKey="id"
dataSource={toAddStudentList} dataSource={toAddStudentList}
columns={addstudentColumns} columns={addstudentColumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
...@@ -1706,7 +1706,7 @@ class ClassDetailForm extends React.Component { ...@@ -1706,7 +1706,7 @@ class ClassDetailForm extends React.Component {
> >
<Row> <Row>
<Table <Table
rowKey={studentChangeScheduleList => studentChangeScheduleList.id} rowKey="id"
dataSource={studentChangeScheduleList} dataSource={studentChangeScheduleList}
columns={studentChangeScheduleColumns} columns={studentChangeScheduleColumns}
loading={studentChangeScheduleListLoading} loading={studentChangeScheduleListLoading}
......
...@@ -144,6 +144,7 @@ class ClassStatusChangeModal extends React.Component { ...@@ -144,6 +144,7 @@ class ClassStatusChangeModal extends React.Component {
<Row> <Row>
<Table <Table
dataSource={statusChangeClassList} dataSource={statusChangeClassList}
rowKey="id"
columns={endclasscolumns} columns={endclasscolumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
pagination={false} pagination={false}
......
...@@ -263,7 +263,7 @@ class JobClockForm extends React.Component { ...@@ -263,7 +263,7 @@ class JobClockForm extends React.Component {
], ],
})( })(
<Select disabled={(jobParams.class_id && jobParams.class_id != undefined) && (isCopy === 0)} placeholder="请选择班级" style={{ width: 174 }} showSearch onChange={this.handleStudentChange}> <Select disabled={(jobParams.class_id && jobParams.class_id != undefined) && (isCopy === 0)} placeholder="请选择班级" style={{ width: 174 }} showSearch onChange={this.handleStudentChange}>
{classList.map(ele => <Option value={ele.id}>{ele.title}</Option>)} {classList.map(ele => <Option key={ele.id} value={ele.id}>{ele.title}</Option>)}
</Select>, </Select>,
)} )}
</FormItem> </FormItem>
......
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