competitions
杨树明 5 years ago
parent f6ae1a2146
commit 9d3f6e2293

@ -102,7 +102,6 @@ class Selectsetting extends Component{
ModalSave:this.hidecouseShixunModal, ModalSave:this.hidecouseShixunModal,
loadtype:false loadtype:false
}) })
this.props.Cancel()
} }
savecouseShixunModal=()=>{ savecouseShixunModal=()=>{
@ -149,9 +148,10 @@ class Selectsetting extends Component{
delay_publish:Radiovalue delay_publish:Radiovalue
}).then((result)=>{ }).then((result)=>{
if(result.data.status===0){ if(result.data.status===0){
this.hidecouseShixunModal()
this.props.setupdate(attachmentId) this.props.setupdate(attachmentId)
this.props.showNotification("设置资源成功"); this.props.showNotification("设置资源成功");
this.hidecouseShixunModal() this.props.Cancel()
} }
}) })
@ -242,13 +242,11 @@ class Selectsetting extends Component{
} }
delectcousedelectfils=(id)=>{ delectcousedelectfils=(id)=>{
let course_id=this.props.course_id; const url = `/attachments/id.json`;
const url = `/files/bulk_delete.json`;
console.log(id) console.log(id)
axios.delete(url, { data: { axios.delete(url, { data: {
course_id: course_id, id:id
ids:[id]
}}) }})
.then((response) => { .then((response) => {
if (response.data.status == 0) { if (response.data.status == 0) {
@ -358,7 +356,7 @@ class Selectsetting extends Component{
height: 37px; height: 37px;
} }
.isabox{ .isabox{
max-width: 339px; max-width:280px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
@ -567,7 +565,7 @@ class Selectsetting extends Component{
</div> </div>
<div className="mt20 marginauto clearfix edu-txt-center"> <div className="mt20 marginauto clearfix edu-txt-center">
<a className="pop_close task-btn mr30 margin-tp26" onClick={this.hidecouseShixunModal}>取消</a> <a className="pop_close task-btn mr30 margin-tp26" onClick={this.props.Cancel()}>取消</a>
<a className="task-btn task-btn-orange margin-tp26" id="submit_send_shixun" onClick={this.savecouseShixunModal}>确定</a> <a className="task-btn task-btn-orange margin-tp26" id="submit_send_shixun" onClick={this.savecouseShixunModal}>确定</a>
</div> </div>
</div> </div>

Loading…
Cancel
Save