弹窗和通知-----消息内容显示表格
ShowNewInfo (data) {
const h = this.$createElement;
this.$notify({
title: '警告',
message:h('el-table', {props:{data:this.newWarningInfo,border:true,height:"250",},style:'width:500px;',on: { 'row-click': this.check}},
[h('el-table-column', {props:{prop: "point_name",label:"预警地点"},
scopedSlots: {default: props => h('span', {style:'font-size:12px;display:inline- block;white-space: nowrap;overflow:hidden;text-overflow:ellipsis;'}, props.row.point_name) }},{}),
h('el-table-column', {props:{prop: "verify_content.last_modified_time",label:"时间",width:'180px',align:'center'},
scopedSlots: {default: props => {
if (props.row.verify_content) {
let time = this.transformTimestamp(props.row.verify_content.last_modified_time)
return h('span', {style:'font-size:12px;'}, time)
} else {
let time = this.transformTimestamp(props.row.last_modified_time)
return h('span', {style:'font-size:12px;'}, time)
}
},}},{}),
h('el-table-column', {props:{width: "100",label:"操作",align:'center'}},
[h('el-button', { props: { type: 'text', size: 'mini' } }, '查看详情')])
]),
showCancelButton: false,
showConfirmButton: false,
dangerouslyUseHTMLString: true,
center: true,
position: 'bottom-right'
})
},
check (row, event, column) {
if (event.label === '操作') {
this.$msgbox.close()
}
},