From b86bc51f44128613327a072476dbe1ff2d2f2278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Wed, 26 Jun 2019 08:50:31 +0800 Subject: [PATCH] =?UTF-8?q?=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/AppConfig.js | 2 +- .../courses/coursesPublic/AccessoryModal.js | 18 +++++++++++------- .../react/src/modules/courses/css/Courses.css | 4 ++-- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 61ab83126..6c4a20fa9 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -31,7 +31,7 @@ export function initAxiosInterceptors(props) { // proxy = "http://testbdweb.trustie.net" // proxy = "http://testbdweb.educoder.net" proxy = "https://testeduplus2.educoder.net" - //proxy="http://47.96.87.25:48080" + proxy="http://47.96.87.25:48080" // 在这里使用requestMap控制,避免用户通过双击等操作发出重复的请求; // 如果需要支持重复的请求,考虑config里面自定义一个allowRepeat参考来控制 diff --git a/public/react/src/modules/courses/coursesPublic/AccessoryModal.js b/public/react/src/modules/courses/coursesPublic/AccessoryModal.js index df59cb4ae..9c57001c8 100644 --- a/public/react/src/modules/courses/coursesPublic/AccessoryModal.js +++ b/public/react/src/modules/courses/coursesPublic/AccessoryModal.js @@ -15,7 +15,8 @@ class AccessoryModal extends Component{ Modalstopval:"", ModalCancel:"", ModalSave:"", - loadtype:false + loadtype:false, + updatas:false } } @@ -114,11 +115,14 @@ class AccessoryModal extends Component{ for(var list of fileList){ newfileList.push(list.response.id) } - - // if (newfileList.length == 0) { - // this.props.showNotification('请先上传附件') - // return; - // } +debugger + if (newfileList.length == 0) { + // this.props.showNotification('请先上传附件') + this.setState({ + updatas:true + }) + return; + } let url= this.props.reviseAttachmentUrl || "/graduation_works/"+id+"/revise_attachment.json" axios.post(url,{ @@ -243,7 +247,7 @@ class AccessoryModal extends Component{ border:'1px solid rgba(234,234,234,1)', padding: '10px' }}> - + {this.state.updatas===true?请上传附件:""}
{this.props.Cancelname || '取消'} this.Saves()}>{this.props.Savesname || '确认'} diff --git a/public/react/src/modules/courses/css/Courses.css b/public/react/src/modules/courses/css/Courses.css index 8720dd860..dc80b8a02 100644 --- a/public/react/src/modules/courses/css/Courses.css +++ b/public/react/src/modules/courses/css/Courses.css @@ -842,8 +842,8 @@ a.white-btn.use_scope-btn:hover{ /*列表状态*/ .typestyle{ min-width: 68px; - height: 24px; - line-height: 24px; + height: 24px !important; + line-height: 24px !important; color: #fff !important; } .edu-filter-btn-028d01{