|
|
@@ -3838,13 +3838,18 @@ function initVueDataset() { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
cancelDataset(getpage){ |
|
|
|
if(getpage==='create'){ |
|
|
|
location.href = this.url.split('/create')[0]+'?type=-1' |
|
|
|
}else if(getpage==='edit'){ |
|
|
|
location.href = this.url.split('/edit')[0]+'?type=-1' |
|
|
|
}else{ |
|
|
|
location.href='/' |
|
|
|
cancelDataset(getpage,attachment){ |
|
|
|
if(getpage && !attachment){ |
|
|
|
if(getpage==='create'){ |
|
|
|
location.href = this.url.split('/create')[0]+'?type=-1' |
|
|
|
}else if(getpage==='edit'){ |
|
|
|
location.href = this.url.split('/edit')[0]+'?type=-1' |
|
|
|
}else{ |
|
|
|
location.href='/' |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
console.log(attachment) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
@@ -3929,7 +3934,7 @@ function initVueDataset() { |
|
|
|
let url = '/attachments/edit' |
|
|
|
const params={id:id,description:this.descfile} |
|
|
|
// document.getElementById("mask").style.display = "block" |
|
|
|
this.$axios.post(url,params).then((res)=>{ |
|
|
|
this.$axios.post(url,this.qs.stringify(params)).then((res)=>{ |
|
|
|
console.log(res) |
|
|
|
}) |
|
|
|
}, |
|
|
|