[update] 法规符合性评估流程主排查人分发节点导入失败提醒
This commit is contained in:
+26
@@ -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((<div>{tt}</div>))
|
||||
}
|
||||
})
|
||||
this.$warning({
|
||||
title: title,
|
||||
closable: true,
|
||||
width: 800,
|
||||
content: () => <div>
|
||||
{htmlDom}
|
||||
</div>
|
||||
})
|
||||
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')
|
||||
|
||||
Reference in New Issue
Block a user