实现用户信息修改页面session传值

This commit is contained in:
F嘉阳
2018-02-21 12:57:49 +08:00
parent 4335a6764e
commit b6def717f4
18 changed files with 407 additions and 100 deletions

View File

@@ -228,6 +228,27 @@ var Main = {
/*var url = window.location.protocol+"://"+window.location.host+":"+window.location.port+"/"*/
window.open("http://localhost:8080/cms/download/dodownload?fileId=" + row.colfileid);
},
handleDelete(row) {
axios({
url: 'http://localhost:8080/cms/home/filedelete',
method: 'post',
data: {
fileid: row.colfileid
},
transformRequest: [function (data) {
// Do whatever you want to transform the data
let ret = ''
for (let it in data) {
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
}
return ret
}],
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
});
this.openNotiSuccess("成功","删除成功!");
},
handlePreview(file) {
console.log(file);
},