diff --git a/backend/src/main/java/io/dataease/service/system/EmailService.java b/backend/src/main/java/io/dataease/service/system/EmailService.java index 483ddd4056..a8880db29a 100644 --- a/backend/src/main/java/io/dataease/service/system/EmailService.java +++ b/backend/src/main/java/io/dataease/service/system/EmailService.java @@ -132,15 +132,16 @@ public class EmailService { } private MimeMultipart addFiles(MimeMultipart multipart, List files) throws Exception{ + for (int i = 0; i < files.size(); i++) { File file = files.get(i); MimeBodyPart attach = new MimeBodyPart(); FileDataSource fileDataSource = new FileDataSource(file); attach.setDataHandler(new DataHandler(fileDataSource)); - attach.setFileName(MimeUtility.encodeText(file.getName())); + attach.setFileName(MimeUtility.encodeText(file.getName(), "gb2312", null)); multipart.addBodyPart(attach); } - System.getProperties().setProperty("mail.mime.splitlongparameters", "false"); + multipart.setSubType("related"); return multipart; } @@ -170,6 +171,7 @@ public class EmailService { } public MailInfo mailInfo() { + System.getProperties().setProperty("mail.mime.splitlongparameters", "false"); String type = ParamConstants.Classify.MAIL.getValue(); List paramList = getParamList(type); MailInfo mailInfo = new MailInfo(); diff --git a/frontend/src/components/DeViewSelect/index.vue b/frontend/src/components/DeViewSelect/index.vue index e532e9a95e..c7b2949346 100644 --- a/frontend/src/components/DeViewSelect/index.vue +++ b/frontend/src/components/DeViewSelect/index.vue @@ -19,16 +19,13 @@ /> - - - -
+
- + @@ -124,11 +121,9 @@ export default { }, mounted() { this._updateH() - }, beforeDestroy() { this._selectClearFun() - }, created() { this.loadView() @@ -168,11 +163,10 @@ export default { }, _updateH() { this.$nextTick(() => { - if(this.$refs.contaninerDiv) { + if (this.$refs.contaninerDiv) { this.width = this.$refs.contaninerDiv.clientWidth this.panelHeight = this.width * 9 / 16 } - }) }, _popoverShowFun(val) { @@ -180,10 +174,9 @@ export default { this._updateH() this.$emit('onFoucs') }, - - + _selectRemoveTag(viewId) { - this.selectedViews.forEach(item => { + this.$store.getters.panelViews[this.panelId].forEach(item => { if (item === viewId) { this.$store.dispatch('task/delView', { 'panelId': this.panelId, 'viewId': item }) } @@ -200,13 +193,17 @@ export default { }, openDialog() { if (this.value && this.value.length) { - this.idsBeforeOpen = JSON.parse(JSON.stringify(this.value)) + this.idsBeforeOpen = JSON.parse(JSON.stringify(this.value)) } this.dialogShow = true }, closeDialog() { this.dialogShow = false }, + sureDialog() { + this.innerValues = JSON.parse(JSON.stringify(this.$store.getters.panelViews[this.panelId])) + this.closeDialog() + }, cancelDialog() { this.innerValues = JSON.parse(JSON.stringify(this.idsBeforeOpen)) const viewIds = JSON.parse(JSON.stringify(this.innerValues))