NEZ-3225 fix: body参数 导出时多进行一次编码

This commit is contained in:
zhangyu
2023-10-11 15:42:26 +08:00
parent e20591bd0b
commit aacd54eec0

View File

@@ -1055,6 +1055,7 @@ export default {
}
})
}
searchLabel.body = encodeURIComponent(JSON.stringify(this.searchLabel.body))
this.$set(searchLabel, 'language', localStorage.getItem('nz-language') ? localStorage.getItem('nz-language') : 'en')
this.exportExcel('alert/message/export', { ...searchLabel, state: this.state })
this.closeDialog()
@@ -1077,6 +1078,7 @@ export default {
}
})
}
temp.body = encodeURIComponent(JSON.stringify(this.searchLabel.body))
this.$set(temp, 'language', localStorage.getItem('nz-language') ? localStorage.getItem('nz-language') : 'en')
this.exportExcel('alert/message/export', { ...temp, state: this.state })
this.closeDialog()
@@ -1220,6 +1222,7 @@ export default {
params.language = localStorage.getItem('nz-language') || 'en'
params.format = this.importBox.format
params.ids = this.batchDeleteObjs.map(item => item.id).join(',')
params.body = encodeURIComponent(JSON.stringify(this.searchLabel.body))
this.exportExcel(this.exportUrl, params, this.exportFileName + '-' + this.getTimeString() + '.xlsx')
this.closeDialog()
},