|
|
|
@ -155,7 +155,7 @@ export default { |
|
|
|
const hasMore = errorMessages.length > 20 |
|
|
|
|
|
|
|
let html = '<div style="text-align: left; max-height: 400px; overflow-y: auto;">' |
|
|
|
html += '<p style="color: #E6A23C; font-weight: bold; margin-bottom: 10px;">以下数据导入失败:</p>' |
|
|
|
html += '<p style="color: #E6A23C; font-weight: bold; margin-bottom: 10px;">以下数据存在错误,本次未写入任何记录:</p>' |
|
|
|
html += '<ol style="padding-left: 20px; line-height: 1.8;">' |
|
|
|
|
|
|
|
displayMessages.forEach(msg => { |
|
|
|
@ -250,7 +250,7 @@ export default { |
|
|
|
if (errorMessages.length > 0) { |
|
|
|
// 有错误信息,使用弹窗显示详细错误列表 |
|
|
|
const errorHtml = this.formatErrorMessages(errorMessages) |
|
|
|
this.$alert(errorHtml, '导入完成(部分数据失败)', { |
|
|
|
this.$alert(errorHtml, '导入失败(未写入任何数据)', { |
|
|
|
confirmButtonText: this.$t('warehouse.common.confirm'), |
|
|
|
dangerouslyUseHTMLString: true, |
|
|
|
customClass: 'import-error-dialog' |
|
|
|
|