Commit deaed611 authored by wangxuelai's avatar wangxuelai

'最新代码提交'

parent 7401a1e2
...@@ -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 key={ele.path} className={`${(index + 1) == breadcrumbList.length ? SjdHeaderStyle.breaditembold : ''} ${SjdHeaderStyle.breaditem}`} onClick={() => { this.routeChange(ele.path); }}> <div key={index} 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>
))} ))}
......
...@@ -411,7 +411,7 @@ class CalendarClockForm extends React.Component { ...@@ -411,7 +411,7 @@ class CalendarClockForm extends React.Component {
<div className={pageStyle.calendarlist}> <div className={pageStyle.calendarlist}>
{ {
dateArray.map((item, l) => dateArray.map((item, l) =>
<div key={l} onClick={() => this.selectWeekDay(item.day)} className={item.isChecked ? pageStyle.calendaritemActive : pageStyle.calendaritem}>{item.title}</div>, <div key={item.day} onClick={() => this.selectWeekDay(item.day)} className={item.isChecked ? pageStyle.calendaritemActive : pageStyle.calendaritem}>{item.title}</div>,
) )
} }
</div> </div>
...@@ -445,10 +445,10 @@ class CalendarClockForm extends React.Component { ...@@ -445,10 +445,10 @@ class CalendarClockForm extends React.Component {
<div className={pageStyle.weekday}></div> <div className={pageStyle.weekday}></div>
<div className={pageStyle.weekday}></div> <div className={pageStyle.weekday}></div>
</div> </div>
{calendarData.targetTimeArr && calendarData.targetTimeArr.map((bigdat, q) => { {calendarData.targetTimeArr && calendarData.targetTimeArr.map((bigdat, index) => {
return ( return (
<div key={q} className={pageStyle.dayrow}>{bigdat.map((day, i) => { <div key={index} className={pageStyle.dayrow}>{bigdat.map((day, i) => {
return (<div key={i} onClick={() => this.selectPlanDay(day)} className={`${pageStyle.dayitem} ${day.open ? '' : pageStyle.notopen} ${day.type == 'current' ? pageStyle.current : ''} ${selectPlanDays.indexOf(day.date) != -1 ? pageStyle.dayselected : ''} ${day.istoday ? pageStyle.istoday : ''}`}>{day.day}</div>); return (<div key={day.date} onClick={() => this.selectPlanDay(day)} className={`${pageStyle.dayitem} ${day.open ? '' : pageStyle.notopen} ${day.type == 'current' ? pageStyle.current : ''} ${selectPlanDays.indexOf(day.date) != -1 ? pageStyle.dayselected : ''} ${day.istoday ? pageStyle.istoday : ''}`}>{day.day}</div>);
})} })}
</div> </div>
); );
......
...@@ -289,7 +289,7 @@ class ClassMgt extends React.Component { ...@@ -289,7 +289,7 @@ class ClassMgt extends React.Component {
render: (text, record) => { render: (text, record) => {
return ( return (
<div className={pageStyle.tableoperatebox}> <div className={pageStyle.tableoperatebox}>
<a href="javascript:;" onClick={() => this.toDetail(record.id)}>{record.nickname || '-'}</a> <span className="hreflink" onClick={() => this.toDetail(record.id)}>{record.nickname || '-'}</span>
</div> </div>
); );
}, },
...@@ -365,7 +365,8 @@ class ClassMgt extends React.Component { ...@@ -365,7 +365,8 @@ class ClassMgt extends React.Component {
render: (text, record) => { render: (text, record) => {
return ( return (
<div> <div>
<a disabled={record.status == 2} href="javascript:;" onClick={() => this.handleChooseClass(record)} >选班</a> {record.status == 2 && '-'}
{record.status == 1 && <span disabled={record.status == 2} className="hreflink" onClick={() => this.handleChooseClass(record)} >选班</span>}
</div> </div>
); );
}, },
......
...@@ -292,13 +292,13 @@ class ThemeMgt extends React.Component { ...@@ -292,13 +292,13 @@ class ThemeMgt extends React.Component {
key: 'x', key: 'x',
render: (text, record, index) => ( render: (text, record, index) => (
<div className={pageStyle.tablecell}> <div className={pageStyle.tablecell}>
<a href="javascript:;" onClick={() => this.editTheme(record)}>编辑</a> <span className="hreflink" onClick={() => this.editTheme(record)}>编辑</span>
<Divider type="vertical" /> <Divider type="vertical" />
<a href="javascript:;" onClick={() => this.copyClockMgt(record, 1)}>复制</a> <span className="hreflink" onClick={() => this.copyClockMgt(record, 1)}>复制</span>
<Divider type="vertical" /> <Divider type="vertical" />
<a href="javascript:;" onClick={() => this.goClockMgt(record)}>点评</a> <span className="hreflink" onClick={() => this.goClockMgt(record)}>点评</span>
<Divider type="vertical" /> <Divider type="vertical" />
<a href="javascript:;" onClick={() => this.deleteTheme(record)}>删除</a> <span className="hreflink" onClick={() => this.deleteTheme(record)}>删除</span>
</div> </div>
), ),
}]; }];
......
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