|
|
|
@ -102,7 +102,6 @@ class Selectsetting extends Component{
|
|
|
|
|
ModalSave:this.hidecouseShixunModal,
|
|
|
|
|
loadtype:false
|
|
|
|
|
})
|
|
|
|
|
this.props.Cancel()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
savecouseShixunModal=()=>{
|
|
|
|
@ -149,9 +148,10 @@ class Selectsetting extends Component{
|
|
|
|
|
delay_publish:Radiovalue
|
|
|
|
|
}).then((result)=>{
|
|
|
|
|
if(result.data.status===0){
|
|
|
|
|
this.hidecouseShixunModal()
|
|
|
|
|
this.props.setupdate(attachmentId)
|
|
|
|
|
this.props.showNotification("设置资源成功");
|
|
|
|
|
this.hidecouseShixunModal()
|
|
|
|
|
this.props.Cancel()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
@ -242,13 +242,11 @@ class Selectsetting extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
delectcousedelectfils=(id)=>{
|
|
|
|
|
let course_id=this.props.course_id;
|
|
|
|
|
const url = `/files/bulk_delete.json`;
|
|
|
|
|
const url = `/attachments/id.json`;
|
|
|
|
|
|
|
|
|
|
console.log(id)
|
|
|
|
|
axios.delete(url, { data: {
|
|
|
|
|
course_id: course_id,
|
|
|
|
|
ids:[id]
|
|
|
|
|
id:id
|
|
|
|
|
}})
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
@ -358,7 +356,7 @@ class Selectsetting extends Component{
|
|
|
|
|
height: 37px;
|
|
|
|
|
}
|
|
|
|
|
.isabox{
|
|
|
|
|
max-width: 339px;
|
|
|
|
|
max-width:280px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
@ -567,7 +565,7 @@ class Selectsetting extends Component{
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|