diff --git a/nezha-fronted/src/components/page/alert/alertMessage.vue b/nezha-fronted/src/components/page/alert/alertMessage.vue index f7396f82b..e5029b607 100644 --- a/nezha-fronted/src/components/page/alert/alertMessage.vue +++ b/nezha-fronted/src/components/page/alert/alertMessage.vue @@ -1014,6 +1014,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() @@ -1036,6 +1037,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() @@ -1179,6 +1181,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() },