@ -420,7 +420,35 @@ class DetailCards extends Component{
{
idsum === key && pathCardsedittype === true ? '' :
this . props . detailInfoList === undefined ? "" : this . props . detailInfoList . allow _statistics === true ?
this . props . detailInfoList === undefined ? "" :
this . props . current _user && this . props . current _user . admin === true || this . props . current _user && this . props . current _user . business === true ?
< a >
< a className = "fr mtf3" >
{ editbuttomtype === true ? '' :
< Tooltip placement = "bottom" title = "编辑"
onClick = { ( ) => this . pathCardsedit ( key , item . stage _id ) } >
< i className = "iconfont icon-bianjidaibeijing font-22 color-green" > < / i >
< / T o o l t i p >
}
< / a >
{
pathCardsList . length === key + 1 ? "" : < a className = "fr ring-op-green mr20" onClick = { ( ) => this . operations ( item . down _path ) } >
< Tooltip placement = "bottom" title = "向下移动" >
< img src = { getImageUrl ( "images/educoder/icon/movedown.svg" ) } className = "fl mt2 ml4" / >
< / T o o l t i p >
< / a >
}
{ key === 0 ? "" :
< a className = "fr ring-op-green mr20" onClick = { ( ) => this . operations ( item . up _path ) } >
< Tooltip placement = "bottom" title = "向上移动" >
< img src = { getImageUrl ( "images/educoder/icon/moveup.svg" ) } className = "fl mt2 ml4" / >
< / T o o l t i p >
< / a > }
< / a > :
this . props . detailInfoList . allow _statistics === true ?
< a >
< a className = "fr mtf3" >
{ editbuttomtype === true ? '' :
@ -453,7 +481,14 @@ class DetailCards extends Component{
{
idsum === key && pathCardsedittype === true ?
this . props . detailInfoList === undefined ? "" : this . props . detailInfoList . allow _statistics === true ?
this . props . detailInfoList === undefined ? "" :
this . props . current _user && this . props . current _user . admin === true || this . props . current _user && this . props . current _user . business === true ?
< a className = "fr" onClick = { ( ) => this . delectpathCardsedit ( item . stage _id ) } >
< Tooltip placement = "bottom" title = "删除" >
< i className = "iconfont icon-shanchu color-grey-c font-14 font-n" > < / i >
< / T o o l t i p >
< / a > :
this . props . detailInfoList . allow _statistics === true ?
< a className = "fr" onClick = { ( ) => this . delectpathCardsedit ( item . stage _id ) } >
< Tooltip placement = "bottom" title = "删除" >
< i className = "iconfont icon-shanchu color-grey-c font-14 font-n" > < / i >
@ -471,8 +506,36 @@ class DetailCards extends Component{
< div >
{
item . shixuns _list && item . shixuns _list . map ( ( line , index ) => {
{ this . props . current _user && this . props . current _user . admin === true || this . props . current _user && this . props . current _user . business === true ?
item . shixuns _list && item . shixuns _list . map ( ( line , index ) => {
return (
< div className = "clearfix paragraph lineh-30" onMouseEnter = { ( ) => this . showparagraph ( key , index ) } onMouseLeave = { this . hideparagraph } >
< li className = "fl li-width63" >
< span className = "progressRing mr10" >
{
line . complete _status === 1 ? < i className = "iconfont icon-wancheng progressRing-over font-18 mt10" > < / i >
: < i className = "iconfont icon-bofang progressRing-part font-18 mt10" > < / i >
}
< / s p a n >
< span className = { "paragraph_name color-grey3" } >
< span className = "subject_stage_shixun_index" > { key + 1 } < / s p a n > - { i n d e x + 1 } & n b s p ; & n b s p ; { l i n e . s h i x u n _ n a m e }
< / s p a n >
< / l i >
< li className = { showparagraph === false ? "none" : "fr status_li" } >
{
showparagraphkey === key && showparagraphindex === index ? < div >
< Link to = { '/shixuns/' + line . identifier + '/challenges' } className = "mr30 color-blue_4C shixun_detail pointer fl" target = "_blank" > 查看详情 < / L i n k >
< / d i v > : " "
}
< / l i >
< / d i v > )
} ) : item . shixuns _list && item . shixuns _list . map ( ( line , index ) => {
return (
< div className = "clearfix paragraph lineh-30" onMouseEnter = { ( ) => this . showparagraph ( key , index ) } onMouseLeave = { this . hideparagraph } >