From f142c7339d082e1406cc3ccb9029cbcb1972489c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 20 Jun 2019 16:58:04 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E8=B7=AF=E5=BE=84=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/Resource/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/react/src/modules/courses/Resource/index.js b/public/react/src/modules/courses/Resource/index.js index ec0f4c280..ac168d880 100644 --- a/public/react/src/modules/courses/Resource/index.js +++ b/public/react/src/modules/courses/Resource/index.js @@ -254,6 +254,7 @@ class Fileslists extends Component{ checkBoxValues:[], checkAllValue:false }) + this.props.updataleftNavfun() this.props.showNotification("删除成功"); } }) @@ -518,6 +519,7 @@ class Fileslists extends Component{ checkBoxValues:[], // checkAllValue:false }) + this.props.updataleftNavfun() this.props.showNotification('资源移动成功') } }) From 6787d59ec17161fb8b3cdff304265f6c162b26e5 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Thu, 20 Jun 2019 17:17:04 +0800 Subject: [PATCH 02/10] font-16 --- .../modules/courses/common/titleSearch/TitleSearchSection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/common/titleSearch/TitleSearchSection.js b/public/react/src/modules/courses/common/titleSearch/TitleSearchSection.js index c6530e855..4cb69a8d7 100644 --- a/public/react/src/modules/courses/common/titleSearch/TitleSearchSection.js +++ b/public/react/src/modules/courses/common/titleSearch/TitleSearchSection.js @@ -62,7 +62,7 @@ class Titlesearchsection extends Component{
{title} -
this.onItemClick(item)}
+ className="fl font-16 font-bd mt2 comnonwidth580" style={{cursor: canNotLink ? 'normal' : 'poninter'}}
+ onClick={canNotLink ? () => {} : () => this.onItemClick(item)}
>{item.name}
{/* 只有非课堂成员且作业是私有的情况下才会为true */}
@@ -155,7 +157,7 @@ class CommonWorkItem extends Component{
请选择分班
:""}*/} {/*{course_group_publish_timestype===true?请填写完整
:""}*/} - - {descriptiontype===true?描述不能超过最大限制:100个字符
:""} + {descriptiontype===true?请输入资源描述,最大限制100个字符
:""}+
{/*{item.exercise_name}*/} { @@ -132,7 +135,7 @@ class ExerciseListItem extends Component{ {/**/} {/**/}
-+
{item.exercise_status===1?"":{item.exercise_answer} 已答} {item.exercise_status===1?"":{item.exercise_unanswer} 未答} {item.unreview_count===null||item.exercise_status===1?"":{item.unreview_count} 未评数 } @@ -161,23 +164,32 @@ class ExerciseListItem extends Component{ {/*item.exercise_status ==2?"":*/} {/* 发布于{moment(item.exercise_left_time).fromNow()} */} {/*}*/} -
- { - IsAdmin && -+
{discussMessage.course_groups.map((item,key)=>{ return(
+
- {discussMessage.author.name}
+ {discussMessage.author.login}
大小 {discussMessage.filesize}
下载 {discussMessage.downloads_count}
引用 {discussMessage.quotes}
@@ -299,15 +289,31 @@ class Fileslistitem extends Component{
{ discussMessage.publish_time===null?"":discussMessage.is_publish===true?moment(discussMessage.publish_time).fromNow():moment(discussMessage.publish_time).format('YYYY-MM-DD hh:mm')}
+ {this.props.isAdmin ||this.props.current_user.login===discussMessage.author.login?
+
+
+
- 资源描述 :
- {discussMessage.description}
- {this.props.isAdmin ?this.settingList()}>:""}
+ {/**/}
+
+ 资源描述 :{discussMessage.description===null?"暂无描述":discussMessage.description}
+
+ {/*{this.props.isAdmin ?this.settingList()}>:""}*/}
非成员不能访问
-- -
- {/*{item.name.length>32?*/}
- {/*
{item.creator} {item.technical_title}
-
-
-
- {/* target="_blank" */} - - {memo.subject} - - - { memo.sticky && 置顶 } - - { memo.reward && - - {memo.reward} - - } -
- -- {/* data-tip-down="回复数" {memo.replies_count} - {memo.praise_count}*/} - {memo.replies_count ? - - {memo.replies_count} 回复 - :''} - - {memo.praise_count ? - - {memo.praise_count} 赞 - :''} - - {memo.viewed_count ? - - {this._toTenThousand(memo.viewed_count)} 浏览 - :''} - -
-+ {/* target="_blank" */} + + {memo.subject} + + + { memo.sticky && 置顶 } + + { memo.reward && + + {memo.reward} + + } +
+ ++ {/* data-tip-down="回复数" {memo.replies_count} + {memo.praise_count}*/} + {memo.replies_count ? + + {memo.replies_count} 回复 + :''} + + {memo.praise_count ? + + {memo.praise_count} 赞 + :''} + + {memo.viewed_count ? + + {this._toTenThousand(memo.viewed_count)} 浏览 + :''} + +
+{ChallengesDataList === undefined ? "" :ChallengesDataList.description===null?"": - +
}