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')