diff --git a/public/react/src/common/components/attachment/AttachmentList.js b/public/react/src/common/components/attachment/AttachmentList.js index 8ece1c39d..afc55fe1f 100644 --- a/public/react/src/common/components/attachment/AttachmentList.js +++ b/public/react/src/common/components/attachment/AttachmentList.js @@ -1,4 +1,5 @@ import React,{ Component } from "react"; +import { ConditionToolTip } from 'educoder' class AttachmentsList extends Component{ constructor(props){ @@ -12,14 +13,18 @@ class AttachmentsList extends Component{ attachments.map((item,key)=>{ return(

- + { item.is_pdf && item.is_pdf == true ? - {item.title} + 30 }> + {item.title} + : - {item.title} + 30 }> + {item.title} + } {item.filesize}

diff --git a/public/react/src/modules/courses/graduation/topics/GraduateTopicDetailInfo.js b/public/react/src/modules/courses/graduation/topics/GraduateTopicDetailInfo.js index 0c76cd9de..9ba334421 100644 --- a/public/react/src/modules/courses/graduation/topics/GraduateTopicDetailInfo.js +++ b/public/react/src/modules/courses/graduation/topics/GraduateTopicDetailInfo.js @@ -6,7 +6,7 @@ import '../style.css' import axios from "axios"; import GraduateTopicReply from './GraduateTopicReply' -import { ConditionToolTip,MarkdownToHtml } from 'educoder' +import { ConditionToolTip , MarkdownToHtml , AttachmentList } from 'educoder' const $=window.$; const type={1: "设计",2: "论文", 3: "创作"} @@ -60,9 +60,10 @@ class GraduateTopicDetailTable extends Component{ { topicInfo && topicInfo.attachment_list.length>0 &&

- { + {/* { topicInfo.attachment_list.map((item,key)=>{ return( +

  • 30 }> @@ -72,7 +73,8 @@ class GraduateTopicDetailTable extends Component{
  • ) }) - } + } */} +

    }