Commit e0efe7b5 authored by baixian's avatar baixian

最新代码提交

parent 6225c745
...@@ -634,7 +634,7 @@ class CallStudentsForm extends React.Component { ...@@ -634,7 +634,7 @@ class CallStudentsForm extends React.Component {
<span className={pageStyle.detaildesc}>{(callStudentSchedule.class_room && callStudentSchedule.class_room.title) || '未设置'}</span> <span className={pageStyle.detaildesc}>{(callStudentSchedule.class_room && callStudentSchedule.class_room.title) || '未设置'}</span>
</Col> </Col>
</Row> </Row>
<Row gutter={16} className={pageStyle.detailrow} type="flex" align="middle" style={{ marginBottom: '12px' }}> <Row gutter={16} className={pageStyle.detailrow} type="flex" style={{ marginBottom: '12px' }}>
<Col xs={{ span: 24 }} sm={{ span: 12 }} md={{ span: 12 }} lg={{ span: 6 }}> <Col xs={{ span: 24 }} sm={{ span: 12 }} md={{ span: 12 }} lg={{ span: 6 }}>
<span className={pageStyle.detailtitle}>上课时间:</span> <span className={pageStyle.detailtitle}>上课时间:</span>
<span className={pageStyle.detaildesc}>{callStudentSchedule.start_date_format}-{callStudentSchedule.end_date_format}</span> <span className={pageStyle.detaildesc}>{callStudentSchedule.start_date_format}-{callStudentSchedule.end_date_format}</span>
...@@ -662,7 +662,7 @@ class CallStudentsForm extends React.Component { ...@@ -662,7 +662,7 @@ class CallStudentsForm extends React.Component {
<span className={pageStyle.detaildesc}>{(classDetail.class_room && classDetail.class_room.title) || '未设置'}</span> <span className={pageStyle.detaildesc}>{(classDetail.class_room && classDetail.class_room.title) || '未设置'}</span>
</Col>} </Col>}
</Row> </Row>
<Row gutter={16} className={pageStyle.detailrow} type="flex" align="middle" style={{ marginBottom: '12px' }}> <Row gutter={16} className={pageStyle.detailrow} type="flex" style={{ marginBottom: '12px' }}>
<Col xs={{ span: 24 }} sm={{ span: 12 }} md={{ span: 12 }} lg={{ span: 6 }} style={{ marginBottom: '20px' }}> <Col xs={{ span: 24 }} sm={{ span: 12 }} md={{ span: 12 }} lg={{ span: 6 }} style={{ marginBottom: '20px' }}>
<span className={pageStyle.detailtitle}>总课时:</span> <span className={pageStyle.detailtitle}>总课时:</span>
<span className={pageStyle.detaildesc}>{classDetail.total}</span> <span className={pageStyle.detaildesc}>{classDetail.total}</span>
...@@ -696,7 +696,7 @@ class CallStudentsForm extends React.Component { ...@@ -696,7 +696,7 @@ class CallStudentsForm extends React.Component {
} }
</Col> </Col>
<Col xs={{ span: 24 }} sm={{ span: 24 }} md={{ span: 24 }} lg={{ span: 12 }} style={{ marginBottom: '24px' }}> <Col xs={{ span: 24 }} sm={{ span: 24 }} md={{ span: 24 }} lg={{ span: 12 }} style={{ marginBottom: '24px' }}>
<Row type="flex" align="left"> <Row type="flex">
<Input <Input
suffix={ suffix={
<Icon type="search" style={{ color: 'rgba(0,0,0,.45)' }} /> <Icon type="search" style={{ color: 'rgba(0,0,0,.45)' }} />
......
...@@ -102,7 +102,7 @@ class ChangeCourse extends React.Component { ...@@ -102,7 +102,7 @@ class ChangeCourse extends React.Component {
<Radio.Button value={2}>学员信息</Radio.Button> <Radio.Button value={2}>学员信息</Radio.Button>
</Radio.Group> </Radio.Group>
{changeScheduleIndex == 1 && {changeScheduleIndex == 1 &&
<Form className="modalform" hideRequiredMark={() => (true)} labelAlign="left"> <Form className="modalform" hideRequiredMark labelAlign="left">
<Form.Item <Form.Item
label="上课日期:" label="上课日期:"
labelCol={{ labelCol={{
...@@ -138,7 +138,7 @@ class ChangeCourse extends React.Component { ...@@ -138,7 +138,7 @@ class ChangeCourse extends React.Component {
initialValue: `${selectScheduleinfo.start_date_format}-${selectScheduleinfo.end_date_format}`, initialValue: `${selectScheduleinfo.start_date_format}-${selectScheduleinfo.end_date_format}`,
})( })(
<Select placeholder="请选择上课时间" style={{ width: '224px' }}> <Select placeholder="请选择上课时间" style={{ width: '224px' }}>
{timeArr.map(ele => <Option value={`${ele.start_time}-${ele.end_time}`}>{`${ele.start_time}-${ele.end_time}`}</Option>)} {timeArr.map(ele => <Option key={ele.end_time} value={`${ele.start_time}-${ele.end_time}`}>{`${ele.start_time}-${ele.end_time}`}</Option>)}
</Select>)} </Select>)}
</Col> </Col>
</Row> </Row>
...@@ -162,7 +162,7 @@ class ChangeCourse extends React.Component { ...@@ -162,7 +162,7 @@ class ChangeCourse extends React.Component {
})( })(
<Select style={{ width: '224px' }}> <Select style={{ width: '224px' }}>
<Option value=""></Option> <Option value=""></Option>
{teacherList.map(ele => <Option value={ele.id}>{ele.nickname}</Option>)} {teacherList.map(ele => <Option key={ele.id} value={ele.id}>{ele.nickname}</Option>)}
</Select>)} </Select>)}
</Col> </Col>
</Row> </Row>
...@@ -183,9 +183,9 @@ class ChangeCourse extends React.Component { ...@@ -183,9 +183,9 @@ class ChangeCourse extends React.Component {
{getFieldDecorator('class_room_id', { {getFieldDecorator('class_room_id', {
initialValue: selectScheduleinfo.class_room_id == 0 ? '' : selectScheduleinfo.class_room_id, initialValue: selectScheduleinfo.class_room_id == 0 ? '' : selectScheduleinfo.class_room_id,
})( })(
<Select defaultValue="1" style={{ width: '224px' }}> <Select style={{ width: '224px' }}>
<Option value=""></Option> <Option value=""></Option>
{classroomList.map(ele => <Option value={ele.id}>{ele.title}</Option>)} {classroomList.map(ele => <Option key={ele.id} value={ele.id}>{ele.title}</Option>)}
</Select>)} </Select>)}
</Col> </Col>
</Row> </Row>
...@@ -213,6 +213,7 @@ class ChangeCourse extends React.Component { ...@@ -213,6 +213,7 @@ class ChangeCourse extends React.Component {
} }
{changeScheduleIndex == 2 && {changeScheduleIndex == 2 &&
<Table <Table
rowKey={scheduleStudentList => scheduleStudentList.name}
dataSource={scheduleStudentList} dataSource={scheduleStudentList}
columns={schedulestudentcolumns} columns={schedulestudentcolumns}
scroll={{ x: 400 }} scroll={{ x: 400 }}
......
...@@ -46,7 +46,7 @@ class AddCourseTime extends React.Component { ...@@ -46,7 +46,7 @@ class AddCourseTime extends React.Component {
</Col> </Col>
<Col lg={{ span: 19 }} md={{ span: 20 }} xs={{ span: 24 }} style={{ }}> <Col lg={{ span: 19 }} md={{ span: 20 }} xs={{ span: 24 }} style={{ }}>
{timeArr && timeArr.map(ele => ( {timeArr && timeArr.map(ele => (
<div className={pageStyle.timeitem}> <div key={ele.start_time} className={pageStyle.timeitem}>
<span className={pageStyle.itemContent}>{ele.start_time}{ele.end_time}</span> <span className={pageStyle.itemContent}>{ele.start_time}{ele.end_time}</span>
<Icon onClick={() => delTime(ele)} type="close-circle" theme="twoTone" style={{ color: '#FF5252', fontSize: '12px' }} twoToneColor="#FF5252" /> <Icon onClick={() => delTime(ele)} type="close-circle" theme="twoTone" style={{ color: '#FF5252', fontSize: '12px' }} twoToneColor="#FF5252" />
</div> </div>
......
...@@ -1464,7 +1464,7 @@ class ClassDetailForm extends React.Component { ...@@ -1464,7 +1464,7 @@ class ClassDetailForm extends React.Component {
<span className={pageStyle.detaildesc}>{classDetail.total > 0 ? classDetail.total : '-'}</span> <span className={pageStyle.detaildesc}>{classDetail.total > 0 ? classDetail.total : '-'}</span>
</Col> </Col>
</Row> </Row>
<Row gutter={16} className={pageStyle.detailrow} type="flex" align="middle"> <Row gutter={16} className={pageStyle.detailrow} type="flex">
<Col xs={{ span: 24 }} sm={{ span: 12 }} md={{ span: 12 }} lg={{ span: 6 }}> <Col xs={{ span: 24 }} sm={{ span: 12 }} md={{ span: 12 }} lg={{ span: 6 }}>
<span className={pageStyle.detailtitle}>在读人数:</span> <span className={pageStyle.detailtitle}>在读人数:</span>
<span className={pageStyle.detaildesc}>{classDetail.class_student_count}</span> <span className={pageStyle.detaildesc}>{classDetail.class_student_count}</span>
...@@ -1496,6 +1496,7 @@ class ClassDetailForm extends React.Component { ...@@ -1496,6 +1496,7 @@ class ClassDetailForm extends React.Component {
selectedRowKeys: selectedToDelPlansKey, selectedRowKeys: selectedToDelPlansKey,
onChange: this.onDelPLanSelectChange, onChange: this.onDelPLanSelectChange,
}} }}
rowKey={coursePlansList => coursePlansList.name}
dataSource={coursePlansList} dataSource={coursePlansList}
columns={courseplancolumns} columns={courseplancolumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
...@@ -1518,7 +1519,7 @@ class ClassDetailForm extends React.Component { ...@@ -1518,7 +1519,7 @@ class ClassDetailForm extends React.Component {
</div> </div>
</TabPane> </TabPane>
<TabPane tab="班级学员" key="2"> <TabPane tab="班级学员" key="2">
<Row type="flex" align="middle" justify="space-between" className={pageStyle.courseoperate}> <Row type="flex" justify="space-between" className={pageStyle.courseoperate}>
<Col xs={{ span: 24 }} sm={{ span: 24 }} md={{ span: 12 }} lg={{ span: 12 }}> <Col xs={{ span: 24 }} sm={{ span: 24 }} md={{ span: 12 }} lg={{ span: 12 }}>
{hasBtnPower('sjd/classdetail', 'addClassStudent') && <Button className={pageStyle.courseoperatebtn} onClick={this.toAddClassStudent} type="primary" ghost>添加学员</Button>} {hasBtnPower('sjd/classdetail', 'addClassStudent') && <Button className={pageStyle.courseoperatebtn} onClick={this.toAddClassStudent} type="primary" ghost>添加学员</Button>}
{hasBtnPower('sjd/classdetail', 'changeClass') && <Button className={pageStyle.courseoperatebtn} onClick={this.studentsChangeClass}>调至其他班级</Button>} {hasBtnPower('sjd/classdetail', 'changeClass') && <Button className={pageStyle.courseoperatebtn} onClick={this.studentsChangeClass}>调至其他班级</Button>}
...@@ -1541,6 +1542,7 @@ class ClassDetailForm extends React.Component { ...@@ -1541,6 +1542,7 @@ class ClassDetailForm extends React.Component {
selectedRowKeys: selectedToDelStudentsKey, selectedRowKeys: selectedToDelStudentsKey,
onChange: this.onDelStudentsSelectChange, onChange: this.onDelStudentsSelectChange,
}} }}
rowKey={classStudentList => classStudentList.name}
dataSource={classStudentList} dataSource={classStudentList}
columns={studentcolumns} columns={studentcolumns}
scroll={{ x: 700 }} scroll={{ x: 700 }}
...@@ -1563,12 +1565,12 @@ class ClassDetailForm extends React.Component { ...@@ -1563,12 +1565,12 @@ class ClassDetailForm extends React.Component {
</div> </div>
</TabPane> </TabPane>
<TabPane tab="点名情况" key="3"> <TabPane tab="点名情况" key="3">
<Row type="flex" align="middle" justify="space-between" className={pageStyle.courseoperate}> <Row type="flex" justify="space-between" className={pageStyle.courseoperate}>
<Col xs={{ span: 24 }} sm={{ span: 24 }} md={{ span: 24 }} lg={{ span: 8 }} style={{ display: 'flex', alignItems: 'center', marginBottom: '12px' }}> <Col xs={{ span: 24 }} sm={{ span: 24 }} md={{ span: 24 }} lg={{ span: 8 }} style={{ display: 'flex', alignItems: 'center', marginBottom: '12px' }}>
<div className={pageStyle.dianmingtime}>一周点名情况 {scheduleListQueryParams.start_time}{scheduleListQueryParams.end_time}</div> <div className={pageStyle.dianmingtime}>一周点名情况 {scheduleListQueryParams.start_time}{scheduleListQueryParams.end_time}</div>
<Select value={scheduleListQueryParams.teacher_id} onChange={this.filterTeachersSchedule}> <Select value={scheduleListQueryParams.teacher_id} onChange={this.filterTeachersSchedule}>
<Option value="">全部老师</Option> <Option value="">全部老师</Option>
{classDetail.school_teachers && classDetail.school_teachers.map(ele => <Option value={ele.id}>{ele.nickname}</Option>)} {classDetail.school_teachers && classDetail.school_teachers.map(ele => <Option key={ele.id} value={ele.id}>{ele.nickname}</Option>)}
</Select> </Select>
</Col> </Col>
<Col xs={{ span: 24 }} sm={{ span: 24 }} md={{ span: 24 }} lg={{ span: 16 }} className={pageStyle.searchcol} style={{ marginBottom: '12px' }}> <Col xs={{ span: 24 }} sm={{ span: 24 }} md={{ span: 24 }} lg={{ span: 16 }} className={pageStyle.searchcol} style={{ marginBottom: '12px' }}>
...@@ -1580,6 +1582,7 @@ class ClassDetailForm extends React.Component { ...@@ -1580,6 +1582,7 @@ class ClassDetailForm extends React.Component {
</Row> </Row>
<div className={pageStyle.studenttablebox}> <div className={pageStyle.studenttablebox}>
<Table <Table
rowKey={scheduleList => scheduleList.call_time}
dataSource={scheduleList} dataSource={scheduleList}
columns={coursecolumns} columns={coursecolumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
...@@ -1621,6 +1624,7 @@ class ClassDetailForm extends React.Component { ...@@ -1621,6 +1624,7 @@ class ClassDetailForm extends React.Component {
> >
<Row> <Row>
<Table <Table
rowKey={classList => classList.title}
dataSource={classList} dataSource={classList}
columns={exchangeClassColumns} columns={exchangeClassColumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
...@@ -1661,6 +1665,7 @@ class ClassDetailForm extends React.Component { ...@@ -1661,6 +1665,7 @@ class ClassDetailForm extends React.Component {
</Row> </Row>
<Row> <Row>
<Table <Table
rowKey={toAddStudentList => toAddStudentList.name}
dataSource={toAddStudentList} dataSource={toAddStudentList}
columns={addstudentColumns} columns={addstudentColumns}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
...@@ -1701,6 +1706,7 @@ class ClassDetailForm extends React.Component { ...@@ -1701,6 +1706,7 @@ class ClassDetailForm extends React.Component {
> >
<Row> <Row>
<Table <Table
rowKey={studentChangeScheduleList => studentChangeScheduleList.coursetime}
dataSource={studentChangeScheduleList} dataSource={studentChangeScheduleList}
columns={studentChangeScheduleColumns} columns={studentChangeScheduleColumns}
loading={studentChangeScheduleListLoading} loading={studentChangeScheduleListLoading}
......
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