弹窗和通知-----消息内容显示表格

弹窗和通知-----消息内容显示表格

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()
  }
},
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值