[update] Jero混入导入错误提示
This commit is contained in:
@@ -504,6 +504,28 @@ export const JeroListMixin = {
|
|||||||
} else {
|
} else {
|
||||||
this[operation.clickEvent](record)
|
this[operation.clickEvent](record)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 对数组形式后端错误信息进行处理
|
||||||
|
* @param title
|
||||||
|
* @param content
|
||||||
|
*/
|
||||||
|
messageLineFeed (title, content) {
|
||||||
|
const htmlDom = []
|
||||||
|
content.map(tt => {
|
||||||
|
if (tt) {
|
||||||
|
htmlDom.push((<div>{tt}</div>))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.$warning({
|
||||||
|
title: title,
|
||||||
|
content: () => <div>
|
||||||
|
{htmlDom}
|
||||||
|
</div>
|
||||||
|
})
|
||||||
|
this.$nextTick(() => {
|
||||||
|
document.getElementsByClassName('ant-modal-confirm-btns')[0].style = 'display: inline-block'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user