Commit deaed611 authored by wangxuelai's avatar wangxuelai

'最新代码提交'

parent 7401a1e2
......@@ -108,7 +108,7 @@ class SjdMenu extends React.Component {
{breadcrumbList.length > 1 &&
<div className={SjdHeaderStyle.breadbox}>
{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;
</div>
))}
......
......@@ -411,7 +411,7 @@ class CalendarClockForm extends React.Component {
<div className={pageStyle.calendarlist}>
{
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>
......@@ -445,10 +445,10 @@ class CalendarClockForm extends React.Component {
<div className={pageStyle.weekday}></div>
<div className={pageStyle.weekday}></div>
</div>
{calendarData.targetTimeArr && calendarData.targetTimeArr.map((bigdat, q) => {
{calendarData.targetTimeArr && calendarData.targetTimeArr.map((bigdat, index) => {
return (
<div key={q} 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>);
<div key={index} className={pageStyle.dayrow}>{bigdat.map((day, i) => {
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>
);
......
......@@ -289,7 +289,7 @@ class ClassMgt extends React.Component {
render: (text, record) => {
return (
<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>
);
},
......@@ -365,7 +365,8 @@ class ClassMgt extends React.Component {
render: (text, record) => {
return (
<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>
);
},
......
......@@ -292,13 +292,13 @@ class ThemeMgt extends React.Component {
key: 'x',
render: (text, record, index) => (
<div className={pageStyle.tablecell}>
<a href="javascript:;" onClick={() => this.editTheme(record)}>编辑</a>
<span className="hreflink" onClick={() => this.editTheme(record)}>编辑</span>
<Divider type="vertical" />
<a href="javascript:;" onClick={() => this.copyClockMgt(record, 1)}>复制</a>
<span className="hreflink" onClick={() => this.copyClockMgt(record, 1)}>复制</span>
<Divider type="vertical" />
<a href="javascript:;" onClick={() => this.goClockMgt(record)}>点评</a>
<span className="hreflink" onClick={() => this.goClockMgt(record)}>点评</span>
<Divider type="vertical" />
<a href="javascript:;" onClick={() => this.deleteTheme(record)}>删除</a>
<span className="hreflink" onClick={() => this.deleteTheme(record)}>删除</span>
</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