diff --git a/public/react/src/modules/courses/coursesPublic/AccessoryModal.js b/public/react/src/modules/courses/coursesPublic/AccessoryModal.js index 26d4499aa..72512be43 100644 --- a/public/react/src/modules/courses/coursesPublic/AccessoryModal.js +++ b/public/react/src/modules/courses/coursesPublic/AccessoryModal.js @@ -17,7 +17,8 @@ class AccessoryModal extends Component{ ModalSave:"", loadtype:false, updatas:false, - shixunsreplace:false + shixunsreplace:false, + Errormessage:false, } } @@ -41,7 +42,10 @@ class AccessoryModal extends Component{ // for(var list of fileList ){ // console.log(fileList) // } - this.setState({ fileList }); + this.setState({ + fileList:fileList, + Errormessage:false, + }); } onAttachmentRemove = (file) => { @@ -121,10 +125,23 @@ class AccessoryModal extends Component{ if (newfileList.length == 0) { // this.props.showNotification('请先上传附件') - this.setState({ - shixunsreplace:true, - }) + if(this.props.modalname === "补交附件"){ + this.setState({ + Errormessage:true, + shixunsreplace:false, + }) + }else{ + this.setState({ + shixunsreplace:true, + Errormessage:false, + }) + } return; + }else{ + this.setState({ + shixunsreplace:false, + Errormessage:false, + }) } let url= this.props.reviseAttachmentUrl || "/graduation_works/"+id+"/revise_attachment.json" @@ -326,6 +343,14 @@ class AccessoryModal extends Component{ border:'1px solid rgba(234,234,234,1)', padding: '10px' }}> + { + this.state.Errormessage && this.state.Errormessage === true ? +
+ 还未上传附件 +
+ : + + } {this.state.updatas===true?请上传附件:""}
{Commonheadofthetestpaper === undefined?"":Commonheadofthetestpaper.exercise_name}
@@ -252,19 +252,18 @@ class Testpapersettinghomepage extends Component{ padding-top: 10px; padding-bottom: 8px; } + a:hover { + color:#1A0B00 !important; + } `}阶段成绩
-实训详情
+实训详情
{ challenge.map((item,key)=>{ return( -- + 第{item[0].position}关 - {item[0].name} + {item[0].name}
@@ -308,7 +318,7 @@ class shixunAnswer extends Component{ {...this.props} {...this.state} challenge={item[0].outputs} > - { item[0].st===0 ?最近通过的代码 @@ -316,7 +326,7 @@ class shixunAnswer extends Component{
+
- {tableData && tableData.graduation_topic_name}
-