diff --git a/public/react/src/modules/courses/elearning/YslDetailCards.js b/public/react/src/modules/courses/elearning/YslDetailCards.js index c29533b71..141c5abfb 100644 --- a/public/react/src/modules/courses/elearning/YslDetailCards.js +++ b/public/react/src/modules/courses/elearning/YslDetailCards.js @@ -388,76 +388,84 @@ class YslDetailCards extends Component{ } ` } - { - stages && stages.map((item,key)=>{ - - return( -
-

- - - - - {item.stage_name} - { - idsum===key&&pathCardsedittype===true?'': - - this.props.isAdmin()==true? - - - { editbuttomtype===true?'': - this.pathCardsedit(key, item.stage_id)}> - - - } - - { - stages.length=== key+1?"":this.chapterdown(item.stage_id)}> - - - - - } - - - {key===0?"": - this.chapterup(item.stage_id)}> - - - - } - - :"" - - - } - - { - idsum === key && pathCardsedittype === true ? - this.props.isAdmin()===true? - this.delectpathCardsedit(item.stage_id)}> - - - - :"" - : '' - } -

- - { - idsum===key&&pathCardsedittype===true?'': -
-

{item.stage_description}

- -
+ + + { + this.props.isStudent()===true&&(stages===undefined||stages===JSON.stringify("[]")||stages.length===0)? + + : + "" + } + { + stages && stages.map((item,key)=>{ + + return( +
+

+ + + + + {item.stage_name} + { + idsum===key&&pathCardsedittype===true?'': + + this.props.isAdmin()==true? + + + { editbuttomtype===true?'': + this.pathCardsedit(key, item.stage_id)}> + + + } + + { + stages.length=== key+1?"":this.chapterdown(item.stage_id)}> + + + + + } + + + {key===0?"": + this.chapterup(item.stage_id)}> + + + + } + + :"" + + + } { - item.shixuns_list && item.shixuns_list.map((line,index)=>{ - return( -

this.showparagraph(key,index)} onMouseLeave={this.hideparagraph}> + idsum === key && pathCardsedittype === true ? + this.props.isAdmin()===true? + this.delectpathCardsedit(item.stage_id)}> + + + + :"" + : '' + } +

+ + { + idsum===key&&pathCardsedittype===true?'': +
+

{item.stage_description}

+ +
-
  • + { + item.shixuns_list && item.shixuns_list.map((line,index)=>{ + return( +
    this.showparagraph(key,index)} onMouseLeave={this.hideparagraph}> + +
  • { @@ -465,45 +473,50 @@ class YslDetailCards extends Component{ : } - + {key+1}-{index+1}  {line.shixun_name} -
  • - { - this.props.current_user&&this.props.current_user.admin===false&&line.shixun_status==="暂未公开"? -
  • 暂未公开
  • - : -
  • +
  • { - showparagraphkey===key&&showparagraphindex===index?:"" + this.props.current_user&&this.props.current_user.admin===false&&line.shixun_status==="暂未公开"? +
  • 暂未公开
  • + : +
  • + { + showparagraphkey===key&&showparagraphindex===index?:"" + } + +
  • } +
    ) + }) + } +
    +
    + } + { + this.props.isAdmin()===true? + + :"" + } - - } -
    ) - }) - } -
    - } - -
    - ) - }) - } + ) + }) + } } { editbuttomtypeadd===true?'':this.props.isAdmin()===true?