From cdb25ca826f4aaeb9851ab2eee59101049bc3edf Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Fri, 19 Jul 2024 15:06:27 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E6=B3=95=E8=A7=84=E7=AC=A6=E5=90=88?= =?UTF-8?q?=E6=80=A7=E8=AF=84=E4=BC=B0=E6=B5=81=E7=A8=8B=E4=B8=BB=E6=8E=92?= =?UTF-8?q?=E6=9F=A5=E4=BA=BA=E5=88=86=E5=8F=91=E8=8A=82=E7=82=B9=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=A4=B1=E8=B4=A5=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/MainFinderDistributesBaseInfo.vue | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderDistributesBaseInfo.vue b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderDistributesBaseInfo.vue index c6eddda..909d7a5 100644 --- a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderDistributesBaseInfo.vue +++ b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderDistributesBaseInfo.vue @@ -724,6 +724,7 @@ export default { } }) } else { + console.log('----info.file', info.file) if (Array.isArray(info.file.response.result) && info.file.response.result.length > 0) { this.messageLineFeed(this.$t('fileImportError'), info.file.response.result) } else { @@ -756,6 +757,31 @@ export default { } } }, + /** + * 对数组形式后端错误信息进行处理 + * @param title + * @param content + */ + messageLineFeed (title, content) { + const htmlDom = [] + content.map(tt => { + if (tt) { + htmlDom.push((
{tt}
)) + } + }) + this.$warning({ + title: title, + closable: true, + width: 800, + content: () =>
+ {htmlDom} +
+ }) + this.$nextTick(() => { + document.getElementsByClassName('ant-modal-confirm-btns')[0].style = 'display: inline-block' + document.getElementsByClassName('ant-modal-confirm-content')[0].style = 'max-height: calc(100vh - 300px);overflow-y: auto;' + }) + }, handleExportXls (fileName, fileSuffix = '.xls') { if (!fileName || typeof fileName !== 'string') { fileName = this.$t('exportFile')