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 01/15] 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.author.name}
+ {discussMessage.author.name}
{ discussMessage.total_replies_count != 0 && {discussMessage.total_replies_count} 回复 }
{ discussMessage.total_praises_count != 0 && {discussMessage.total_praises_count} 点赞 }
diff --git a/public/react/src/modules/courses/common/courseMessage.css b/public/react/src/modules/courses/common/courseMessage.css
index c928162f4..db2381d37 100644
--- a/public/react/src/modules/courses/common/courseMessage.css
+++ b/public/react/src/modules/courses/common/courseMessage.css
@@ -17,7 +17,7 @@
}
/* 子回复按钮 */
.course-message .reply_to_message a.commentsbtn.task-btn-blue {
- margin-right: 50px;
+ /* margin-right: 50px; */
}
/* 改边距 */
/* .course-message .commentsDelegateParent {
diff --git a/public/react/src/modules/forums/MemoDetailMDEditor.js b/public/react/src/modules/forums/MemoDetailMDEditor.js
index caf8e5743..ebb61b1b7 100644
--- a/public/react/src/modules/forums/MemoDetailMDEditor.js
+++ b/public/react/src/modules/forums/MemoDetailMDEditor.js
@@ -169,7 +169,7 @@ class MemoDetailMDEditor extends Component {
} */}
违规评论已被屏蔽!
+
{i.user.name} {i.time}
diff --git a/public/react/src/modules/tpm/shixunchild/ShixunDiscuss/ShixunDiscuss.js b/public/react/src/modules/tpm/shixunchild/ShixunDiscuss/ShixunDiscuss.js index 31594aa96..4e9470f89 100644 --- a/public/react/src/modules/tpm/shixunchild/ShixunDiscuss/ShixunDiscuss.js +++ b/public/react/src/modules/tpm/shixunchild/ShixunDiscuss/ShixunDiscuss.js @@ -88,7 +88,7 @@ class ShixunDiscuss extends Component {+
From e0668cea7c6785184b54723d274fc00c417a412e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Fri, 21 Jun 2019 01:03:26 +0800
Subject: [PATCH 11/15] =?UTF-8?q?=E6=AF=95=E8=AE=BE=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/courses/Resource/Fileslistitem.js | 46 +--
.../src/modules/courses/Resource/index.js | 4 +-
.../courses/coursesHome/coursesHomeCard.js | 272 +++++++++---------
.../graduation/tasks/GraduateTaskItem.js | 5 +-
.../tasks/GraduationTasksSubmitedit.js | 2 +-
.../tasks/GraduationTasksSubmitnew.js | 2 +-
.../tasks/GraduationTasksappraise.js | 10 +-
.../tasks/GraduationTasksappraiseReply.js | 4 +-
.../graduation/tasks/GraduationTasksedit.js | 13 +-
.../tasks/GraduationTaskssetting.js | 52 ++--
.../tasks/GraduationTaskssettinglist.js | 64 +++--
.../tasks/GraduationTaskssettingquestions.js | 4 +-
public/react/src/modules/forums/PostItem.js | 208 +++++++-------
13 files changed, 360 insertions(+), 326 deletions(-)
diff --git a/public/react/src/modules/courses/Resource/Fileslistitem.js b/public/react/src/modules/courses/Resource/Fileslistitem.js
index cc6304481..dd37c441c 100644
--- a/public/react/src/modules/courses/Resource/Fileslistitem.js
+++ b/public/react/src/modules/courses/Resource/Fileslistitem.js
@@ -248,20 +248,7 @@ class Fileslistitem extends Component{
}
- {this.props.isAdmin ||this.props.current_user.username===discussMessage.author.name?
-
-
+
{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?"": - +
} From 7afce937962a6efcd5b0993c2168c126652c2195 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Fri, 21 Jun 2019 09:33:52 +0800 Subject: [PATCH 13/15] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tasks/GraduationTasksappraise.js | 2 +- .../tasks/GraduationTaskssettinglist.js | 59 ++++++++++--------- 2 files changed, 33 insertions(+), 28 deletions(-) diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraise.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraise.js index a45a105fd..7807e7265 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraise.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraise.js @@ -205,7 +205,7 @@ class GraduationTasksappraise extends Component{