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} -

  • +
  • { firstRowRight }
  • From 01fd748038d54aa709630d9e48b0445dad287fcf Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Thu, 20 Jun 2019 17:19:48 +0800 Subject: [PATCH 02/15] =?UTF-8?q?=E5=85=88=E6=B3=A8=E9=87=8A=E4=BA=86?= =?UTF-8?q?=EF=BC=8C=E5=BD=B1=E5=93=8D=E5=88=B0=E4=BA=86md=E7=9A=84?= =?UTF-8?q?=E6=8B=96=E6=8B=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/forums/MemoDetailMDEditor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/forums/MemoDetailMDEditor.js b/public/react/src/modules/forums/MemoDetailMDEditor.js index 17bc11212..caf8e5743 100644 --- a/public/react/src/modules/forums/MemoDetailMDEditor.js +++ b/public/react/src/modules/forums/MemoDetailMDEditor.js @@ -158,13 +158,15 @@ class MemoDetailMDEditor extends Component {
    From 268baa136d26846078621846f06f97498c732b67 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Thu, 20 Jun 2019 19:03:00 +0800 Subject: [PATCH 03/15] canNotLink --- .../src/modules/courses/busyWork/CommonWorkItem.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkItem.js b/public/react/src/modules/courses/busyWork/CommonWorkItem.js index 41b873bac..258a06332 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkItem.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkItem.js @@ -104,6 +104,7 @@ class CommonWorkItem extends Component{ let coursesId = this.props.match.params.coursesId; const isStudent = this.props.isStudent() + const isAdmin = this.props.isAdmin() const isAdminOrStudent = this.props.isAdminOrStudent() return(
    @@ -128,19 +129,20 @@ class CommonWorkItem extends Component{ { mainList && mainList.homeworks.length>0 && mainList.homeworks.map((item,index)=>{ + let canNotLink = !isAdminOrStudent && item.private_icon == true return(
    { - mainList && mainList.course_identity < 5 && + mainList && isAdmin && }
    this.props.onItemClick(Object.assign({}, item, {id: item.homework_id})) }>

    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{ { - mainList && mainList.course_identity < 5 && + mainList && isAdmin &&

    • From 07e5760e2b0b067e8cb8457836619a95488b45e2 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Thu, 20 Jun 2019 19:06:46 +0800 Subject: [PATCH 04/15] this.props.addSuccess --- .../graduation/tasks/GraduationTasksappraiseReplyChild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReplyChild.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReplyChild.js index 094f8d96f..1279b4907 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReplyChild.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReplyChild.js @@ -83,7 +83,7 @@ class GraduationTasksappraiseReplyChild extends Component{
  • */} {this.props.ultimate===true?"": isAdmin && this.props.addSuccess()} > }
    @@ -696,7 +697,7 @@ class Selectsetting extends Component{ id={"startimes"} className={"Selectleft20"} width={"200px"} - value={item.publish_time===undefined||item.publish_time===""?"":moment(item.publish_time, dateFormat)} + value={item.publish_time===undefined||item.publish_time===""?"":item.publish_time===null?"":moment(item.publish_time, dateFormat)} onChange={(e,index)=>this.onChangeTimepublishs(e,index,key)} // onChange={ this.onChangeTimepublish } disabledTime={disabledDateTime} @@ -739,7 +740,7 @@ class Selectsetting extends Component{ {/*{this.state.course_group_idtypes===true?

    请选择分班

    :""}*/} {/*{course_group_publish_timestype===true?

    请填写完整

    :""}*/} - - {descriptiontype===true?

    描述不能超过最大限制:100个字符

    :""} + {descriptiontype===true?

    请输入资源描述,最大限制100个字符

    :""}
    {this.props.Cancelname} this.Saves()}>{this.props.Savesname} diff --git a/public/react/src/modules/courses/exercise/ExerciseListItem.js b/public/react/src/modules/courses/exercise/ExerciseListItem.js index 43210315d..eb0377022 100644 --- a/public/react/src/modules/courses/exercise/ExerciseListItem.js +++ b/public/react/src/modules/courses/exercise/ExerciseListItem.js @@ -85,11 +85,14 @@ class ExerciseListItem extends Component{ text-overflow: ellipsis; white-space: nowrap; } + .homepagePostSetting { + position: absolute; + } ` }
    -

    +

    {/*{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 && -
    -
      -
    • - - -
    • -
    -
    - } + + + { IsAdmin &&
    + 编辑 + 设置 +
    } + +

    + {/*{*/} + {/*IsAdmin &&*/} + {/*
    */} + {/*
      */} + {/*
    • */} + {/**/} + {/*
        */} + {/*
      • 编辑
      • */} + {/*
      • 设置
      • */} + {/*
      */} + {/*
    • */} + {/*
    */} + {/*
    */} + {/*}*/} + + { IsStudent &&
    diff --git a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js index 3e3259a72..ef23674fe 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js @@ -234,12 +234,20 @@ class GraduateTaskItem extends Component{

    - + {this.props.isAdmin?
    - + 编辑 From 2141b068f97e5f6830be88fe19fa4766ba544ca5 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 19:33:55 +0800 Subject: [PATCH 07/15] =?UTF-8?q?=E6=AF=95=E8=AE=BE=E6=97=B6=E9=97=B4?= =?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/GraduationTaskssetting.js | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js index a002911ec..9ef3d7091 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js @@ -480,7 +480,7 @@ class GraduationTaskssettingapp extends Component{ saveTaskssetting=()=>{ - let {latepenalty,hascommit,minnums,max_nums,publish_time,end_time,crosscomment,latetime}=this.state; + let {latepenalty,hascommit,minnums,max_nums,publish_time,end_time,crosscomment,latetime,starttimetype}=this.state; if(latepenalty===undefined){ this.setState({ latepenaltytype:true, @@ -500,19 +500,19 @@ class GraduationTaskssettingapp extends Component{ } - - if(moment(publish_time) <= moment()){ - this.setState({ - publishTimetypes:true, - publishTimetypesval:"发布时间不能早于当前时间", - }) - return - }else{ - this.setState({ - publishTimetypes:false - }) - } - + if(starttimetype===false) { + if (moment(publish_time) <= moment()) { + this.setState({ + publishTimetypes: true, + publishTimetypesval: "发布时间不能早于当前时间", + }) + return + } else { + this.setState({ + publishTimetypes: false + }) + } + } if(moment(end_time) Date: Thu, 20 Jun 2019 20:05:37 +0800 Subject: [PATCH 08/15] =?UTF-8?q?=E5=AD=90=E5=9B=9E=E5=A4=8D=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/boards/BoardsListItem.js | 7 ++++--- public/react/src/modules/courses/common/courseMessage.css | 2 +- public/react/src/modules/forums/MemoDetailMDEditor.js | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/public/react/src/modules/courses/boards/BoardsListItem.js b/public/react/src/modules/courses/boards/BoardsListItem.js index 089d060a4..c25c541e8 100644 --- a/public/react/src/modules/courses/boards/BoardsListItem.js +++ b/public/react/src/modules/courses/boards/BoardsListItem.js @@ -1,6 +1,7 @@ import React,{ Component } from "react"; import {Tooltip} from 'antd' import moment from 'moment' +import { getUrl } from 'educoder' class BoardsListItem extends Component{ constructor(props){ super(props); @@ -37,11 +38,11 @@ class BoardsListItem extends Component{ } `} { checkBox } - + {/* /images/avatars/User/1?1529221779 */} 1?1529221779
    onItemClick(discussMessage)}> @@ -62,7 +63,7 @@ class BoardsListItem extends Component{

    - {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 { } */}

    + style={{ padding: '30px',boxSizing:"border-box", display: isInited ? '' : 'none', paddingBottom: '40px' }} >
    +
    }

    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{
    -
    +
    {/*
    */} diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js index d0b30db93..39068e1e3 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js @@ -726,17 +726,19 @@ class GraduationTaskssettinglist extends Component{ {this.props.isAdmin()?operation.map((tag,key) => { return(
    - {tag.status===0?"--":调整学生最终成绩
    + 调整学生最终成绩
    其它历史评分将全部失效:""}> - {tag.name==="评阅"?{tag.name} + {tag.name==="评阅"?tag.status===0?"--": + {tag.name} + : - this.showModulationtype(tag.id):tag.name==="分配"?()=>this.showAllocationModal(tag.id):""} - >{tag.name} + >{tag.status===0?"":tag.name} } -
    } +
    ) }):""} @@ -745,9 +747,7 @@ class GraduationTaskssettinglist extends Component{ operation.map((tag,key) => { return(
    - {tag.status===0?"--": - 查看 - } + {tag.status===0?"":"查看"}
    )} ):"" @@ -858,19 +858,21 @@ class GraduationTaskssettinglist extends Component{ {this.props.isAdmin()?operation.map((tag,key) => { return(
    - {tag.status===0?"--": + 调整学生最终成绩
    其它历史评分将全部失效:""}> - {tag.name==="评阅"?{tag.name} + {tag.name==="评阅"?tag.status===0?"--": + {tag.name} + : this.showModulationtype(tag.id):tag.name==="分配"?()=>this.showAllocationModal(tag.id):""} - >{tag.name} + >{tag.status===0?"":tag.name} }
    - } +
    ) }):""} @@ -879,9 +881,10 @@ class GraduationTaskssettinglist extends Component{ operation.map((tag,key) => { return(
    - {tag.status===0?"--": - 查看 - } + + {tag.status===0?"":"查看"} + +
    )} ):"" @@ -1006,14 +1009,15 @@ class GraduationTaskssettinglist extends Component{ {this.props.isAdmin()?operation.map((tag,key) => { return(
    - {tag.status===0?"--": + 调整学生最终成绩
    其它历史评分将全部失效:""}> - {tag.name==="评阅"?{tag.name} + {tag.name==="评阅"?tag.status===0?"--": + {tag.name} : this.showModulationtype(tag.id):tag.name==="分配"?()=>this.showAllocationModal(tag.id):""} - >{tag.name} + >{tag.status===0?"":tag.name} }
    } @@ -1026,9 +1030,9 @@ class GraduationTaskssettinglist extends Component{ operation.map((tag,key) => { return(
    - {tag.status===0?"--": - 查看 - } + + {tag.status===0?"":"查看"} +
    )} ):"" @@ -1138,14 +1142,16 @@ class GraduationTaskssettinglist extends Component{ {this.props.isAdmin()?operation.map((tag,key) => { return(
    - {tag.status===0?"--": + 调整学生最终成绩
    其它历史评分将全部失效:""}> - {tag.name==="评阅"?{tag.name} + {tag.name==="评阅"?tag.status===0?"--": + {tag.name} + : this.showModulationtype(tag.id):tag.name==="分配"?()=>this.showAllocationModal(tag.id):""} - >{tag.name} + >{tag.status===0?"":tag.name} }
    } @@ -1158,9 +1164,8 @@ class GraduationTaskssettinglist extends Component{ operation.map((tag,key) => { return(
    - {tag.status===0?"--": - 查看 - } + + {tag.status===0?"":"查看"}
    )} ):"" From f3c99d878012f7ff124957c249fa0fc9feaa2c1a Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 21 Jun 2019 09:50:16 +0800 Subject: [PATCH 14/15] MarkdownToHtml --- public/react/src/common/TextUtil.js | 5 ++- .../components/markdown/MarkdownToHtml.js | 45 ++++++------------- .../src/modules/courses/boards/TopicDetail.js | 32 ++++--------- 3 files changed, 27 insertions(+), 55 deletions(-) diff --git a/public/react/src/common/TextUtil.js b/public/react/src/common/TextUtil.js index 4a3145c19..d39ebb32a 100644 --- a/public/react/src/common/TextUtil.js +++ b/public/react/src/common/TextUtil.js @@ -1,5 +1,5 @@ import { bytesToSize } from 'educoder'; -export function markdownToHTML(oldContent) { +export function markdownToHTML(oldContent, selector) { window.$('#md_div').html('') // markdown to html var markdwonParser = window.editormd.markdownToHTML("md_div", { @@ -12,6 +12,9 @@ export function markdownToHTML(oldContent) { sequenceDiagram: true // 默认不解析 }); const content = window.$('#md_div').html() + if (selector) { + window.$(selector).html(content) + } return content } diff --git a/public/react/src/common/components/markdown/MarkdownToHtml.js b/public/react/src/common/components/markdown/MarkdownToHtml.js index 86e94c62e..266f831ee 100644 --- a/public/react/src/common/components/markdown/MarkdownToHtml.js +++ b/public/react/src/common/components/markdown/MarkdownToHtml.js @@ -6,40 +6,23 @@ class MarkdownToHtml extends Component{ this.state={ } } - // componentDidUpdate = (prevProps) => { - // if (this.props.content) { - // if ( prevProps.content != this.props.content ) { - // if (!this.shixunDescr) { - // this.shixunDescr = window.editormd.markdownToHTML("memo_content_editorMd", { - // markdown: this.props.content, - // htmlDecode: "style,script,iframe", // you can filter tags decode - // taskList: true, - // tex: true, // 默认不解析 - // flowChart: true, // 默认不解析 - // sequenceDiagram: true // 默认不解析 - // }); - // } else { - // this.shixunDescr.html(this.props.content) - // } - // } - // } - // } - // componentDidMount () { - // if (!this.shixunDescr) { - // this.shixunDescr = window.editormd.markdownToHTML("memo_content_editorMd", { - // markdown: this.props.content, - // htmlDecode: "style,script,iframe", // you can filter tags decode - // taskList: true, - // tex: true, // 默认不解析 - // flowChart: true, // 默认不解析 - // sequenceDiagram: true // 默认不解析 - // }); - // } - // } + componentDidUpdate = (prevProps) => { + if (this.props.content) { + if ( prevProps.content != this.props.content ) { + markdownToHTML(this.props.content, `.markdown_to_html_${this.props.selector || ''}`) + } + } + } + componentDidMount () { + this.props.content && markdownToHTML(this.props.content, `.markdown_to_html_${this.props.selector || ''}`) + + } render(){ return( -
    +
    ) } diff --git a/public/react/src/modules/courses/boards/TopicDetail.js b/public/react/src/modules/courses/boards/TopicDetail.js index f0bc978ef..1ef880c9f 100644 --- a/public/react/src/modules/courses/boards/TopicDetail.js +++ b/public/react/src/modules/courses/boards/TopicDetail.js @@ -24,7 +24,7 @@ import '../../forums/RightSection.css' import './TopicDetail.css' import '../common/courseMessage.css' import { Pagination, Tooltip } from 'antd' -import { bytesToSize, ConditionToolTip } from 'educoder' +import { bytesToSize, ConditionToolTip, markdownToHTML, MarkdownToHtml } from 'educoder' import SendToCourseModal from '../coursesPublic/modal/SendToCourseModal' import CBreadcrumb from '../common/CBreadcrumb' import { generateComments, generateChildComments, _findById, handleContentBeforeCreateNew, addNewComment @@ -87,15 +87,6 @@ class TopicDetail extends Component { replies_count: response.data.data.total_replies_count }, {...this.state.memo}) }, () => { - setTimeout(()=>{ - var shixunDescr = window.editormd.markdownToHTML("memo_content_editorMd", { - htmlDecode: "style,script,iframe", // you can filter tags decode - taskList: true, - tex: true, // 默认不解析 - flowChart: true, // 默认不解析 - sequenceDiagram: true // 默认不解析 - }); - }, 200) }) // const { memo_replies, memo } = response.data; @@ -181,13 +172,13 @@ class TopicDetail extends Component { // md渲染content,等xhr执行完(即memoLoading变化),memo.content更新后初始化md setTimeout(()=>{ - var shixunDescr = window.editormd.markdownToHTML("memo_content_editorMd", { - htmlDecode: "style,script,iframe", // you can filter tags decode - taskList: true, - tex: true, // 默认不解析 - flowChart: true, // 默认不解析 - sequenceDiagram: true // 默认不解析 - }); + // var shixunDescr = window.editormd.markdownToHTML("memo_content_editorMd", { + // htmlDecode: "style,script,iframe", // you can filter tags decode + // taskList: true, + // tex: true, // 默认不解析 + // flowChart: true, // 默认不解析 + // sequenceDiagram: true // 默认不解析 + // }); }, 200) } @@ -629,13 +620,8 @@ class TopicDetail extends Component {
    -
    - -
    +
    -{/* style={{ paddingTop: '0px'}} */}
    {/* ${memo.user_praise ? '' : ''} */} From 3c40720339f36cbc77e05db8018aba3d8338b391 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 10:09:33 +0800 Subject: [PATCH 15/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 --- .../graduation/tasks/GraduationTasksedit.js | 2 +- .../tasks/GraduationTaskssettinglist.js | 27 +++++++++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js index 36c2f9d3f..9874b26fa 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js @@ -125,7 +125,7 @@ class GraduationTasksedit extends Component{ GraduationTasksedittype=false; // window.location.href="/courses/"+course_id+"/graduation/"+graduationId+"/graduation_tasks/"+category_id+"/questions"; // this.goback() - this.props.history.push("/courses/"+this.props.match.params.coursesId+"/graduation_tasks/"+graduation_id+"/"+this.props.match.params.category_id +"/setting"); + window.location.href="/courses/"+this.props.match.params.coursesId+"/graduation_tasks/"+graduation_id+"/"+this.props.match.params.category_id +"/setting"; } }).catch((error) => { console.log(error) diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js index 39068e1e3..ecfd21257 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js @@ -730,7 +730,7 @@ class GraduationTaskssettinglist extends Component{ 其它历史评分将全部失效:""}> {tag.name==="评阅"?tag.status===0?"--": - {tag.name} + tag.name : { return(
    - {tag.status===0?"":"查看"} + {tag.status===0?"--":查看}
    )} ):"" @@ -863,7 +863,7 @@ class GraduationTaskssettinglist extends Component{ 其它历史评分将全部失效:""}> {tag.name==="评阅"?tag.status===0?"--": - {tag.name} + tag.name : { return( )} ):"" @@ -1013,7 +1012,7 @@ class GraduationTaskssettinglist extends Component{ 调整学生最终成绩
    其它历史评分将全部失效:""}> {tag.name==="评阅"?tag.status===0?"--": - {tag.name} + tag.name : this.showModulationtype(tag.id):tag.name==="分配"?()=>this.showAllocationModal(tag.id):""} @@ -1030,9 +1029,9 @@ class GraduationTaskssettinglist extends Component{ operation.map((tag,key) => { return( )} ):"" @@ -1146,7 +1145,7 @@ class GraduationTaskssettinglist extends Component{ 调整学生最终成绩
    其它历史评分将全部失效:""}> {tag.name==="评阅"?tag.status===0?"--": - {tag.name} + tag.name : { return( )} ):""