fix:修复alert message导出未携带语言的问题

This commit is contained in:
wangwenrui
2020-10-14 16:14:52 +08:00
parent 448d013f6d
commit c666919632
2 changed files with 5 additions and 1 deletions

View File

@@ -159,6 +159,7 @@
if(this.paramsType){
form.append('type',this.paramsType);
}
form.append('language',localStorage.getItem("nz-language") ? localStorage.getItem("nz-language") : 'en')
this.$post(this.importUrl,form,{'Content-Type': 'multipart/form-data'}).then(response=>{
if(response.code==200 && response.msg=='success'){
this.importResult=response.data;

View File

@@ -443,12 +443,15 @@
this.deleteBox.show = false;
},
exportCur:function(){
this.exportExcel(this.searchLabel);
let searchLabel=Object.assign({},this.searchLabel)
this.$set(searchLabel,'language',localStorage.getItem("nz-language") ? localStorage.getItem("nz-language") : 'en')
this.exportExcel(searchLabel);
this.closeDialog();
},
exportAll:function(){
let temp = JSON.parse(JSON.stringify(this.searchLabel));
temp.pageSize = -1;
this.$set(temp,'language',localStorage.getItem("nz-language") ? localStorage.getItem("nz-language") : 'en')
this.exportExcel(temp);
this.closeDialog();
},