Commit 04ca70fc authored by wangxuelai's avatar wangxuelai

最新代码提交

parent 962dbfa6
...@@ -108,7 +108,7 @@ class SjdMenu extends React.Component { ...@@ -108,7 +108,7 @@ class SjdMenu extends React.Component {
{breadcrumbList.length > 1 && {breadcrumbList.length > 1 &&
<div className={SjdHeaderStyle.breadbox}> <div className={SjdHeaderStyle.breadbox}>
{breadcrumbList.map((ele, index) => ( {breadcrumbList.map((ele, index) => (
<div className={`${(index + 1) == breadcrumbList.length ? SjdHeaderStyle.breaditembold : ''} ${SjdHeaderStyle.breaditem}`} onClick={() => { this.routeChange(ele.path); }}> <div key={ele.path} className={`${(index + 1) == breadcrumbList.length ? SjdHeaderStyle.breaditembold : ''} ${SjdHeaderStyle.breaditem}`} onClick={() => { this.routeChange(ele.path); }}>
{ele.name}&nbsp;&nbsp;{index < breadcrumbList.length - 1 ? '/' : ''}&nbsp;&nbsp; {ele.name}&nbsp;&nbsp;{index < breadcrumbList.length - 1 ? '/' : ''}&nbsp;&nbsp;
</div> </div>
))} ))}
......
...@@ -108,6 +108,7 @@ class SjdMenu extends React.Component { ...@@ -108,6 +108,7 @@ class SjdMenu extends React.Component {
!ele.isFather ? !ele.isFather ?
<Menu.Item key={ele.id} style={menuItemStyle} onClick={() => this.selectedMenu(ele.id, null)}> <Menu.Item key={ele.id} style={menuItemStyle} onClick={() => this.selectedMenu(ele.id, null)}>
<div className={SjdMenuStyle.menuicon} style={defaultMenu == ele.id ? { width: ele.style.width, height: ele.style.height, backgroundImage: `url(${ele.activeurl})` } : { width: ele.style.width, height: ele.style.height, backgroundImage: `url(${ele.notactiveurl})` }} /> <div className={SjdMenuStyle.menuicon} style={defaultMenu == ele.id ? { width: ele.style.width, height: ele.style.height, backgroundImage: `url(${ele.activeurl})` } : { width: ele.style.width, height: ele.style.height, backgroundImage: `url(${ele.notactiveurl})` }} />
<Icon type="right" style={{ width: 0, minWidth: 'initial', visibility: 'hidden' }} />
<span>{ele.name}</span> <span>{ele.name}</span>
</Menu.Item> : </Menu.Item> :
<SubMenu <SubMenu
...@@ -115,6 +116,7 @@ class SjdMenu extends React.Component { ...@@ -115,6 +116,7 @@ class SjdMenu extends React.Component {
title={ title={
<span style={padding}> <span style={padding}>
<div className={SjdMenuStyle.menuicon} style={defaultMenu == ele.id ? { width: ele.style.width, height: ele.style.height, backgroundImage: `url(${ele.activeurl})` } : { width: ele.style.width, height: ele.style.height, backgroundImage: `url(${ele.notactiveurl})` }} /> <div className={SjdMenuStyle.menuicon} style={defaultMenu == ele.id ? { width: ele.style.width, height: ele.style.height, backgroundImage: `url(${ele.activeurl})` } : { width: ele.style.width, height: ele.style.height, backgroundImage: `url(${ele.notactiveurl})` }} />
<Icon type="right" style={{ width: 0, minWidth: 'initial', visibility: 'hidden' }} />
<span style={fontSize}>{ele.name}</span> <span style={fontSize}>{ele.name}</span>
</span> </span>
} }
...@@ -122,6 +124,7 @@ class SjdMenu extends React.Component { ...@@ -122,6 +124,7 @@ class SjdMenu extends React.Component {
{ele.subMenues.map(submenu => ( {ele.subMenues.map(submenu => (
<Menu.Item key={submenu.id} style={menuItemStyle} onClick={() => this.selectedMenu(submenu.id, submenu.fatherId)}> <Menu.Item key={submenu.id} style={menuItemStyle} onClick={() => this.selectedMenu(submenu.id, submenu.fatherId)}>
<div className={SjdMenuStyle.menuicon} style={defaultMenu == submenu.id ? { width: submenu.style.width, height: submenu.style.height, backgroundImage: `url(${submenu.activeurl})` } : { width: submenu.style.width, height: submenu.style.height, backgroundImage: `url(${submenu.notactiveurl})` }} /> <div className={SjdMenuStyle.menuicon} style={defaultMenu == submenu.id ? { width: submenu.style.width, height: submenu.style.height, backgroundImage: `url(${submenu.activeurl})` } : { width: submenu.style.width, height: submenu.style.height, backgroundImage: `url(${submenu.notactiveurl})` }} />
<Icon type="right" style={{ width: 0, minWidth: 'initial', visibility: 'hidden' }} />
<span>{submenu.name}</span> <span>{submenu.name}</span>
</Menu.Item> </Menu.Item>
))} ))}
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
vertical-align: sub; vertical-align: sub;
text-align: center; text-align: center;
line-height: 1; line-height: 1;
margin-right: 10px; // margin-right: 10px;
// background: url('@{images}spriteicon.png') no-repeat; // background: url('@{images}spriteicon.png') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
......
...@@ -231,7 +231,7 @@ export default { ...@@ -231,7 +231,7 @@ export default {
}, },
}); });
yield put({ yield put({
type: 'studentsinfo/queryStudentsCurrentCourses', type: 'queryStudentsCurrentCourses',
payload: { payload: {
params: { params: {
page: 1, page: 1,
...@@ -239,10 +239,10 @@ export default { ...@@ -239,10 +239,10 @@ export default {
}, },
}); });
yield put({ yield put({
type: 'studentsinfo/studentsDetail', type: 'studentsDetail',
}); });
yield put({ yield put({
type: 'studentsinfo/studentsModelClassRecords', type: 'studentsModelClassRecords',
payload: { payload: {
params: { params: {
page: 1, page: 1,
...@@ -250,13 +250,13 @@ export default { ...@@ -250,13 +250,13 @@ export default {
}, },
}); });
yield put({ yield put({
type: 'studentsinfo/queryStudentsClassList', type: 'queryStudentsClassList',
}); });
yield put({ yield put({
type: 'queryTeacherList', type: 'queryTeacherList',
}); });
// yield put({ // yield put({
// type: 'studentsinfo/studentsModelLogs', // type: 'studentsModelLogs',
// }); // });
}, },
* searchCourseRelateClass({ payload }, { call, put, select }) { * searchCourseRelateClass({ payload }, { call, put, select }) {
...@@ -362,7 +362,7 @@ export default { ...@@ -362,7 +362,7 @@ export default {
}, },
}); });
yield put({ yield put({
type: 'studentsinfo/studentsDetail', type: 'studentsDetail',
}); });
message.success('保存成功', 1); message.success('保存成功', 1);
} else { } else {
...@@ -554,7 +554,7 @@ export default { ...@@ -554,7 +554,7 @@ export default {
clearInterval(setTimer); clearInterval(setTimer);
} }
payload.dispatch({ payload.dispatch({
type: 'studentsinfo/updateState', type: 'updateState',
payload: { payload: {
erpCountdown: newCountdowm, erpCountdown: newCountdowm,
erpCounting: newCounting, erpCounting: newCounting,
......
...@@ -807,7 +807,6 @@ class StudentMgt extends React.Component { ...@@ -807,7 +807,6 @@ class StudentMgt extends React.Component {
<div className={pageStyle.title}>学员管理</div> <div className={pageStyle.title}>学员管理</div>
<div className={pageStyle.tablebox}> <div className={pageStyle.tablebox}>
<Table <Table
rowKey={studentsinfo => studentsinfo.id}
dataSource={studentsinfo} dataSource={studentsinfo}
columns={columns} columns={columns}
pagination={false} pagination={false}
......
...@@ -148,7 +148,7 @@ class StudentAddForm extends React.Component { ...@@ -148,7 +148,7 @@ class StudentAddForm extends React.Component {
message: '姓名最多20个字符', message: '姓名最多20个字符',
}, },
], ],
})(<Input style={{ width: 200 }} maxlength="20" placeholder="输入姓名" />)} })(<Input style={{ width: 200 }} maxLength={20} placeholder="输入姓名" />)}
</Form.Item> </Form.Item>
</Col> </Col>
<Col span={24} className={pageStyle.name} > <Col span={24} className={pageStyle.name} >
......
...@@ -502,8 +502,8 @@ class StudentMgt extends React.Component { ...@@ -502,8 +502,8 @@ class StudentMgt extends React.Component {
}, },
{ {
title: '上课时间', title: '上课时间',
dataIndex: 'age', dataIndex: 'scheduletime',
key: 'age', key: 'scheduletime',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -514,8 +514,8 @@ class StudentMgt extends React.Component { ...@@ -514,8 +514,8 @@ class StudentMgt extends React.Component {
}, },
{ {
title: '点名状态', title: '点名状态',
dataIndex: 'age', dataIndex: 'callstatus',
key: 'age', key: 'callstatus',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -555,8 +555,8 @@ class StudentMgt extends React.Component { ...@@ -555,8 +555,8 @@ class StudentMgt extends React.Component {
}, },
{ {
title: '是否补课', title: '是否补课',
dataIndex: 'age', dataIndex: 'supplement_call_id',
key: 'age', key: 'supplement_call_id',
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<div> <div>
...@@ -797,6 +797,7 @@ class StudentMgt extends React.Component { ...@@ -797,6 +797,7 @@ class StudentMgt extends React.Component {
<Table <Table
pagination={false} pagination={false}
scroll={{ x: 'max-content' }} scroll={{ x: 'max-content' }}
rowKey="id"
footer={() => ( footer={() => (
<div className="tablefooterbox"> <div className="tablefooterbox">
<span className="tablefooterstatic">{classRecordsTotal}条数据</span> <span className="tablefooterstatic">{classRecordsTotal}条数据</span>
...@@ -832,7 +833,7 @@ class StudentMgt extends React.Component { ...@@ -832,7 +833,7 @@ class StudentMgt extends React.Component {
{studentslogs.length > 0 && {studentslogs.length > 0 &&
<Row> <Row>
{studentslogs.map(item => ( {studentslogs.map(item => (
<Col span={24}> <Col span={24} key={item.id}>
{(() => { {(() => {
let dom = null; let dom = null;
switch (item.source_type) { switch (item.source_type) {
......
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