diff --git a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js index 54325512a..2ab4228bb 100644 --- a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js +++ b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js @@ -498,13 +498,13 @@ class CoursesBanner extends Component { - 教师 {coursedata.teacher_count} + 教师 {coursedata.teacher_count} - 学生 {coursedata.student_count} + 学生 {coursedata.student_count} {coursedata.credit===null?"": - 学分 {coursedata.credit} + 学分 {coursedata.credit} } diff --git a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js index 06833ee0d..3aec340d4 100644 --- a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js +++ b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js @@ -1112,16 +1112,20 @@ export default class TPMsettings extends Component { // this.deleteAttachment(this.state.file); this.setState({ file:undefined, + deleteisnot:true, languagewrite:"", systemenvironment:"", testcoderunmode:"", + fileList:[] }) }else { this.setState({ file:undefined, + deleteisnot:true, languagewrite:"", systemenvironment:"", testcoderunmode:"", + fileList:[] }) } // this.props.showNotification('提交成功!'); @@ -1154,16 +1158,20 @@ export default class TPMsettings extends Component { // this.deleteAttachment(this.state.file); this.setState({ file:undefined, + deleteisnot:true, languagewrite:"", systemenvironment:"", testcoderunmode:"", + fileList:[] }) }else { this.setState({ file:undefined, + deleteisnot:true, languagewrite:"", systemenvironment:"", testcoderunmode:"", + fileList:[] }) } } diff --git a/public/react/src/modules/tpm/newshixuns/Newshixuns.js b/public/react/src/modules/tpm/newshixuns/Newshixuns.js index d2ce099b4..27a78c963 100644 --- a/public/react/src/modules/tpm/newshixuns/Newshixuns.js +++ b/public/react/src/modules/tpm/newshixuns/Newshixuns.js @@ -635,16 +635,20 @@ class Newshixuns extends Component { // this.deleteAttachment(this.state.file); this.setState({ file:undefined, + deleteisnot:true, languagewrite:"", systemenvironment:"", testcoderunmode:"", + fileList:[] }) }else { this.setState({ file:undefined, + deleteisnot:true, languagewrite:"", systemenvironment:"", testcoderunmode:"", + fileList:[] }) } // this.props.showNotification('提交成功!'); @@ -676,16 +680,20 @@ class Newshixuns extends Component { // this.deleteAttachment(this.state.file); this.setState({ file:undefined, + deleteisnot:true, languagewrite:"", systemenvironment:"", testcoderunmode:"", + fileList:[] }) }else { this.setState({ file:undefined, + deleteisnot:true, languagewrite:"", systemenvironment:"", testcoderunmode:"", + fileList:[] }) } } @@ -754,7 +762,8 @@ class Newshixuns extends Component { handleChange = (info) => { console.log("handleChange1"); let fileList = info.fileList; - this.setState({ fileList:fileList, + this.setState({ + fileList:fileList, deleteisnot:false}); } onAttachmentRemove = (file) => {