
const h = this.$createElement
const font = [
h('span', null, '添加成功 '),
h('i', { style: 'color: teal' }, data.num - data.error_num),
h('i', null, '条,失败成功 '),
h('i', { style: 'color: red;font-size:20px' }, data.error_num),
h('i', null, '条! ')
]
this.message !== '' ? this.message.close() : ''
data.error.forEach((item, index) => {
const message = '第' + (index + 1) + '行:' + item.error
const errorP = h('p', { style: 'color: red;margin-top:5px;font-size:16px;' }, message)
font.push(errorP)
})
this.message = this.$message({
message: h('p', null, font),
duration: 300000,
showClose: true
})