|
|
@ -242,18 +242,17 @@ class Selectsetting extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
delectcousedelectfils=(id)=>{
|
|
|
|
delectcousedelectfils=(id)=>{
|
|
|
|
const url = `/attachments/id.json`;
|
|
|
|
const url = `/attachments/${id}.json`;
|
|
|
|
|
|
|
|
|
|
|
|
console.log(id)
|
|
|
|
axios.delete(url)
|
|
|
|
axios.delete(url, { data: {
|
|
|
|
|
|
|
|
id:id
|
|
|
|
|
|
|
|
}})
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
// {"status":1,"message":"删除成功"}
|
|
|
|
// {"status":1,"message":"删除成功"}
|
|
|
|
this.props.showNotification(response.data.message);
|
|
|
|
this.props.showNotification(response.data.message);
|
|
|
|
this.getalldata
|
|
|
|
this.getalldata
|
|
|
|
this.hidecouseShixunModal
|
|
|
|
this.hidecouseShixunModal
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.props.showNotification(response.data.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(function (error) {
|
|
|
|
.catch(function (error) {
|
|
|
|